Skip to content
Tutorials Center
My learning

Topics

Lesson 29 of 38 · The Laws of Sines and Cosines

The Ambiguous Case (SSA)

Learn why two sides and a non-included angle can give zero, one or two triangles, decide which case you have, and solve both triangles with code.

When you know two sides and an angle that is not between them (SSA), the law of sines can give you two valid answers, one answer, or none. This is called the ambiguous case. It surprises almost everyone the first time, because for every other combination (SSS, SAS, ASA, AAS) the triangle is completely determined.

Why two triangles can exist

Fix angle A and side b (the side next to A). Imagine side a as a rod that is attached at vertex C and swings down toward the base line through A. The shortest distance from C to that line is the height:

Text
h = b sin A
  • If the rod a is shorter than h, it never reaches the line: no triangle.
  • If a = h, it just touches: one right triangle.
  • If a is longer than h but shorter than b, it can reach the line in two places: two triangles.
  • If a ≥ b, only one of the two reachable points gives a triangle with the right angle at A: one triangle.

This applies when angle A is acute.

flowchart TD
    S["Given A, a, b (A acute)"] --> H["Compute h = b sin A"]
    H --> Q1{"a < h ?"}
    Q1 -- yes --> N["No triangle"]
    Q1 -- no --> Q2{"a = h ?"}
    Q2 -- yes --> R["One right triangle"]
    Q2 -- no --> Q3{"a < b ?"}
    Q3 -- yes --> T["Two triangles"]
    Q3 -- no --> O["One triangle"]

Decision tree for SSA with an acute angle A.

If angle A is obtuse or right, there is a simpler rule: if a > b there is exactly one triangle, otherwise none (the side opposite the big angle must be the longest).

Solving it with the law of sines

From sin B = b sin A / a:

  • If this is greater than 1, there is no triangle.
  • Otherwise, B₁ = arcsin(b sin A / a) and a second candidate B₂ = 180° − B₁.
  • A candidate is valid only if A + B < 180°.

Example. A = 30°, b = 10, a = 6.

  1. h = 10 sin 30° = 5. Since 5 < 6 < 10, there are two triangles.
  2. sin B = 10 × 0.5 / 6 = 0.8333. So B₁ ≈ 56.44° and B₂ ≈ 123.56°.
  3. Triangle 1: C₁ = 180° − 30° − 56.44° = 93.56°, and c₁ = 6 sin 93.56° / sin 30° ≈ 11.98.
  4. Triangle 2: C₂ = 180° − 30° − 123.56° = 26.44°, and c₂ = 6 sin 26.44° / sin 30° ≈ 5.34.

Both are legitimate triangles with the same A, a and b. That is the ambiguity.

Python SSA solver that finds every triangle

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 A = 30°, a = 5, b = 10 the height is exactly 5, which gives the single right triangle (B = 90°).

Checking both triangles by building them

To be sure that both answers are real, rebuild each triangle from its three sides and check that the angle at A is 30° and the opposite side is 6.

Python Verify with the law of cosines

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.

Both rebuilt triangles reproduce A = 30°, which confirms that there really are two solutions.

A practical way to think about it

Real problems usually include extra information (for example, a drawing, or the fact that one angle is obtuse) that picks one triangle. If you are told "the triangle is obtuse", choose the triangle with an obtuse angle; if there is no such extra information, report both.

Do not discard the second solution just because a calculator gives only one. arcsin always returns an angle between −90° and 90°, so it can never produce the obtuse candidate 180° − B₁ by itself. You must add it.

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. A = 40°, b = 12, a = 5. How many triangles are possible?

    h = 12 sin 40° ≈ 7.71. Since a = 5 is smaller than h, the side cannot reach the base line: no triangle.
  2. 2. A = 35°, a = 9, b = 7. How many triangles are possible?

    Since a is greater than b, only one triangle exists (the second candidate for B would make A + B too large).
  3. 3. If sin B = 0.6 from the law of sines, the two candidate angles for B are about:

    arcsin 0.6 ≈ 36.87°, and the supplementary angle 180° − 36.87° = 143.13° has the same sine.
  4. 4. A = 120°, a = 5, b = 8. How many triangles exist?

    With an obtuse angle A, the opposite side a must be the longest side. Here a < b, so no triangle exists.

Summary

  • SSA (two sides and a non-included angle) can give 0, 1 or 2 triangles.
  • For acute A, compare a with h = b sin A and with b.
  • For obtuse A, a triangle exists only if a > b, and then there is exactly one.
  • The second candidate for B is 180° − B₁; accept it only if A + B < 180°.
  • Verify by rebuilding from three sides.

Next: The Law of Cosines