Learn on PengiOpenStax Algebra and TrigonometryChapter 10: Further Applications of Trigonometry

Lesson 10.2 : Non-right Triangles: Law of Cosines

In this Grade 7 lesson from OpenStax Algebra and Trigonometry, students learn to apply the Law of Cosines to solve oblique triangles in SAS and SSS configurations where the Law of Sines falls short. The lesson covers deriving the three Law of Cosines equations from the Generalized Pythagorean Theorem, solving for unknown sides and angles, and using Heron's formula to calculate triangle area. Real-world applied problems, such as finding distances in navigation scenarios, help students connect these formulas to practical contexts.

Section 1

📘 Non-right Triangles: Law of Cosines

New Concept

Master the Law of Cosines, a key tool for solving oblique (non-right) triangles in cases where the Law of Sines falls short, like SAS and SSS. You'll learn to find unknown sides, angles, and calculate area using Heron's formula.

What’s next

Next, you'll dive into worked examples for SAS and SSS triangles. Then, test your new skills with a series of interactive practice cards.

Section 2

Law of Cosines

Property

The Law of Cosines states that the square of any side of a triangle is equal to the sum of the squares of the other two sides minus twice the product of the other two sides and the cosine of the included angle. For triangles with angles α\alpha, β\beta, and γ\gamma, and opposite corresponding sides aa, bb, and cc, the Law of Cosines is given as three equations.

a2=b2+c22bccosαa^2 = b^2 + c^2 - 2bc \operatorname{cos} \alpha
b2=a2+c22accosβb^2 = a^2 + c^2 - 2ac \operatorname{cos} \beta
c2=a2+b22abcosγc^2 = a^2 + b^2 - 2ab \operatorname{cos} \gamma

To solve for an angle, these can be rearranged, for example:

cosγ=a2+b2c22ab\operatorname{cos} \gamma = \frac{a^2 + b^2 - c^2}{2ab}

Examples

  • To find side cc in a triangle where a=8a=8, b=10b=10, and γ=60\gamma=60^\circ: c2=82+1022(8)(10)cos(60)=64+100160(0.5)=84c^2 = 8^2 + 10^2 - 2(8)(10)\operatorname{cos}(60^\circ) = 64 + 100 - 160(0.5) = 84. So, c=849.17c = \sqrt{84} \approx 9.17.
  • To find angle α\alpha in a triangle with sides a=7a=7, b=8b=8, and c=9c=9: cosα=82+92722(8)(9)=961440.667\operatorname{cos} \alpha = \frac{8^2 + 9^2 - 7^2}{2(8)(9)} = \frac{96}{144} \approx 0.667. Thus, α=cos1(0.667)48.2\alpha = \operatorname{cos}^{-1}(0.667) \approx 48.2^\circ.
  • The Law of Cosines is unambiguous because cos1(x)\operatorname{cos}^{-1}(x) provides a unique angle between 00^\circ and 180180^\circ, unlike the Law of Sines which can have two possible angles.

Explanation

Think of this as the Pythagorean theorem with an upgrade for any triangle, not just right triangles. It is essential for solving triangles when you know Side-Angle-Side (SAS) or Side-Side-Side (SSS), where the Law of Sines cannot be used.

Section 3

Solving SAS Triangles

Property

Given two sides and the included angle (SAS), find the measures of the remaining side and angles of a triangle.

  1. Sketch the triangle and identify knowns and unknowns.
  2. Apply the Law of Cosines to find the length of the unknown side.
  3. Apply the Law of Sines or Cosines to find the measure of a second angle.
  4. Compute the measure of the remaining angle by subtracting the known angles from 180180^\circ.

