This article was co-authored by wikiHow Staff. Our trained team of editors and researchers validate articles for accuracy and comprehensiveness. wikiHow's Content Management Team carefully monitors the work from our editorial staff to ensure that each article is backed by trusted research and meets our high quality standards.
There are 7 references cited in this article, which can be found at the bottom of the page.
This article has been viewed 140,190 times.
Learn more...
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, .
Steps
Finding a Missing Side Length
-
1Assess 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?
-
2Set up the formula for the Cosine Rule. This is also called the law of cosines. The formula is . In this formula, equals the missing side length, and equals the cosine of the angle opposite the missing side length. The variables and are the lengths of the two known sides.[2]Advertisement
-
3Plug the known values into the formula. The variables and are the two known side lengths. The variable is the known angle, which should be the angle between and .[3]
- For example, since the length of side XZ is missing, this side length will stand for in the formula. Since sides YX and YZ are known, these two side lengths will be and . It doesn’t matter which side is which variable. The variable is angle Y. So, your formula should look like this: .
-
4Find the cosine of the known angle. Do this using a calculator’s cosine function. Simply type in the angle measurement, then hit the button. If you don't have a scientific calculator, you can find a cosine table online.[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.[5]
- For example, the cosine of 89 is about 0.01745. So, plug this value into your formula: .
-
5Complete the necessary multiplication. You are multiplying by the known angle’s cosine.
- For example:
- For example:
-
6Add 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:
- For example:
-
7Subtract the two values. This will give you the value of .
- For example:
- For example:
-
8Take 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.[6]
- For example:
So, the missing side length, , is 10.2191 cm long.
- For example:
Finding a Missing Angle
-
1Assess 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.[7]
- 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?
-
2Set up the formula for the Cosine Rule. The formula is . In this formula, equals the cosine of the angle you are trying to find. The variable equals the side opposite the missing angle. The variables and are the lengths of the other two sides.[8]
-
3Determine the values of , , and . Plug these values into the formula.[9]
- For example, since side RT is opposite the missing angle, angle S, side RT will equal in the formula. The other two side lengths will be and . It doesn’t matter which side is which variable. So, your formula should look like this: .
-
4Complete the necessary multiplication. You are multiplying times the cosine of the missing angle, which you don’t know yet. So, the variable should remain.
- For example, .
-
5Find the square of . Remember that to square a number, you multiply the number by itself.
- For example,
-
6Add the squares of and . Make sure you square each number first, and then add them together.
- For example:
- For example:
-
7Isolate the cosine of the missing angle. To do this, subtract the sum of and from both sides of the equation. Then, divide each side of the equation by the coefficient of the missing angle’s cosine.[10]
- For example, to isolate the cosine of the missing angle, subtract 164 from both sides of the equation, then divide each side by -160:
- For example, to isolate the cosine of the missing angle, subtract 164 from both sides of the equation, then divide each side by -160:
-
8Find the inverse cosine. This will give you the measurement of the missing angle.[11] On a calculator, the inverse cosine key is denoted by .
- For example, the inverse cosine of .0125 is 82.8192. So, the missing angle, angle S, is 82.8192 degrees.
Solving Sample Problems
-
1Find 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: .
- The missing side length is . Plug the other values into the formula:.
- Use the order of operations to find :
- Take the square root of both sides of the equation. This will give you the missing side length:
So, the missing side length is 20.8391 cm long.
-
2Find 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 13 centimeter (5.1 in) long.
- Since you know all three side lengths, you can use the cosine rule. Set up the formula: .
- The side opposite the missing angle is . Plug all of the values into the formula: .
- Use the order of operations to simplify the expression:
- Isolate the cosine:
- Find the inverse cosine. This will give you the missing angle:
.
So, angle H is about 35.7985 degrees.
-
3Find 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: .
- The missing side length (Bog Trail) is . Plug the other values into the formula:.
- Use the order of operations to find :
- Take the square root of both sides of the equation. This will give you the missing side length:
So, Bog Trail is about 7.4306 miles long.
Community Q&A
-
QuestionWhy do we only use sine and cosine rule? Is there any other to find the same thing?Community AnswerTrigonometry and the sine and cosine rules are needed to work out missing angles and sides of triangles. If there isn't enough information, then you have to use either the sine or cosine rule. It's just the way it is, unless you have two sides and can use Pythagoras's theorem or 2 angles to work out the missing angle.
References
- ↑ https://www.mathsisfun.com/algebra/trig-cosine-law.html
- ↑ http://www.bbc.co.uk/schools/gcsebitesize/maths/geometry/furthertrigonometryhirev2.shtml
- ↑ https://www.khanacademy.org/math/geometry/hs-geo-trig/hs-geo-law-of-cosines/v/law-of-cosines-example
- ↑ https://digitalcommons.unl.edu/cgi/viewcontent.cgi?article=1011&context=mathclass
- ↑ https://www.mathsisfun.com/algebra/trig-cosine-law.html
- ↑ https://www.khanacademy.org/math/geometry/hs-geo-trig/hs-geo-law-of-cosines/v/law-of-cosines-example
- ↑ https://www.mathsisfun.com/algebra/trig-cosine-law.html
- ↑ http://www.bbc.co.uk/schools/gcsebitesize/maths/geometry/furthertrigonometryhirev2.shtml
- ↑ https://www.khanacademy.org/math/geometry/hs-geo-trig/hs-geo-law-of-cosines/v/law-of-cosines-missing-angle