Math 2.0

Geometry Triangles and circles Theorem

Law of cosines

Builds on TriangleAngle at a pointEuclidean distance

Statement

Let ABCABC be a triangle in the Euclidean space ℝn\mathbb{R}^n. Let a=d(B,C)a = d(B, C), b=d(C,A)b = d(C, A) and c=d(A,B)c = d(A, B) be its side lengths, where dd is the Euclidean distance. Let γ=∠ACB\gamma = \angle ACB be its angle at CC. Then c2=a2+b2−2abcos⁡γ.c^2 = a^2 + b^2 - 2ab \cos \gamma.

Remarks

The proof in vector form is short. With u=A−Cu = A - C and v=B−Cv = B - C: c2=∥u−v∥2=∥u∥2+∥v∥2−2u⋅vc^2 = \|u - v\|^2 = \|u\|^2 + \|v\|^2 - 2 u \cdot v, and u⋅v=abcos⁡γu \cdot v = ab \cos \gamma. For γ=π/2\gamma = \pi / 2 the formula is the Pythagorean theorem. The formula lets you find the third side from two sides and the angle between them. It also gives each angle from the three sides. Mathlib states the formula for all points, with its convention for the angle at a repeated point.

History

Book II of Euclid's Elements contains the statement in the language of areas of rectangles. Propositions 12 and 13 of Book II treat the obtuse and the acute case.

Reading path

To understand this page from the ground up, read these 4 pages in order. The foundations come first.

Show the path as a graph
Each page uses the pages above it. The colour of the bar on a box shows how strong the evidence is, and the box also gives it as text. The list has the same pages.
  • no evidence level
  1. Angle at a point concept
  2. Euclidean distance concept
  3. Triangle concept
  4. Law of cosines statement

Where this leads

1 page builds on this one.

Further reading

  1. Web https://en.wikipedia.org/wiki/Law_of_cosines, lead section
About this page
Tag060ZVZBV3E
URIm2://060ZVZBV3E
Aliasescosine-rule
Kindstatement, theorem
WritingW1 stated
MSC51M04
StatusThis copy of the site has no build data. Run m2 status 060ZVZBV3E.
UsesTriangle, Angle at a point, Euclidean distance
Same as

Markdown · JSON · Edit on GitHub

What this page needs for W2

  • edge about out: the concepts that the statement is about (0 of 1)
  • edge proves in: at least one proof node (0 of 1)
  • edge instance_of or illustrates in: one example that shows the statement at work (0 of 1)
  • explanation L2 (0 of 1)

The writing levels say how complete the text of a page is. They do not measure its truth.

What links here

Used by