trying to make sure that I calculation is correct and my graph too
Problem 5 Find the rotation matrix that will line up the orthogonal vectors, A ( 1 ) 4 . - ( ; ) along the y- and z-axes, respectively. To rotate A into the y-axis you have to apply successive rotations to zero out the r and z components. Follow these steps: (a) Draw a picture that shows the vector projected into the zy-plane. (This projected vector has a and y components that are both 1 unit of length.) (b) To rotate the projected vector about the z-axis, mark the angle between the y-axis and the projected vector A. Using the picture, determine the sine and cosine of the angle you marked. The rotation matrices use the sine and cosine of this angle so you may not actually need to know the value of the angle. (Read questions carefully!) (c) Generate the rotation matrix (call it R1) for a rotation about the z-axis and apply it to the vector A: Determine A' = R A. If you did this correctly, the 7-component will be 0 at the end. Take care to note this is a counterclockwise (positive) rotation. (d) The final steps now require a rotation about the z-axis to zero out the y-component As above, draw a picture with the new y and z components. Mark the angle be- tween the rotated vector and the y-axis. Use the picture to determine the sine and cosine of the angle. Write the rotation matrix (for a rotation about the r-axis; call it R2). Apply the rotation matrix to the rotated vector: A" - R2A'. If you did this correctly, you will get A" = v3y. Note that this step requires a clockwise (negative) rotation. (e) The total rotation matrix for this process is R = RR]. To proceed, since A and B are orthogonal you can apply B" = RB. When you do this you'll see that it does not zero out the r and y components. You'll need one more rotation to align the vector B along the z-axis [Hint: you will have to do a rotation about the y-axis to align the vector B with the z-axis; call this R.; pay close attention when you do this step). Notice that the total rotation matrix is now R - RR2R. Check that this still rotates A into the y-axis. transcribed image text P