IB Maths AI SL Topic 3 — Geometry of 3D Shapes Paper 1 & 2 Add a z-coordinate ~6 min read

3D Coordinate Geometry

Move from (x, y) on the plane to (x, y, z) in space. The midpoint and distance formulae work the same way — you just include the third coordinate. No new ideas; same Pythagoras, with one extra term inside the square root.

πŸ“˜ What you need to know

Pythagoras twice — that’s the whole idea

The distance formula in 3D is “Pythagoras applied twice”. Drop a perpendicular from the high point to the floor, find the floor distance with 2D Pythagoras (the legs dx, dy), then use that floor distance plus the rise dz as the legs of a second Pythagoras to get the full 3D distance.

3D distance is Pythagoras twice x y z B(2, 3, 5) dx = 3 dy = 4 floor = 5 dz = 12 P(5, 7, 17) d = 13 km Pythagoras twice: floor = √(3Β² + 4Β²) = √25 = 5 d = √(floorΒ² + 12Β²) = √(25 + 144) = √169 = 13 β€” same as direct: d = √(dxΒ² + dyΒ² + dzΒ²) = √(9 + 16 + 144) = √169 = 13 βœ“
From B to P: the three orange dashed legs (dx = 3, dy = 4, dz = 12) sit along the box edges. The red dashed line on the floor is the 2D Pythagoras result. The green solid line is the 3D distance d = 13.
In the formula booklet midpoint = x1+x22, y1+y22, z1+z22
 
d = √((x1x2)² + (y1y2)² + (z1z2)²)

🧭 Recipe — any 3D coordinate problem

  1. Label the points: write (x1, y1, z1) and (x2, y2, z2) directly above the numbers.
  2. Find each difference: dx, dy, dz. Watch the signs — negatives often flip when subtracted.
  3. For distance: square each, add the three, then square-root. For midpoint: average each pair.
  4. For “working backwards” (missing endpoint given midpoint): use x2 = 2Mxx1, and same for y and z.
  5. State the answer with units: “10 m” for distance, “(a, b, c)” for midpoint.
3D Pythagorean quadruples: (1, 2, 2)→3  Β·  (2, 3, 6)→7  Β·  (3, 4, 12)→13  Β·  (1, 4, 8)→9  Β·  (4, 4, 7)→9. Recognising these makes the distance instant — no calculator needed.

Worked examples

WE 1

Midpoint between two warehouses

A drone-delivery system has two warehouses at P(1, 4, 7) and Q(5, −2, 3) (coordinates in km, including altitude). A relay station is to be placed at the midpoint of [PQ]. Find its coordinates.

Average each coordinate Mₓ = (1 + 5)/2 = 3 Mᵢ = (4 + (βˆ’2))/2 = 1 Mẑ = (7 + 3)/2 = 5 M = (3, 1, 5) exactly the same idea as 2D β€” just three averages instead of two. The negative y stays as a negative inside the sum: 4 + (βˆ’2) = 2.
WE 2

Distance — drone flight to a mountain peak

A drone flies in a straight line from base camp B(2, 3, 5) to peak P(5, 7, 17), coordinates in km (third entry = altitude). Find the straight-line distance flown.

Step 1 β€” find the three differences dx = 5 βˆ’ 2 = 3 dy = 7 βˆ’ 3 = 4 dz = 17 βˆ’ 5 = 12 Step 2 β€” Pythagoras d = √(3Β² + 4Β² + 12Β²) = √(9 + 16 + 144) = √169 = 13 d = 13 km (3, 4, 12, 13) is a Pythagorean quadruple β€” the answer comes out as a whole number. Spotting it saves you reaching for the calculator.
WE 3

Midpoint of two satellites

Two satellites are tracked at positions S1(−3, 2, −1) and S2(5, −6, 7) (coordinates in 100 km from Earth’s centre). Find the midpoint of [S1S2].

Average each coordinate, careful with signs Mₓ = (βˆ’3 + 5)/2 = 2/2 = 1 Mᵢ = (2 + (βˆ’6))/2 = βˆ’4/2 = βˆ’2 Mẑ = (βˆ’1 + 7)/2 = 6/2 = 3 M = (1, βˆ’2, 3) three negative-positive pairs to average. Brackets help: (2 + (βˆ’6))/2 = βˆ’4/2 = βˆ’2 is much clearer than 2 + βˆ’6 / 2.
WE 4

