Trigonometry · Medium

Distance between two boats (cosine rule)

Two boats leave the same harbor at the same time. The first sails 8 km in a straight line and the second sails 5 km in a straight line. The angle between their two routes, measured at the harbor, is \(120^\circ\).

How far apart are the boats now? Give the answer in km, rounded to 2 decimal places.

Write fractions as a/b, roots as sqrt(…), powers with ^ and π as pi. Use a dot for decimals.

Show a hint

You know two sides and the angle between them, so use the cosine rule. Watch the sign of \(\cos 120^\circ\).

Show the step-by-step solution
  1. The harbor and the two boats form a triangle with sides 8 and 5 and the angle \(120^\circ\) between them. Let \(d\) be the distance between the boats.
  2. Cosine rule: \(d^2 = 8^2 + 5^2 - 2 \cdot 8 \cdot 5 \cos 120^\circ\).
  3. \(\cos 120^\circ = -\tfrac12\), so \(d^2 = 64 + 25 + 40 = 129\).
  4. \(d = \sqrt{129} \approx 11.3578\), which rounds to 11.36.

Answer: about 11.36 km.

All 10 trigonometry problems and the topic guide

Learn the method: SOHCAHTOA — Sin, Cos and Tan in Right Triangles, with Examples

Learn the method: Law of Sines and Law of Cosines — Formulas, When to Use, Examples

Learn the method: Radians to Degrees — Converting Angles and Radian Measure Explained