Law of Cosines in Linear Algebra: Understanding the Dot Product of Unit Vectors

Click For Summary
SUMMARY

The discussion centers on the Law of Cosines in linear algebra, specifically regarding the dot product of unit vectors. The dot product is defined as the product of the lengths of two vectors and the cosine of the angle between them, expressed as u · U = cos(θ) when both vectors are unit vectors. Two definitions of the dot product are highlighted: the coordinate definition (a_1b_1 + a_2b_2) and the coordinate-free definition u · U = |u||U|cos(θ). Understanding these definitions clarifies the relationship between the dot product and the angle between vectors.

PREREQUISITES
  • Understanding of unit vectors in linear algebra
  • Familiarity with the concept of the dot product
  • Basic knowledge of trigonometry, specifically cosine functions
  • Ability to work with 2D vector coordinates
NEXT STEPS
  • Study the geometric interpretation of the dot product in linear algebra
  • Learn about vector projections and their applications
  • Explore the Law of Cosines in both trigonometry and linear algebra contexts
  • Investigate the differences between coordinate and coordinate-free vector definitions
USEFUL FOR

Students of linear algebra, educators teaching vector mathematics, and anyone seeking to deepen their understanding of vector operations and their geometric interpretations.

TGV320
Messages
40
Reaction score
26
TL;DR
Why cosθ?
HI,

I am studying linear algebra, and I just can't understand why "Unit vectors u and U at angle θ have u multiplied by U=cosθ

Why is it like that?

Thanks
 
Physics news on Phys.org
Because that is the definition of dot product. It is the product of the lengths and the cos of the angle. If the vectors are unit, the lengths are both 1.
 
@TGV320 : can you explain the question? To me it isn't clear what specifically you don't understand.

Do you have the same difficulty with projection of a vector on another ? with coponents in a coordinate system ?

##\ ##
 
For 2-d vectors ##a=(a_1,a_2),(b_1,b_2)##, dot product =##(a_1b_1+a_2b_2)##.. Work out trig. to get angle.
 
mathman said:
For 2-d vectors ##a=(a_1,a_2),(b_1,b_2)##, dot product =##(a_1b_1+a_2b_2)##.. Work out trig. to get angle.
There are two definitions of the dot product for 2D vectors:
Coordinate definition, as you wrote.
Coordinate-free definition: ##\vec a \cdot \vec b = |\vec a||\vec b|\cos(\theta)##, where ##\theta## is the smaller of the angles between the two vectors.
 
  • Like
Likes   Reactions: Astronuc
Mark44 said:
There are two definitions of the dot product for 2D vectors:
Coordinate definition, as you wrote.
Coordinate-free definition: ##\vec a \cdot \vec b = |\vec a||\vec b|\cos(\theta)##, where ##\theta## is the smaller of the angles between the two vectors.
I prefer the first, since we don't know the angle.
 
  • Like
Likes   Reactions: malawi_glenn
mathman said:
I prefer the first, since we don't know the angle.
Each definition has its uses. For example, if you know the value of the dot product, and the magnitudes of the vectors, but don't know the coordinates of the vectors, you can use the coordinate-free definition to calculate the angle.

With regard to unit vectors, the subject of this thread, if you know the value of their dot product, you calculate the angle between them.

I've seen many problems where the coordinate definition could not be used.
 
Last edited:
  • Like
Likes   Reactions: Astronuc
  • #10
Thanks, I think I have a better understanding now.
Never learned that before at school, confused me quite a lot the first time.
 
  • Like
Likes   Reactions: BvU and berkeman
  • #11
the fact that the two versions are the same is called the law of cosines. perhaps you learned it in that form in trig.
 
  • Like
Likes   Reactions: Astronuc

Similar threads

  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 33 ·
2
Replies
33
Views
4K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 19 ·
Replies
19
Views
4K
  • · Replies 4 ·
Replies
4
Views
4K