distance and the Pythagorean theorem quick check

The Pythagorean theorem states that in a right triangle, the sum of the squares of the lengths of the two legs is equal to the square of the length of the hypotenuse.

So, if we have a right triangle with legs of lengths a and b, and a hypotenuse of length c, the Pythagorean theorem can be written as:

a^2 + b^2 = c^2

This theorem is often used to find the distance between two points in a coordinate plane. The distance between two points (x1, y1) and (x2, y2) is given by the formula:

d = sqrt((x2 - x1)^2 + (y2 - y1)^2)

Where d is the distance between the two points.