IMOClass 11 › Introduction to 3D Geometry

Introduction to 3D Geometry

Coordinates and Octants

In Class 10 you fixed the position of a point in a plane with two numbers $(x, y)$. To locate a point in space you need a third measurement — how far the point is above or below the plane — so every point now carries an ordered triple $(x, y, z)$.

Take three mutually perpendicular lines meeting at a single point $O$, the origin. These are the coordinate axes: the $x$-axis, the $y$-axis and the $z$-axis. Each axis is a number line, positive on one side of $O$ and negative on the other.

$$\text{A point in space} \;\longleftrightarrow\; \text{an ordered triple } (x,\ y,\ z)$$

The three coordinate planes: Taken two at a time, the axes determine three planes that slice space apart.

PlaneContains axesEquationPoints on it satisfy
$XY$-plane$x$- and $y$-axis$z = 0$third coordinate is $0$
$YZ$-plane$y$- and $z$-axis$x = 0$first coordinate is $0$
$ZX$-plane$z$- and $x$-axis$y = 0$second coordinate is $0$

Reading the coordinates of a point: For a point $P(x, y, z)$, the number $x$ is the perpendicular distance of $P$ from the $YZ$-plane, $y$ from the $ZX$-plane and $z$ from the $XY$-plane — each taken with the appropriate sign. A point lies on an axis when its other two coordinates are zero (e.g. $(5, 0, 0)$ is on the $x$-axis) and on a coordinate plane when one coordinate is zero.

The eight octants: The three coordinate planes cut space into eight compartments called octants. The first octant is where all three coordinates are positive; the others follow the sign pattern below.

Octant$x$$y$$z$Example point
I$+$$+$$+$$(2, 3, 4)$
II$-$$+$$+$$(-2, 3, 4)$
III$-$$-$$+$$(-2, -3, 4)$
IV$+$$-$$+$$(2, -3, 4)$
V$+$$+$$-$$(2, 3, -4)$
VI$-$$+$$-$$(-2, 3, -4)$
VII$-$$-$$-$$(-2, -3, -4)$
VIII$+$$-$$-$$(2, -3, -4)$

Deeper Insight — three dimensions as two dimensions plus a height: The whole framework of 3D geometry is built by bolting one more perpendicular axis onto the familiar 2D plane, and almost every formula you meet later is the 2D version with a single extra term tagged on. Notice the symmetry running through the tables: the first four octants are exactly the four quadrants of the $XY$-plane "lifted" into positive $z$, and octants V–VIII are their mirror images below the $XY$-plane — so the top four all carry $z $ 0>3431$ and the bottom four $z $ 0<3464$. This is why a coordinate being zero is so informative: one zero pins the point to a coordinate plane, two zeros pin it to an axis, and three zeros give the origin itself. Holding this "plane plus height" picture firmly in mind makes the distance and section formulas in the next two topics feel like old friends rather than new rules.

Three dimensional coordinate axes with a labelled point P(x, y, z) 3D Axes and the Point P(x, y, z) x y z O P(x, y, z) xyz The first octant carries all positive coordinates First Octant: all coordinates positive +x +y +z (+, +, +)
Example 1: Name the octant in which each point lies: $A(3, -2, 5)$, $B(-4, -1, -6)$, $C(-2, 5, 1)$.
  1. $A(3, -2, 5)$ has signs $(+, -, +)$ — that is octant IV.
  2. $B(-4, -1, -6)$ has signs $(-, -, -)$ — that is octant VII.
  3. $C(-2, 5, 1)$ has signs $(-, +, +)$ — that is octant II.

Answer: $A$ in octant IV, $B$ in octant VII, $C$ in octant II.

Example 2: On which coordinate plane or axis does each point lie: $P(0, 4, -3)$, $Q(7, 0, 0)$, $R(2, -5, 0)$?
  1. $P(0, 4, -3)$: the $x$-coordinate is $0$, so $P$ lies on the $YZ$-plane.
  2. $Q(7, 0, 0)$: both $y$ and $z$ are $0$, so $Q$ lies on the $x$-axis.
  3. $R(2, -5, 0)$: the $z$-coordinate is $0$, so $R$ lies on the $XY$-plane.

Answer: $P$ on the $YZ$-plane, $Q$ on the $x$-axis, $R$ on the $XY$-plane.

