Today: 3D Coordinates & 3D Pythagoras
From the flat page into space. One coordinate axis added, one extra Pythagoras applied — and a third of every AIMO 3D solid problem dissolves into algebra.
📌 What you will learn today
How this lesson is structured
- Phase 0 (Steps 2–3): Prerequisites — 2D Pythagoras review and "what is a coordinate" in 3D.
- Phase 1 (Steps 4–6): Visual intuition — axes, cube body diagonal, two points in space.
- Phase 1.5 (Step 7): Formula handbook (3D distance, cube diagonal, cuboid diagonal).
- Phase 2 (Steps 8–10): Three guided derivations (distance formula, cube diagonal, cuboid diagonal).
- Phase 3 (Steps 11–15): Five worked examples ⭐⭐ → ⭐⭐⭐⭐⭐.
- Phase 4 (Step 16): Five practice problems (P1–P5) with Hint / Answer / Solution.
- Phase 5 (Step 17): One real AIMO past paper — AIMO 2018 Q5 (full Observe / Strategy).
- Phase 5.5 (Step 18): Synthesis problem — insect on a cube (unfold + 2D Pythagoras).
- Step 19: Atomic-skill matrix + 8 micro-validations.
- Steps 20–21: Cheat sheet, ⭐ self-assessment.
- Step 22: Error book + bridge to Part 3 (Solids — Volume & Surface Area).
Prerequisite ① — 2D Pythagoras must be a reflex
Every 3D distance formula on this page is just 2D Pythagoras applied twice. If 2D isn't automatic, the rest won't lock in.
The one rule
Three classic right triangles you should know cold:
- $3$–$4$–$5$ ($9 + 16 = 25$)
- $5$–$12$–$13$ ($25 + 144 = 169$)
- $8$–$15$–$17$ ($64 + 225 = 289$)
Mini-problem (verify you remember)
Prerequisite ② — A 3D point has three numbers $(x, y, z)$
Two numbers locate a point on a page. Three numbers locate a point in a room.
The 3D coordinate system uses three mutually perpendicular axes:
- $x$ — how far right from the origin
- $y$ — how far back from the origin
- $z$ — how far up from the origin
A point is written $(x, y, z)$. Origin is $(0, 0, 0)$. The point $(2, 5, 3)$ sits $2$ right, $5$ back, $3$ up.
Mini-problem
Visual ① — The 3D coordinate axes
Three perpendicular axes. A single point pinned in space.
Visual ② — A cube and its space diagonal
The single most-tested 3D segment in AIMO.
Visual ③ — Two points $P, Q$ and the segment $PQ$ in 3D
Imagine a box around the segment with edges parallel to the axes. The segment is the box's space diagonal.
Formula handbook — what to memorise this week
All four formulas you will use today, in one place. Memorise the boxed surd values too.
$\sqrt{2} \approx 1.414$— face diagonal of unit square$\sqrt{3} \approx 1.732$— space diagonal of unit cube$\sqrt{5} \approx 2.236$— appears in the ant-on-cube synthesis$\sqrt{6} \approx 2.449$— appears in regular tetrahedron heights
Derivation ① — 3D distance from two applications of 2D Pythagoras
Read this once carefully. Every other derivation today is a special case of this one.
Setup. Two points $P(x_1, y_1, z_1)$ and $Q(x_2, y_2, z_2)$. Drop the foot $F$ of $Q$ onto the horizontal plane through $P$ — so $F = (x_2, y_2, z_1)$.
Step A (in the horizontal plane). The points $P$ and $F$ have the same $z$, so they lie on the same horizontal plane. Their horizontal distance is the 2D Pythagoras of $\Delta x$ and $\Delta y$:
Step B (vertical right triangle). $F$ sits directly below $Q$, so $FQ$ is vertical with length $|\Delta z|$. The triangle $PFQ$ has a right angle at $F$ (horizontal meets vertical). One more 2D Pythagoras:
Take the square root and you have the formula. The whole thing is just 2D Pythagoras applied twice — once in the plane, once vertically.
Derivation ② — Cube space diagonal $= s\sqrt{3}$
A concrete special case of the distance formula.
Place a cube of edge $s$ at the origin. Opposite vertices are $A = (0,0,0)$ and $G = (s,s,s)$.
Apply the 3D distance formula:
Or, by the two-step picture: $AC$ is the bottom-face diagonal, length $s\sqrt{2}$ (2D Pythagoras on a square). Then $\triangle ACG$ has a right angle at $C$, with $CG = s$ vertical, so
Derivation ③ — Cuboid space diagonal $= \sqrt{a^2 + b^2 + c^2}$
Same proof, three different edge lengths.
A cuboid with edges $a, b, c$ has opposite vertices $(0,0,0)$ and $(a, b, c)$. Apply the 3D distance formula directly:
Famous Pythagorean quadruples (memorise — they appear constantly):
- $1^2 + 2^2 + 2^2 = 9 \Rightarrow d = 3$
- $2^2 + 3^2 + 6^2 = 49 \Rightarrow d = 7$
- $1^2 + 4^2 + 8^2 = 81 \Rightarrow d = 9$
- $3^2 + 4^2 + 12^2 = 169 \Rightarrow d = 13$ (this is WE 3)
- $4^2 + 13^2 + 16^2 = 441 \Rightarrow d = 21$
WE 1 — Plug-in to the 3D distance formula (⭐⭐)
Solution
Compute the three differences first.
Comment. Because $\Delta z = 0$, the two points lie in the same horizontal plane and the 3D formula collapses to 2D Pythagoras on the $3$–$4$–$5$ triangle. This is a common AIMO subcase — when one coordinate matches, drop a dimension.
WE 2 — Cube space diagonal (⭐⭐⭐)
Solution
Place the cube with one vertex at $(0,0,0)$ and opposite vertex at $(6,6,6)$.
Or, use the formula directly: $d = s\sqrt{3} = 6\sqrt{3}$, so $d^2 = 108$.
AIMO note. AIMO answers must be integers $0$–$999$, so when an answer is a surd, the question always asks for $d^2$, $d^2 + k$, or some related integer. Stay on guard for this rewrite.
WE 3 — Cuboid $3 \times 4 \times 12$ (⭐⭐⭐⭐)
Solution
Use formula ③:
The hidden structure. Note $3^2 + 4^2 = 25$, so the floor diagonal is $5$. Then $5^2 + 12^2 = 169 = 13^2$ — the classic $5$–$12$–$13$ triangle reappears as the right triangle "floor-diagonal + vertical edge + space-diagonal". This is the canonical AIMO-friendly cuboid; expect to see it again.
WE 4 — Regular tetrahedron from a cube (⭐⭐⭐⭐)
Solution
Apply the squared 3D distance formula to $A$ and $B$:
Why this works. $A$ and $B$ are opposite corners of the bottom face — they are joined by a face diagonal of the cube. Face diagonal of a cube of edge $s$ has squared length $2s^2 = 2 \cdot 16 = 32$. Check: $\sqrt{32} = 4\sqrt{2}$.
Tetrahedron fact (bonus). Every pair from $\{A, B, C, D\}$ also gives squared distance $32$, so the tetrahedron has all edges $4\sqrt{2}$ — it is regular. This is the cleanest way AIMO embeds a regular tetrahedron in a problem.
WE 5 — Insect on a cube (unfold) (⭐⭐⭐⭐⭐)
Strategy — unfold
The ant cannot fly through the cube; the straight space-diagonal $6\sqrt{3}$ is unreachable. But any path along the surface that crosses exactly two faces can be straightened by unfolding those two faces into one flat rectangle.
Unfold the front face $6 \times 6$ and the top face $6 \times 6$ side-by-side. They form a rectangle $6 \times 12$. The start vertex sits at one corner; the end vertex sits at the opposite corner of this rectangle.
Solve the flat rectangle by 2D Pythagoras
Why this is shortest. Any two-face path can be unfolded — straight lines beat any bent path in the plane. Three-face paths are also possible, but they unfold to a longer rectangle (e.g. $6 \times 18$ gives $d = \sqrt{360}$, worse than $\sqrt{180}$).
Five practice problems — P1 to P5
Mixed difficulty. Try each cold before clicking Hint. Then check the Answer, and only open the Solution if you got it wrong or need to compare technique.
AIMO 2018 · Q5 — Diagonals inside a cube-derived polyhedron
Real AIMO problem · 3 marks · officially classified G3D. We use 3D coordinates to model and count.
Statement
Observe — 5-step breakdown
① Keywords
② Known
③ Unknown
④ Intermediate quantities
⑤ Hidden constraint
Strategy
Count from a single vertex, multiply by $24$, divide by $2$.
- From a vertex $v$, there are $23$ other vertices.
- $7$ lie on the same octagonal face as $v$ (octagon has 8 vertices total).
- $6$ more lie on the other octagonal face at $v$ (the two octagons share 2 vertices — the triangle-edge).
- $2$ lie on the triangle at $v$ — but those are already counted on the two octagons.
- So $v$ shares a face with $7 + 6 = 13$ other vertices.
- Remaining $23 - 13 = 10$ vertices are reached by an interior diagonal from $v$.
- Total interior diagonals $= \dfrac{24 \times 10}{2} = 120$ (divide by 2 because each diagonal joins two vertices).
Why this method is general
The "count from one vertex × $n$ / $2$" technique works for any polyhedron's diagonal count: classify the other vertices into (face-sharing) and (interior), use symmetry to do it from one vertex only, then halve. No coordinates were strictly needed — but if you weren't sure about the face-sharing counts, you could place the cube at the origin with edge $3$ (so trisection points are integers) and read off coordinates directly. That's the 3D coordinate fallback.
D2-A2 (3D distance / coordinate placement) and D2-A3 (3D Pythagoras for face vs space diagonal classification). Used as a fallback to verify which vertex-pairs lie on a common face by checking whether their coordinates satisfy a face equation.
Full solution
The polyhedron has $14$ faces ($8$ triangles + $6$ octagons) and $24$ vertices. Each vertex is on exactly one triangle and two octagons, the two octagons sharing the triangle-edge.
From a fixed vertex $v$:
By symmetry, every vertex donates $10$ interior diagonals; each diagonal joins $2$ vertices, so total $= 24 \cdot 10 / 2 = 120$.
Answer: $\boxed{120}$.
Synthesis — Ant on a cube edge $12$
Combine: unfolding + 2D Pythagoras + the squared-form-for-AIMO trick.
Strategy
- The straight-line space diagonal $12\sqrt{3}$ is interior — unreachable by the ant.
- Any surface path crossing exactly two faces unfolds into a flat rectangle.
- Unfold one face plus an adjacent face: rectangle $12 \times 24$.
- Straight line corner-to-corner is the shortest path (any bent path in a plane is longer).
Compute
Verify shortness
Three-face unfolding gives rectangle $12 \times 36$, $d^2 = 144 + 1296 = 1440$ — worse. Any unfolding crossing the diagonal edge gives the same $12 \times 24$ rectangle by symmetry. So $720$ is the unique minimum.
Atomic-skill matrix + 8 micro-validations
The four skills you must own before moving to Part 3. Two quick validations each.
| Code | Skill | What it sounds like |
|---|---|---|
D2-A1 | 3D coordinate placement | Place a cube/cuboid vertex at the origin and write down the coordinates of every other vertex. |
D2-A2 | 3D distance formula | $d = \sqrt{(\Delta x)^2 + (\Delta y)^2 + (\Delta z)^2}$ — compute $d$ or $d^2$ from two points. |
D2-A3 | 3D Pythagoras / space diagonal | Cube $\to s\sqrt{3}$; cuboid $\to \sqrt{a^2+b^2+c^2}$. Recognise face diagonal vs space diagonal in a triangle. |
D2-A4 | Unfold a surface path | Two adjacent faces of a cube/cuboid unfold to a rectangle; shortest surface path is the straight diagonal in that rectangle. |
Micro-validations
D2-A1: A cube of edge $5$ has one vertex at the origin. What is the coordinate of the diagonally opposite vertex? (type as 5,5,5)D2-A2: Distance from $(0,0,0)$ to $(2,3,6)$?D2-A2: Squared distance from $(1,1,1)$ to $(4,5,1)$?D2-A3: Cube edge $5$. Squared space diagonal?D2-A3: Cuboid $1 \times 4 \times 8$. Space diagonal length?D2-A3: Cuboid $4 \times 13 \times 16$. Space diagonal length?D2-A4: Cube edge $3$. Ant walks on surface from one vertex to the opposite vertex. Square of the shortest path?D2-A4: Cuboid $1 \times 1 \times 4$. Ant walks from $(0,0,0)$ on the surface to $(1,1,4)$. Unfold the two adjacent $1 \times 4$ faces — square of the shortest path?One-page cheat sheet
Take a screenshot. Re-skim it on Sunday morning before the mock exam.
$A_5 = (0,0,s)$, $A_6 = (s,0,s)$, $A_7 = (s,s,s)$, $A_8 = (0,s,s)$
Edge / Face-Diagonal / Space-Diagonal classifier table
For any pair of vertices $(P, Q)$ on a cube or cuboid placed at the origin, count how many of the three coordinates differ:
| Coordinates differing | Segment type | Length on a cube of edge $s$ |
|---|---|---|
| 1 of 3 | Edge | $s$ |
| 2 of 3 | Face diagonal | $s\sqrt{2}$ |
| 3 of 3 | Space diagonal | $s\sqrt{3}$ |
This single table classifies the $\binom{8}{2} = 28$ vertex-pairs of a cube into $12$ edges, $12$ face diagonals (2 per face × 6 faces) and $4$ space diagonals — a useful sanity check in any counting problem.
Common AIMO twists to expect
- Twist 1. Coordinates given negative — the differences are unchanged after squaring. Don't waste time choosing "the right" orientation; squaring handles it.
- Twist 2. Edge given as a face diagonal — divide by $\sqrt{2}$ to recover the edge before using formula ③.
- Twist 3. Asked for $d^2$ instead of $d$ — AIMO's typical way to force an integer answer when the geometry produces a surd.
- Twist 4. Surface path on a cube/cuboid — the answer is never $s\sqrt{3}$. Always unfold.
- Twist 5. "Find a missing coordinate" — set up the distance squared as an equation and solve a quadratic in the unknown coordinate.
⭐ Self-assessment — rate each atomic skill 1 to 5
Be honest. Anything below 3 stars needs a re-attempt today.
📒 Error book + bridge to Part 3
Every question you missed is recorded here. Re-attempt before Sunday.
- Re-attempt every item in your error book until you get it right under 2 minutes cold.
- Re-skim the Cheat Sheet (Step 20). Memorise the cube/cuboid surd table.
- Make sure all four atomic skills are 3-star on your self-assessment.
▶ Next: Part 3 — Solids: Volume & Surface Area