01 / 21

Coordinate
Geometry

Master distance, midpoint, and spatial reasoning in 2D and 3D coordinate systems using foundational formulas.

IB Mathematics AA

What Is Coordinate Geometry?

Coordinate geometry (analytic geometry) connects algebra and geometry by placing shapes on a number grid. Every point has a unique address: an ordered pair \((x, y)\) in 2D or an ordered triple \((x, y, z)\) in 3D.

x y 1 2 3 4 1 2 3 A(2, 2) B(4, 3)

Core Vocabulary

Ordered Pair
\((x, y)\): a point's address on a 2D plane, giving horizontal then vertical position.
Ordered Triple
\((x, y, z)\): extends to 3D by adding a depth axis perpendicular to the plane.
Distance
The length of the straight-line segment connecting two points in space.
Midpoint
The point that divides a segment into two equal halves: the average of endpoints.

Why Coordinate Geometry Matters

Coordinate geometry bridges pure geometry with algebra. Instead of relying on compass-and-ruler proofs, you use equations and formulas to measure, locate, and reason about figures precisely.

1
Navigation and GPS: every location on Earth is a coordinate pair (latitude, longitude).
2
Computer graphics: 3D models and animations rely on coordinate transformations.
3
IB exam skill: SL 3.1 is tested directly and is a prerequisite for vectors, lines, and planes.

The Distance Formula in 2D

For two points \(A(x_1, y_1)\) and \(B(x_2, y_2)\), the distance between them is derived directly from the Pythagorean theorem:

x y
\(A(x_1, y_1)\)
\(B(x_2, y_2)\)
\(x_2 - x_1\)
\(y_2 - y_1\)
d

Extending to 3D Distance

Adding a third coordinate \(z\) simply extends the Pythagorean theorem by one more squared term. For points \(A(x_1, y_1, z_1)\) and \(B(x_2, y_2, z_2)\):

The Midpoint Formula in 2D

The midpoint \(M\) of two points \(A(x_1, y_1)\) and \(B(x_2, y_2)\) is the average of their coordinates:

x y 1 2 3 4 5 1 2 3 A(1, 1) B(5, 3) M(3, 2)

Midpoint in 3D

The same averaging principle extends naturally. For \(A(x_1, y_1, z_1)\) and \(B(x_2, y_2, z_2)\):

Pattern
Average each coordinate independently: the midpoint is the component-wise mean of the two endpoints.
Connection
This foreshadows the position vector average you will meet in the IB vectors topic (SL 3.12).

Distance vs Midpoint

Distance Midpoint
Question answered How far apart are two points? Where is the point exactly between them?
Operation Subtract, square, sum, root Add, then divide by 2
Output type A single number (scalar) A point (coordinate pair or triple)
2D formula \(\sqrt{(\Delta x)^2+(\Delta y)^2}\) \(\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right)\)
Extends to 3D? Add \((\Delta z)^2\) under root Add \(\frac{z_1+z_2}{2}\) as third component

Step-by-Step Approach

1
Identify the points: write down \((x_1, y_1)\) and \((x_2, y_2)\) (or include \(z\) for 3D).
2
Decide the task: are you finding a length (distance) or a location (midpoint)?
3
Substitute carefully: plug coordinates into the correct formula: keep signs when subtracting.
4
Simplify: for distance, square each difference before adding. For midpoint, simply average.
5
Check units and form: distance is a positive number; midpoint is a coordinate. Give exact values unless told otherwise.

Example 1: 2D Distance

Find the distance between \(P(2, 3)\) and \(Q(8, 11)\).

P(2, 3) Q(8, 11) 8 − 2 = 6 11 − 3 = 8 d = 10

Example 2: 2D Midpoint

Find the midpoint of \(A(-3, 4)\) and \(B(7, -2)\).

x y A(−3, 4) B(7, −2) M(2, 1)

Example 3: 3D Distance

Find the distance between \(A(1, 2, 3)\) and \(B(4, 6, 3)\).

Example 4: 3D Midpoint

Find the midpoint of \(P(1, -4, 7)\) and \(Q(5, 8, -3)\).

Common Mistakes

✕ Sign Errors
Subtracting a negative coordinate incorrectly: \(3 - (-2) = 5\), not \(1\). Brackets matter.
✕ Forgetting the Root
Computing \((x_2-x_1)^2 + (y_2-y_1)^2\) but forgetting the final square root gives distance squared, not distance.
✕ Averaging in Distance
Mixing up formulas: using addition and dividing by 2 (midpoint logic) when asked for distance.

Formula Reference

2D 3D
Distance \(\sqrt{(x_2-x_1)^2+(y_2-y_1)^2}\)
Output: Scalar (a number)
\(\sqrt{(x_2-x_1)^2+(y_2-y_1)^2+(z_2-z_1)^2}\)
Output: Scalar (a number)
Midpoint \(\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2}\right)\)
Output: Point (coordinates)
\(\left(\frac{x_1+x_2}{2},\frac{y_1+y_2}{2},\frac{z_1+z_2}{2}\right)\)
Output: Point (coordinates)

Question 1 of 5

What is the distance between \(A(1, 5)\) and \(B(4, 1)\)?

Question 2 of 5

What is the midpoint of \((-6, 2)\) and \((4, 10)\)?

Question 3 of 5

Find the distance between \(P(2, 1, 3)\) and \(Q(5, 5, 3)\) in 3D.

Question 4 of 5

If \(M(3, 7)\) is the midpoint of \(A(1, 4)\) and \(B\), what are the coordinates of \(B\)?

Question 5 of 5

What is the 3D midpoint of \((0, -2, 8)\) and \((6, 4, -2)\)?