Use the Cosine Rule

The cosine rule is a commonly used rule in trigonometry. It can be used to investigate the properties of non-right triangles and thus allows you to find missing information, such as side lengths and angle measurements. The formula is similar to the Pythagorean Theorem and relatively easy to memorize. The cosine rule states that, for any triangle, <math>c^{2} = a^{2} + b^{2} - 2ab \cos{C}</math>.

Steps

Finding a Missing Side Length

  1. Assess what values you know. To find the missing side length of a triangle, you need to know the lengths of the other two sides, as well as the size of the angle between them.[1]
    • For example, you might have triangle XYZ. Side YX is 5 cm long. Side YZ is 9 cm long. Angle Y is 89 degrees. How long is side XZ?
  2. Set up the formula for the Cosine Rule. This is also called the law of cosines. The formula is <math>c^{2} = a^{2} + b^{2} - 2ab \cos{C}</math>. In this formula, <math>c</math> equals the missing side length, and <math>\cos{C}</math> equals the cosine of the angle opposite the missing side length. The variables <math>a</math> and <math>b</math> are the lengths of the two known sides.[2]
  3. Plug the known values into the formula. The variables <math>a</math> and <math>b</math> are the two known side lengths. The variable <math>C</math> is the known angle, which should be the angle between <math>a</math> and <math>b</math>.[3]
    • For example, since the length of side XZ is missing, this side length will stand for <math>c</math> in the formula. Since sides YX and YZ are known, these two side lengths will be <math>a</math> and <math>b</math>. It doesn’t matter which side is which variable. The variable <math>C</math> is angle Y. So, your formula should look like this: <math>c^{2} = 5^{2} + 9^{2} - 2(5)(9) \cos{89}</math>.
  4. Find the cosine of the known angle. Do this using a calculator’s cosine function. Simply type in the angle measurement, then hit the <math>COS</math> button. If you don't have a scientific calculator, you can find a cosine table online, such as the one found at the Physics Lab website.[4] You can also simply type in "cosine x degrees" into Google, (substituting the angle for x), and the search engine will give back the calculation.
    • For example, the cosine of 89 is about 0.01745. So, plug this value into your formula: <math>c^{2} = 5^{2} + 9^{2} - 2(5)(9)(0.01745)</math>.
  5. Complete the necessary multiplication. You are multiplying <math>2ab</math> by the known angle’s cosine.
    • For example:
      <math>c^{2} = 5^{2} + 9^{2} - 2(5)(9)(0.01745)</math>
      <math>c^{2} = 5^{2} + 9^{2} - 1.5707</math>
  6. Add the squares of the known sides. Remember that when you square a number, you multiply it by itself. Square the two numbers first, then add them.
    • For example:
      <math>c^{2} = 5^{2} + 9^{2} - 1.5707</math>
      <math>c^{2} = 25 + 81 - 1.5707</math>
      <math>c^{2} = 106 - 1.5707</math>
  7. Subtract the two values. This will give you the value of <math>c^{2}</math>.
    • For example:
      <math>c^{2} = 106 - 1.5707</math>
      <math>c^{2} = 104.4293</math>
  8. Take the square root of the difference. You will likely want to use a calculator for this step, because the number you are finding the square root of will have many decimal places. The square root is equal to the length of the missing side of the triangle.[3]
    • For example:
      <math>c^{2} = 104.4293</math>
      <math>\sqrt{c^{2}} = \sqrt{104.4293}</math>
      <math>c = 10.2191</math>
      So, the missing side length, <math>c</math>, is 10.2191 cm long.

Finding a Missing Angle

  1. Assess what values you know. To find the missing angle of a triangle using the cosine rule, you need to know the length of all three sides of the triangle.[1]
    • For example, you might have triangle RST. Side SR is 8 cm long. Side ST is 10 cm long. Side RT is 12 cm long. What is the measurement of angle S?
  2. Set up the formula for the Cosine Rule. The formula is <math>c^{2} = a^{2} + b^{2} - 2ab \cos{C}</math>. In this formula, <math>\cos{C}</math> equals the cosine of the angle you are trying to find. The variable <math>c</math> equals the side opposite the missing angle. The variables <math>a</math> and <math>b</math> are the lengths of the other two sides.[2]
  3. Determine the values of <math>a</math>, <math>b</math>, and <math>c</math>. Plug these values into the formula.[5]
    • For example, since side RT is opposite the missing angle, angle S, side RT will equal <math>c</math> in the formula. The other two side lengths will be <math>a</math> and <math>b</math>. It doesn’t matter which side is which variable. So, your formula should look like this: <math>12^{2} = 8^{2} + 10^{2} - 2(8)(10) \cos{C}</math>.
  4. Complete the necessary multiplication. You are multiplying <math>2ab</math> times the cosine of the missing angle, which you don’t know yet. So, the variable should remain.
    • For example, <math>12^{2} = 8^{2} + 10^{2} - 160 \cos{C}</math>.
  5. Find the square of <math>c</math>. Remember that to square a number, you multiply the number by itself.
    • For example, <math>144 = 8^{2} + 10^{2} - 160 \cos{C}</math>
  6. Add the squares of <math>a</math> and <math>b</math>. Make sure you square each number first, and then add them together.
    • For example:
      <math>144 = 64 + 100 - 160 \cos{C}</math>
      <math>144 = 164 - 160 \cos{C}</math>
  7. Isolate the cosine of the missing angle. To do this, subtract the sum of <math>a^{2}</math> and <math>b^{2}</math> from both sides of the equation. Then, divide each side of the equation by the coefficient of the missing angle’s cosine.
    • For example, to isolate the cosine of the missing angle, subtract 164 from both sides of the equation, then divide each side by -160:
      <math>144 - 164 = 164 - 164 - 160 \cos{C}</math>
      <math>-20 = - 160 \cos{C}</math>
      <math>\frac{-20}{-160} = \frac{-160 \cos{C}}{-160}</math>
      <math>0.125 = \cos{C}</math>
  8. Find the inverse cosine. This will give you the measurement of the missing angle.[6] On a calculator, the inverse cosine key is denoted by <math>COS^{-1}</math>.
    • For example, the inverse cosine of .0125 is 82.8192. So, the missing angle, angle S, is 82.8192 degrees.

