Chapter 12 · The Pythagorean theorem
Pythagorean Triples and the Right Triangle Test
Learn what a Pythagorean triple is and how to test three side lengths to decide whether they form a right triangle.
Can three side lengths alone tell you that a triangle has a right angle? In this lesson you learn a test that answers that question. It starts from a fact you have already met, the Pythagorean theorem.
A right triangle is a triangle with one right angle (). The two sides that form the right angle are the legs, and the side opposite the right angle is the hypotenuse. Let and be the lengths of the legs and the length of the hypotenuse. All three are positive lengths measured in the same unit. The theorem says that in every right triangle, the squares of the two leg lengths add up to the square of the hypotenuse length. Here means . This lesson uses the theorem as a known fact and does not prove it.
The theorem starts with a right triangle and ends with an equation. In this lesson you go the other way: you start with three numbers, test them in the equation, and decide what the result tells you.
Begin with whole numbers. A Pythagorean triple is a set of three positive whole numbers , and that make true. Positive whole numbers are the counting numbers , , and so on. A well-known triple is , , . The two smaller squares are and , and they add to . The largest square is . The two smaller squares add up exactly to the largest square, and that exact match is what makes a triple.
Before you test three numbers, you must decide which one takes the place of . It is always the largest, and here is why. In with positive numbers , and , the number equals plus the positive number , so is greater than . In the same way, is greater than . Squaring keeps positive numbers in the same order, because a larger positive number times itself gives a larger product. So the number with the greatest square is the greatest number, and that number is .
The check for a triple therefore has three parts: all three numbers are positive whole numbers, the largest is , and equals exactly. If any part fails, the numbers are not a Pythagorean triple.
Worked example
Checking for a Pythagorean triple
Is , , a Pythagorean triple?
Check the kind of numbers. A Pythagorean triple needs three positive whole numbers, and , and are all positive whole numbers.
Choose . The largest number is , so it takes the place of . Only the largest can, because is the sum of two positive squares, so it is greater than each of them.
Square the two smaller numbers and add the results to get , the left side of the equation. Here and .
Square the largest number to get , the right side. Split the product to make it easier: .
Compare the two results. Both are exactly , so is true for these numbers.
Answer
Yes. , , is a Pythagorean triple, because the numbers are positive whole numbers and , with both sides equal to .
The same check works on any three positive numbers. The table tests each set with its largest number in the place of , wherever that number sits in the list. Look closely at the last two rows. A set is not a Pythagorean triple when the two smaller squares do not add up to the largest square. It is also not a triple when they do add up to it but the numbers are not all positive whole numbers.
| Numbers | Largest number | Sum of the two smaller squares | Largest square | Equal? | Pythagorean triple? |
|---|---|---|---|---|---|
, , | Yes | Yes | |||
, , | Yes | Yes | |||
, , | Yes | Yes | |||
, , | Yes | Yes | |||
, , | No | No, because | |||
, , | Yes | No, because and are not whole numbers |
Now connect the numbers to triangles. The Pythagorean theorem is an if-then statement: if a triangle is a right triangle with legs and and hypotenuse , the side opposite the right angle, then .
The converse of an if-then statement swaps the two parts. A converse is a new statement, and it is not automatically true. For example, if a whole number ends in the digit 0, then it is even is true. Its converse, if a whole number is even, then it ends in the digit 0, is false, because is even and does not end in .
The converse of the Pythagorean theorem is true: if a triangle has positive side lengths , and , with the largest, and , then it is a right triangle, and its right angle is opposite the side of length . In this lesson you use the converse as a known fact. It tells you that every Pythagorean triple gives the side lengths of a right triangle. For example, a triangle with sides , and units long is a right triangle.
Key concept
The side-length test for a right triangle
Take three positive lengths in the same unit. Call the largest and the other two and . Compute the squares exactly, then compare with .
- Equal: the lengths form a right triangle, and the right angle is opposite the side of length . This is the converse of the Pythagorean theorem.
- Not equal: the lengths cannot form a right triangle. If they did, the hypotenuse, the side opposite the right angle, would be the longest side , and the theorem would make the two results equal.
Lengths are never negative, so a length is the nonnegative square root of its square, and the longest side has the greatest square. If the numbers are positive whole numbers and the results are equal, they are also a Pythagorean triple.
Worked example
A near miss
A triangle has side lengths cm, cm and cm. Is it a right triangle?
Check the conditions and choose . All three lengths are positive and in centimeters. The largest is , so . If this triangle had a right angle, the side opposite it, the hypotenuse, would be the longest side, so the cm side is the only one that could be the hypotenuse.
Square the two shorter lengths exactly and add the results to get . Each square is a number of square centimeters.
Square the longest length to get , also in square centimeters.
Compare the two results. They differ by only , but the test needs exact equality, so close does not count. The Pythagorean theorem says that a right triangle with hypotenuse cm and legs cm and cm would make the results equal. They are not equal, so this triangle is not a right triangle.
Answer
No. The triangle with sides cm, cm and cm is not a right triangle, because and are not equal.
Worked example
Decimal lengths in a mixed order
A triangle has side lengths cm, cm and cm. Is it a right triangle? Are the numbers , , a Pythagorean triple?
The lengths are positive and in the same unit. The largest is , so it is , even though it comes first in the list.
Square the two shorter lengths exactly, without rounding, and add. Here .
Square the longest length exactly. Here .
Compare. Both results are exactly , so by the converse of the Pythagorean theorem this is a right triangle. Its right angle is opposite the longest side.
Check for a triple. A Pythagorean triple needs positive whole numbers, and and are not whole numbers.
Answer
Yes, it is a right triangle, with the right angle opposite the cm side. The numbers are not a Pythagorean triple, because and are not whole numbers.
Here is the idea to keep. Take three positive lengths, call the largest , and compare with using exact squares. If the two results are equal, the converse of the Pythagorean theorem tells you the lengths form a right triangle, with the right angle opposite the side of length . If they are not equal, the lengths cannot form a right triangle. When the three numbers are also positive whole numbers and the results are equal, they are a Pythagorean triple.
So far you have used the converse as a known fact. In the next lesson, you will explain a proof of it.