00:01
Suppose you want to verify the points 4 -0, 2 -1, and negative 1, negative 5, are vertices of a right triangle.
00:13
To verify, we need to make sure that the distances of the line segments formed by these points follow pythagorean theorem, since we are dealing with the right triangle.
00:25
We recall pythagorean theorem as the equation that relates the hypotenus and the legs of a right triangle.
00:33
Triangle that is the square of the hypotenus equals the sum of the squares of the legs let's call these legs the base and the height of the right triangle now since you're only given points we don't know if the line segments they form are the base or the height or the hypotenus but one thing is sure that the hypotenus is the largest line segment.
01:08
And so we begin by finding the distances of these line segments.
01:16
We will use the formula for the distance between two points.
01:21
Say we have points a, b, and c, d.
01:24
The distance would be d, which is equal to the square root of the square between the difference of c and a, plus the square of the difference between d and b and so for the points four zero and two one the distance would be as a square root of we have two minus four squared plus one minus zero squared that's equal to square it of four plus one that is equal to the square root of five and for points two one and and negative 1, negative 5, we have distance equal to the square root of negative 1 minus 2 squared plus...