Sub topic 7
The Pythagorean theorem
This chapter assumes you can classify triangles (right, isosceles, and so on), simplify square roots, and solve simple equations. You should also know that a right triangle has one 90-degree angle and that the side opposite it is the hypotenuse.
The statement
In a right triangle, the square of the hypotenuse equals the sum of the squares of the two legs. If the legs have lengths a and b and the hypotenuse has length c, then:
a² + b² = c²
Three points matter on the GRE.
- The theorem applies only to right triangles. If a question does not say the triangle is right, or a figure does not show a right-angle mark, you cannot use it.
- The hypotenuse is always the longest side. It sits opposite the right angle, and it is the side that stands alone on one side of the equation.
- The theorem relates the squares of the lengths. Adding the lengths themselves gives the wrong answer, because a + b is always greater than c.
Why it works
You do not need a proof for the GRE, but one picture makes the formula easier to trust. Take four copies of a right triangle with legs a and b and hypotenuse c. Arrange them inside a square with side a + b so that their hypotenuses form a tilted square in the middle. The big square has area (a + b)². It also equals the four triangles, each of area ½ab, plus the tilted square of area c²:
(a + b)² = 4 · ½ab + c²
a² + 2ab + b² = 2ab + c²
a² + b² = c²
The 2ab terms cancel and the theorem remains.
Finding the hypotenuse
When you know both legs, add their squares and take the square root.
Suppose the legs are 5 and 12.
- Square the legs: 5² = 25 and 12² = 144.
- Add: 25 + 144 = 169.
- Take the square root: c = √169 = 13.
Not every answer comes out whole. If the legs are 2 and 5, then c² = 4 + 25 = 29, so c = √29. The GRE often leaves answers in this form, or asks you to compare the value with a number such as 5.4. You can bound it: 5² = 25 and 6² = 36, so √29 lies between 5 and 6, and it is closer to 5.4 because 5.4² = 29.16.
Finding a leg
When you know the hypotenuse and one leg, subtract. Move the known leg's square to the other side:
b² = c² − a²
Suppose the hypotenuse is 10 and one leg is 6.
- c² = 100 and a² = 36.
- b² = 100 − 36 = 64.
- b = 8.
A common error is to add the squares again here. Before you compute, ask which side is the hypotenuse. If it is the given number, you subtract. If it is the unknown, you add.
import math
def hypotenuse(a, b):
return math.sqrt(a**2 + b**2)
def missing_leg(c, a):
if c <= a:
raise ValueError("The hypotenuse must be longer than a leg.")
return math.sqrt(c**2 - a**2)
print(hypotenuse(5, 12)) # 13.0
print(missing_leg(10, 6)) # 8.0
print(hypotenuse(2, 5)) # 5.385164807134504The check in missing_leg mirrors a useful habit. If the hypotenuse you are given is not larger than the leg, the setup is wrong.
Testing whether a triangle is right
The theorem also works in reverse. If three side lengths satisfy a² + b² = c², where c is the longest, the triangle is right. If the sides do not satisfy it, the triangle is not right, and comparing the two sides of the equation tells you what kind it is.
| Comparison, with c the longest side | Triangle type |
|---|---|
| a² + b² = c² | Right |
| a² + b² > c² | Acute (all angles under 90 degrees) |
| a² + b² < c² | Obtuse (one angle over 90 degrees) |
For example, sides 4, 5, and 6 give 16 + 25 = 41, which is greater than 36. The triangle is acute. Sides 4, 5, and 7 give 41, which is less than 49, so the triangle is obtuse.
Where right angles hide
Many GRE problems never say "right triangle". You have to find the right angle yourself. These are the usual places.
- Rectangles and squares. A diagonal splits the figure into two right triangles whose legs are the sides. For a rectangle with sides 6 and 8, the diagonal is √(36 + 64) = 10.
- An altitude. The perpendicular height of a triangle creates a right angle at its foot. This is the main way to apply the theorem to an isosceles or equilateral triangle.
- Coordinate geometry. The distance between two points is the hypotenuse of a right triangle whose legs are the horizontal and vertical differences. Between (1, 2) and (4, 6), the legs are 3 and 4, so the distance is 5.
- Word problems. A ladder against a wall, a person walking north and then east, and a cable bracing a pole all form right angles with the ground or between directions.
A worked example with two steps
A GRE problem often chains the theorem twice. Consider a rectangle ABCD with AB = 9 and BC = 12. A point E lies on side CD, with CE = 5. Find the length of BE.
- Triangle BCE has its right angle at C, because the angles of a rectangle are right angles.
- The legs are BC = 12 and CE = 5.
- BE² = 144 + 25 = 169, so BE = 13.
A second example uses the diagonal first. A box on the floor has a rectangular base 3 by 4, and a vertical edge of height 12. The base diagonal is √(9 + 16) = 5. That diagonal and the vertical edge are the legs of a new right triangle, so the space diagonal is √(25 + 144) = 13. Note that this works because the vertical edge is perpendicular to every line on the floor.
Working with square roots
Answers often involve radicals, so keep these habits.
- Simplify by pulling out perfect squares. √72 = √(36 · 2) = 6√2.
- Do not take the square root too early. If the legs are 3 and 3√2, then c² = 9 + 18 = 27, and c = √27 = 3√3. Squaring a leg that already has a radical removes the radical: (3√2)² = 9 · 2 = 18.
- Compare squares instead of roots when you only need to know which length is larger. Between √29 and 5.5, compare 29 with 30.25.
- When the question asks for an area and the area uses a squared side, you may never need the root at all. If a right isosceles triangle has hypotenuse squared equal to 50, then each leg squared is 25, and the area is ½ · 25 = 12.5.
Common errors
- Using the theorem on a non-right triangle. A triangle that looks right in a figure may not be. Look for the right-angle mark or a stated fact.
- Putting the wrong side in the c position. The hypotenuse is opposite the right angle, not just the side drawn at the bottom or the longest-looking one.
- Forgetting to take the square root. If the equation gives 169, the side is 13. Questions that ask for a side length do not want 169.
- Squaring a sum incorrectly. (a + b)² is not a² + b². When a leg is written as an expression such as x + 2, square the whole expression: (x + 2)² = x² + 4x + 4.
- Mixing units. If one leg is in feet and another in inches, convert before you square.
Preview of shortcuts
You will meet the same relationships again in shorter forms. Some right triangles have all three sides whole, such as 5-12-13 above, and recognizing them saves the arithmetic. Two right triangles with fixed angles, 45-45-90 and 30-60-90, have side ratios that give the third side with no squaring. The full theorem remains the fallback whenever a shortcut does not apply, so make sure you can carry it out without error.
Exercise
A ladder 17 feet long leans against a vertical wall. Its base stands on level ground 8 feet from the wall. How high up the wall does the ladder reach?
Show answer
The ladder is the hypotenuse (17), and the distance along the ground is one leg (8). The height is the other leg: h² = 17² − 8² = 289 − 64 = 225, so h = 15 feet.
Exercise
A triangle has sides 7, 24, and 25. Is it a right triangle? Then decide what type of triangle has sides 6, 7, and 10.
Show answer
For 7, 24, 25: 7² + 24² = 49 + 576 = 625 = 25², so it is a right triangle. For 6, 7, 10: 6² + 7² = 36 + 49 = 85, which is less than 10² = 100, so the triangle is obtuse.
Exercise
In a coordinate plane, point P is (−2, 3) and point Q is (4, −5). Find the length of segment PQ.
Show answer
The horizontal difference is 4 − (−2) = 6 and the vertical difference is −5 − 3 = −8, which has length 8. PQ is the hypotenuse of a right triangle with legs 6 and 8, so PQ = √(36 + 64) = √100 = 10.