3D Coordinate Geometry
What You'll Learn
- 1Construct the three mutually perpendicular axes and locate the eight octants
- 2Derive the distance formula in space from two applications of Pythagoras
- 3Apply the section formula in three coordinates and invert the midpoint formula
- 4Decide from the sign pattern alone which octant a given point occupies
A sheet of paper fixes a point with two numbers; a room needs three, because height cannot be recovered from a floor plan. Adding one perpendicular axis turns every formula you already know into a three-coordinate version of itself: distances pick up an extra square, midpoints pick up an extra average, and section ratios get a third component. The algebra is never harder, but the bookkeeping is, and marks are lost to a missing third coordinate far more often than to a conceptual error. This lesson develops the geometry of space from the axes outward and then works four problems in the pattern the board sets.
Building the third axis
Start with two perpendicular lines meeting at an origin , add a third line through perpendicular to the plane of the first two, and label the three directions the -, - and -axis. Every point in space is now an ordered triple obtained by dropping perpendiculars to the three axes, and the three coordinates are signed distances along mutually perpendicular directions.
Three pairs of points are special: any point on the -axis has the form , on the -axis , and on the -axis . Three planes arise just as naturally. The plane is the floor, containing every point whose height vanishes; is the wall spanned by the and axes; is the remaining wall. These coordinate planes cut space into eight open regions called octants, numbered I to VIII, and the octant of a point is read straight from the signs of its three coordinates.
| Quantity | In the plane | In space |
|---|---|---|
| Coordinates of a point | ||
| Locus of the origin's floor | the axis | the plane |
| Distance between two points | square root of | square root of |
| Midpoint of a segment | averages of two coordinates | averages of three coordinates |
| Point dividing in ratio | two weighted means | three weighted means |
| Centroid of a triangle | average of three and three | averages of three , three and three |
| Regions of space | four quadrants | eight octants |
Distance in space
Drop perpendiculars from two points and onto the floor. Their projections and are separated by , which is the planar distance formula. The segment together with the vertical rise and the horizontal run forms a right triangle, so one more application of Pythagoras gives
The order of subtraction inside each square is irrelevant because the square erases the sign, which is why to and to give the same answer. Setting every coordinate of one point to zero recovers the distance of a point from the origin, , a special case that appears constantly as a first sub-question.
Dividing a segment in space
Let the point divide the join of and internally in the ratio . Similar triangles in the three coordinate directions give one weighted mean per axis:
Two specialisations are worth memorising. With the weights equalise and the result is the midpoint
and with equal to 1 the formula becomes a linear interpolation, which is how computer graphics places objects between two anchors.
First pair of numerical problems
Second pair of numerical problems
Reading octants and classifying signs
The first octant is the region where all three coordinates are positive, and the remaining seven are obtained by flipping signs in a fixed order. Points lying in a coordinate plane or on an axis belong to no octant at all, so a question that hands you a zero coordinate is testing whether you notice that. Distance questions and section questions, by contrast, never care about octants, since squares and averages are indifferent to sign.
| Octant | Sign of | Sign of | Sign of |
|---|---|---|---|
| I | positive | positive | positive |
| II | negative | positive | positive |
| III | negative | negative | positive |
| IV | positive | negative | positive |
| V | positive | positive | negative |
| VI | negative | positive | negative |
| VII | negative | negative | negative |
| VIII | positive | negative | negative |
How CBSE frames 3D questions
A one mark question typically gives two points and asks for their distance, or names an octant and asks for a coordinate pattern. Three and four mark questions chain a section or midpoint computation onto a distance computation, which is why the worked problems above each end with a length. Another recurring form supplies the midpoint and one endpoint and expects the midpoint formula to be solved backwards. Watch for points with a zero coordinate: the question is often a disguised test of whether you know that such a point lies on a plane or an axis rather than inside an octant. Always carry all three coordinates through every line of working, because the third component is where most arithmetic slips occur.
Verifying the arithmetic in Python
The first script implements the three formulas and prints the worked answers above, so a solution can be checked term by term.
import math
def distance(p, q):
return math.sqrt(sum((a - b) ** 2 for a, b in zip(p, q)))
def midpoint(p, q):
return tuple((a + b) / 2 for a, b in zip(p, q))
def section(p, q, m, n):
total = m + n
return tuple((m * b + n * a) / total for a, b in zip(p, q))
A, B = (1, 2, 3), (4, 6, 8)
print("distance A to B :", round(distance(A, B), 4))
print("midpoint of A and B :", midpoint(A, B))
print("point in ratio 2:1 :", section(A, B, 2, 1))
print("distance origin to R :", round(distance((0, 0, 0), (3, 4, 5)), 4))
The second script classifies octants and confirms the reverse midpoint calculation of Example 4.
OCTANTS = {
(True, True, True): "I", (False, True, True): "II",
(False, False, True): "III", (True, False, True): "IV",
(True, True, False): "V", (False, True, False): "VI",
(False, False, False): "VII", (True, False, False): "VIII",
}
def octant(p):
if any(c == 0 for c in p):
return "on an axis or coordinate plane: no octant"
return OCTANTS[tuple(c > 0 for c in p)]
for point in [(2, 3, 4), (-2, 3, 4), (1, -4, -5), (0, 2, 7)]:
print(point, "->", octant(point))
A, M = (1, 2, 6), (3, 4, 5)
C = tuple(2 * m - a for m, a in zip(M, A))
print("recovered C :", C)
print("midpoint of A and C :", midpoint(A, C))
Common Mistakes
Carrying only two coordinates through a three coordinate problem
Fix: Write the triple at every stage: the section and midpoint formulas are the plane formulas repeated verbatim on the third axis, and the missing component is the commonest lost mark.
Assigning the ratio m to the wrong endpoint
Fix: In m to n, the weight m multiplies the coordinates of the second point and n multiplies the first, so check the answer lies nearer the endpoint whose weight is larger.
Claiming a point with a zero coordinate lies in an octant
Fix: Any point with a zero coordinate sits on a coordinate plane or an axis and therefore belongs to no octant at all.
Key Takeaways
- Space needs three signed coordinates because height cannot be recovered from two, and the eight octants are cut out by the three coordinate planes
- The distance formula is the planar formula plus one more squared difference, obtained by applying Pythagoras twice
- The section formula produces three weighted means and collapses to the midpoint when the ratio equals one to one
- Solving a midpoint question backwards uses C equals two times M minus A, and the recovered length must be exactly twice the half length