In mathematics , the Pythagorean theorem or Pythagoras ' theorem is a statement about the sides of a right triangle . In mathematics , the Pythagorean theorem or Pythagoras ' theorem is a relation in Euclidean geometry among the three sides of a right triangle ( right-angled triangle ) .