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