The detour is never shorter
In any triangle, pick two of the corners. Walking straight from one to the other covers the side between them; call it c. Going round by way of the third corner covers the other two sides, a and b. A straight line is the shortest path between two points, so the detour is never shorter: .
The same holds for every side in turn: and . Each side of a triangle is at most the sum of the other two.
For a real triangle, with its three corners not on one line, the inequality is strict: a + b > c. Equality, a + b = c, happens only when the third corner lies on the side c itself, so the triangle is flat: three points on a line.
Walk straight from one corner to another along c, or go round by way of the third corner along a and b.
Squeezed from both ends
Take two sides 5 and 4 and change the angle between them. As the angle opens toward 180°, the third side c grows toward 5 + 4 = 9 but stays below it while there is a triangle at all. As the angle closes toward 0°, c shrinks toward 5 − 4 = 1 and stays above it.
The lower limit is the triangle inequality again, for a different side: , so . Together, for any triangle, the third side is more than the difference of the other two and less than their sum, and it reaches neither unless the triangle is flat.
Sides 5 and 4 with the angle between them opened to 150°. The third side is about 8.7: close to 5 + 4 = 9, and still under it.
The same two sides with the angle closed to 30°. The third side is about 2.5, still more than 5 − 4 = 1.
Testing three lengths
Three lengths make a triangle exactly when each is less than the sum of the other two. It is enough to test the longest against the sum of the two shorter ones, because the longest side plus either shorter side is already more than the remaining side.
Sides 5, 9 and 15: 5 + 9 = 14, which is less than 15. The two shorter sides laid end to end do not reach across the longest, so no triangle forms. Sides 6, 8 and 10: 6 + 8 = 14, which is more than 10, so they make a triangle. Sides 2, 3 and 5: 2 + 3 = 5, exactly the longest, so the three lie flat in a line and enclose no area.
With two sides 5 and 9, a third side x must be less than 5 + 9 = 14, and more than 9 − 5 = 4, since 9 < 5 + x. The largest whole number it can be is 13; at 14 the three lie flat.
The two shorter sides laid end to end: 5 and then 9 reach 14, one short of the longest side, 15.
With modulus bars
For numbers, |a| is the distance from a to 0 on the number line, and the triangle inequality reads for any real numbers a and b.
The proof: every number lies within its own distance of 0, so and . Adding the two gives . So a + b lies no farther than |a| + |b| from 0 on either side, and that is .
Equality holds exactly when a and b have the same sign, or one of them is 0. Then both moves along the number line go the same way and the distances add: |3 + 4| = 7 = |3| + |4|, and |−2 + (−6)| = 8 = |−2| + |−6|. When one is positive and the other negative, the second move goes back over part of the first, so a + b lies strictly between them and |a + b| is less than the larger of |a| and |b|: |5 + (−3)| = 2, while |5| + |−3| = 8.
a = 5 and then b = −3. The two moves cover 5 + 3 = 8 units, but the second goes back, and a + b = 2 ends only 2 from 0.
a = 3 and then b = 4, the same sign. Both moves go the same way, so a + b ends 3 + 4 = 7 from 0, and the inequality is an equality.
Vectors and complex numbers
For vectors the bars mean length, and the statement is the triangle itself. Placed tip to tail, u and v and their sum u + v are the three sides of a triangle, so , with equality only when u and v point the same way or one of them is zero.
For example, (3, 4) has length 5 and (5, 12) has length 13. Their sum (8, 16) has length , which is less than 5 + 13 = 18. A complex number is a point of the plane and its modulus is its distance from 0, so complex numbers obey the same inequality, .
The usual mistakes
Accepting a sum equal to the longest side. Sides 2, 3 and 5 lie flat; a triangle needs the sum of the two shorter sides to be strictly greater than the longest.
Testing the wrong pair. Compare the longest side with the sum of the other two: 5 + 15 > 9 says nothing about sides 5, 9 and 15.
Forgetting the lower limit. With sides 5 and 9 the third side must be more than 4 as well as less than 14.
Expecting |a + b| = |a| + |b| every time. With opposite signs the left side is smaller.
A depot and planter frames
In the applications below, a depot on the way from a warehouse to a store bounds the length of the direct road from above and below, and a company rule about detours becomes a second inequality. Then a workshop tests which choices of stock rods weld into triangular frames, and finds the range of a third rod.
Worked example: A Parcel Routed Through a Depot Instead of Straight to the Store, and When the Company Allows the Detour
Question A courier company's warehouse W, its depot D and a store S are joined by three straight roads. The road from W to D is 13 km long and the road from D to S is 8 km long. (a) Use the triangle inequality to find the least and the greatest possible length of the direct road from W to S, and say where the three places must lie for each to happen. (b) The company sends a van from W to S through the depot only when the route through D is no more than 20% longer than the direct road. For which lengths of the direct road does the rule allow the route through the depot?
1.Call the length of the direct road d km. W, D and S are the corners of a triangle, and the route through the depot is two of its sides, so the triangle inequality gives d ≤ 13 + 8 = 21. A route through the depot is never shorter than the direct road.
The route through D is two sides of the triangle, so the direct road d is at most 13 + 8 = 21 km. 2.The side WD is also no longer than the other two sides together: 13 ≤ d + 8. Subtract 8 from both sides to get d ≥ 5.
The side WD gives 13 ≤ d + 8, so d ≥ 5. 3.(a) The direct road is at least 5 km and at most 21 km long. It is 21 km only when D lies on the direct road between W and S. It is 5 km only when S lies on the road from W to D, 5 km from W and 8 km from D.
(a) The direct road is from 5 km to 21 km long; each end needs the three places in a line. 4.The route through the depot is 13 + 8 = 21 km. Being no more than 20% longer than the direct road means 21 ≤ 1.2d. Divide both sides by 1.2: d ≥ 17.5.
No more than 20% longer than the direct road: 21 ≤ 1.2d, so d ≥ 17.5. 5.(b) The rule allows the route through the depot when the direct road is from 17.5 km to 21 km long; 21 km is the longest the direct road can be, by (a). Check: when d = 17.5, the route is 21 ÷ 17.5 = 1.2 times the direct road, exactly 20% longer.
(b) The route through D is allowed when the direct road is from 17.5 km to 21 km long.
Answer: (a) Least 5 km, when S lies on the road from W to D; greatest 21 km, when D lies on the direct road between W and S; (b) direct roads from 17.5 km to 21 km long
Common mistakes
- Answering that the direct road can be anything from 0 to 21 km. The side WD obeys the triangle inequality too, so 13 ≤ d + 8 and the direct road is at least 5 km; with a shorter direct road, W and D could not be 13 km apart.
- Writing the rule as d ≤ 1.2 × 21, taking 20% of the route instead of the direct road. The route is compared with the direct road, so the direct road is the base of the percentage: 21 ≤ 1.2d.
Worked example: Triangular Planter Frames Welded from Stock Rods, and the Third Rod for a Given Pair
Question A workshop welds triangular frames for hanging planters, with one steel rod for each side. It stocks rods of lengths 20, 30, 40, 50 and 70 cm. (a) How many of the choices of three different lengths make a triangular frame? Which choices fail only because the two shorter rods add up exactly to the longest, and what shape would those rods weld into? (b) A customer orders a frame with sides of 30 cm and 70 cm, and the third rod is cut to a whole number of centimeters. What are the shortest and the longest possible third rods?
1.There are 10 ways to choose three of the five lengths. For each choice, compare the longest rod with the sum of the two shorter rods.
Ten choices of three rods. Each passes when its longest rod is less than the sum of the other two. 2.The choices 20, 30, 40, 20, 40, 50, 30, 40, 50, 30, 50, 70 and 40, 50, 70 pass, since 50 > 40, 60 > 50, 70 > 50, 80 > 70 and 90 > 70. The choices 20, 30, 50, 20, 50, 70 and 30, 40, 70 give sums equal to the longest rod, and 20, 30, 70 and 20, 40, 70 give sums of 50 and 60, short of 70.
Five choices pass, three give a sum equal to the longest rod, and two fall short. 3.(a) Five of the ten choices make a frame. The choices 20, 30, 50, 20, 50, 70 and 30, 40, 70 fail by equality: the two shorter rods lie flat along the longest, so they weld into a straight bar, not a triangle.
(a) Five choices make a frame. For 20, 30, 50; 20, 50, 70; and 30, 40, 70 the rods lie flat in a straight bar. 4.For (b), call the third rod c cm. If the 70 cm rod is the longest, it must be shorter than the other two together: 70 < 30 + c, so c > 40. If the third rod is the longest, c < 30 + 70 = 100.
The third rod c must satisfy 70 < 30 + c and c < 30 + 70, so 40 < c < 100. 5.(b) So 40 < c < 100, and in whole centimeters the shortest third rod is 41 cm and the longest is 99 cm. Check: 30 + 41 = 71, which is more than 70, and 30 + 70 = 100, which is more than 99.
(b) In whole centimeters the third rod is from 41 cm to 99 cm long.
Answer: (a) 5 of the 10 choices; 20, 30, 50, 20, 50, 70 and 30, 40, 70 fail by equality and would weld into a straight bar; (b) shortest 41 cm, longest 99 cm
Common mistakes
- Accepting a choice whose two shorter rods add up exactly to the longest, such as 20, 30 and 50. The triangle inequality becomes an equality only for a flat triangle, so these rods weld into a straight bar.
- Answering 40 cm and 100 cm in (b). A 40 cm rod gives 30 + 40 = 70 and a 100 cm rod gives 30 + 70 = 100, both flat; the inequalities are strict, so the whole-centimeter answers are 41 cm and 99 cm.