Example 3: Find the coordinates of the feet of the perpendiculars drawn from $P(3, -4, 5)$ to each of the three coordinate planes.
  1. Foot on the $XY$-plane: set $z = 0$, keep $x, y$ — gives $(3, -4, 0)$.
  2. Foot on the $YZ$-plane: set $x = 0$ — gives $(0, -4, 5)$.
  3. Foot on the $ZX$-plane: set $y = 0$ — gives $(3, 0, 5)$.

Answer: $(3, -4, 0)$ on $XY$, $(0, -4, 5)$ on $YZ$, $(3, 0, 5)$ on $ZX$.

Example 4: The point $(x, y, z)$ lies in octant VI. Write the sign of each coordinate, and give one such point.
  1. From the octant table, octant VI has the sign pattern $(-, +, -)$.
  2. So $x < 0$, $y > 0$ and $z < 0$.
  3. A convenient example is $(-1, 4, -2)$.

Answer: signs $(-, +, -)$; one such point is $(-1, 4, -2)$.

Example 5: A point $P$ has $x$-coordinate $6$, $z$-coordinate $-2$ and lies on the $ZX$-plane. Find $P$.
  1. The $ZX$-plane is defined by $y = 0$.
  2. So the $y$-coordinate of $P$ must be $0$.
  3. Combine with the given $x = 6$ and $z = -2$.

Answer: $P = (6, 0, -2)$.

Example 6: Find the image (reflection) of the point $A(2, 3, 4)$ in (a) the $XY$-plane and (b) the $x$-axis.
  1. (a) Reflecting in the $XY$-plane reverses the sign of $z$ only: $(2, 3, -4)$.
  2. (b) Reflecting in the $x$-axis keeps $x$ but reverses both $y$ and $z$: $(2, -3, -4)$.

Answer: (a) $(2, 3, -4)$; (b) $(2, -3, -4)$.

Quick recap
  • A point in space needs an ordered triple $(x, y, z)$; the three axes meet at the origin $O(0,0,0)$.
  • The three coordinate planes are $XY$ ($z=0$), $YZ$ ($x=0$) and $ZX$ ($y=0$).
  • One zero coordinate places a point on a coordinate plane; two zeros place it on an axis.
  • The planes cut space into 8 octants; octant I is $(+,+,+)$ and octants I–IV sit above the $XY$-plane, V–VIII below it.
✓ Quick check
Distance between (−2,1,4) and (1,5,8) is:
Distance = √(3²+4²+4²)=√41.
What is the perpendicular distance of the point P(3, 4, 5) from the y-axis?
The perpendicular distance of a point P(x, y, z) from the y-axis is given by √(x² + z²). For P(3, 4, 5), distance = √(3² + 5²) = √(9 + 25) = √34.

Distance Formula

The distance between two points in space follows directly from Pythagoras’ theorem applied twice. If $P(x_1, y_1, z_1)$ and $Q(x_2, y_2, z_2)$ are any two points, the distance $PQ$ is the length of the straight segment joining them.

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

This is exactly the 2D distance formula with one extra squared term — the $z$-difference — added under the root. Compare the two side by side.

SettingDistance formula
In a plane (2D)$\sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}$
In space (3D)$\sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2 + (z_2 - z_1)^2}$

Distance from the origin: Putting $P = O(0, 0, 0)$ gives a handy special case.

$$OQ = \sqrt{x_2^{\,2} + y_2^{\,2} + z_2^{\,2}}$$

What the formula lets you prove: Because distance is unambiguous, you can settle a great many geometric questions purely by computing lengths. Three points are collinear when the sum of two of the three pairwise distances equals the third. A triangle is isosceles if two sides are equal, equilateral if all three are equal, and right-angled when the three side-lengths satisfy $a^2 + b^2 = c^2$.

Deeper Insight — why one extra term is all you need: The 3D distance formula is not a new idea so much as Pythagoras’ theorem used twice. First imagine the box (rectangular parallelepiped) whose opposite corners are $P$ and $Q$ and whose edges are parallel to the axes; the diagonal of its base has length $\sqrt{(\Delta x)^2 + (\Delta y)^2}$ by the ordinary plane theorem. That base diagonal and the vertical edge of length $|\Delta z|$ are themselves perpendicular, so a second application of Pythagoras gives the space diagonal $\sqrt{(\Delta x)^2 + (\Delta y)^2 + (\Delta z)^2}$. This "Pythagoras twice" argument is why every coordinate dimension contributes its own squared difference, and it generalises cleanly to any number of dimensions. The practical payoff is huge: shape problems that would be hard to picture in space — is this triangle right-angled? are these four points the vertices of a square? — collapse into routine arithmetic the moment you compute a few distances.

