Two straight trails leave a junction apart. You walk kilometers along one, a friend walks kilometers along the other, and you want to know how far apart you are now. The law of sines cannot start here, because no side is known together with the angle across from it. The law of cosines can, and the same few ideas give the area of the triangle you have marked out.
Key terms
Included angle
Definition The included angle of two sides of a triangle is the angle at the vertex where those two sides meet. In triangle , with sides , and opposite the angles , and , the angle is included between sides and , the angle between and , and the angle between and .
In plain words Think of two sides as the arms of a hinge. The included angle tells you how far the hinge is open, and that decides how far apart the free ends are.
Example Join sides of lengths and at and open the hinge. With these two lengths fixed, the third side and the area depend only on . The table uses the law of cosines and the area formula from the sections below.
| Third side | Area | |
|---|---|---|
The third side keeps growing as the hinge opens, while the area is largest at .
The law of cosines
Definition In any triangle with sides , and opposite the angles , and ,
and in the same way and . Solved for the angle, it reads
To see why it holds, place at the origin, at and at . The distance formula and the identity give
In plain words It is the Pythagorean theorem with a correction term. When the term is zero. When is obtuse, is negative and the opposite side comes out longer than in a right triangle, and when is acute it comes out shorter.
Example The trails from the start give , and , so
and you are kilometers apart.
SAS and SSS
Definition In the SAS case you know two sides and their included angle, with the angle strictly between and . In the SSS case you know all three sides, and they satisfy the triangle inequality below. Each case determines exactly one triangle. For SAS, find the third side with the law of cosines. For SSS, find two of the angles from
and then . Arccosine is one-to-one with outputs in , so an angle found from its cosine is never ambiguous, unlike an angle found from its sine. If you prefer the law of sines for a later angle in SAS, use it only for the angle opposite the shorter given side, which is always acute.
In plain words Two sides with the angle between them, or all three sides, pin down one triangle with no second answer. Start with the law of cosines, and whenever you solve for an angle, take the arccosine.
Example Solve the triangle with , and . Start with the largest angle, which is opposite the longest side.
Next,
and the last angle is , since the three angles add to .
Triangle inequality
Definition Three positive numbers , and are the side lengths of a triangle exactly when each one is less than the sum of the other two,
It is enough to check that the largest number is less than the sum of the other two. If the largest equals that sum, the three corners lie on one line, a flat case that is not a triangle. For a genuine triangle the law of cosines always gives a cosine strictly between and .
In plain words Going straight from one corner to another is shorter than any detour through the third corner. Three sticks only close up into a triangle when the longest is shorter than the other two put together.
Example Sticks of lengths , and cannot form a triangle, since . The law of cosines notices too. Solving for the angle opposite gives
and no angle has a cosine below . With , and the same computation gives exactly , an angle of , so those three sticks lie flat along one line.
Area from two sides and the included angle
Definition The area of a triangle with sides and and included angle is
The other pairs of sides give the same area in the same way,
The reason is that the height from to the line through and equals , also when is obtuse because , so the formula is one half of the base times the height.
In plain words It is one half of base times height, where the sine of the angle between the two known sides supplies the height. An angle and its supplement have the same sine, so they give the same area.
Example For the trail triangle, , and , so
Heron’s formula
Definition Let a triangle have sides , and and semiperimeter
Then its area is
When , and satisfy the triangle inequality, each of the factors , and is positive, so the number under the root is positive.
In plain words Three sides fix the triangle, so they also fix its area. Heron’s formula gets the area straight from the sides, with no angle and no height needed.
Example The trail triangle has sides , and , so and
This matches the area found from one half of .
Bearings
Definition A bearing gives a direction in the plane as an angle measured from north or south. A three-figure bearing is measured clockwise from north, from up to but not including , so east is , south is and west is . A quadrant bearing such as N E starts from north or south and turns the stated acute angle toward east or west. So N E is the three-figure bearing , and S W is .
In plain words A bearing is a compass heading written as an angle. To use bearings in a triangle, sketch a north arrow at each corner and work out the angles inside the triangle from the headings.
Example A boat leaves port, sails kilometers on bearing , then turns onto bearing and sails kilometers. The turn is to the right, so the angle inside the triangle at the turning point is . The distance back to port satisfies
so kilometers. The angle at port must be acute, since the triangle already has a angle, so the law of sines finds it safely,
The boat turned clockwise, so seen from port it now lies on bearing , or about .
Check yourself
- Two sides of a triangle are and , and the angle between them is . Find the third side and the area.
Show the answer
By the law of cosines
so . The area is
- Can , and be the sides of a triangle? Find the area of the triangle with sides , and .
Show the answer
No, because . For the sides , and the semiperimeter is , and Heron’s formula gives
- Two boats leave the same dock. One travels kilometers on bearing and the other kilometers on bearing . How far apart are they?
Show the answer
The angle between their paths at the dock is , so
and kilometers.