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.
The three coordinate planes: Taken two at a time, the axes determine three planes that slice space apart.
| Plane | Contains axes | Equation | Points 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.
- $A(3, -2, 5)$ has signs $(+, -, +)$ — that is octant IV.
- $B(-4, -1, -6)$ has signs $(-, -, -)$ — that is octant VII.
- $C(-2, 5, 1)$ has signs $(-, +, +)$ — that is octant II.
Answer: $A$ in octant IV, $B$ in octant VII, $C$ in octant II.
- $P(0, 4, -3)$: the $x$-coordinate is $0$, so $P$ lies on the $YZ$-plane.
- $Q(7, 0, 0)$: both $y$ and $z$ are $0$, so $Q$ lies on the $x$-axis.
- $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.
- Foot on the $XY$-plane: set $z = 0$, keep $x, y$ — gives $(3, -4, 0)$.
- Foot on the $YZ$-plane: set $x = 0$ — gives $(0, -4, 5)$.
- 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$.
- From the octant table, octant VI has the sign pattern $(-, +, -)$.
- So $x < 0$, $y > 0$ and $z < 0$.
- A convenient example is $(-1, 4, -2)$.
Answer: signs $(-, +, -)$; one such point is $(-1, 4, -2)$.
- The $ZX$-plane is defined by $y = 0$.
- So the $y$-coordinate of $P$ must be $0$.
- Combine with the given $x = 6$ and $z = -2$.
Answer: $P = (6, 0, -2)$.
- (a) Reflecting in the $XY$-plane reverses the sign of $z$ only: $(2, 3, -4)$.
- (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)$.
- 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.
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.
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.
| Setting | Distance 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.
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.
- Differences: $x_2 - x_1 = 3$, $y_2 - y_1 = 4$, $z_2 - z_1 = 2$.
- Square and add: $3^2 + 4^2 + 2^2 = 9 + 16 + 4 = 29$.
- $PQ = \sqrt{29}$.
Answer: $PQ = \sqrt{29}$ units.
- Use $OA = \sqrt{x^2 + y^2 + z^2}$.
- $OA = \sqrt{2^2 + (-1)^2 + 2^2} = \sqrt{4 + 1 + 4}$.
- $= \sqrt{9} = 3$.
Answer: $OA = 3$ units.
- $AB^2 = (-1-0)^2 + (6-7)^2 + (6-10)^2 = 1 + 1 + 16 = 18$.
- $BC^2 = (-4+1)^2 + (9-6)^2 + (6-6)^2 = 9 + 9 + 0 = 18$.
- $CA^2 = (0+4)^2 + (7-9)^2 + (10-6)^2 = 16 + 4 + 16 = 36$.
- $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.
- $PQ^2 = (x-1)^2 + (2+1)^2 + (3-3)^2 = (x-1)^2 + 9$.
- Set $PQ = 5$, so $PQ^2 = 25$: $(x-1)^2 + 9 = 25$.
- $(x-1)^2 = 16 \Rightarrow x - 1 = \pm 4$.
- $x = 5$ or $x = -3$.
Answer: $x = 5$ or $x = -3$.
- $AB = \sqrt{3^2 + (-1)^2 + (-2)^2} = \sqrt{9 + 1 + 4} = \sqrt{14}$.
- $BC = \sqrt{6^2 + (-2)^2 + (-4)^2} = \sqrt{36 + 4 + 16} = \sqrt{56} = 2\sqrt{14}$.
- $AC = \sqrt{9^2 + (-3)^2 + (-6)^2} = \sqrt{81 + 9 + 36} = \sqrt{126} = 3\sqrt{14}$.
- 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.
- A point on the $y$-axis has the form $P(0, y, 0)$.
- $PA^2 = 9 + (y-1)^2 + 4 = (y-1)^2 + 13$.
- $PB^2 = 25 + (y-5)^2 + 4 = (y-5)^2 + 29$.
- Set $PA^2 = PB^2$: $(y-1)^2 + 13 = (y-5)^2 + 29 \Rightarrow y^2 - 2y + 14 = y^2 - 10y + 54$.
- $8y = 40 \Rightarrow y = 5$.
Answer: The required point is $(0, 5, 0)$.
- 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.
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$):
External division (point $R$ lies on the line but outside the segment): replace $n$ by $-n$.
Midpoint (the special internal case $m = n = 1$):
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:
| Case | Ratio used | Coordinate (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.
- Here $m = 2$, $n = 3$, $P = (1,-2,3)$, $Q = (3,4,-5)$, and $m + n = 5$.
- $x = \dfrac{2(3) + 3(1)}{5} = \dfrac{6 + 3}{5} = \dfrac{9}{5}$.
- $y = \dfrac{2(4) + 3(-2)}{5} = \dfrac{8 - 6}{5} = \dfrac{2}{5}$.
- $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)$.
- $x = \dfrac{4 + (-2)}{2} = 1$.
- $y = \dfrac{-3 + 5}{2} = 1$.
- $z = \dfrac{2 + 8}{2} = 5$.
Answer: Midpoint $= (1, 1, 5)$.
- External division: $m = 2$, $n = 1$, so $m - n = 1$.
- $x = \dfrac{2(5) - 1(2)}{1} = 10 - 2 = 8$.
- $y = \dfrac{2(-2) - 1(1)}{1} = -4 - 1 = -5$.
- $z = \dfrac{2(1) - 1(4)}{1} = 2 - 4 = -2$.
Answer: $(8, -5, -2)$.
- $x = \dfrac{1 + 3 + 2}{3} = \dfrac{6}{3} = 2$.
- $y = \dfrac{2 + (-1) + 5}{3} = \dfrac{6}{3} = 2$.
- $z = \dfrac{3 + 5 + 1}{3} = \dfrac{9}{3} = 3$.
Answer: Centroid $G = (2, 2, 3)$.
- Let the plane divide $AB$ in the ratio $k : 1$. On the $YZ$-plane the $x$-coordinate is $0$.
- $x = \dfrac{k(3) + 1(-2)}{k + 1} = 0 \Rightarrow 3k - 2 = 0$.
- $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).
- $\dfrac{2 + x}{2} = 3 \Rightarrow 2 + x = 6 \Rightarrow x = 4$.
- $\dfrac{-1 + y}{2} = 1 \Rightarrow -1 + y = 2 \Rightarrow y = 3$.
- $\dfrac{4 + z}{2} = 2 \Rightarrow 4 + z = 4 \Rightarrow z = 0$.
Answer: $B = (4, 3, 0)$.
- 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.