Lemma: If A = (x1, y1), B = (x2, y2) and C = (x3, y3) are the vertices of a right triangle

then

2x32 + 2y32 - 2x1x3 - 2y1y3 - 2x2x3 - 2y2y3 = - 2x1x2 - 2y1y2

Proof: For AC and BC to be perpendicular, their slopes have to be negative reciprocals of each other. That is

We can assume that the denominators are not zero, because if they are then we are in the case where the lines are horizontal and vertical, and in that case, the Pythagorean Theorem follows simply from the distance fromula. We are interested in the case where the perpendicular sides are neither horizontal nor vertical.

Cross multiply

(y1 - y3 )(y2 - y3 ) = - (x1 - x3 )(x2 - x3 )

Transpose

(y1 - y3 )(y2 - y3 ) + (x1 - x3 )(x2 - x3 ) = 0

Remove parentheses

y1y2 - y1y3 - y2y3 + y32 + x1x2 - x1x3 - x2x3 + x32 = 0

Transpose

x32 + y32 - x1x3 - y1y3 - x2x3 - y2y3 = - x1x2 - y1y2

Multiply both sides by 2

2x32 + 2y32 = 2x1x3 - 2y1y3 - 2x2x3 - 2y2y3 = - 2x1x2 - 2y1y2

Alternate proof of the Pythagorean Theorem

Return to Theorem 3.4