**Pythagorean theorem**  
The sum of the areas of the two squares on the legs (*a* and *b*) equals the area of the square on the hypotenuse (*c*).
In mathematics, the  **Pythagorean theorem** or Pythagoras's theorem[*permanent dead link*] is a statement about the sides of a right triangle. 

One of the angles of a right triangle is always equal to 90 degrees. This angle is the right angle. The two sides next to the right angle are called the legs and the other side is called the hypotenuse. The hypotenuse is the side opposite to the right angle, and it is always the longest side.

Claim of the theory
-------------------

The Pythagorean theorem says that the area of a square on the hypotenuse is equal to the sum of the areas of the squares on the legs. In this picture, the area of the blue square added to the area of the red square makes the area of the purple square. It was named after the Greek mathematician Pythagoras:

If the lengths of the legs are *a* and *b*, and the length of the hypotenuse is *c*, then, {\displaystyle a^{2}+b^{2}=c^{2}}.

Types of proofs
---------------

There are many different proofs of this theorem. They fall into four categories:

1. Those based on linear relations: the algebraic proofs.
2. Those based upon comparison of areas: the geometric proofs.
3. Those based upon the vector operation.
4. Those based on mass and velocity: the dynamic proofs.

Proof
-----

One proof of the Pythagorean theorem was found by a Greek mathematician, Eudoxus of Cnidus.

The proof uses three lemmas:

1. Triangles with the same base and height have the same area.
2. A triangle which has the same base and height as a side of a square has the same area as a half of the square.
3. Triangles with two congruent sides and one congruent angle are congruent and have the same area.

The proof is:

1. The blue triangle has the same area as the green triangle, because it has the same base and height (lemma 1).
2. Green and red triangles both have two sides equal to sides of the same squares, and an angle equal to a straight angle (an angle of 90 degrees) plus an angle of a triangle, so they are congruent and have the same area (lemma 3).
3. Red and yellow triangles' areas are equal because they have the same heights and bases (lemma 1).
4. Blue triangle's area equals area of yellow triangle's area, because

{\displaystyle {\color {blue}A\_{blue}}={\color {green}A\_{green}}={\color {red}A\_{red}}={\color {yellow}A\_{yellow}}}
1. The brown triangles have the same area for the same reasons.
2. Blue and brown each have a half of the area of a smaller square. The sum of their areas equals half of the area of the bigger square. Because of this, halves of the areas of small squares are the same as a half of the area of the bigger square, so their area is the same as the area of the bigger square.

### Proof using similar triangles

We can get another proof of the Pythagorean theorem by using similar triangles.

{\displaystyle {\frac {d}{a}}={\frac {a}{c}}\quad \Rightarrow \quad {a^{2}}={dc}\quad (1)}
{\displaystyle {\frac {e}{b}}={\frac {b}{c}}\quad \Rightarrow \quad {b^{2}}={ec}\quad (2)}

From the image, add equations (1) and (2):



a

2

+

b

2

=

d
c
+
e
c

⇒

a

2

+

b

2

=
c
(
d
+
e
)

⇒

a

2

+

b

2

=
c
(
c
)

{\displaystyle {a^{2}}+{b^{2}}={dc+ec}\quad \Rightarrow a^{2}+b^{2}=c(d+e)\quad \Rightarrow a^{2}+b^{2}=c(c)}

{\displaystyle {a^{2}}+{b^{2}}={dc+ec}\quad \Rightarrow a^{2}+b^{2}=c(d+e)\quad \Rightarrow a^{2}+b^{2}=c(c)}
And we get:

{\displaystyle c^{2}=a^{2}+b^{2}\,\!.}

Pythagorean triples
-------------------

Pythagorean triples or triplets are three whole numbers which fit the equation {\displaystyle a^{2}+b^{2}=c^{2}}.

The triangle with sides of 3, 4, and 5 is a well known example. If a=3 and b=4, then {\displaystyle 3^{2}+4^{2}=5^{2}} because {\displaystyle 9+16=25}. This can also be shown as {\displaystyle {\sqrt {3^{2}+4^{2}}}=5.}

The three-four-five triangle works for all multiples of 3, 4, and 5. In other words, numbers such as 6, 8, 10 or 30, 40 and 50 are also Pythagorean triples. Another example of a triple is the 12-5-13 triangle, because {\displaystyle {\sqrt {12^{2}+5^{2}}}=13}.

A Pythagorean triple that is not a multiple of other triples is called a primitive Pythagorean triple. Any primitive Pythagorean triple can be found using the expression {\displaystyle (2mn,m^{2}-n^{2},m^{2}+n^{2})}, but the following conditions must be satisfied. They place restrictions on the values of {\displaystyle m} and {\displaystyle n}. 

1. {\displaystyle m} and {\displaystyle n} are positive whole numbers
2. {\displaystyle m} and {\displaystyle n} have no common factors except 1
3. {\displaystyle m} and {\displaystyle n} have opposite parity. {\displaystyle m} and {\displaystyle n} have opposite parity when {\displaystyle m} is even and {\displaystyle n} is odd, or {\displaystyle m} is odd and {\displaystyle n} is even.
4. {\displaystyle m>n}.

If all four conditions are satisfied, then the values of {\displaystyle m} and {\displaystyle n} create a primitive Pythagorean triple.

{\displaystyle m=2} and {\displaystyle n=1} create a primitive Pythagorean triple. The values satisfy all four conditions. {\displaystyle 2mn=2\times 2\times 1=4}, {\displaystyle m^{2}-n^{2}=2^{2}-1^{2}=4-1=3} and {\displaystyle m^{2}+n^{2}=2^{2}+1^{2}=4+1=5}, so the triple {\displaystyle (3,4,5)} is created.