Law of Sines & Law of Cosines
SOH-CAH-TOA only works for right triangles. For any triangle — acute, right, or obtuse — we need the Law of Sines and the Law of Cosines.
Law of Sines
For any triangle with sides a, b, c opposite angles A, B, C:
This means the ratio of each side to the sine of its opposite angle is the same for all three pairs.
Interactive Exploration
Set up a triangle with a known side and two angles. The Law of Sines will find the other sides.
The graph below shows the triangle. Side a lies along the x-axis. The other two sides rise from the endpoints at angles determined by A and B.
Try this: Set a = 5, A = 30 degrees, B = 90 degrees. Since B is 90 degrees, the triangle is a right triangle. The Law of Sines still works, but SOH-CAH-TOA would also apply here.
The Sine Ratio Visualized
The Law of Sines says a/sin(A) = b/sin(B). Let’s plot how this ratio changes as you vary angle A. If the Law of Sines holds, the ratio should stay constant when a and A are in the correct relationship.
Fun fact: The common ratio a/sin(A) equals the diameter of the triangle’s circumscribed circle (the circle that passes through all three vertices). That’s why the yellow line shows 2a — for an equilateral triangle the ratio equals the diameter.
Law of Cosines
For any triangle:
This is a generalization of the Pythagorean theorem. When C = 90 degrees, cos(C) = 0, and we get c^2 = a^2 + b^2.
Interactive Exploration
Set two sides and the included angle. The Law of Cosines computes the third side.
The graph shows sides a and b emanating from the origin with angle C between them. The dotted horizontal is side a, and the angled line is side b.
Try this: Set a = 3, b = 4, C = 90 degrees. The Law of Cosines gives c^2 = 9 + 16 - 0 = 25, so c = 5. It’s the classic 3-4-5 right triangle! The Pythagorean theorem is just a special case.
Comparing c^2 to a^2 + b^2
The relationship between c^2 and a^2 + b^2 tells you the triangle type:
- c^2 < a^2 + b^2: Acute triangle (angle C < 90 degrees)
- c^2 = a^2 + b^2: Right triangle (angle C = 90 degrees)
- c^2 > a^2 + b^2: Obtuse triangle (angle C > 90 degrees)
The blue curve shows c^2 as angle C varies. Where it crosses the yellow line, C = 90 degrees. Below the yellow line, the triangle is acute; above it, the triangle is obtuse.
Challenge: A triangle has sides 7, 8, and 13. Is it acute, right, or obtuse? Use the Law of Cosines to find the largest angle.