Dot product and the law of cosines

In summary, the law of cosines can be derived from the vector addition of C = A + B using the dot product. By expanding the dot product, we can see that the left-hand side of the law of cosines will be represented by either |\vec C|^2 or |\vec B|^2, depending on how the vectors are arranged. The minus sign in the law of cosines arises from the external angle of the triangle, which is supplementary to the interior angle at that vertex.
  • #1
linuspauling
11
0
I can't seem to derive the law of cosines from the vector addition of

C = A + B

using the dot product.


Does anybody have any insights?
 
Physics news on Phys.org
  • #2
Can you show us what you have done so far? Is this homework or coursework? If so, I can move it to the Homework Help forums. In any case, you need to show us what you know so far, in order for us to be of help to you.
 
  • #3
Just do it...
A picture might help, as well.
 
  • #4
C = A + B

C dot C = |C| squared

and then I'm stuck. by the way, how do you guys post pictures and proper vector and math notations here?
 
  • #5
Let me get you a little further along. Click on the typeset equations to see how I did them. (You can use the "sigma summation symbol" in the advanced editor view for more TeX symbols via a popup menu.)

[tex]\vec C=\vec A +\vec B[/tex]

[tex]\vec C \cdot \vec C = (\vec A +\vec B) \cdot (\vec A +\vec B)[/tex]

now, your turn...
 
  • #6
[tex]\vec C \cdot \vec C = |\vec C|^2[/tex]
[tex]|\vec C|^2 = |\vec A|^2 + |\vec B|^2 + 2|\vec A||\vec B|cos\theta[/tex]

i'm not really sure how to put up the absolute value sign in proper laTeX notation. And, I'm stuck here...I don't know how these steps came about.
 
Last edited:
  • #7
Forget the absolute value signs for now.
How do you evaluate (expand out) the right-hand side of the equation I wrote?
 
  • #8
I'm not sure...

[tex](\vec A + \vec B) \cdot (\vec A + \vec B) = \vec C \cdot \vec C [/tex]

or

[tex] = |\vec A|^2 + 2|\vec A||\vec B| + |\vec B|^2 [/tex]

is this it?
 
Last edited:
  • #9
How does the dot-product distribute over addition?
After you do that, then you may start to write terms like [itex]\vec V\cdot \vec V [/itex] as [itex]|\vec V|^2[/itex], for any vector [itex]\vec V[/itex].

Since this discussion is about the law of COSINES, where does a COSINE arise from the dot-product?
 
  • #10
linuspauling said:
[tex](\vec A + \vec B) \cdot (\vec A + \vec B) = \vec C \cdot \vec C [/tex]

or

[tex] = |\vec A|^2 + 2|\vec A||\vec B| + |\vec B|^2 [/tex]

Slow down, you're trying to do too many steps at once. :smile: Don't do the absolute value (magnitude) yet, just multiply out the left side of the first equation to get rid of the parentheses. What does that give you?
 
  • #11
robphy said:
Let me get you a little further along. Click on the typeset equations to see how I did them. (You can use the "sigma summation symbol" in the advanced editor view for more TeX symbols via a popup menu.)

[tex]\vec C=\vec A +\vec B[/tex]

[tex]\vec C \cdot \vec C = (\vec A +\vec B) \cdot (\vec A +\vec B)[/tex]

now, your turn...

you guys have all missed something crucial

if [tex]\vec C=\vec A +\vec B[/tex] then we will not have [tex] |\vec C|^2 [/tex] on the left hand side of the law of cosines but either but it will be like this

[tex] \vec B=\vec C -\vec A[/tex] and it will be [tex] |\vec B|^2 [/tex] on the left hand side of the law of cosines
 
  • #12
ice109 said:
you guys have all missed something crucial

if [tex]\vec C=\vec A +\vec B[/tex] then we will not have [tex] |\vec C|^2 [/tex] on the left hand side of the law of cosines but either but it will be like this

[tex] \vec B=\vec C -\vec A[/tex] and it will be [tex] |\vec B|^2 [/tex] on the left hand side of the law of cosines

Using [itex]\vec C=\vec A +\vec B[/itex], the minus sign in the law of cosines that you seek arises when you realize that the "angle between [itex]\vec A[/itex] and [itex]\vec B[/itex]" is an external angle of the triangle, which is supplementary to the interior angle at that vertex. Using a little identity for [itex]\cos (\theta+\phi)[/itex], you'll get the minus sign. You don't have to do this for any other side because the "angles between the vectors [on the right-hand side, with a relative minus sign between them]" are already interior angles.
 

FAQ: Dot product and the law of cosines

What is the dot product?

The dot product, also known as the scalar product, is a mathematical operation that takes two vectors and produces a scalar quantity. It is calculated by multiplying the corresponding components of the two vectors and then summing them up.

How is the dot product related to the law of cosines?

The dot product is used in the law of cosines to find the angle between two vectors. The equation for the law of cosines is c² = a² + b² - 2ab cos(θ), where c is the length of the third side of a triangle and θ is the angle opposite to it. By rearranging the equation, we can see that the dot product of the two vectors a and b is equal to ab cos(θ).

What is the geometric interpretation of the dot product?

The dot product of two vectors is equal to the product of their lengths and the cosine of the angle between them. This means that the dot product can be interpreted as a measure of how "aligned" or "parallel" two vectors are to each other. If the dot product is positive, the vectors are pointing in the same direction; if it is negative, they are pointing in opposite directions; and if it is zero, they are perpendicular to each other.

Can the dot product be used with vectors in any number of dimensions?

Yes, the dot product can be used with vectors in any number of dimensions. The formula for calculating the dot product remains the same, but the vectors will have more components. For example, in three dimensions, the dot product of vectors a = [a1, a2, a3] and b = [b1, b2, b3] is given by a · b = a1b1 + a2b2 + a3b3.

How is the dot product used in real-world applications?

The dot product has many practical applications in fields such as physics, engineering, and computer graphics. Some examples include calculating work done by a force, determining the angle between two objects moving in different directions, and projecting one vector onto another to find the component of one vector in the direction of the other.

Similar threads

Replies
4
Views
2K
Replies
20
Views
6K
Replies
33
Views
2K
Replies
4
Views
2K
Replies
8
Views
2K
Replies
12
Views
542
Replies
23
Views
3K
Replies
16
Views
2K
Replies
2
Views
1K
Back
Top