User Tools

Site Tools


en:proof-of-the-law-of-cosines

This is an old revision of the document!


Proof of The Law of Cosines

Law of Cosines: a2 = b2 + c2 - 2bccos(θ)

Proof

Divide the triangle into 2 right angle triangles:

Using trigonometry, the sides of the green triangle are

  • Longest side: a
  • Side on the left: b . sin θ ; because the sine of θ is opposite divided the hypotenuse, and the opposite is the length of this side. Then, the length of this side is the hypotenuse multiplied by the sine of θ
  • Side on the right: *c - b cos(θ) ; we must subtract from the length “c”, the part of c that is occupied by the red triangle. We know that, in the red triangle, cos θ is the adjacent side divided the hypotenuse. The adjacent is the “base” of the red triangle, and it is cos θ multiplied by the hypotenuse. The hypotenuse is b. Then, the base of the red triangle is (cos θ)b. So, the length of the “base” of the green triangle is c - b.cos θ

Using the Pythagorean Theorem:

a2 = (b sin θ)2 + (c - b cos(θ))2

= b2 sin 2 θ + c2 - 2cbcos(θ) + b 2 cos 2 θ

= b2 (sin 2 θ + cos 2 θ) + c2 - 2cbcos(θ)

Knowing that (sin 2 θ + cos 2 θ = 1) 1)

= b2 * 1 + c2 - 2cbcos(θ)

a2 = b2 + c2 - 2cbcos(θ)

Proof of the Law of Cosines

Statement

For a triangle with sides $a$, $b$, and $c$, and angle $\theta$ between sides $b$ and $c$, the Law of Cosines states:

$$ a^2 = b^2 + c^2 - 2bc\cos(\theta) $$


Proof

We construct the proof by splitting the triangle into two right-angled triangles.

Drop a perpendicular from the vertex opposite side $a$ onto side $c$.

Step 1: Identify the lengths

Using trigonometry in the smaller right triangle:

  • The vertical height (altitude) is:

$$ b \sin(\theta) $$

  • The horizontal projection of side $b$ onto side $c$ is:

$$ b \cos(\theta) $$

  • Therefore, the remaining horizontal segment is:

$$ c - b \cos(\theta) $$

Step 2: Apply the Pythagorean Theorem

Consider the right triangle formed with:

  • Vertical side: $b \sin(\theta)$
  • Horizontal side: $c - b \cos(\theta)$
  • Hypotenuse: $a$

By the Pythagorean Theorem:

$$ a^2 = (b \sin(\theta))^2 + (c - b \cos(\theta))^2 $$

Step 3: Expand the expression

$$ \begin{aligned} a^2 &= b^2 \sin^2(\theta) + (c - b \cos(\theta))^2 \\ \\ &= b^2 \sin^2(\theta) + c^2 - 2bc\cos(\theta) + b^2 \cos^2(\theta) \end{aligned} $$

Rearrange terms:

$$ a^2 = b^2 \sin^2(\theta) + b^2 \cos^2(\theta) + c^2 - 2bc\cos(\theta) $$

Step 4: Use a trigonometric identity

Recall the identity:

$$ \sin^2(\theta) + \cos^2(\theta) = 1 $$

Substitute:

$$ a^2 = b^2(1) + c^2 - 2bc\cos(\theta) $$


Final Result

$$ a^2 = b^2 + c^2 - 2bc\cos(\theta) $$


Why this works (Intuition)

The proof works by:

  • Breaking the triangle into right triangles (where we can use the Pythagorean Theorem)
  • Expressing unknown lengths using sine and cosine
  • Reassembling everything into a single equation

The extra term $-2bc\cos(\theta)$ accounts for the fact that the triangle is not necessarily a right triangle.


Summary

  • The Law of Cosines generalizes the Pythagorean Theorem
  • It works for all triangles, not just right-angled ones
  • It is essential in geometry, physics, engineering, and computer graphics

Discussion

Enter your comment. Wiki syntax is allowed:
X N X O N
 
en/proof-of-the-law-of-cosines.1775041504.txt.gz · Last modified: 2026/04/01 07:05 by federico