🎯 Lesson Objective
By the end of this lesson, learners should be able to:
- Understand how to calculate the distance between two points on a coordinate plane
- Apply the distance formula
- Interpret distance in mathematical and real-world contexts
- Understand how distance calculations are used in data science, navigation, and artificial intelligence
📖 Introduction
In mathematics, we often need to determine how far apart two points are.
When points are located on a Cartesian coordinate plane, we can calculate the distance between them using a mathematical formula known as the Distance Formula.
This formula is extremely important because it allows us to measure the straight-line distance between two locations.
The concept is used in many fields, including:
- navigation systems
- robotics
- machine learning
- engineering
- geographic information systems (GIS)
- statistics and data science
Understanding how to calculate distances between points helps us analyze relationships between positions, objects, and data.
📍 Points on a Coordinate Plane
Recall from the previous lesson that a point is written as an ordered pair.
Example:
Point A = (x₁ , y₁)
Point B = (x₂ , y₂)
Each point has:
- an x-coordinate (horizontal position)
- a y-coordinate (vertical position)
To determine the distance between two points, we compare the difference between their x-coordinates and y-coordinates.
📐 The Distance Formula
The distance between two points is calculated using the following formula:
Where:
- d = distance between the two points
- (x₁ , y₁) = coordinates of the first point
- (x₂ , y₂) = coordinates of the second point
This formula is derived from the Pythagorean Theorem.
📊 Example 1
Find the distance between the points:
A (1,2)
B (4,6)
Step 1 — Identify coordinates
x₁ = 1
y₁ = 2
x₂ = 4
y₂ = 6
Step 2 — Substitute into the formula
d = \sqrt{(4 – 1)^2 + (6 – 2)^2}
Step 3 — Solve
d = \sqrt{3^2 + 4^2}
d = \sqrt{9 + 16}
d = \sqrt{25}
d = 5
Distance = 5 units
📊 Example 2
Find the distance between the points:
A (−2,3)
B (4,7)
Step 1 — Substitute values
d = \sqrt{(4 – (-2))^2 + (7 – 3)^2}
Step 2 — Simplify
d = \sqrt{6^2 + 4^2}
d = \sqrt{36 + 16}
d = \sqrt{52}
Distance ≈ 7.21 units
📊 Example 3 — Horizontal Distance
Points:
A (2,5)
B (8,5)
Because the y-coordinates are the same, the points lie on a horizontal line.
Distance = difference between x-values
8 − 2 = 6 units
📊 Example 4 — Vertical Distance
Points:
A (4,1)
B (4,7)
Because the x-coordinates are the same, the points lie on a vertical line.
Distance = difference between y-values
7 − 1 = 6 units
🌍 Real-World Applications
The distance formula is used in many real-world technologies.
1️⃣ GPS Navigation
When a GPS system calculates how far you are from a destination, it uses coordinate distance calculations.
Example:
Your location → (x₁ , y₁)
Destination → (x₂ , y₂)
The system calculates the shortest route using distance formulas.
2️⃣ Machine Learning
In artificial intelligence, algorithms often calculate distances between data points.
Example:
Student study hours vs exam scores
Data point A = (3,60)
Data point B = (6,85)
Distance helps identify patterns and similarities between data.
3️⃣ Robotics
Robots use distance calculations to move between locations.
Example:
A robot may calculate the distance from its current location to an object before moving.
4️⃣ Computer Graphics and Gaming
Video games use coordinate distances to determine:
- movement speed
- object collisions
- character positioning
⚠ Common Mistakes When Calculating Distance
Students often make the following mistakes:
Mistake 1
Forgetting to square the coordinate differences.
Mistake 2
Ignoring negative signs when subtracting coordinates.
Example:
4 − (−2) = 6, not 2.
Mistake 3
Forgetting the square root at the end of the formula.
🧠 Key Takeaways
The distance between two points on a coordinate plane can be calculated using the distance formula.
This concept is important because it allows us to:
- measure distances between positions
- analyze spatial relationships
- apply mathematical models to real-world problems
Distance calculations are essential in fields such as:
- navigation
- engineering
- computer science
- machine learning
- statistics