Skip to main content
16-Pearl
May 28, 2015 10:23 AM UTC
Solved

Find angle giving highest rotated vector Z conponent (around X axis)

To all

trying to remember my school days and the use of derivative (if that's the tool to use). Given the following

an X,Y,Z Cartesian co-ordinate system

a vector v with components (vx, vy, vz)

a rotation matrix around x-axis Rx(theta)

Header 1Header 2Header 3
100
0cos(theta)-sin(theta)
0sin(theta)cos(theta)

Is there a way of finding at which angle theta the z component is the highest?

Thanks

Regards

JXB

23-Emerald V
May 28, 2015 4:20 PM UTC

J B wrote:

trying to remember my school days and the use of derivative (if that's the tool to use). Given the following

an X,Y,Z Cartesian co-ordinate system

a vector v with components (vx, vy, vz)

a rotation matrix around x-axis Rx(theta)

Header 1Header 2Header 3
1 0 0
0 cos(theta) -sin(theta)
0 sin(theta) cos(theta)

Is there a way of finding at which angle theta the z component is the highest?

Here's a starter for 10 ...

Stuart

4 replies

19-Tanzanite
May 28, 2015 11:52 AM UTC

The z component of the rotated vector will be  vy*sin(theta) + vz*cos(theta)

Differentiate wrt theta and set to zero to get the maximum theta as  thetamax = atan(vy/vz)

(Check that it is a maximum not a minimum!).

Alan

.

Translate
23-Emerald V
May 28, 2015 4:20 PM UTC

J B wrote:

trying to remember my school days and the use of derivative (if that's the tool to use). Given the following

an X,Y,Z Cartesian co-ordinate system

a vector v with components (vx, vy, vz)

a rotation matrix around x-axis Rx(theta)

Header 1Header 2Header 3
1 0 0
0 cos(theta) -sin(theta)
0 sin(theta) cos(theta)

Is there a way of finding at which angle theta the z component is the highest?

Here's a starter for 10 ...

Stuart

Translate
16-Pearl
May 29, 2015 12:22 PM UTC

Thanks Stuart for the input.  A lot more that I anticipated! I can see what I need I think

Translate
23-Emerald V
May 29, 2015 12:24 PM UTC

J B wrote:

Thanks Stuart for the input.  A lot more that I anticipated! I can see what I need I think

No worries, JXB.

Stuart

Translate