Marcus is standing on the shore of a lake in a state park in Michigan, at point $C$. He can measure the distance to the boat dock at $A$ (240 ft) and to the dock at $B$ (310 ft), and the angle between his two lines of sight ($52^\circ$). He can't walk across the water. How far apart are the docks?
The Law of Sines needs a side and its opposite angle, and Marcus doesn't have that pair. He has two sides and the angle between them. For that situation, and for triangles where you know all three sides, you need the Law of Cosines.
The Law of Cosines
Label every triangle the standard way: each side gets the lowercase letter of the vertex it is opposite. So side $a$ is opposite angle $A$, side $b$ is opposite angle $B$, and side $c$ is opposite angle $C$.
Compare it with the Pythagorean Theorem. If $C = 90^\circ$, then $\cos C = 0$ and the extra term disappears: $c^2 = a^2 + b^2$. The Law of Cosines is the Pythagorean Theorem plus a correction for angles that are not right angles.
Here is when to use it:
You know
Use
You get
two sides and the included angle (SAS)
Law of Cosines
the third side
all three sides (SSS)
Law of Cosines
any angle
an angle and its opposite side
Law of Sines
the other parts
Try setting up the formula yourself.
Practice★☆☆Not started
In a triangle $ABC$, the sides measure $a=10$ in, $b=12$ in and the included angle is $C=45^\circ$. Set up the Law of Cosines to calculate the exact value of the side…
In a triangle $ABC$, the sides measure $a=10$ in, $b=12$ in and the included angle is $C=45^\circ$. Set up the Law of Cosines to calculate the exact value of the side $c$.
If you know two sides and the angle between them (SAS), substitute into the formula. The answer is $c^2$, so finish with a square root.
That answers the question from the start. The distance 249 ft is shorter than $\sqrt{310^2 + 240^2} \approx 392$ ft, as it should be for an acute angle.
For exact answers you need the cosines of the special angles. Remember that for supplementary angles, $\cos(180^\circ - \theta) = -\cos\theta$.
Practice★☆☆Not started
In a triangle $ABC$, the sides $b=5$ in, $c=8$ in and the included angle $A=60^\circ$ are known. Calculate the length of the side $a$.
In a triangle $ABC$, the sides $b=5$ in, $c=8$ in and the included angle $A=60^\circ$ are known. Calculate the length of the side $a$.
In an isosceles triangle $ABC$, the sides $a$ and $b$ measure 6 in each, and the unequal angle $C=30^\circ$. Calculate the exact value of the side $c$, leaving the…
In an isosceles triangle $ABC$, the sides $a$ and $b$ measure 6 in each, and the unequal angle $C=30^\circ$. Calculate the exact value of the side $c$, leaving the result in radical form.
If you know all three sides (SSS), solve the Law of Cosines for the cosine of the angle you want, then use $\cos^{-1}$.
Only the square of the side opposite the angle is subtracted. If the result is positive, the angle is acute. If it is negative, the angle is obtuse.
This also covers "viewing angle" problems. If you stand 20 ft from one end of a banner and 24 ft from the other end, and the banner is 10 ft wide, the angle you see it at is the angle opposite the 10 ft side.
Practice★☆☆Not started
In a triangle $ABC$, the lengths of the sides are $a=3$ in, $b=5$ in and $c=7$ in. Calculate the size of the angle $C$.
In a triangle $ABC$, the lengths of the sides are $a=3$ in, $b=5$ in and $c=7$ in. Calculate the size of the angle $C$.
Whenever two distances and the angle between them are measurable but the third distance is not, you have an SAS triangle: surveying, navigation, satellites, or combining forces.
Bearings
A bearing is an angle measured clockwise from north, written with three digits. A bearing of $040^\circ$ means $40^\circ$ to the east of north. The angle between two paths that leave the same point is the difference of their bearings.
Combining forces
Two forces $F_1$ and $F_2$ pull on the same point and make an angle $\theta$ between them. The resultant $R$ is the diagonal of the parallelogram they form. The triangle $O$-$P$-$R$ uses $F_1$ and a copy of $F_2$ placed head to tail, so the angle inside the triangle is $180^\circ - \theta$, not $\theta$.
Practice★☆☆Not started
Calculate the distance between two inaccessible points $A$ and $B$, knowing that from an observation point $C$ the distances $CA = 15$ ft and $CB = 20$ ft have been…
Calculate the distance between two inaccessible points $A$ and $B$, knowing that from an observation point $C$ the distances $CA = 15$ ft and $CB = 20$ ft have been measured, and the visual angle $ACB$ is $40^\circ$.
Two planes leave the same airport at the same time. Plane A flies at $800$ mph on a bearing of $040^\circ$ and plane B flies at $650$ mph on a bearing of $115^\circ$.…
Two planes leave the same airport at the same time. Plane A flies at $800$ mph on a bearing of $040^\circ$ and plane B flies at $650$ mph on a bearing of $115^\circ$. What straight-line distance separates them after 1.5 hours of flight?
Two forces of 45 N and 60 N act on the same material point, forming an angle of $50^\circ$ between them. Calculate the magnitude of the resultant force.
Two forces of 45 N and 60 N act on the same material point, forming an angle of $50^\circ$ between them. Calculate the magnitude of the resultant force.
Many geometry figures hide a triangle where you know two sides and the included angle. The trick is to find that triangle.
Diagonals of a parallelogram
Consecutive angles of a parallelogram are supplementary, so a parallelogram with a $70^\circ$ angle also has $110^\circ$ angles. Each diagonal is the side opposite one of these angles in a triangle made of two adjacent sides.
Diagonals that meet at a known angle
The diagonals of a parallelogram bisect each other. If you know the diagonals and the angle where they cross, work with the half-diagonals. (The exercise on this topic calls the shape a rhomboid: a parallelogram whose adjacent sides are unequal and whose angles are not right angles.) The two crossing angles are $\theta$ and $180^\circ - \theta$, so two different side lengths appear.
Chords of a circle
Two radii and a chord form an isosceles triangle, with the central angle between the two equal sides. For radius $r$ and central angle $\theta$:
A parallelogram has two adjacent sides measuring 4 in and 6 in. If the included angle between them is $120^\circ$, calculate the length of the longer diagonal.
A parallelogram has two adjacent sides measuring 4 in and 6 in. If the included angle between them is $120^\circ$, calculate the length of the longer diagonal.
The diagonals of a rhomboid measure 12 in and 16 in, and intersect forming an angle of $65^\circ$. Calculate the length of the four sides of the rhomboid.
The diagonals of a rhomboid measure 12 in and 16 in, and intersect forming an angle of $65^\circ$. Calculate the length of the four sides of the rhomboid.
In a circle of 10 in radius, a chord subtends a central angle of $100^\circ$. Calculate the length of the chord using the Law of Cosines in the triangle formed by the…
In a circle of 10 in radius, a chord subtends a central angle of $100^\circ$. Calculate the length of the chord using the Law of Cosines in the triangle formed by the radii and the chord.
Sometimes the unknown is hidden in an expression like $x$, $x+1$, $x+2$, or you have to show that a relationship holds for every triangle. The Law of Cosines becomes an equation or an algebra tool.
Matching an algebraic relation to an angle
If a problem gives a relation like $a^2 = b^2 + c^2 + k\,bc$, compare it term by term with $a^2 = b^2 + c^2 - 2bc\cos A$. The coefficients of $bc$ must match, so $-2\cos A = k$ and $\cos A = -\tfrac{k}{2}$. For example, $a^2 = b^2 + c^2 + bc$ gives $\cos A = -\tfrac12$, so $A = 120^\circ$. Use the exact-value table to read the angle.
Known perimeter and one angle
When you know one side $c$, the opposite angle $C$, and the perimeter, you know $a + b$. Rewrite the squares using $a^2 + b^2 = (a+b)^2 - 2ab$.
Proving relationships
To prove something that holds in every triangle, write the Law of Cosines for two or three sides and combine the equations.
Practice★★★Not started
In a triangle, the lengths of the sides are $x$, $x+2$ and $x+4$. If the largest angle measures $120^\circ$, set up the corresponding equation, determine the value of…
In a triangle, the lengths of the sides are $x$, $x+2$ and $x+4$. If the largest angle measures $120^\circ$, set up the corresponding equation, determine the value of $x$ and the exact lengths of the three sides.
A triangle has a fixed base of $c = 10$ in and a constant perimeter of $p = 26$ in. If the angle $C$ opposite the base measures $60^\circ$, set up a system of equations…
A triangle has a fixed base of $c = 10$ in and a constant perimeter of $p = 26$ in. If the angle $C$ opposite the base measures $60^\circ$, set up a system of equations and find the exact lengths of the other two sides $a$ and $b$.
For the hardest problems, one triangle isn't enough. Find a segment that belongs to two triangles. The Law of Cosines in each triangle gives two expressions for the same quantity, or an angle from one triangle you can use in the other.
A median
The median goes from a vertex to the midpoint of the opposite side. First find an angle of the whole triangle, then reuse it in the smaller triangle that contains the median.
A cyclic quadrilateral
If a quadrilateral is inscribed in a circle, its opposite angles are supplementary: $B + D = 180^\circ$. So $\cos D = -\cos B$. Use the diagonal $AC$ as the shared side of triangles $ABC$ and $ADC$.
Two intersecting circles
The line through the centers is the perpendicular bisector of the common chord. In the triangle formed by the two centers and one intersection point $P$, the Law of Cosines gives an angle. Then the height from $P$ to the line of centers is half the chord.
Diagonals of a cube
For a cube with edge $a$, the diagonal of a face is $a\sqrt2$ (Pythagorean Theorem), and the space diagonal is $\sqrt{a^2 + (a\sqrt2)^2} = a\sqrt3$. Two space diagonals meet at the center of the cube, each cut into halves of length $\tfrac{a\sqrt3}{2}$. Those two halves and an edge of the cube form a triangle you can solve with the Law of Cosines.
Practice★★★Not started
In a triangle $ABC$, the sides measure $a=8$ in, $b=10$ in and $c=12$ in. Calculate the exact length of the median $m_a$ drawn from the vertex $A$ to the midpoint of the…
In a triangle $ABC$, the sides measure $a=8$ in, $b=10$ in and $c=12$ in. Calculate the exact length of the median $m_a$ drawn from the vertex $A$ to the midpoint of the side $a$.
An inscribable (cyclic) quadrilateral $ABCD$ has sides of lengths $AB=3$ in, $BC=4$ in, $CD=5$ in and $DA=6$ in. Taking into account the properties of opposite angles in…
An inscribable (cyclic) quadrilateral $ABCD$ has sides of lengths $AB=3$ in, $BC=4$ in, $CD=5$ in and $DA=6$ in. Taking into account the properties of opposite angles in a cyclic quadrilateral, set up a system using the Law of Cosines in the triangles $ABC$ and $ADC$ to calculate the exact length of the diagonal $AC$.
Two circles of radii 5 in and 8 in intersect at two points. The distance between their centers is 10 in. Calculate the length of the common chord to both circles. (Hint:…
Two circles of radii 5 in and 8 in intersect at two points. The distance between their centers is 10 in. Calculate the length of the common chord to both circles. (Hint: Use the Law of Cosines to find the central angle in the triangle formed by the radii and the line of centers, and from there obtain the height of the triangle).