Proof of the law of cosines with the dot product
Builds on TriangleAngle at a pointEuclidean distanceLength of a vectorDot product
Proof
We expand the square of the length of a difference of two vectors.
- Let and . With the Euclidean distance and the length, and .
- We have , so , with the dot product.
- The dot product is bilinear and symmetric. So .
- The vertices of the triangle are not collinear, so they are distinct. Thus and , and the angle at is defined.
- By the definition of the angle at , . So .
- Steps 2, 3 and 5 give .
Idea
Put the vertex at the origin. The side is the difference of the two vectors from . Squaring its length produces the two squared sides and a cross term, and the cross term is the dot product, which is .
Reading path
To understand this page from the ground up, read these 6 pages in order. The foundations come first.
Show the path as a graph
- no evidence level
- Angle at a point concept
- Dot product concept
- Euclidean distance concept
- Length of a vector concept
- Triangle concept
- Proof of the law of cosines with the dot product proof
Where this leads
9 pages build on this one.
Further reading
- Web https://en.wikipedia.org/wiki/Law_of_cosines, Using vectors
About this page
| Tag | T5X9ZN2E4M |
|---|---|
| URI | m2://T5X9ZN2E4M |
| Kind | proof |
| Writing | W0 stub |
| MSC | 51M04 |
| Proves | Law of cosines |
| Uses | Triangle, Angle at a point, Euclidean distance, Length of a vector, Dot product |
| Changed | 4 November 2026 |
Markdown · JSON · Edit on GitHub
What this page needs for W1
- an inventory row: the row of the inventory that the node accounts for (0 of 1)
The writing levels say how complete the text of a page is. They do not measure its truth.
What links here
No page links to this page yet.