Math · Precalculus · Concept
The law of sines and the law of cosines
The law of sines and the law of cosines solve triangles that have no right angle. The law of cosines handles two sides with the angle between them, or all three sides. The law of sines handles any triangle in which you know a side, the angle opposite it and one more part. Two sides and an angle that is not between them can fit two triangles, one or none, so that case needs a test.
A concrete case
Two trees and a angle
You stand in a field. One tree is
If the angle were
The Pythagorean theorem needs one correction term, and that term uses the cosine of the angle. The cosine of
| Angle at you | Its cosine | Distance squared | Distance |
|---|---|---|---|
| about | |||
| about | |||
The rule
Label the triangle, then the law of cosines
Name the angles
The law of cosines says the square of one side equals the sum of the squares of the other two, minus twice their product times the cosine of the angle between them. When
Solved for the cosine, the same law gives an angle from three sides.
The law of sines
In any triangle, each side divided by the sine of the angle opposite it gives the same number. To use it you need one complete pair, a side with its opposite angle, and one more part.
In a triangle with
Why it works
Why both laws hold
Put angle
Side
The law of sines comes from a height, and a height comes from a right triangle. In a right triangle with hypotenuse
Drop a perpendicular from
The method
Which law fits the data
Sort the problem by what is given. S stands for a side and A for an angle, and the order says where they sit. SAS is two sides and the angle between them.
| Given | Start with | Then |
|---|---|---|
| SAS, two sides and the angle between them | Law of cosines for the third side | Law of sines for the angle opposite the shorter known side, then the angle sum |
| SSS, three sides | Law of cosines for the angle opposite the longest side | Law of sines for a second angle, then the angle sum |
| ASA or AAS, two angles and a side | Angle sum for the third angle | Law of sines for each missing side |
| SSA, two sides and an angle opposite one of them | Law of sines for the other opposite angle | Test for two triangles, one or none |
Take the angles in a safe order
A calculator’s inverse sine returns only angles from
When two angles are still unknown and you reach for the law of sines, find the one opposite the shorter side first. It is the smaller of the two, so it must be acute, and the inverse sine reports it correctly. The angle sum then gives the last angle, obtuse or not.
Test an SSA problem for two triangles, one or none
The law of sines gives
The table holds
| Side | Triangles | |
|---|---|---|
| None, as no angle has a sine above | ||
| One, with | ||
| Two, | ||
| One, |
Where it breaks
Where it breaks
The Pythagorean theorem is the law of cosines only at
The law of sines cannot start an SAS or SSS problem, because no side is paired with its opposite angle yet. Start those with the law of cosines.
Not every three lengths make a triangle. Sides
An SSA problem can have two triangles, one or none, because the law of sines gives only the sine of the new angle.
A calculator in radian mode reads
Check your answer
Check your answer
A solved triangle has six parts, and they have to agree with one another.
Add the angles. They must total
Compare the order. The longest side faces the largest angle and the shortest side the smallest. In the triangle with sides
Find one angle a second way. In that triangle the law of cosines gives
To have Chalk check the arithmetic, write the law with the numbers in on the first row of a Math box and each simplification below it. Each true row reads ✓, and a slip reads ✗. Under
Chalk checks each row down to the value of the sine or cosine. A wrong value of a sine on its own row, such as
Area, the circle through the corners, and Heron
The height from the proof also gives the area. A triangle with sides
Heron’s formula gets the same area from the three sides alone. For sides
The common ratio in the law of sines has a meaning of its own.
The law of cosines returns with vectors as the dot product, which reads the angle between two arrows from their lengths and components.
Common mistakes
- Starting SAS or SSS data with the law of sines. No side is paired with its opposite angle yet, so every ratio has two unknowns. Use the law of cosines first.
- Pairing a side with an angle that is not opposite it. In the triangle with
, and , gives , shorter than a although it faces the larger angle. The right pairing gives . - Dropping the sign of the cosine. With
, , so adds for the trees and , not . - Stopping at one answer in an SSA problem. With
, and , both and its supplement make triangles, so test the supplement every time. - Trusting the inverse sine for an obtuse angle.
is about , but the angle in the triangle may be , which has the same sine. Find the smaller angle first, or use the law of cosines. - Working in radians by accident.
in radian mode is about , not . Set degree mode, and write the degree sign in a Math box.
Key terms
- Law of sines
- In any triangle, each side divided by the sine of the angle opposite it gives the same value:
. It solves a triangle once a side and its opposite angle are known. With two sides and an angle opposite one of them it can give two triangles, one or none. - Law of cosines
- In any triangle,
, where is the angle between sides and . It gives the third side from two sides and the angle between them, or an angle from three sides. When it is the Pythagorean theorem. - Inverse sine
, or : the angle between and ( to ) whose sine is , for . The equation has other solutions too, and gives just this one. - Inverse cosine
, or : the angle between and ( to ) whose cosine is , for . The equation has other solutions too, and gives just this one. - Degree angle measure
- Angle units dividing a full turn into
equal parts. To convert to radians, multiply degrees by . A polynomial’s degree is a different concept.
Work through an example
A triangle has sides
Sources and scope
Authored study material. Tool results depend on the stated inputs and model assumptions.
Study it, then try it
Practice the key terms as flashcards, then open the example in its tool, change a value and keep a useful result on your board.
Study the 5 key terms Check side c in Math Check sin A in Math Open worked example on a board Law of cosines in Math ReferenceYour existing work stays on this device. Examples open as editable copies.