Proof of the Law of Cosines
The Law of Cosines is given by the equation:
$$ c^2 = a^2 + b^2 - 2ab \cos(\theta) $$
Consider a triangle with sides \(a\), \(b\), and \(c\), and an angle \(\theta\) opposite side \(c\).
Derivation Steps:
-
Triangle Setup:
Position the triangle in the Cartesian plane with vertices at \((0, 0)\), \((a, 0)\), and \((x, y)\).
-
Vertex Coordinates:
Using trigonometry, the coordinates of the third vertex are:
- \( x = b \cos(\theta) \)
- \( y = b \sin(\theta) \)
-
Applying the Distance Formula:
The length of side \(c\) is found by:
$$ c = \sqrt{(x - a)^2 + y^2} $$
-
Coordinate Substitution:
Insert \( x = b \cos(\theta) \) and \( y = b \sin(\theta) \) into the distance formula:
$$ c = \sqrt{(b \cos(\theta) - a)^2 + (b \sin(\theta))^2} $$
-
Expansion:
Expand the square root expression:
$$ c = \sqrt{b^2 \cos^2(\theta) - 2ab \cos(\theta) + a^2 + b^2 \sin^2(\theta)} $$
-
Pythagorean Identity:
Utilize \( \cos^2(\theta) + \sin^2(\theta) = 1 \):
$$ c = \sqrt{a^2 + b^2 - 2ab \cos(\theta)} $$
-
Squaring:
Eliminate the square root by squaring both sides:
$$ c^2 = a^2 + b^2 - 2ab \cos(\theta) $$