Module 19 of 47Lesson 1 of 8 · Geometry & trig 1 · Distance & midpoint in 3D
1
3D geometry & trigonometry · Essential understanding 1

Distance & midpoint in 3D

IB AI SL 3.1with Prof. Kitso
💻 Using the TI-Nspire CX Student Software on a laptop
  • The screens in these notes are drawn exactly as the Student Software shows them. The keypad on the left of the software works like the handheld — click its keys with the mouse.
  • menu: click menu on the on-screen keypad (or Documents Toolbox ▸ 🔧). The menu numbers and letters are the same as in these notes.
  • enter = Enter  ·  tab = Tab (next box)  ·  esc = Esc  ·  del = Backspace.
  • Powers: type ^ (Shift+6), the power, then press → to come back down before typing more. x² = ^2 then →.
  • Fraction: type /  ·  √: type sqrt(  ·  π: type pi  ·  eˣ: type exp(  ·  store: type :=. For EE (×10ⁿ) and i, click them on the keypad.
  • New page: Ctrl+I (or the Insert menu)  ·  change page: Ctrl+← / Ctrl+→  ·  graph entry line: Ctrl+G  ·  var: Ctrl+L.
  • Radian / Degree: click Settings in the status bar at the bottom of the window. The mode (RAD or DEG) shows in the top bar.
  • IB exam mode (Press-to-Test): everything in these notes works on the non-CAS TI-Nspire with the IB exam settings. In exam mode there are no dot-product, cross-product, unit-vector or eigenvalue keys and no Diff Eq graphs — the notes show the allowed way (type the components, use polyRoots on the characteristic equation, do Euler steps on a Calculator page).
  • If you type nDeriv(, the software shows it as centralDiff( — it is the same command.
The big idea: A point in space needs three numbers: (x, y, z) — along, across and up. The distance between two points is Pythagoras twice, and the midpoint is the average of each coordinate.
By the end of this lesson you can:
  • read and plot a point (x, y, z) in 3D
  • find the distance between two points in 3D
  • find the midpoint of two points in 3D
  • use these to solve problems about rooms, boxes and flight paths
🧑🏾 Imagine this…
Stand in the corner of your classroom floor. Call that corner the origin (0, 0, 0). Walk 3 m along one wall (x), 2 m along the other wall (y), then climb a ladder 2.5 m up (z). You are now at the point (3, 2, 2.5). Three numbers pin down exactly where you are. A fly in the opposite top corner is a point too — and the straight line between you and the fly is a distance in 3D.
xz (up)yP(3, 2, 2.5)
Three axes meet at the origin. x goes along, y goes across (drawn slanting backwards), z goes up.
Coordinates (x, y, z)
three numbers that give a point's position: x along, y across, z up (the height).
Origin
the point (0, 0, 0) where the three axes meet.
Space diagonal
the straight line from one corner of a box to the opposite corner, passing through the inside of the box.
Midpoint
the point exactly halfway between two points.
(x₁, y₁, z₁)(x₂, y₂, z₂)x₂ − x₁y₂ − y₁z₂ − z₁d
Use Pythagoras on the floor first (dashed), then again going up. That gives the distance d.
★ Distance and midpoint (both in the formula booklet)
  • Distance between and :
  • Midpoint of AB:
  • Why it works: the floor diagonal comes from Pythagoras on the floor; then you go up and use Pythagoras a second time.
⚠️ Negatives and squares
Subtract carefully: from (2, 1, 4) to (5, −3, 16) the y change is −3 − 1 = −4, and (−4)² = +16. It does not matter which point you call 1 and which 2 — squaring removes the sign — but you must subtract the same point in all three brackets.
⚠️ Do not forget the root
The sum under the square root is d², not d. A very common slip is to stop at 169 instead of √169 = 13. Always finish with the square root.
💡 Command terms
Find the distance: give a number with units. Show that AB = 13: write the working fully and end on exactly 13. Write down a midpoint: no working needed, just average each coordinate.
🧪 Try it yourselfDistance or midpoint?
Quick checks using numbers from this lesson. Think first, then pick.

Worked examples

Example 1.1Distance between two points
Find the distance between P(2, 1, 4) and Q(5, −3, 16).
🧠 Think it through
  1. Find the three differences: x: 5 − 2, y: −3 − 1, z: 16 − 4.
  2. Square each, add, then take the square root.
✍️ By hand
🔢 On your TI-Nspire CX II
  1. On a Calculator page press ctrl💻 Ctrl then the square-root key to get √(, and type the whole sum inside.
  2. Use the (−) key for negative numbers, not the minus key.
  3. Check the brackets: every difference is in its own bracket, then squared.
1.1*DocRAD(5−2)2+(-3−1)2+(16−4)213
Exactly 13 — no rounding needed
✅ Answer PQ = 13 units.
Example 1.2Midpoint and distance together
A is the point (−2, 5, 7) and B is the point (6, −1, −3).
  1. (a) Find the midpoint M of AB.
  2. (b) Find the length of AB.
🧠 Think it through
  1. Midpoint: add the two x values and halve; then the y values; then the z values.
  2. Distance: three differences, square, add, root. Round to 3 s.f. at the end.
✍️ By hand
(3 s.f.)
🔢 On your TI-Nspire CX II
  1. Midpoint: type each average, for example (−2+6)/2, or do these three in your head.
  2. Distance: type the whole sum inside √( ) and press enter ↵💻 Enter. The TI gives a decimal.
1.1*DocRAD-2+6225+(-1)22(6+2)2+(-1−5)2+(-3−7)214.1421
Midpoint (2, 2, 2); distance 14.1421 → 14.1
✅ Answer (a) M(2, 2, 2). (b) AB = √200 = 14.1 (3 s.f.).
Because 200 = 100 × 2, the exact answer is also 10√2. The 3 s.f. value is the safe one to write.
Example 1.3A drone near the tower
The control box of a drone is on the ground in Gaborone. Taking the control box as the origin, distances are in metres: x is east, y is north, z is up. The drone's camera is at the point D(120, −80, 45). The pilot's eyes are 2 m above the control box, at E(0, 0, 2). How far is the drone from the pilot's eyes?
🧠 Think it through
  1. Two points in 3D → use the distance formula.
  2. The differences are 120 − 0, −80 − 0 and 45 − 2 (careful: z is 43, not 45).
  3. Round to 3 s.f. and give the unit.
✍️ By hand
m (3 s.f.)
🔢 On your TI-Nspire CX II
  1. Type √(120^2+80^2+43^2) and press enter ↵💻 Enter. (Squaring a negative gives the same as squaring the positive, so 80 is fine here.)
    📍 Where to find it on the TI-Nspire
    ⌨️ square root: ctrl then x² on the keypad, or type sqrt(
1.1*DocRAD1202+802+432150.496
150.496 → 150 m
✅ Answer About 150 m.
Check the answer is sensible: it must be longer than the biggest single difference (120).
Example 1.4The longest rod in a room
A storeroom is a cuboid 6 m long, 4 m wide and 3 m high. A builder wants to store a straight pipe. Find the longest pipe that fits, and the midpoint of its path if one end is at a floor corner O(0, 0, 0).
O (0, 0, 0)G (6, 4, 3)6 m4 m3 m
🧠 Think it through
  1. Put the origin at a floor corner. The opposite top corner is G(6, 4, 3).
  2. The longest straight pipe goes corner-to-corner: the space diagonal OG.
  3. Midpoint: halve each coordinate of G, since O is (0, 0, 0).
✍️ By hand
m (3 s.f.)
🔢 On your TI-Nspire CX II
  1. Type √(6^2+4^2+3^2) enter ↵💻 Enter.
    📍 Where to find it on the TI-Nspire
    ⌨️ square root: ctrl then x² on the keypad, or type sqrt(
1.1*DocRAD62+42+327.81025
7.81025 → 7.81 m
✅ Answer Longest pipe 7.81 m; its midpoint is (3, 2, 1.5).
Shortcut for any cuboid: space diagonal = √(l² + w² + h²).
Example 1.5Finding an unknown coordinate
The points A(1, 2, 3) and B(k, −2, 0) are 7 units apart, and k is positive.
  1. (a) Show that (k − 1)² = 24.
  2. (b) Find k, correct to 3 significant figures.
  3. (c) Find the midpoint of AB.
🧠 Think it through
  1. Write distance² = 7² = 49 using the formula, so there is no root to deal with.
  2. Solve (k − 1)² = 24: take ± the root, then keep the positive k.
  3. Use the unrounded k in the midpoint.
✍️ By hand
so or . Since :
🔢 On your TI-Nspire CX II
  1. Use the numerical solver: type nSolve((k−1)^2=24,k) on a Calculator page and press enter ↵💻 Enter.
    📍 Where to find it on the TI-Nspire
    nSolve( is in menu💻 click menu on keypad▸3: Algebra▸1: Numerical Solve
  2. The solver finds one answer. To make it find the positive one, add the condition: nSolve((k−1)^2=24,k)|k>0 (the | key is the “with” key).
    📍 Where to find it on the TI-Nspire
    nSolve( is in menu💻 click menu on keypad▸3: Algebra▸1: Numerical Solve
    ⌨️ the “such that” bar |: type | (Shift + \ on the keyboard)
  3. Then type the midpoint x: (1+5.89898)/2.
1.1*DocRADnSolve(k−1)2=24,k|k>05.898981+5.8989823.44949
k = 5.89898 → 5.90; midpoint x = 3.45
✅ Answer (a) shown above. (b) k = 5.90. (c) Midpoint (3.45, 0, 1.5).
If a question says “k is positive” (or gives a range) it is telling you to throw away one of the two roots.

Challenge questions

⭐ Challenge 1.6A triangle in spacePaper 1 style
The points A(1, 0, 2), B(4, 4, 2) and C(−3, 3, 2) are the corners of a triangle.
  1. (a) Find the length of AB.
  2. (b) Find the length of AC.
  3. (c) Hence state what type of triangle ABC is, giving a reason.
  4. (d) Find the midpoint of BC.
✏️ Try it on paper and on your calculator first. Then check.
Show the full solution
🧠 Think it through
  1. Use the distance formula twice. Notice that every z is 2 — the triangle is flat, parallel to the floor.
  2. Equal sides → isosceles.
  3. Midpoint of BC: average the coordinates of B and C.
✍️ By hand
;  
, so the triangle is isosceles.
🔢 On your TI-Nspire CX II
  1. Type √(3^2+4^2) and √(4^2+3^2) — both give 5.
    📍 Where to find it on the TI-Nspire
    ⌨️ square root: ctrl then x² on the keypad, or type sqrt(
1.1*DocRAD32+42+025(-4)2+32+025
✅ Answer (a) 5. (b) 5. (c) Isosceles, because AB = AC. (d) (0.5, 3.5, 2).
Extra: BC² = 7² + 1² = 50 = 5² + 5², so the triangle is also right-angled at A (Pythagoras). Can you see why?
⭐ Challenge 1.7The zip-line at KasanePaper 2 style
A zip-line near Kasane runs from a top platform T to a landing platform L. Using a point on the ground below T as origin, the coordinates are T(0, 0, 30) and L(80, 45, 2), all in metres.
  1. (a) Find the length of the zip-line, to 3 s.f.
  2. (b) Find the coordinates of the midpoint M of TL.
  3. (c) A rider takes 8.5 seconds to travel from T to L. Find the average speed in m s⁻¹ and in km h⁻¹.
  4. (d) A safety post stands on the ground directly below M. How tall must it be to touch the line at M?
✏️ Try it on paper and on your calculator first. Then check.
Show the full solution
🧠 Think it through
  1. Differences: 80, 45 and 2 − 30 = −28.
  2. Midpoint: halve the sum of each coordinate.
  3. ; multiply m s⁻¹ by 3.6 for km h⁻¹.
  4. The post reaches up to the z-coordinate of M.
✍️ By hand
m
m s⁻¹,   km h⁻¹
Post height = z-coordinate of M = 16 m.
🔢 On your TI-Nspire CX II
  1. Type √(80^2+45^2+28^2) enter ↵💻 Enter.
    📍 Where to find it on the TI-Nspire
    ⌨️ square root: ctrl then x² on the keypad, or type sqrt(
  2. Use the last answer (ans) for the next lines: type ans/8.5 then ans*3.6.
1.1*DocRAD802+452+28295.9635ans8.511.2898ans·3.640.6434
96.0 m; 11.3 m/s; 40.6 km/h
✅ Answer (a) 96.0 m. (b) M(40, 22.5, 16). (c) 11.3 m s⁻¹ = 40.6 km h⁻¹. (d) 16 m.
Next: Lesson 2 · Volume & surface area of solids