Pythagoras' theorem

This figure shows why Pythagoras' theorem works. The area of the square on the left is the same as the area of the rectangle formed by the pieces of the same color in the big square. The area of the square on the bottom is the same as the area of the rectangle formed by its pieces. You can click on the figure to adjust the length of the triangle.