Sub topic 5
Which side is longest? The triangle inequality
This chapter assumes you can find missing angles with the 180-degree rule, know the difference between scalene, isosceles, and equilateral triangles, and can solve simple linear inequalities. Two ideas appear here. The first is that sides and angles in the same triangle are ordered the same way. The second is that the three sides of any triangle are limited by one another. Both are used on the GRE to compare lengths without calculating them.
The side-angle relationship
In any triangle, the longest side is opposite the largest angle. The shortest side is opposite the smallest angle. Equal angles sit opposite equal sides, and the reverse is also true.
This is an "if and only if" rule. If you know the angles, you can rank the sides. If you know the sides, you can rank the angles.
Suppose a triangle has angles of 25°, 55°, and 100°. The 100° angle is the largest, so the side across from it is the longest. The 25° angle is the smallest, so the side across from it is the shortest.
| Angle | Opposite side |
|---|---|
| 25° | shortest |
| 55° | middle |
| 100° | longest |
"Opposite" means the side that does not touch the angle's vertex. In triangle ABC, the side opposite angle A is BC.
Ranking sides from angles you must compute
The GRE often gives only two angles. Find the third with the 180-degree rule first, then rank.
A triangle has angles of 48° and 71°. The third angle is 180 − 48 − 71 = 61°. The angles in order are 48°, 61°, 71°, so the sides opposite them are in the same order, shortest to longest.
Isosceles triangles follow from the rule
If two sides are equal, the angles opposite them are equal. If two angles are equal, the sides opposite them are equal. This is the reason isosceles triangles have a pair of equal base angles.
A triangle with angles 70°, 70°, and 40° has two equal sides. They are opposite the two 70° angles. The side opposite the 40° angle is the shortest, because 40° is the smallest angle.
The right triangle case
In a right triangle, the right angle (90°) is the largest angle, because the other two angles must add up to 90°. So the hypotenuse is always the longest side. This agrees with the Pythagorean theorem, where c² = a² + b² makes c larger than both a and b.
The triangle inequality
The side-angle rule compares sides inside one triangle. The triangle inequality limits what side lengths are possible at all.
Triangle inequality: The sum of any two sides of a triangle is greater than the third side.
For sides a, b, and c, all three of these must hold:
- a + b > c
- a + c > b
- b + c > a
The reason is geometric. The straight path between two points is the shortest path. Going from one vertex to another along the third side is a straight path. Going through the remaining vertex takes two sides and is a detour, so it must be longer.
Testing whether three lengths make a triangle
You only need to check the one inequality that could fail, which is the sum of the two shorter sides against the longest side.
| Lengths | Two shorter sides | Longest side | Triangle? |
|---|---|---|---|
| 3, 4, 5 | 3 + 4 = 7 | 5 | Yes, 7 > 5 |
| 2, 3, 6 | 2 + 3 = 5 | 6 | No, 5 < 6 |
| 4, 4, 8 | 4 + 4 = 8 | 8 | No, 8 is not greater than 8 |
| 5, 5, 9 | 5 + 5 = 10 | 9 | Yes, 10 > 9 |
The case 4, 4, 8 is an edge case. The inequality is strict. When the two shorter sides add up to exactly the longest side, the three segments lie flat along one line. That is a degenerate triangle with no area, so it does not count.
Bounding the third side
The most common GRE use is this. You are given two sides and asked what the third side could be.
Let the two known sides be 5 and 9, and call the unknown side x. Two conditions apply.
- The two known sides together must exceed x, so x < 5 + 9 = 14.
- The longer known side must be less than the other two together, so 9 < 5 + x, which gives x > 4.
The general rule is:
difference of the two sides < third side < sum of the two sides
For sides 5 and 9, that gives 4 < x < 14. Both ends are excluded.
Check the claim by testing the endpoints. If x = 4, the lengths 4, 5, 9 satisfy 4 + 5 = 9, which is degenerate. If x = 14, then 5 + 9 = 14, also degenerate. So x must be strictly between them.
def third_side_range(a, b):
"""Return the open interval (low, high) for the third side of a triangle."""
return abs(a - b), a + b
def is_triangle(x, y, z):
s = sorted([x, y, z])
return s[0] + s[1] > s[2]
low, high = third_side_range(5, 9)
print(low, high) # 4 14
print(is_triangle(4, 5, 9)) # False (degenerate)
print(is_triangle(5, 9, 10)) # TrueWhen the sides must be integers
If a problem says the third side is an integer, the open interval matters. For sides 5 and 9, the integer values are 5, 6, 7, 8, 9, 10, 11, 12, 13. That is 9 values. Including 4 and 14 would give 11, which is the wrong count.
A quick way to count integers strictly between low and high is high − low − 1. Here 14 − 4 − 1 = 9.
Using the inequality with an isosceles triangle
An isosceles triangle has two equal sides, and the triangle inequality can decide which side is which.
An isosceles triangle has sides 4 and 9, and you must find its perimeter. There are two possibilities for the equal pair.
- Sides 4, 4, 9. Check: 4 + 4 = 8, which is not greater than 9. This is not a triangle.
- Sides 4, 9, 9. Check: 4 + 9 = 13 > 9. This is a triangle.
Only the second case works, so the perimeter is 4 + 9 + 9 = 22. Without the check, you could pick 17 and be wrong.
Combining both ideas
Some GRE problems use the side-angle rule and the triangle inequality together.
Suppose triangle PQR has PQ = 7 and QR = 10, and angle Q is the largest angle. Because the largest angle faces the longest side, PR is the longest side, so PR > 10. The triangle inequality also gives PR < 7 + 10 = 17. Together, 10 < PR < 17.
Compare this to the range without the angle information, which would be 3 < PR < 17. The extra fact about the angle raised the lower bound from 3 to 10.
Comparing angles from sides
You can also work the other way. In triangle XYZ, XY = 6, YZ = 8, and XZ = 11. The longest side, XZ, is opposite angle Y, so Y is the largest angle. The shortest side, XY, is opposite angle Z, so Z is the smallest angle. The order of the angles is Z < X < Y.
Before relying on this, check that the lengths form a triangle: 6 + 8 = 14 > 11, so they do.
Common errors
- Pairing a side with the wrong angle. The longest side is opposite the largest angle, not next to it. Name each angle's opposite side before comparing.
- Using a non-strict inequality. The third side is strictly between the difference and the sum. Answer choices at the exact endpoints are traps.
- Checking only one inequality. For sides like 2, 3, 6, checking 2 + 6 > 3 passes while the key check, 2 + 3 > 6, fails. Always compare the two shorter sides to the longest.
- Trusting the drawing. A figure may show one side looking longest. Unless the problem states the angles or lengths, do not rank sides by how they look. The chapter on reading GRE figures covers this in detail.
- Forgetting that an angle ordering needs a valid triangle. The side-angle rule applies only after you know the triangle exists.
Quick reference
| Fact | Statement | Column | Column |
|---|---|---|---|
| Side-angle rule | Larger angle is opposite the longer side | ||
| Equal sides | Opposite angles are equal | ||
| Right triangle | Hypotenuse is the longest side | ||
| Triangle inequality | Sum of any two sides > third side | ||
| Range of third side | \ | a − b\ | < c < a + b |
| Degenerate case | Sum equals the third side: no triangle |
Exercise
Two sides of a triangle measure 6 and 15. If the third side has an integer length, what is the smallest possible perimeter of the triangle?
Show answer
The third side x satisfies 15 − 6 < x < 15 + 6, so 9 < x < 21. The smallest integer is 10. The perimeter is 6 + 15 + 10 = 31.
Exercise
In triangle ABC, angle A = 38° and angle B = 64°. Which side is the longest, and which is the shortest?
Show answer
Angle C = 180 − 38 − 64 = 78°. The largest angle is C, so the longest side is AB, which is opposite C. The smallest angle is A, so the shortest side is BC, which is opposite A.
Exercise
An isosceles triangle has two sides of lengths 3 and 7. What is its perimeter?
Show answer
Try 3, 3, 7: 3 + 3 = 6, which is not greater than 7, so it fails. Try 3, 7, 7: 3 + 7 = 10 > 7, so it works. The perimeter is 3 + 7 + 7 = 17.
Exercise
In triangle DEF, DE = 8 and EF = 12, and angle E is the smallest angle in the triangle. What is the range of possible values for DF?
Show answer
The smallest angle is opposite the shortest side, so DF must be the shortest side, which means DF < 8. The triangle inequality gives 12 − 8 < DF < 12 + 8, so 4 < DF < 20. Combined, 4 < DF < 8.