The distance formula is used to determine the straight-line distance between two points in a coordinate plane. The formula is derived from the Pythagorean theorem and is expressed as:
\[ d = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 } \]
This formula provides a quick way to calculate the distance by simply plugging in the coordinates of the two points.
Here is how you can apply it:
- Identify the coordinates of the two points.
- Subtract the x-coordinate of the first point from the x-coordinate of the second point (i.e., \( \text{Δx} = x_2 - x_1 \)).
- Subtract the y-coordinate of the first point from the y-coordinate of the second point (i.e., \( \text{Δy} = y_2 - y_1 \)).
- Square both \( \text{Δx} \) and \( \text{Δy} \).
- Add the squares of \( \text{Δx} \) and \( \text{Δy} \).
- Finally, take the square root of the sum to get the distance.
This method is efficient and widely used in geometry and many real-world applications, such as navigation, to find the shortest path between two points.