NDA Maths · 3D Geometry

Foundations: Coordinates, Distance & Section in Space

Locate points with three coordinates, then measure between them — distance, the dividing point of a segment, midpoints, centroids, and whether points line up.

Why this matters

Twenty PYQs across 2017–2026, and the launch pad for everything else in the chapter. Questions test the octant/coordinate-plane setup, the distance formula, the section formula (especially the ratio in which a coordinate plane cuts a segment), centroids, and collinearity / shape tests. Six EASY marks live here every other paper — internalise these five concepts and you bank them on sight.

Concept 1 of 5

The 3D coordinate frame — axes, planes, and octants

Intuition

Add a third axis (the z-axis) straight up out of the familiar xy-plane. Now every point needs three numbers (x,y,z)(x, y, z). The three axes are mutually perpendicular and meet at the origin; the three coordinate planes (XY, YZ, ZX) slice all of space into eight corner regions called octants — the 3D version of the four quadrants.

Definition

A point in space is an ordered triple (x,y,z)(x, y, z). The three coordinate planes are:

  • XY-plane: all points with z=0z = 0.
  • YZ-plane: all points with x=0x = 0.
  • ZX-plane: all points with y=0y = 0.

These three planes divide space into 8 octants. The first octant holds points with all three coordinates positive. A point on an axis has its other two coordinates zero; a point on a coordinate plane has exactly one coordinate zero.

Diagram · coordinate planes & octants (drag to rotate)

xyzP(+,+,+)O

Three planes (XY, YZ, ZX), each splitting space in two → 2 × 2 × 2 = 8 octants. P sits in the first octant (all coordinates positive).

LocationConditionExample point
On the x-axisy=0, z=0y = 0,\ z = 0(5,0,0)(5, 0, 0)
On the XY-planez=0z = 0(3,2,0)(3, -2, 0)
On the YZ-planex=0x = 0(0,4,1)(0, 4, 1)
In the first octantx,y,z>0x, y, z > 0(2,3,4)(2, 3, 4)
The three coordinate planes (not the three axes) are what divide space — that gives 8 octants, not 6.
Zero coordinates tell you where a point sits: one zero → on a plane, two zeros → on an axis.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 13D GeometryEASY
Into how many compartments do the coordinate planes divide the space?

[Q64 · Apr · 2020]

Concept 2 of 5

Distance between two points

Intuition

The straight-line distance between two points in space is just Pythagoras done twice: take the differences in xx, yy, and zz, square them, add, and square-root. To find a point's distance from a coordinate axis, drop the coordinate measured along that axis and take the distance of what's left.

Definition

For A(x1,y1,z1)A(x_1, y_1, z_1) and B(x2,y2,z2)B(x_2, y_2, z_2), the distance ABAB is the square root of the summed squared coordinate differences. Distance from a point to the x-axis is y2+z2\sqrt{y^2 + z^2} (ignore xx); similarly x2+z2\sqrt{x^2+z^2} from the y-axis and x2+y2\sqrt{x^2+y^2} from the z-axis.

Distance between two points

AB=(x2x1)2+(y2y1)2+(z2z1)2AB = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2}
  • (x1,y1,z1)(x_1,y_1,z_1)coordinates of AA
  • (x2,y2,z2)(x_2,y_2,z_2)coordinates of BB

Diagram · magnitude = √(x² + y²)

x = 4y = 3|v| = 5

The components x and y are the legs of a right triangle; the vector is the hypotenuse, so |v| = √(x² + y²) = √(16 + 9) = 5. In 3-D the same idea adds a third leg: |v| = √(x² + y² + z²).

Worked example

Find the distance between A(1,2,3)A(1, -2, 3) and B(4,2,15)B(4, 2, 15).
  1. Differences: Δx=41=3, Δy=2(2)=4, Δz=153=12\Delta x = 4-1 = 3,\ \Delta y = 2-(-2) = 4,\ \Delta z = 15-3 = 12.
  2. Square and add: 32+42+122=9+16+144=1693^2 + 4^2 + 12^2 = 9 + 16 + 144 = 169.
  3. Square root: 169=13\sqrt{169} = 13.
Answer:AB=13AB = 13.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 23D GeometryEASY
What is the perpendicular distance from the point (2,3,4)(2,3,4) to the line x01=y00=z00\frac{x-0}{1}=\frac{y-0}{0}=\frac{z-0}{0}?

[Q62 · Apr · 2020]

Don't forget the square root — or any one of the three squared terms

