Pythagoras' theorem links the side lengths of a right-angled triangle. It is one of the most useful tools in geometry and coordinate problems.
In a right triangle with legs \(a,b\) and hypotenuse \(c\):
\[ a^2+b^2=c^2. \]
The hypotenuse is always the side opposite the right angle and is the longest side.
Example 1. If \(a=6\), \(b=8\), then:
\[ c=\sqrt{6^2+8^2}=\sqrt{36+64}=\sqrt{100}=10. \]
Example 2. If \(c=13\), \(a=5\), then:
\[ b=\sqrt{13^2-5^2}=\sqrt{169-25}=\sqrt{144}=12. \]
If side lengths satisfy \(a^2+b^2=c^2\), the triangle is right-angled.
Example: \(7,24,25\) gives \(7^2+24^2=49+576=625=25^2\), so right-angled.
For largest side \(c\):
Distance between \(A(x_1,y_1)\) and \(B(x_2,y_2)\):
\[ AB=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}. \]
This is Pythagoras applied to horizontal and vertical changes.