Distance between two points P and Q in space Distance PQ in Space x y z O P Q d = PQ The distance formula is Pythagoras applied twice Pythagoras, applied twice base diagonal√((Δx)²+(Δy)²) space diagonal√((Δx)²+(Δy)²+(Δz)²)
Example 1: Find the distance between $P(1, -3, 4)$ and $Q(4, 1, 6)$.
  1. Differences: $x_2 - x_1 = 3$, $y_2 - y_1 = 4$, $z_2 - z_1 = 2$.
  2. Square and add: $3^2 + 4^2 + 2^2 = 9 + 16 + 4 = 29$.
  3. $PQ = \sqrt{29}$.

Answer: $PQ = \sqrt{29}$ units.

Example 2: Find the distance of the point $A(2, -1, 2)$ from the origin.
  1. Use $OA = \sqrt{x^2 + y^2 + z^2}$.
  2. $OA = \sqrt{2^2 + (-1)^2 + 2^2} = \sqrt{4 + 1 + 4}$.
  3. $= \sqrt{9} = 3$.

Answer: $OA = 3$ units.

Example 3: Show that the points $A(0, 7, 10)$, $B(-1, 6, 6)$ and $C(-4, 9, 6)$ form a right-angled isosceles triangle.
  1. $AB^2 = (-1-0)^2 + (6-7)^2 + (6-10)^2 = 1 + 1 + 16 = 18$.
  2. $BC^2 = (-4+1)^2 + (9-6)^2 + (6-6)^2 = 9 + 9 + 0 = 18$.
  3. $CA^2 = (0+4)^2 + (7-9)^2 + (10-6)^2 = 16 + 4 + 16 = 36$.
  4. $AB = BC$ ($= \sqrt{18}$), so the triangle is isosceles. Also $AB^2 + BC^2 = 18 + 18 = 36 = CA^2$, so it is right-angled at $B$.

Answer: $AB = BC = \sqrt{18}$ and $AB^2 + BC^2 = CA^2$, so $\triangle ABC$ is right-angled isosceles.

Example 4: Find the value of $x$ so that the point $P(x, 2, 3)$ is at a distance $5$ from $Q(1, -1, 3)$.
  1. $PQ^2 = (x-1)^2 + (2+1)^2 + (3-3)^2 = (x-1)^2 + 9$.
  2. Set $PQ = 5$, so $PQ^2 = 25$: $(x-1)^2 + 9 = 25$.
  3. $(x-1)^2 = 16 \Rightarrow x - 1 = \pm 4$.
  4. $x = 5$ or $x = -3$.

Answer: $x = 5$ or $x = -3$.

Example 5: Show that the points $A(-2, 3, 5)$, $B(1, 2, 3)$ and $C(7, 0, -1)$ are collinear.
  1. $AB = \sqrt{3^2 + (-1)^2 + (-2)^2} = \sqrt{9 + 1 + 4} = \sqrt{14}$.
  2. $BC = \sqrt{6^2 + (-2)^2 + (-4)^2} = \sqrt{36 + 4 + 16} = \sqrt{56} = 2\sqrt{14}$.
  3. $AC = \sqrt{9^2 + (-3)^2 + (-6)^2} = \sqrt{81 + 9 + 36} = \sqrt{126} = 3\sqrt{14}$.
  4. Since $AB + BC = \sqrt{14} + 2\sqrt{14} = 3\sqrt{14} = AC$, the points are collinear.

Answer: $AB + BC = AC$, so $A$, $B$, $C$ are collinear.

Example 6: Find the point on the $y$-axis which is equidistant from $A(3, 1, 2)$ and $B(5, 5, 2)$.
  1. A point on the $y$-axis has the form $P(0, y, 0)$.
  2. $PA^2 = 9 + (y-1)^2 + 4 = (y-1)^2 + 13$.
  3. $PB^2 = 25 + (y-5)^2 + 4 = (y-5)^2 + 29$.
  4. Set $PA^2 = PB^2$: $(y-1)^2 + 13 = (y-5)^2 + 29 \Rightarrow y^2 - 2y + 14 = y^2 - 10y + 54$.
  5. $8y = 40 \Rightarrow y = 5$.

