3. Geometry and Trigonometry

Distance And Midpoint

Distance and Midpoint 📍📏

Welcome, students! In this lesson, you will learn two of the most useful ideas in coordinate geometry: distance and midpoint. These tools help us measure how far apart points are and find the point exactly halfway between them. They are used in map reading, navigation, sports tracking, computer graphics, engineering, and even satellite positioning 🌍. By the end of this lesson, you should be able to calculate distances and midpoints in the plane, explain why the formulas work, and connect these ideas to broader geometry and trigonometry in IB Mathematics: Applications and Interpretation HL.

What are distance and midpoint?

When two points are placed on a coordinate plane, their distance is the length of the straight line segment connecting them. Their midpoint is the point that lies exactly halfway along that segment.

If two cities are marked on a map, the distance tells you how far apart they are in a straight line, while the midpoint tells you the location halfway between them. That midpoint could represent a meeting point, a service station, or the center of a route.

The standard coordinates of two points are written as $A(x_1,y_1)$ and $B(x_2,y_2)$. These symbols are important in IB mathematics because they let us describe location clearly and work with exact values.

The distance formula

The distance between two points in the Cartesian plane comes from the Pythagorean theorem. If one point is $A(x_1,y_1)$ and the other is $B(x_2,y_2)$, then the horizontal change is $x_2-x_1$ and the vertical change is $y_2-y_1$. These changes form the legs of a right triangle, so the distance $d$ is

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

This is one of the most important formulas in coordinate geometry.

Why it works

Imagine moving from $A$ to $B$ by traveling first horizontally and then vertically. The horizontal leg has length $|x_2-x_1|$ and the vertical leg has length $|y_2-y_1|$. The straight-line distance is the hypotenuse of the right triangle, so the Pythagorean theorem gives

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

Taking the square root gives the distance formula.

Example 1: finding a distance

Suppose $A(2,3)$ and $B(8,7)$. Then

$$d=\sqrt{(8-2)^2+(7-3)^2}$$

$$d=\sqrt{6^2+4^2}$$

$$d=\sqrt{36+16}=\sqrt{52}=2\sqrt{13}$$

So the distance between the points is $2\sqrt{13}$ units.

This result is exact, which is useful in IB Mathematics because exact answers are often preferred before rounding.

Example 2: special cases

If two points have the same $x$-coordinate, then the line between them is vertical. For example, $A(5,1)$ and $B(5,9)$ have distance

$$d=\sqrt{(5-5)^2+(9-1)^2}=\sqrt{0+64}=8$$

If two points have the same $y$-coordinate, then the line is horizontal. For example, $C(-2,4)$ and $D(6,4)$ have distance

$$d=\sqrt{(6+2)^2+(4-4)^2}=\sqrt{64}=8$$

These cases are simple but very useful when checking answers or solving applied problems quickly.

The midpoint formula

The midpoint of the segment joining $A(x_1,y_1)$ and $B(x_2,y_2)$ is found by averaging the coordinates. The midpoint $M$ is

$$M\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right)$$

This formula means that the midpoint is halfway in the horizontal direction and halfway in the vertical direction.

Why it works

If you travel from $x_1$ to $x_2$, the halfway point is the average of the two $x$-values. The same idea applies to the $y$-values. Averaging is a natural way to split a segment into two equal parts.

Example 3: finding a midpoint

For $A(2,3)$ and $B(8,7)$, the midpoint is

$$M\left(\frac{2+8}{2},\frac{3+7}{2}\right)=\left(\frac{10}{2},\frac{10}{2}\right)=(5,5)$$

So the point exactly halfway between $A$ and $B$ is $(5,5)$.

Example 4: midpoint in a real-world setting

A park entrance is at $P(-4,6)$ and a bus stop is at $Q(10,2)$. The midpoint is

$$M\left(\frac{-4+10}{2},\frac{6+2}{2}\right)=(3,4)$$

This could represent the best place to put a shared bike station if the goal is to place it halfway between the two locations.

