This is an old revision of the document!
Law of Cosines: a2 = b2 + c2 - 2bccos(θ)
Divide the triangle into 2 right angle triangles:
Using trigonometry, the sides of the green triangle are
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(θ)
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) $$
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$.
Using trigonometry in the smaller right triangle:
$$ b \sin(\theta) $$
$$ b \cos(\theta) $$
$$ c - b \cos(\theta) $$
Consider the right triangle formed with:
By the Pythagorean Theorem:
$$ a^2 = (b \sin(\theta))^2 + (c - b \cos(\theta))^2 $$
$$ \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) $$
Recall the identity:
$$ \sin^2(\theta) + \cos^2(\theta) = 1 $$
Substitute:
$$ a^2 = b^2(1) + c^2 - 2bc\cos(\theta) $$
$$ a^2 = b^2 + c^2 - 2bc\cos(\theta) $$
The proof works by:
The extra term $-2bc\cos(\theta)$ accounts for the fact that the triangle is not necessarily a right triangle.
Discussion