Try it yourself · Class 8 Maths · Squares and Square Roots

Testing a triangle: change the legs a, b and the long side c

A triangle with sides a, b and c is right angled exactly when a² + b² = c². Three whole numbers that satisfy this are called a Pythagorean triplet. The simulation compares the two sides of this equation for you.

Legs and with a longer side . Right angled exactly when .

The simulation needs JavaScript; everything it shows is explained below.

What to change

  • Slide the leg a from 1 to 12.
  • Slide the leg b from 1 to 12.
  • Slide the long side c from 1 to 17.

What to watch

  • At a = 3, b = 4 and c = 4 the row a² + b² reads 25 and c² reads 16. The answer is No, and the Needed c row reads 5.00.
  • Slide c to 5. Now 25 equals 25, the triangle turns green with a square corner, and the answer is Yes.
  • With a = 5 and b = 12, c = 13 works, because 25 + 144 = 169 = 13².
  • With a = 6 and b = 8, c = 10 works. This is the triplet 3, 4, 5 doubled.
  • With a = 1 and b = 1 the Needed c row reads 1.41, which is not a whole number, so no c on the slider fits.

The formula

and are the two shorter sides, next to the right angle, and is the longest side. If the two sides of the equation differ, the triangle is not right angled.

Try these questions

Work each one out with the simulation, tap to see the answer, then try the chapter quiz.

  1. NCERT

    Write a pythagorean triplet whose smallest number is 6.
    Show the answer
    6, 8, 10
  2. NCERT

    If one member of a pythagorean triplet is , then the other two members are
    Show the answer
    (B)

More to try in Squares and Square Roots

Every simulation in the Lab