How to find angle between vectors from dot and cross product

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
9 replies · 8K views
andylatham82
Messages
11
Reaction score
4
Hi, hopefully a quick question here...how do you calculate the angle between two vectors if the only information you have is the value of their scalar product and the magnitude of their cross product?

Thanks!
Andy
 
on Phys.org
What do you know about the magnitude of scalar and vector product as function of the vectors and their angle?
 
  • Like
Likes   Reactions: andylatham82 and Buzz Bloom
Hi andy:
I think I remember this correctly, but you should see if you can find some verification. Wikipedia can probably help.

The magnitude of the cross product is
A × B,​
and the scalar product is
A × B × cos θ.​

Hope this helps.

Regards,
Buzz
 
mfb said:
What do you know about the magnitude of scalar and vector product as function of the vectors and their angle?

I know that:

A.B = ABcosθ

and

|AxB| = ABsinθ

I'm just not sure where to go from there with no magnitudes or components to work with. I have a value of -7 for the scalar product (so I know the angle is greater than 90°) and a magnitude of 9 for the vector product. I'm sure there's something simple staring me in the face, but please bear with me, I'm returning to the subject of physics (and hence maths) 11 years after having last done it!
 
I can combine the two equations to give

(sin θ)/(cos θ) = (|AxB|)/AB)

But I'm not sure where to go next. If we were talking about a right-angled triangle, we could say sin/cos = tan, but that's not the case here is it? I could do cos θ = sin (90-θ) perhaps but my algebra is failing me in reducing the result to an expression giving θ.

θ/(90-θ) = sin-1(|AxB|/AB)
 
Hi andy:

I confess mfb did a better job than I did in advising you.

I will give you a hint similar to but a bit more direct than mfb's. You want to get a value for an expression involving
θ, but not involving either A or B. Then you solve for the angle θ.

What do you know about trigonometric identities? Wikipedia can help you.

Regards,
Buzz
 
  • Like
Likes   Reactions: andylatham82
andylatham82 said:
If we were talking about a right-angled triangle, we could say sin/cos = tan, but that's not the case here is it?
That is true for every angle. ##\sin##, ##\cos## and ##\tan## are just functions of an angle. It doesn't matter where the angle is.
 
  • Like
Likes   Reactions: andylatham82
andylatham82 said:
I can combine the two equations to give

(sin θ)/(cos θ) = (|AxB|)/AB)
Good so far.
But I'm not sure where to go next. If we were talking about a right-angled triangle, we could say sin/cos = tan, but that's not the case here is it?
You consider functions - there is no triangle involved. The tangent function is defined as this ratio.
I could do cos θ = sin (90-θ) perhaps but my algebra is failing me in reducing the result to an expression giving θ.

θ/(90-θ) = sin-1(|AxB|/AB)
That does not work. ##\sin^{-1} \left( \frac{\sin x}{\sin y} \right) \neq \frac{x}{y}##.
(if your step would work, you could multiply by the denominator to get a linear equation - but it doesn't work).
 
  • Like
Likes   Reactions: andylatham82
SlowThinker said:
That is true for every angle. ##\sin##, ##\cos## and ##\tan## are just functions of an angle. It doesn't matter where the angle is.

Well I finally got to the bottom of it then thanks to learning that tan = sin/cos.

sin θ/cos θ = |AxB|/A.B

⇒ tan θ = |AxB|/A.B = 9/-7

⇒ θ = 52° or 180° - 52° = 128°

Since the A.B < 0, the angle between the vectors must be greater than 90°, thus θ = 128°.

Phew! Thanks so much for your help everyone! I now know that I need to brush up on my trigonometry!
 
  • Like
Likes   Reactions: Buzz Bloom and mfb