Distance and midpoint in 3D thinking

Although the basic formulas are used in two dimensions, the same reasoning connects to three-dimensional geometry, which is an important part of the Geometry and Trigonometry topic. In three dimensions, coordinates include $z$ as well as $x$ and $y$. The idea of distance becomes a natural extension of the Pythagorean theorem.

For points $A(x_1,y_1,z_1)$ and $B(x_2,y_2,z_2)$, the distance is

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

The midpoint in three dimensions is

$$M\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2},\frac{z_1+z_2}{2}\right)$$

This is the same idea as in 2D, just with one extra coordinate.

Example 5: 3D midpoint

If $A(1,2,3)$ and $B(5,6,7)$, then

$$M\left(\frac{1+5}{2},\frac{2+6}{2},\frac{3+7}{2}\right)=(3,4,5)$$

This helps in applications like finding the center point between two positions in space, such as drone locations or design models in engineering.

Geometry, trigonometry, and vectors

Distance and midpoint are part of geometry because they help describe shapes and relationships between points. They are also connected to trigonometry because the distance formula comes from the Pythagorean theorem, which is a central idea in right-triangle trigonometry.

They also connect strongly to vectors. A vector from $A(x_1,y_1)$ to $B(x_2,y_2)$ can be written as

$$\overrightarrow{AB}=\langle x_2-x_1,\,y_2-y_1\rangle$$

Its magnitude is

$$\left|\overrightarrow{AB}\right|=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$$

So the distance between two points is the magnitude of the vector between them.

This is useful in IB Mathematics because many problems ask you to move between geometric language and vector language. For example, if a vector represents a displacement of $\langle 3,4\rangle$, then its length is

$$\sqrt{3^2+4^2}=5$$

This means the object moved 5 units in a straight line.

Common mistakes and how to avoid them

A very common mistake is subtracting coordinates in the wrong order and then forgetting to square them. Remember that in the distance formula, the order does not matter because the result is squared:

$$ (x_2-x_1)^2=(x_1-x_2)^2 $$

The same is true for the $y$-difference.

Another common mistake is mixing up distance and midpoint. Distance gives a length, so the answer is a number with units. Midpoint gives coordinates, so the answer is an ordered pair or triple.

Also, be careful with negative numbers. For example, if $A(-3,2)$ and $B(5,-4)$, then

$$d=\sqrt{(5-(-3))^2+(-4-2)^2}=\sqrt{8^2+(-6)^2}=\sqrt{64+36}=10$$

The midpoint is

$$M\left(\frac{-3+5}{2},\frac{2+(-4)}{2}\right)=(1,-1)$$

Keeping the signs correct is essential for accuracy.

Conclusion

Distance and midpoint are foundational skills in coordinate geometry. The distance formula uses the Pythagorean theorem to measure the straight-line length between two points, while the midpoint formula uses averages to locate the point halfway between them. These ideas appear throughout Geometry and Trigonometry and support work with vectors, graphs, and spatial reasoning. students, mastering these tools will help you solve both pure mathematical problems and real-world applications with confidence ✅

Study Notes

  • The distance between $A(x_1,y_1)$ and $B(x_2,y_2)$ is $$d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}$$
  • The midpoint of $A(x_1,y_1)$ and $B(x_2,y_2)$ is $$M\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right)$$
  • Distance comes from the Pythagorean theorem and gives a length.
  • Midpoint comes from averaging coordinates and gives a point.
  • In three dimensions, the distance formula becomes $$d=\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}$$
  • In three dimensions, the midpoint is $$M\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2},\frac{z_1+z_2}{2}\right)$$
  • Distance is the magnitude of the vector between two points.
  • These ideas are used in mapping, navigation, design, and spatial reasoning.
  • Always watch signs, especially with negative coordinates.
  • Distance and midpoint are key building blocks for Geometry and Trigonometry in IB Mathematics: Applications and Interpretation HL.

Practice Quiz

5 questions to test your understanding