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

Click For Summary

Discussion Overview

The discussion revolves around the relationship between the dot product of unit vectors and the cosine of the angle between them, specifically exploring the definitions and implications of the dot product in linear algebra.

Discussion Character

  • Technical explanation
  • Conceptual clarification
  • Debate/contested

Main Points Raised

  • One participant expresses confusion about why the dot product of unit vectors u and U at angle θ equals cosθ.
  • Another participant states that this is the definition of the dot product, emphasizing that for unit vectors, the lengths are both 1.
  • A participant requests clarification on the original question, suggesting that the confusion may relate to vector projection or components in a coordinate system.
  • Several participants mention the two definitions of the dot product for 2D vectors: the coordinate definition and the coordinate-free definition involving the cosine of the angle.
  • One participant expresses a preference for the coordinate definition, noting that it is useful when the angle is unknown.
  • Another participant points out that knowing the dot product and magnitudes allows for the calculation of the angle using the coordinate-free definition.
  • A later reply mentions that the equivalence of the two definitions is referred to as the law of cosines, suggesting a connection to trigonometry.

Areas of Agreement / Disagreement

Participants generally agree on the definitions of the dot product and its relationship to angles, but there are differing preferences for which definition to use in various contexts. The discussion does not reach a consensus on the best approach for all situations.

Contextual Notes

Some participants highlight that the understanding of the dot product may depend on familiarity with vector projections and coordinate systems, indicating potential limitations in the original question's clarity.

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
5K
  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 14 ·
Replies
14
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 12 ·
Replies
12
Views
803
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 19 ·
Replies
19
Views
4K