Competency-Based Questions (CBQ) · Question 36 of 80
The elbow joint of a robotic arm can turn to any angle with 0 < 2π , measured anticlockwise from a fixed reference…
Question 365 marksMedium
The elbow joint of a robotic arm can turn to any angle φ with 0≤φ<2π, measured anticlockwise from a fixed reference direction. A sensor reports only the two numbers c=cosφ and s=sinφ. The control software has just three keys, sin−1, cos−1 and tan−1, and each key returns the principal value.
Based on this information, answer the following.
(i) The arm is set to φ=65π. Find the values returned by cos−1c and by sin−1s, and say which of them equals φ. (1 mark)
(ii) The arm is set to φ=34π. Find the values returned by cos−1c and by sin−1s, and explain why neither can equal φ. (1 mark)
(iii) A programmer uses the rule: "if s≥0, take φ=cos−1c; if s<0, take φ=2π−cos−1c." Explain why this rule gives the correct angle for every φ with π<φ<2π. (1 mark)
(iv) A second programmer uses only the tan−1 key, with input cs. For φ=47π, find tan−1(cs) and write φ in terms of it. Then find the formula for φ in terms of tan−1(cs) that holds for every φ with 2π<φ<23π. (2 marks)
Recall the principal value branches: sin−1 returns a value in [−2π,2π], cos−1 in [0,π] and tan−1 in (−2π,2π).
(i) Here c=cos65π=−23 and s=sin65π=21. So
cos−1(−23)=65π,sin−1(21)=6π
Only cos−1c equals φ, because 65π lies in [0,π] but not in [−2π,2π]. (1 mark)
(ii) Here c=cos34π=−21 and s=sin34π=−23. So
cos−1(−21)=32π,sin−1(−23)=−3π
Neither equals 34π, and neither can: 34π lies outside both [0,π] and [−2π,2π], so no key can ever return it. (1 mark)
(iii) Let π<φ<2π. Then s=sinφ<0, so the rule uses its second branch. Put ψ=2π−φ; then 0<ψ<π and cosψ=cos(2π−φ)=cosφ=c. Since ψ lies in the principal branch [0,π], cos−1c=ψ=2π−φ, and therefore 2π−cos−1c=φ. (1 mark)
(iv) For φ=47π: c=21 and s=−21, so cs=−1 and
tan−1(−1)=−4π,φ=2π+tan−1(cs)=2π−4π=47π
(1 mark)
For 2π<φ<23π, the angle φ−π lies in (−2π,2π) and tan(φ−π)=tanφ=cs. So tan−1(cs)=φ−π, that is
φ=π+tan−1(cs)
Check: for φ=34π, cs=3 and π+3π=34π. (1 mark)