Examples

  • Given a=15a=15, c=20c=20, and β=45\beta=45^\circ. Find side bb: b2=152+2022(15)(20)cos(45)=6253002b^2 = 15^2+20^2 - 2(15)(20)\operatorname{cos}(45^\circ) = 625 - 300\sqrt{2}. So, b14.19b \approx 14.19.
  • Continuing from above, find angle α\alpha using the Law of Sines: sinα15=sin4514.19\frac{\sin \alpha}{15} = \frac{\sin 45^\circ}{14.19}. This gives sinα0.747\sin \alpha \approx 0.747, so α48.3\alpha \approx 48.3^\circ.
  • Finally, find the third angle: γ=1804548.3=86.7\gamma = 180^\circ - 45^\circ - 48.3^\circ = 86.7^\circ. The triangle is now fully solved.

Explanation

When given a Side-Angle-Side setup, your first step is always the Law of Cosines to find the third side. Once you have that, the triangle can be fully solved using the Law of Sines to find the remaining angles.

Section 4

Solving SSS Triangles

Property

Given all three sides of a triangle (SSS), find the measures of the angles.

  1. Use the rearranged Law of Cosines to find one of the angles. It is often best to find the largest angle first (opposite the longest side).
  2. Use the Law of Sines or Cosines to find a second angle.
  3. Find the third angle by subtracting the other two from 180180^\circ.

Examples

  • Given a=10a=10, b=14b=14, and c=18c=18. Find the largest angle, γ\gamma, opposite side cc. cosγ=102+1421822(10)(14)=28280=0.1\operatorname{cos} \gamma = \frac{10^2+14^2-18^2}{2(10)(14)} = \frac{-28}{280} = -0.1. So γ95.7\gamma \approx 95.7^\circ.
  • Continuing from above, find a second angle, say α\alpha: sinα10=sin95.718\frac{\sin \alpha}{10} = \frac{\sin 95.7^\circ}{18}. This gives sinα0.553\sin \alpha \approx 0.553, so α33.6\alpha \approx 33.6^\circ.
  • The final angle is β=18095.733.6=50.7\beta = 180^\circ - 95.7^\circ - 33.6^\circ = 50.7^\circ. The triangle is solved.

Explanation

If you have all three sides but no angles, the Law of Cosines is your tool to unlock the triangle. By solving for the cosine of an angle, you can find one angle and then easily determine the rest.

Section 5

Heron’s Formula

Property

Heron’s formula finds the area of oblique triangles in which sides aa, bb, and cc are known.

Area=s(sa)(sb)(sc)\operatorname{Area} = \sqrt{s(s-a)(s-b)(s-c)}

where s=a+b+c2s = \frac{a+b+c}{2} is one half of the perimeter of the triangle, sometimes called the semi-perimeter.

Examples

  • Find the area of a triangle with sides a=13a=13, b=14b=14, and c=15c=15. The semi-perimeter is s=13+14+152=21s = \frac{13+14+15}{2} = 21. The area is 21(2113)(2114)(2115)=21(8)(7)(6)=7056=84\sqrt{21(21-13)(21-14)(21-15)} = \sqrt{21(8)(7)(6)} = \sqrt{7056} = 84 square units.
  • A triangular garden has sides of 20 ft, 25 ft, and 30 ft. First, s=20+25+302=37.5s = \frac{20+25+30}{2} = 37.5. The area is 37.5(17.5)(12.5)(7.5)248\sqrt{37.5(17.5)(12.5)(7.5)} \approx 248 square feet.
  • Calculate the area of a triangular plot with sides 50 m, 70 m, and 80 m. The semi-perimeter is s=50+70+802=100s = \frac{50+70+80}{2} = 100. The area is 100(50)(30)(20)1732.1\sqrt{100(50)(30)(20)} \approx 1732.1 square meters.

Explanation

This is a powerful formula for finding a triangle's area using only its side lengths. You don't need to know any angles or the height, making it perfect for problems where only side measurements are available.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 10: Further Applications of Trigonometry

  1. Lesson 1

    Lesson 10.1 : Non-right Triangles: Law of Sines

  2. Lesson 2Current

    Lesson 10.2 : Non-right Triangles: Law of Cosines

  3. Lesson 3

    Lesson 10.3 : Polar Coordinates

  4. Lesson 4

    Lesson 10.4 : Polar Coordinates: Graphs

  5. Lesson 5

    Lesson 10.5 : Polar Form of Complex Numbers

  6. Lesson 6

    Lesson 10.6 : Parametric Equations

  7. Lesson 7

    Lesson 10.7 : Parametric Equations: Graphs

  8. Lesson 8

    Lesson 10.8: Vectors