Both formulae — helicopter pair

Two helicopters are at H1(2, 1, 3) and H2(6, 4, 15) (coordinates in km, altitude is the third entry). Find (a) the midpoint of [H1H2] and (b) the distance between them.

(a) midpoint Mₓ = (2 + 6)/2 = 4 Mᵢ = (1 + 4)/2 = 2.5 Mẑ = (3 + 15)/2 = 9 M = (4, 2.5, 9) (b) distance dx = 4, dy = 3, dz = 12 d = √(16 + 9 + 144) = √169 = 13 (a) M = (4, 2.5, 9) Β· (b) d = 13 km midpoint coordinates may come out as decimals or fractions β€” that’s fine. The (3, 4, 12, 13) quadruple appears again β€” common in IB problems.
WE 5

Working backwards — find missing endpoint

The midpoint of [PQ] is M(2, 5, −1) and one endpoint is P(7, 3, 4). Find the other endpoint Q.

Use Q = 2M βˆ’ P for each coordinate Qₓ = 2(2) βˆ’ 7 = 4 βˆ’ 7 = βˆ’3 Qᵢ = 2(5) βˆ’ 3 = 10 βˆ’ 3 = 7 Qẑ = 2(βˆ’1) βˆ’ 4 = βˆ’2 βˆ’ 4 = βˆ’6 Check: midpoint of P and Q ((7 + (βˆ’3))/2, (3 + 7)/2, (4 + (βˆ’6))/2) = (2, 5, βˆ’1) βœ“ Q = (βˆ’3, 7, βˆ’6) the shortcut Q = 2M βˆ’ P works coordinate-by-coordinate. Always verify by averaging P and Q β€” should give M back.
WE 6

Space diagonal of a warehouse

A rectangular warehouse has internal dimensions 12 m × 8 m × 9 m (length × width × height). A wire is run from one floor corner to the opposite top corner. Find the length of the wire.

Set up: place one corner at the origin corner A = (0, 0, 0) opposite corner B = (12, 8, 9) Apply the 3D distance formula d = √(12² + 8² + 9²) = √(144 + 64 + 81) = √289 = 17 m d = 17 m the space diagonal of a cuboid = √(length² + width² + height²). Placing one corner at the origin turns it into a 3D distance question instantly.

πŸ’‘ Top tips

  • Treat 3D like 2D with one extra term: same Pythagoras structure, plus a (z1z2)² on the inside.
  • Label (x1, y1, z1) above each point: especially helpful with negatives.
  • Spot Pythagorean quadruples: (3, 4, 12, 13) and (2, 3, 6, 7) are common in exam questions β€” answer is a clean integer.
  • For “space diagonal of a box”: place one corner at the origin, the opposite at (length, width, height), and use the 3D distance formula.
  • Sketch a rough 3D box if it helps: draw the three legs dx, dy, dz as box edges and the diagonal as the line through the box.

⚠ Common mistakes

  • Forgetting the z term: an easy slip when copying the 2D formula. Always check you have three squared differences inside the root.
  • Squaring then taking the root of just one piece: √(dx²) + √(dy²) + √(dz²) is NOT the same as √(dx² + dy² + dz²). Add first, then root.
  • Sign mistakes with negatives: (−1 + 7)/2 = 3, not 4. Use brackets to keep the signs visible.
  • Midpoint coordinates left unsimplified: 5/2 is fine but write it as 2.5 if the question wants decimals. Mixing forms looks careless.
  • Confusing dimensions and coordinates for the space-diagonal question. A box with sides 12, 8, 9 has corners at (0,0,0) and (12, 8, 9), not at (12, 8, 9) and (24, 16, 18).
Up next: Volume & Surface Area — the formulae for prisms, cylinders, pyramids, cones and spheres. Most are in the formula booklet; the trick is recognising the shape, identifying r and h, and combining shapes (cone + sphere, prism − cylinder, etc.) for richer problems.

Need help with AI SL 3D Geometry?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →