Math 2.0

statement theorem

Law of cosines

Statement

Let ABCABC be a triangle in the Euclidean space Rn\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.

Explanations

L1 human

The law of cosines corrects the Pythagorean theorem for triangles without a right angle. If the angle γ\gamma is larger than a right angle, cos⁡γ<0\cos \gamma < 0, and the opposite side is longer than in the right triangle. If γ\gamma is smaller, the opposite side is shorter.

What this node 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 node is. They do not measure its truth.

What this needs

To read this node, read these 4 nodes in this order. The foundations come first, and the list ends with this node.

Each node uses the nodes above it. The colour of the bar on a box shows the evidence level, and the box also gives it as text. The list below has the same nodes.
  • no evidence level
  1. Angle at a point concept
  2. Euclidean distance concept
  3. Triangle concept
  4. Law of cosines statement

Sources

  1. Web https://en.wikipedia.org/wiki/Law_of_cosines, lead section