Lesson overview

Expand to review the lesson summary and core properties.

Expand

Section 1

📘 Non-right Triangles: Law of Cosines

New Concept

Master the Law of Cosines, a key tool for solving oblique (non-right) triangles in cases where the Law of Sines falls short, like SAS and SSS. You'll learn to find unknown sides, angles, and calculate area using Heron's formula.

What’s next

Next, you'll dive into worked examples for SAS and SSS triangles. Then, test your new skills with a series of interactive practice cards.

Section 2

Law of Cosines

Property

The Law of Cosines states that the square of any side of a triangle is equal to the sum of the squares of the other two sides minus twice the product of the other two sides and the cosine of the included angle. For triangles with angles α\alpha, β\beta, and γ\gamma, and opposite corresponding sides aa, bb, and cc, the Law of Cosines is given as three equations.

a2=b2+c22bccosαa^2 = b^2 + c^2 - 2bc \operatorname{cos} \alpha
b2=a2+c22accosβb^2 = a^2 + c^2 - 2ac \operatorname{cos} \beta
c2=a2+b22abcosγc^2 = a^2 + b^2 - 2ab \operatorname{cos} \gamma

To solve for an angle, these can be rearranged, for example:

cosγ=a2+b2c22ab\operatorname{cos} \gamma = \frac{a^2 + b^2 - c^2}{2ab}

Examples

  • To find side cc in a triangle where a=8a=8, b=10b=10, and γ=60\gamma=60^\circ: c2=82+1022(8)(10)cos(60)=64+100160(0.5)=84c^2 = 8^2 + 10^2 - 2(8)(10)\operatorname{cos}(60^\circ) = 64 + 100 - 160(0.5) = 84. So, c=849.17c = \sqrt{84} \approx 9.17.
  • To find angle α\alpha in a triangle with sides a=7a=7, b=8b=8, and c=9c=9: cosα=82+92722(8)(9)=961440.667\operatorname{cos} \alpha = \frac{8^2 + 9^2 - 7^2}{2(8)(9)} = \frac{96}{144} \approx 0.667. Thus, α=cos1(0.667)48.2\alpha = \operatorname{cos}^{-1}(0.667) \approx 48.2^\circ.
  • The Law of Cosines is unambiguous because cos1(x)\operatorname{cos}^{-1}(x) provides a unique angle between 00^\circ and 180180^\circ, unlike the Law of Sines which can have two possible angles.

Explanation

Think of this as the Pythagorean theorem with an upgrade for any triangle, not just right triangles. It is essential for solving triangles when you know Side-Angle-Side (SAS) or Side-Side-Side (SSS), where the Law of Sines cannot be used.

Section 3

Solving SAS Triangles

Property

Given two sides and the included angle (SAS), find the measures of the remaining side and angles of a triangle.

  1. Sketch the triangle and identify knowns and unknowns.
  2. Apply the Law of Cosines to find the length of the unknown side.
  3. Apply the Law of Sines or Cosines to find the measure of a second angle.
  4. Compute the measure of the remaining angle by subtracting the known angles from 180180^\circ.

Examples

  • Given a=15a=15, c=20c=20, and β=45\beta=45^\circ. Find side bb: b2=152+2022(15)(20)cos(45)=6253002b^2 = 15^2+20^2 - 2(15)(20)\operatorname{cos}(45^\circ) = 625 - 300\sqrt{2}. So, b14.19b \approx 14.19.
  • Continuing from above, find angle α\alpha using the Law of Sines: sinα15=sin4514.19\frac{\sin \alpha}{15} = \frac{\sin 45^\circ}{14.19}. This gives sinα0.747\sin \alpha \approx 0.747, so α48.3\alpha \approx 48.3^\circ.
  • Finally, find the third angle: γ=1804548.3=86.7\gamma = 180^\circ - 45^\circ - 48.3^\circ = 86.7^\circ. The triangle is now fully solved.

