All Pythagorean triples: Euclid's formula
Need a hint?
Expand both sides and compare.
(m² ā n², 2mn, m² + n²) is always a Pythagorean triple: m = 2, n = 1 gives 3-4-5 and m = 3, n = 2 gives 5-12-13.
How to work it out
Expand the left side:
(1)That is , so the three numbers satisfy Pythagoras. Examples:
(2)
LaTeX source of the formulas on this page
\[ (m^2-n^2,\ 2mn,\ m^2+n^2) \]
\[ (m^2-n^2)^2+(2mn)^2=m^4-2m^2n^2+n^4+4m^2n^2=m^4+2m^2n^2+n^4 \]
\[ \begin{aligned}(2,1)&:\ 3,\ 4,\ 5\\(3,2)&:\ 5,\ 12,\ 13\\(4,1)&:\ 15,\ 8,\ 17\\(4,3)&:\ 7,\ 24,\ 25\end{aligned} \]Questions
What is the answer to: All Pythagorean triples: Euclid's formula?
(m² ā n², 2mn, m² + n²) is always a Pythagorean triple: m = 2, n = 1 gives 3-4-5 and m = 3, n = 2 gives 5-12-13.
What is the key idea?
Expanding the squares shows the identity is true for every m and n; every primitive triple has this form.
Is there a hint?
Expand both sides and compare.