Answer: The required point is $(0, 5, 0)$.

Quick recap
  • Distance: $PQ = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2}$ — the 2D formula plus a $z$-term.
  • Distance from origin: $OQ = \sqrt{x^2 + y^2 + z^2}$.
  • Three points are collinear when the largest pairwise distance equals the sum of the other two.
  • Use side-lengths to classify triangles: isosceles (two equal), equilateral (all equal), right-angled ($a^2+b^2=c^2$).
  • The formula is just Pythagoras applied twice — once across the base, once up to the point.
✓ Quick check
The midpoint of (−4, −2, 6) and (4, 2, −6) is:
Average of corresponding coordinates gives (0,0,0).
Distance between (−1, −2, −2) and origin is:
Distance = √(1+4+4)=√9=3.

Section and Centroid

Suppose a point $R$ lies on the segment joining $P(x_1, y_1, z_1)$ and $Q(x_2, y_2, z_2)$ and divides it in the ratio $m : n$. The section formula gives the coordinates of $R$ — again the plane version with a third coordinate handled identically.

Internal division (point $R$ lies between $P$ and $Q$):

$$R = \left(\dfrac{mx_2 + nx_1}{m + n},\ \dfrac{my_2 + ny_1}{m + n},\ \dfrac{mz_2 + nz_1}{m + n}\right)$$

External division (point $R$ lies on the line but outside the segment): replace $n$ by $-n$.

$$R = \left(\dfrac{mx_2 - nx_1}{m - n},\ \dfrac{my_2 - ny_1}{m - n},\ \dfrac{mz_2 - nz_1}{m - n}\right)$$

Midpoint (the special internal case $m = n = 1$):

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

Centroid of a triangle with vertices $A(x_1,y_1,z_1)$, $B(x_2,y_2,z_2)$, $C(x_3,y_3,z_3)$ — the average of the three vertices:

$$G = \left(\dfrac{x_1 + x_2 + x_3}{3},\ \dfrac{y_1 + y_2 + y_3}{3},\ \dfrac{z_1 + z_2 + z_3}{3}\right)$$
CaseRatio usedCoordinate (e.g. $x$)
Internal division$m : n$$\dfrac{mx_2 + nx_1}{m+n}$
External division$m : n$ (outside)$\dfrac{mx_2 - nx_1}{m-n}$
Midpoint$1 : 1$$\dfrac{x_1 + x_2}{2}$
Centroid (triangle)medians at $2:1$$\dfrac{x_1 + x_2 + x_3}{3}$

Deeper Insight — one weighted average, four results: Every formula above is really the same operation — a weighted average of coordinates — wearing different clothes. Internal division weights $Q$ by $m$ and $P$ by $n$ (notice the cross-pairing: the $m$ that measures the distance toward $Q$ multiplies $P$’s neighbour $x_2$), and dividing by $m+n$ keeps the result a genuine average. The midpoint is just the symmetric case $1:1$, and external division is the same algebra with one weight made negative, which is why the sign flips to $m - n$. Even the centroid fits the pattern: it sits two-thirds of the way along each median, dividing it $2:1$ from the vertex, and that ratio is exactly what produces the clean average of all three vertices. Seeing these as one idea means you only have to remember the internal-division formula carefully; the others are quick specialisations. A practical warning: keep the order $(P, Q)$ and the ratio $(m, n)$ consistent, because swapping them silently changes which point you compute.

Point R divides segment PQ internally in the ratio m to n Internal Division in Ratio m : n P(x₁, y₁, z₁) R Q(x₂, y₂, z₂) mn Centroid G of a triangle is the average of its three vertices Centroid G = average of A, B, C G ABC
Example 1: Find the coordinates of the point that divides the line segment joining $P(1, -2, 3)$ and $Q(3, 4, -5)$ internally in the ratio $2 : 3$.
  1. Here $m = 2$, $n = 3$, $P = (1,-2,3)$, $Q = (3,4,-5)$, and $m + n = 5$.
  2. $x = \dfrac{2(3) + 3(1)}{5} = \dfrac{6 + 3}{5} = \dfrac{9}{5}$.
  3. $y = \dfrac{2(4) + 3(-2)}{5} = \dfrac{8 - 6}{5} = \dfrac{2}{5}$.
  4. $z = \dfrac{2(-5) + 3(3)}{5} = \dfrac{-10 + 9}{5} = -\dfrac{1}{5}$.

