Since \(a\) and \(b\) are the legs of a right triangle and \(c\) is the hypotenuse, the Pythagorean relationship gives \(c^2=a^2+b^2\).