Distance between two points

To find the distance between two points (in a 2D plane) we can use the pythagorean theorem:

a^2 + b^2 = c^2

Formula for distance between two points

We can derive this, however, by considering a to be the difference in the x-coordinates of the two points, b to be the difference in the y-coordinates of the two points, and c to be the distance between the two points:

(x_2 - x_1)^2 + (y_2 - y_1)^2 = d^2

Rearranging this to make d the subject gives us the formula for the distance between two points:

d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}

Find the distance between the points (3, 4) and (7, 1).

Find the distance between the points (-2, 5) and (4, -1).