Skip to content
Tutorials Center
My learning

Topics

Lesson 37 of 38 · Projects and Practice

Practice: Triangles and Vectors

Ten problems on the laws of sines and cosines, triangle area, bearings and vectors, with a program that computes every answer so you can check your work.

This practice set pulls together Chapters 7 and 8: the law of sines, the ambiguous case, the law of cosines, areas, bearings, vector components and the dot product. Try each problem by hand with a calculator, round to two decimal places, and then run the answer program.

Problems

  1. In triangle ABC, A = 50°, B = 60° and a = 8. Find b and c.
  2. Given A = 35°, a = 7, b = 10, how many triangles exist? Find the angle B in each.
  3. Two sides of 9 and 12 enclose an angle of 50°. Find the third side.
  4. A triangle has sides 8, 10 and 13. Find its largest angle.
  5. Find the area of the triangle with sides 8, 10 and 13.
  6. A hiker walks 5 km on bearing 030°, then 8 km on bearing 120°. How far is she from the start, and on what bearing?
  7. Find the components of a force of 80 N acting at 140° (counterclockwise from the positive x-axis).
  8. Forces of 15 N at 20° and 25 N at 110° act at a point. Find the magnitude and direction of the resultant.
  9. Find the angle between u = (2, 1) and v = (−1, 3).
  10. From a point 60 m from the foot of a tower, the angle of elevation of the top is 18°. Find the height of the tower.

Before you compute, estimate. In problem 1 the largest angle is C = 70°, so c must be the longest side. In problem 4, 13² = 169 is larger than 8² + 10² = 164, so the triangle is obtuse, but only just: the largest angle is a little over 90°.

Answer program

This program is the answer key. Read the code as well as the output: each function mirrors the method you should have used.

Python Answers computed step by step

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

For problem 2, the two triangles have B ≈ 55.02° and B ≈ 124.98°. Both are valid because h < a < b. For problem 8 the two forces are exactly 90° apart (110° − 20°), so the resultant is √(15² + 25²) = √850 ≈ 29.15 N, and the direction is 20° + arctan(25/15).

Self-marking quiz-style drill

Make your own random triangles and test whether you can solve them. This program creates a random triangle, hides some information, and shows the data a student would be given along with the answer.

Python Random triangle generator

Press Run (or Ctrl + Enter) to see the result here.

Program input · what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Run it again after changing random.seed(7) to another number for new problems. Cover the answer lines with your hand while you work.

Check your understanding

Quick check · 3 questions

of 3 answered You scored / 3 · perfect!

  1. 1. In problem 3 (sides 9 and 12 enclosing 50°), which law do you use first?

    You know two sides and the included angle (SAS), and no opposite side-angle pair exists yet. Use c² = a² + b² − 2ab cos C.
  2. 2. Forces 15 N at 20° and 25 N at 110° are at right angles. Their resultant is:

    For perpendicular forces, R = √(15² + 25²) = √850 ≈ 29.15 N.
  3. 3. In SSA with A = 35°, a = 7, b = 10, why are there two triangles?

    h = 10 sin 35° ≈ 5.74, and 5.74 < 7 < 10: side a can reach the base in two places.

Summary

  • Identify the case first (ASA/AAS, SSA, SAS, SSS) to choose the right law.
  • SSA may give two triangles: compare a with b sin A and b.
  • Bearings: east is d sin β, north is d cos β; convert back with atan2(east, north).
  • Vectors: components by cos and sin; resultants by adding components; angles by the dot product.
  • Estimate before you calculate, and check with a second method.

Next: Project: Build a Triangle Solver