University of Texas Rio Grande Valley

Current teaching · Edinburg, Texas · Fall 2026
MATH 2412 PRECALCULUS · SECTION 804 · WEEK 10 · 8.2

Non-right Triangles: Law of Cosines

What replaces the Pythagorean Theorem when the angle is not 90°?

The Law of Sines needs an angle together with its opposite side. When we know two sides and the angle between them (SAS), or all three sides (SSS), no such pair is available. The Law of Cosines handles these cases. It is the Pythagorean Theorem with a correction term that depends on the cosine of the angle.

Learning objectives Use the Law of Cosines to solve oblique triangles; solve applied problems using the Law of Cosines; use Heron's formula to find the area of a triangle.

01 · The Law of Cosines

Law of Cosines
to find a sidea² = b² + c² − 2bc cos α
b² = a² + c² − 2ac cos β
c² = a² + b² − 2ab cos γ
to find an angleα = cos⁻¹((b² + c² − a²)/(2bc))
β = cos⁻¹((a² + c² − b²)/(2ac))
γ = cos⁻¹((a² + b² − c²)/(2ab))

The square of a side equals the sum of the squares of the other two sides, minus twice their product times the cosine of the included angle.

INTERACTIVE · PYTHAGORAS PLUS A CORRECTION

Change the angle γ between sides a and b. At γ = 90° the correction is 0 and you get the Pythagorean Theorem; an acute γ makes c shorter, an obtuse γ makes it longer.

02 · SAS: two sides and the included angle

Procedure
  1. Use the Law of Cosines to find the third side.
  2. Use the Law of Cosines (or the Law of Sines) to find a second angle. Finding the smaller angle first avoids the ambiguous case.
  3. Find the last angle with α + β + γ = 180°.
INTERACTIVE · SAS SOLVER

The presets include a word problem about a bus trip.

03 · SSS: three sides

Procedure

First check the triangle inequality: each side must be shorter than the sum of the other two. Then find two angles with the inverse-cosine forms and the third from the angle sum. The largest angle is across from the longest side; finding it with cos⁻¹ also tells you whether the triangle is obtuse.

INTERACTIVE · SSS SOLVER

04 · Heron's formula

Area from three sides

Area = √(s(s − a)(s − b)(s − c)), where s = ½(a + b + c) is the semi-perimeter.

INTERACTIVE · TWO WAYS TO THE SAME AREA

05 · Which law do I use?

Decide from the given information alone, before computing anything.

PRACTICE

Guided problems · Non-right Triangles: Law of Cosines

Original problems on the Law of Cosines, SAS and SSS triangles, navigation, and Heron's formula. Open a hint if you need one, check your answers, then try another set.

Choose an answer for each problem.
WRAP-UP

Check your understanding · Non-right Triangles: Law of Cosines

Answer each question on paper first, then open the answer to check yourself.

  1. Solve the triangle with β = 106°, a = 11, c = 16.

    Show answer

    b² = 11² + 16² − 2(11)(16) cos 106° ≈ 474.0, so b ≈ 21.8. α = cos⁻¹((b² + c² − a²)/(2bc)) ≈ 29.1°, and γ ≈ 180° − 106° − 29.1° ≈ 44.9°.

  2. Solve the triangle with a = 35, b = 29, c = 21.

    Show answer

    α = cos⁻¹((29² + 21² − 35²)/(2 · 29 · 21)) ≈ 87.3°, β = cos⁻¹((35² + 21² − 29²)/(2 · 35 · 21)) ≈ 55.9°, γ ≈ 36.8°.

  3. Find the area of the triangle with a = 18, b = 24, c = 27.

    Show answer

    s = 34.5; Area = √(34.5 · 16.5 · 10.5 · 7.5) ≈ 211.7 square units.