Solving Sample Problems

  1. Find the missing side length of a triangle. The two known side lengths are 20 and 17 cm long. The angle between these two sides is 68 degrees.
    • Since you know two side lengths, and the angle between them, you can use the cosine rule. Set up the formula: <math>c^{2} = a^{2} + b^{2} - 2ab \cos{C}</math>.
    • The missing side length is <math>c</math>. Plug the other values into the formula:<math>c^{2} = 20^{2} + 17^{2} - 2(20)(17) \cos{68}</math>.
    • Use the order of operations to find <math>c^{2}</math>:
      <math>c^{2} = 20^{2} + 17^{2} - 2(20)(17) \cos{68}</math>
      <math>c^{2} = 20^{2} + 17^{2} - 2(20)(17)(.3746)</math>
      <math>c^{2} = 20^{2} + 17^{2} - 254.7325</math>
      <math>c^{2} = 400 + 289 - 254.7325</math>
      <math>c^{2} = 689 - 254.7325</math>
      <math>c^{2} = 434.2675</math>
    • Take the square root of both sides of the equation. This will give you the missing side length:
      <math>\sqrt{c^{2}} = \sqrt{434.2675}</math>
      <math>c = 20.8391</math>
      So, the missing side length is 20.8391 cm long.
  2. Find angle H in the triangle GHI. The two sides adjacent to angle H are 22 and 16 cm long. The side opposite angle H is {{safesubst:#invoke:convert|convert}} long.
    • Since you know all three side lengths, you can use the cosine rule. Set up the formula: <math>c^{2} = a^{2} + b^{2} - 2ab \cos{C}</math>.
    • The side opposite the missing angle is <math>c</math>. Plug all of the values into the formula: <math>13^{2} = 22^{2} + 16^{2} - 2(22)(16) \cos{C}</math>.
    • Use the order of operations to simplify the expression:
      <math>13^{2} = 22^{2} + 16^{2} - 704 \cos{C}</math>
      <math>13^{2} = 484 + 256 - 704 \cos{C}</math>
      <math>169 = 484 + 256 - 704 \cos{C}</math>
      <math>169 = 740 - 704 \cos{C}</math>
    • Isolate the cosine:
      <math>169 - 740 = 740 - 740 - 704 \cos{C}</math>
      <math>-571 = - 704 \cos{C}</math>
      <math>\frac{-571}{-704} = \frac{- 704 \cos{C}}{-704}</math>
      <math>0.8111 = \cos{C}</math>
    • Find the inverse cosine. This will give you the missing angle:
      <math>0.8111 = \cos{C}</math>
      <math>35.7985 = COS^{-1}</math>.
      So, angle H is about 35.7985 degrees.
  3. Find the missing trail length. Dune, Ridge, and Bog Trail form a triangle. Dune Trail is 3 miles long. Ridge Trail is 5 miles long. Dune Trail and Ridge Trail meet on their north ends at a 135 degree angle. Bog Trail connects the other two ends of the trails. How long is Bog Trail?
    • The trails form a triangle, and you are asked to find a missing trail length, which is like the side of a triangle. Since you know the length of the other two trails, and you know they meet at 135 degree angle, you can use the cosine rule.
    • Set up the formula: <math>c^{2} = a^{2} + b^{2} - 2ab \cos{C}</math>.
    • The missing side length (Bog Trail) is <math>c</math>. Plug the other values into the formula:<math>c^{2} = 3^{2} + 5^{2} - 2(3)(5) \cos{135}</math>.
    • Use the order of operations to find <math>c^{2}</math>:
      <math>c^{2} = 3^{2} + 5^{2} - 2(3)(5) \cos{135}</math>
      <math>c^{2} = 3^{2} + 5^{2} - 2(3)(5)(-0.7071)</math>
      <math>c^{2} = 3^{2} + 5^{2} - (-21.2132)</math>
      <math>c^{2} = 9 + 25 + 21.2132</math>
      <math>c^{2} = 55.2132</math>
    • Take the square root of both sides of the equation. This will give you the missing side length:
      <math>\sqrt{c^{2}} = \sqrt{55.2132}</math>
      <math>c = 7.4306</math>
      So, Bog Trail is about 7.4306 miles long.



Tips

  • The application of the Sine Rule is simpler. Check to see if that can be used first.

Related Articles

Sources and Citations