Basic Lin Alg - Angle Between Vectors

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.
 
[tex] \cos\theta = \frac{-3}{\sqrt{6}\sqrt{6}} = ?[/tex]

: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, [itex]\langle \cdot, \cdot \rangle[/itex] is the inner product, the same thing as the dot product.

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

:P

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

[itex]\langle \vec{u}, \vec{v} \rangle[/itex] is the same as [itex]\vec{u} \cdot \vec{v}[/itex].

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 [tex]\theta[/tex]?
 
magicarpet512 said:
sorry, i didnt mean to say that!

As spamiam is hinting, how do you get [tex]\theta[/tex]?

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

Similar threads

  • · Replies 5 ·
Replies
5
Views
1K
Replies
1
Views
2K
  • · Replies 16 ·
Replies
16
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 18 ·
Replies
18
Views
6K
Replies
1
Views
2K
Replies
3
Views
2K
Replies
7
Views
2K