Answer: $\left(\dfrac{9}{5},\ \dfrac{2}{5},\ -\dfrac{1}{5}\right)$.

Example 2: Find the midpoint of the segment joining $A(4, -3, 2)$ and $B(-2, 5, 8)$.
  1. $x = \dfrac{4 + (-2)}{2} = 1$.
  2. $y = \dfrac{-3 + 5}{2} = 1$.
  3. $z = \dfrac{2 + 8}{2} = 5$.

Answer: Midpoint $= (1, 1, 5)$.

Example 3: Find the point which divides the segment joining $P(2, 1, 4)$ and $Q(5, -2, 1)$ externally in the ratio $2 : 1$.
  1. External division: $m = 2$, $n = 1$, so $m - n = 1$.
  2. $x = \dfrac{2(5) - 1(2)}{1} = 10 - 2 = 8$.
  3. $y = \dfrac{2(-2) - 1(1)}{1} = -4 - 1 = -5$.
  4. $z = \dfrac{2(1) - 1(4)}{1} = 2 - 4 = -2$.

Answer: $(8, -5, -2)$.

Example 4: Find the centroid of the triangle whose vertices are $A(1, 2, 3)$, $B(3, -1, 5)$ and $C(2, 5, 1)$.
  1. $x = \dfrac{1 + 3 + 2}{3} = \dfrac{6}{3} = 2$.
  2. $y = \dfrac{2 + (-1) + 5}{3} = \dfrac{6}{3} = 2$.
  3. $z = \dfrac{3 + 5 + 1}{3} = \dfrac{9}{3} = 3$.

Answer: Centroid $G = (2, 2, 3)$.

Example 5: Find the ratio in which the $YZ$-plane divides the segment joining $A(-2, 4, 7)$ and $B(3, -5, 8)$.
  1. Let the plane divide $AB$ in the ratio $k : 1$. On the $YZ$-plane the $x$-coordinate is $0$.
  2. $x = \dfrac{k(3) + 1(-2)}{k + 1} = 0 \Rightarrow 3k - 2 = 0$.
  3. $k = \dfrac{2}{3}$, so the ratio is $\dfrac{2}{3} : 1 = 2 : 3$.

Answer: The $YZ$-plane divides $AB$ in the ratio $2 : 3$ (internally).

Example 6: The midpoint of the segment joining $A(2, -1, 4)$ and $B(x, y, z)$ is $M(3, 1, 2)$. Find $B$.
  1. $\dfrac{2 + x}{2} = 3 \Rightarrow 2 + x = 6 \Rightarrow x = 4$.
  2. $\dfrac{-1 + y}{2} = 1 \Rightarrow -1 + y = 2 \Rightarrow y = 3$.
  3. $\dfrac{4 + z}{2} = 2 \Rightarrow 4 + z = 4 \Rightarrow z = 0$.

Answer: $B = (4, 3, 0)$.

Quick recap
  • Internal division ($m:n$): $\left(\dfrac{mx_2+nx_1}{m+n},\ \dfrac{my_2+ny_1}{m+n},\ \dfrac{mz_2+nz_1}{m+n}\right)$.
  • External division: same formula with $n$ replaced by $-n$ (so the denominator becomes $m-n$).
  • Midpoint is the case $m=n=1$: average of the two endpoints' coordinates.
  • Centroid of a triangle is the average of the three vertices; medians meet there in the ratio $2:1$.
  • Keep the point-order $(P,Q)$ and ratio $(m,n)$ consistent — swapping them changes the answer.
✓ Quick check
The length of the longest pole that can be kept in a rectangular warehouse of dimensions 12 m × 9 m × 8 m is:
The longest pole aligns with the main diagonal of the cuboid. Length = √(l² + b² + h²) = √(12² + 9² + 8²) = √(144 + 81 + 64) = √289 = 17 m.
A delivery drone moves from (0,0,0) to (3,4,12). Total straight-line distance travelled is:
Distance = √(9+16+144)=√169=13.
Ready to test this chapter?
Take the Chapter Test →