0:00 / 0:00

The Cosine Law

Watch Out!
If you are given a non-right angle triangle, we cannot use SOH CAH TOA to solve for missing side lengths and angles

When we are given a non-right angle triangle, the side lengths and interior angles are related using the Cosine Law:


c2=a2+b22abcosC  or  cosC=a2+b2c22ab\Large{\boxed{c^2=a^2+b^2-2ab\cos C}}~~\text{or}~~\Large\boxed{\cos C=\dfrac{a^2+b^2-c^2}{2ab}}

Wize Tip
  • We can use the Cosine Law if
  • we know the values of all 3 sides ➡ use cosC=a2+b2c22ab\cos C=\dfrac{a^2+b^2-c^2}{2ab} to find a missing angle
  • we know 2 sides and the angle in between them (the contained angle) ➡ use c2=a2+b22abcosCc^2=a^2+b^2-2ab\cos C

*Note:
The cosine law actually works for right-angle triangles as well, but if you have a right-angle triangle, it's easier to use SOH CAH TOA.

Practice: Cosine Law

Consider the triangle below.
Select ALL statements that are true.

Practice: Simplifying Expressions

Solve for xx in the following equations.

a) x2=a2+b22abcosCx^2=a^2+b^2-2ab\cos C, where a=3a=3, b=4b=4, and C=60°\angle C=60\degree

b) cosx=a2+b2c22ab\cos x=\dfrac{a^2+b^2-c^2}{2ab}, where a=3a=3, b=4b=4, and c=2c=2
0:00 / 0:00

Example: Cosine Law

Solve for zz in the following triangle.
Since we know two of the side lengths and the contained angle, we can use the Cosine Law.
z2=x2+y22xycosZz2=72+622(7)(6)cos50°z2=49+3684cos50°z28584(0.6428)z28554.00z231z31z5.57\begin{array}{rcl} z^2&=&x^2+y^2-2xy\cos\angle Z\\ z^2&=&7^2+6^2-2(7)(6)\cos50\degree\\ z^2&=&49+36-84\cos50\degree\\ z^2&\approx&85-84(0.6428)\\ z^2&\approx&85-54.00\\ z^2&\approx&31\\ z&\approx&\sqrt{31}\\ z&\approx&5.57 \end{array}
So, z5.57\boxed{z\approx5.57}.
0:00 / 0:00

Example: Cosine Law

Solve for Z\angle Z in the following triangle.

Since we have all 3 sides, we can use the cosine law to find a missing angle.
cosZ=x2+y2z22xycosZ=92+82522(9)(8)cosZ=81+6425144cosZ=120144Z=cos1(120144)Z33.56°\begin{array}{rcl} \cos\angle Z&=&\dfrac{x^2+y^2-z^2}{2xy}\\\\ \cos\angle Z&=&\dfrac{9^2+8^2-5^2}{2(9)(8)}\\\\ \cos\angle Z&=&\dfrac{81+64-25}{144}\\\\ \cos\angle Z&=&\dfrac{120}{144}\\\\ \angle Z&=&\cos^{-1}\left(\dfrac{120}{144}\right)\\\\ \angle Z&\approx&33.56\degree \end{array}

Practice: Cosine Law

Solve the following triangle. (find all missing sides lengths and angles)

Practice: Cosine Law

PQR\triangle PQR has angle Q=60°\angle Q=60\degree, QP=10QP=10, and QR=7QR=7. Solve the triangle (find all missing angles and side lengths)