Cosine rule

The cosine rule can be used to find:

The triangle

The lengths a, b and c represent the side lengths in this triangle.
The angles A, B and C represent the angles in the triangle.

            A
          /   \
     c  /       \  b
      /           \
    /               \
   B ---------------- C
            a

The cosine rule formula

Using the triangle above, the cosine rule tells us that:

a^2 = b^2 + c^2 - 2bc \cos A

And, equivalently:

\cos A = \frac{b^2 + c^2 - a^2}{2bc}

Example

Find the length of side a

            75
          /    \
   8cm  /        \  5cm
      /            \
    /                \
   B ----------------- C
            a