Explanation

When given a Side-Angle-Side setup, your first step is always the Law of Cosines to find the third side. Once you have that, the triangle can be fully solved using the Law of Sines to find the remaining angles.

Section 4

Solving SSS Triangles

Property

Given all three sides of a triangle (SSS), find the measures of the angles.

  1. Use the rearranged Law of Cosines to find one of the angles. It is often best to find the largest angle first (opposite the longest side).
  2. Use the Law of Sines or Cosines to find a second angle.
  3. Find the third angle by subtracting the other two from 180180^\circ.

Examples

  • Given a=10a=10, b=14b=14, and c=18c=18. Find the largest angle, γ\gamma, opposite side cc. cosγ=102+1421822(10)(14)=28280=0.1\operatorname{cos} \gamma = \frac{10^2+14^2-18^2}{2(10)(14)} = \frac{-28}{280} = -0.1. So γ95.7\gamma \approx 95.7^\circ.
  • Continuing from above, find a second angle, say α\alpha: sinα10=sin95.718\frac{\sin \alpha}{10} = \frac{\sin 95.7^\circ}{18}. This gives sinα0.553\sin \alpha \approx 0.553, so α33.6\alpha \approx 33.6^\circ.
  • The final angle is β=18095.733.6=50.7\beta = 180^\circ - 95.7^\circ - 33.6^\circ = 50.7^\circ. The triangle is solved.

Explanation

If you have all three sides but no angles, the Law of Cosines is your tool to unlock the triangle. By solving for the cosine of an angle, you can find one angle and then easily determine the rest.

Section 5

Heron’s Formula

Property

Heron’s formula finds the area of oblique triangles in which sides aa, bb, and cc are known.

Area=s(sa)(sb)(sc)\operatorname{Area} = \sqrt{s(s-a)(s-b)(s-c)}

where s=a+b+c2s = \frac{a+b+c}{2} is one half of the perimeter of the triangle, sometimes called the semi-perimeter.

Examples

  • Find the area of a triangle with sides a=13a=13, b=14b=14, and c=15c=15. The semi-perimeter is s=13+14+152=21s = \frac{13+14+15}{2} = 21. The area is 21(2113)(2114)(2115)=21(8)(7)(6)=7056=84\sqrt{21(21-13)(21-14)(21-15)} = \sqrt{21(8)(7)(6)} = \sqrt{7056} = 84 square units.
  • A triangular garden has sides of 20 ft, 25 ft, and 30 ft. First, s=20+25+302=37.5s = \frac{20+25+30}{2} = 37.5. The area is 37.5(17.5)(12.5)(7.5)248\sqrt{37.5(17.5)(12.5)(7.5)} \approx 248 square feet.
  • Calculate the area of a triangular plot with sides 50 m, 70 m, and 80 m. The semi-perimeter is s=50+70+802=100s = \frac{50+70+80}{2} = 100. The area is 100(50)(30)(20)1732.1\sqrt{100(50)(30)(20)} \approx 1732.1 square meters.

Explanation

This is a powerful formula for finding a triangle's area using only its side lengths. You don't need to know any angles or the height, making it perfect for problems where only side measurements are available.

Book overview

Jump across lessons in the current chapter without opening the full course modal.

Continue this chapter

Chapter 10: Further Applications of Trigonometry

  1. Lesson 1

    Lesson 10.1 : Non-right Triangles: Law of Sines

  2. Lesson 2Current

    Lesson 10.2 : Non-right Triangles: Law of Cosines

  3. Lesson 3

    Lesson 10.3 : Polar Coordinates

  4. Lesson 4

    Lesson 10.4 : Polar Coordinates: Graphs

  5. Lesson 5

    Lesson 10.5 : Polar Form of Complex Numbers

  6. Lesson 6

    Lesson 10.6 : Parametric Equations

  7. Lesson 7

    Lesson 10.7 : Parametric Equations: Graphs

  8. Lesson 8

    Lesson 10.8: Vectors