The distance is (Δx)2+(Δy)2+(Δz)2\sqrt{(\Delta x)^2 + (\Delta y)^2 + (\Delta z)^2}, not the bare sum (Δx)2+(Δy)2+(Δz)2(\Delta x)^2 + (\Delta y)^2 + (\Delta z)^2 (that's AB2AB^2). In 3D it is easy to carry only two of the three coordinate differences — Pythagoras runs over ALL THREE axes here, so the zz-term must be included. Leaving out the \sqrt{} gives the squared distance; dropping a term gives a too-small answer.

Concept 3 of 5

Section formula — dividing a segment in a ratio

Intuition

A point that splits a segment ABAB in the ratio m:nm:n is a weighted average of the endpoints — the nearer endpoint gets the larger weight. The classic NDA twist asks in what ratio a coordinate plane cuts a segment: set the relevant coordinate of the dividing point to zero and solve for the ratio.

Definition

The point dividing A(x1,y1,z1)A(x_1,y_1,z_1) and B(x2,y2,z2)B(x_2,y_2,z_2) internally in ratio m:nm:n has each coordinate as the weighted mean below. For external division, replace nn with n-n. To find where the XY-plane (z=0z=0) cuts ABAB, set the zz-coordinate of the dividing point to 0: the ratio is z1:z2-z_1 : z_2 (equivalently z1:z2z_1 : z_2 externally / internally depending on signs).

Internal division in ratio m : n

(mx2+nx1m+n, my2+ny1m+n, mz2+nz1m+n)\left( \frac{m x_2 + n x_1}{m+n},\ \frac{m y_2 + n y_1}{m+n},\ \frac{m z_2 + n z_1}{m+n} \right)
  • m:nm:nratio in which the point divides ABAB
  • A,BA, Bthe two endpoints

Diagram · section formula (internal vs external), m : n = 2 : 1

internalABP21externalABQ

Internal: P = (m·b + n·a)/(m + n) sits between A and B. External: Q = (m·b − n·a)/(m − n) sits beyond B — the minus sign is what pushes it outside. The midpoint is the m = n case, (a + b)/2.

Worked example

In what ratio does the XY-plane divide the segment joining (1,2,4)(1, 2, 4) and (3,1,2)(3, -1, 2)?
  1. The XY-plane is z=0z = 0. Let it divide ABAB in ratio k:1k:1.
  2. The zz-coordinate of the dividing point is k(2)+1(4)k+1\dfrac{k(2) + 1(4)}{k+1}.
  3. Set it to 0: 2k+4=0k=22k + 4 = 0 \Rightarrow k = -2.
  4. A negative ratio means external division: the plane divides ABAB externally in 2:12:1.
Answer:Externally in the ratio 2:12 : 1.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 33D GeometryMODERATE
The xyxy-plane divides the line segment joining the points (1,3,4)(-1,3,4) and (2,5,6)(2,-5,6)

[Q63 · Sep · 2021]

The ratio m : n weights the FAR endpoint by m — don't swap the weights

For PP dividing ABAB in ratio m:nm:n, the coordinate is mx2+nx1m+n\dfrac{m x_2 + n x_1}{m+n} — the larger weight mm multiplies x2x_2 (the point PP is NEARER to BB). Writing mx1+nx2m+n\dfrac{m x_1 + n x_2}{m+n} silently divides in ratio n:mn:m and lands you on the wrong point. Also: m:nm:n is the midpoint ONLY when m=nm=n — never average the endpoints for a 2:12:1 or 1:31:3 split.

Concept 4 of 5

Midpoint and centroid

Intuition

The midpoint averages two points; the centroid of a triangle averages its three vertices. Both are just coordinate-wise means — no ratio bookkeeping. The centroid is the triangle's balance point and divides each median 2:12:1.

Definition

The midpoint of AA and BB averages the two coordinate triples. The centroid GG of triangle ABCABC averages all three vertices: each coordinate of GG is the mean of that coordinate over A,B,CA, B, C.

Centroid of triangle ABC

G=(x1+x2+x33, y1+y2+y33, z1+z2+z33)G = \left( \frac{x_1+x_2+x_3}{3},\ \frac{y_1+y_2+y_3}{3},\ \frac{z_1+z_2+z_3}{3} \right)

Diagram · closed loop & centroid

GABC

Walking the edges A→B→C→A returns you to the start, so AB + BC + CA = 0. The three medians meet at the centroid G = (a + b + c)/3, the average of the vertices' position vectors.

Worked example

Find the centroid of the triangle with vertices A(1,2,3)A(1,2,3), B(4,1,0)B(4,-1,0) and C(7,2,3)C(7,2,3).
  1. Average the x-coordinates: (1+4+7)/3=12/3=4(1+4+7)/3 = 12/3 = 4.
  2. Average the y-coordinates: (21+2)/3=3/3=1(2-1+2)/3 = 3/3 = 1.
  3. Average the z-coordinates: (3+0+3)/3=6/3=2(3+0+3)/3 = 6/3 = 2.
Answer:G=(4,1,2)G = (4, 1, 2).
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 43D GeometryEASY
The centroid of the triangle with vertices A(2,3,3)A(2,-3,3), B(5,3,4)B(5,-3,-4) and C(2,3,2)C(2,-3,-2) is the point

[Q61 · Apr · 2019]

Concept 5 of 5

Collinearity and shape tests

Intuition

Three points are collinear when one segment is a scalar multiple of another — same direction ratios — or, equivalently, when the longest distance equals the sum of the other two. The same distance toolkit classifies triangles (right-angled, isosceles) and quadrilaterals (rectangle, parallelogram): compute side lengths and diagonals and compare.

Definition

Collinearity: A,B,CA, B, C are collinear iff AB\overrightarrow{AB} and AC\overrightarrow{AC} have proportional components, i.e. the same direction ratios. Distance check: collinear iff AB+BC=ACAB + BC = AC (for BB between). Shapes: a triangle is right-angled where two sides satisfy Pythagoras; a parallelogram has equal, bisecting diagonals (midpoint of one diagonal = midpoint of the other); a rectangle additionally has equal diagonals.

Worked example

If the points A(1,1,2)A(1, -1, 2), B(3,k,4)B(3, k, 4) and C(5,3,6)C(5, 3, 6) are collinear, find kk.
  1. Direction ratios of AC=CA=4,4,4\overrightarrow{AC} = C - A = \langle 4, 4, 4\rangle, i.e. 1,1,1\langle 1,1,1\rangle.
  2. Direction ratios of AB=BA=2, k+1, 2\overrightarrow{AB} = B - A = \langle 2,\ k+1,\ 2\rangle.
  3. For collinearity these are proportional: 21=k+11=21=2\dfrac{2}{1} = \dfrac{k+1}{1} = \dfrac{2}{1} = 2.
  4. So k+1=2k=1k + 1 = 2 \Rightarrow k = 1.
Answer:k=1k = 1.
Practice this conceptself-check · 4 quick reps

From the bank · past-year question

Example 53D GeometryMODERATE
If the points (x,y,3)(x, y, -3), (2,0,1)(2, 0, -1) and (4,2,3)(4, 2, 3) lie on a straight line, then what are the values of xx and yy respectively ?

[Q60 · Sep · 2019]

Collinear vs coplanar vs concyclic

NDA likes asking whether four points are collinear, coplanar, or form a specific shape. Three points are ALWAYS coplanar; the real test is collinearity (proportional direction ratios). For four points, check coplanarity via the scalar triple product of three edge vectors = 0.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (3)

  • Distance between two points

    Distance between two points

    AB=(x2x1)2+(y2y1)2+(z2z1)2AB = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2}
  • Section formula — dividing a segment in a ratio

    Internal division in ratio m : n

    (mx2+nx1m+n, my2+ny1m+n, mz2+nz1m+n)\left( \frac{m x_2 + n x_1}{m+n},\ \frac{m y_2 + n y_1}{m+n},\ \frac{m z_2 + n z_1}{m+n} \right)
  • Midpoint and centroid

    Centroid of triangle ABC

    G=(x1+x2+x33, y1+y2+y33, z1+z2+z33)G = \left( \frac{x_1+x_2+x_3}{3},\ \frac{y_1+y_2+y_3}{3},\ \frac{z_1+z_2+z_3}{3} \right)

Reference tables (1)

The 3D coordinate frame — axes, planes, and octants4 rows
LocationConditionExample point
On the x-axisy=0, z=0y = 0,\ z = 0(5,0,0)(5, 0, 0)
On the XY-planez=0z = 0(3,2,0)(3, -2, 0)
On the YZ-planex=0x = 0(0,4,1)(0, 4, 1)
In the first octantx,y,z>0x, y, z > 0(2,3,4)(2, 3, 4)
The three coordinate planes (not the three axes) are what divide space — that gives 8 octants, not 6.
Zero coordinates tell you where a point sits: one zero → on a plane, two zeros → on an axis.

Watch out for (3)

Drill every past-year question on this subtopic

20 questions from the bank — paginated, with cart and Word-export support.