Basic Lin Alg - Angle Between Vectors

AI Thread Summary
The discussion revolves around finding the angle between the vectors [-1, 1, 2] and [2, 1, -1]. The user initially calculated the dot product as -3 and the norms as the square root of six, leading to an incorrect cosine value. Clarifications were made regarding the dot product being a scalar, not a vector, and the correct interpretation of the inner product. The user ultimately identified a calculation error, correcting the cosine value to -1/2, which corresponds to an angle of 120 degrees or 2π/3 radians. The thread concludes with the user successfully resolving their mistake.
sunmaz94
Messages
42
Reaction score
0

Homework Statement



Find the angle between the vectors [-1, 1, 2] and [2, 1, -1].

Homework Equations



cos(theta) = <u, v> / ||u||||v||

The Attempt at a Solution



I get <u, v> = -3 and both norms equal to the square root of six. Then cos(theta) equals (-1/12), but I don't think this is correct. Can someone find my careless error? Thanks.
 
Physics news on Phys.org
Your <u,v> must be a vector, not a scaler.
 
<br /> \cos\theta = \frac{-3}{\sqrt{6}\sqrt{6}} = ?<br />

:P
 
magicarpet512 said:
Your <u,v> must be a vector, not a scaler.

No...dot products always yield scalars. Thanks anyways.
 
magicarpet512 said:
Your <u,v> must be a vector, not a scaler.

No, \langle \cdot, \cdot \rangle is the inner product, the same thing as the dot product.

\langle \vec{u}, \vec{v} \rangle is the same as \vec{u} \cdot \vec{v}.
 
spamiam said:
<br /> \cos\theta = \frac{-3}{\sqrt{6}\sqrt{6}} = ?<br />

:P

I did sqrt(6)^2 = 36 instead of 6! Wow! Stupid. Thanks!
 
spamiam said:
No, \langle \cdot, \cdot \rangle is the inner product, the same thing as the dot product.

\langle \vec{u}, \vec{v} \rangle is the same as \vec{u} \cdot \vec{v}.

Exactly.
 
magicarpet512 said:
Your <u,v> must be a vector, not a scaler.

sorry, i didnt mean to say that!

As spamiam is hinting, how do you get \theta?
 
magicarpet512 said:
sorry, i didnt mean to say that!

As spamiam is hinting, how do you get \theta?

I've figured it out now...careless error...cos(theta) is -1/2 so theta is 120 degrees or 2pi/3 radians.
 
Back
Top