Right triangles and the Pythagorean theorem

In a right triangle the squares of the two sides about the right angle add up to the square of the hypotenuse1. We confirm it for the triangle with vertices A(3,0)A(-3, 0), B(3,0)B(3, 0) and C(0,3)C(0, 3).

Confirming the right angle

We have CA=(3,3)\overrightarrow{CA} = (-3, -3) and CB=(3,3)\overrightarrow{CB} = (3, -3), whose dot product is (3)(3)+(3)(3)=0(-3)(3) + (-3)(-3) = 0. The two sides are perpendicular.

Confirming the theorem

The lengths of the three sides are CA=CB=32+32=32CA = CB = \sqrt{3^2 + 3^2} = 3\sqrt{2} and AB=6AB = 6.

CA2+CB2=18+18=36=62=AB2CA^2 + CB^2 = 18 + 18 = 36 = 6^2 = AB^2

The two sides about the right angle are equal, so this is a right isosceles triangle with sides in the ratio 1:1:21 : 1 : \sqrt{2}. The number 2\sqrt{2} is the one that appears as the diagonal of a square, and this triangle is a square cut in half along that diagonal.

Combinations that come out whole

There are combinations in which all three sides are integers, called Pythagorean triples2.

aabbcca2+b2=c2a^2 + b^2 = c^2
3344559+16=259 + 16 = 25
551212131325+144=16925 + 144 = 169
881515171764+225=28964 + 225 = 289

The converse also holds

In a triangle whose sides satisfy a2+b2=c2a^2 + b^2 = c^2, the angle opposite cc is a right angle. That is the converse of the Pythagorean theorem.

A proof by area

Inside a square of side a+ba + b, arrange four right triangles with legs aa and bb like the sails of a windmill; a square of side cc is left in the middle. Counting the total area in two ways gives the following.

(a+b)2=4×ab2+c2a2+2ab+b2=2ab+c2a2+b2=c2\begin{align*} (a + b)^2 &= 4 \times \frac{ab}{2} + c^2 \\ a^2 + 2ab + b^2 &= 2ab + c^2 \\ a^2 + b^2 &= c^2 \end{align*}

Deciding the type of an angle

The lengths of the three sides also reveal the type of the angle.

ConditionThe angle opposite the longest side
a2+b2>c2a^2 + b^2 > c^2acute
a2+b2=c2a^2 + b^2 = c^2right
a2+b2<c2a^2 + b^2 < c^2obtuse

For 55, 66 and 88, say, 25+36=6125 + 36 = 61 falls short of 82=648^2 = 64, so the angle opposite the longest side is obtuse.

Relation to the distance formula

The formula for the distance between two points in the coordinate plane is this theorem itself.

(x2x1)2+(y2y1)2\sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

It builds a triangle whose legs are the difference in xx and the difference in yy, and asks for the hypotenuse. That is why the theorem shows its face everywhere in coordinate calculations.

The three lines on the graph are the three sides, and the large dots are the three vertices.

  1. Pythagorean theorem, Wikipedia
  2. Pythagorean triple, Wikipedia