The rectangular coordinate system in space fixes the position of every point using three mutually perpendicular axes, OX, OY and OZ, that meet at the origin O. A point is written as an ordered triple (x,y,z), where each number is its signed perpendicular distance from one coordinate plane. The rectangular coordinate system in space is the base for the distance formula, section formula, centroid and area results of 3D geometry, and it feeds directly into lines and planes for JEE Main and JEE Advanced.
Key Formulas: Quick Reference
Position vector of P(x,y,z): r=xi^+yj^+zk^ and OP=x2+y2+z2
Distance: PQ=(x2−x1)2+(y2−y1)2+(z2−z1)2
Distance of P(x,y,z) from the x, y and z axes: y2+z2, z2+x2, x2+y2
Origin shifted to O′(x′,y′,z′): x1=x−x′, y1=y−y′, z1=z−z′
Internal division in m:n: x=m+nmx2+nx1; external division: x=m−nmx2−nx1 (same pattern for y and z)
Midpoint: x=2x1+x2 (same pattern for y and z)
Centroid of a triangle: x=3x1+x2+x3; of a tetrahedron: x=4x1+x2+x3+x4 (same pattern for y and z)
Area of a triangle: Δ=21∣AB×AC∣ and Δ2=Δx2+Δy2+Δz2
Volume of a tetrahedron: V=61[ABACAD]
1. Coordinate Axes and Coordinate Planes
Let O be any point in space and let X′OX, Y′OY and Z′OZ be three lines through O that are perpendicular to each other. These lines are called the coordinate axes and O is called the origin. The planes XY, YZ and ZX, each containing two of the axes, are called the coordinate planes.
The axes are taken in right-handed order: if the fingers of your right hand curl from OX towards OY, the thumb points along OZ. Following NCERT, every figure on this page draws the x-axis coming towards you, the y-axis to the right and the z-axis upwards.
Figure 1: The rectangular coordinate system in space. The axes X′OX, Y′OY, Z′OZ meet at the origin O and pairs of axes form the XY, YZ and ZX coordinate planes.
2. Octants and the Sign Convention
The three coordinate planes divide space into eight octants. The signs of the three coordinates of a point decide which octant it lies in.
Figure 2: The three coordinate planes split space into eight octants. The sign pattern (±,±,±) of a point's coordinates fixes its octant.
Octant
Sign of x
Sign of y
Sign of z
Example point
I
+
+
+
(2,3,1)
II
−
+
+
(−2,3,1)
III
−
−
+
(−2,−3,1)
IV
+
−
+
(2,−3,1)
V
+
+
−
(2,3,−1)
VI
−
+
−
(−2,3,−1)
VII
−
−
−
(−2,−3,−1)
VIII
+
−
−
(2,−3,−1)
A point with a zero coordinate is not inside any octant. With one zero it lies on a coordinate plane, for example (0,3,−2) is on the YZ-plane; with two zeros it lies on an axis, for example (0,0,5) is on the z-axis.
3. Coordinates of a Point in Space
Consider a point P in space. Its position is given by the triad (x,y,z), where x, y and z are the perpendicular distances of P from the YZ-plane, ZX-plane and XY-plane respectively, each taken with a sign.
How to read the coordinates of P
Drop a perpendicular PL from P to the XY-plane. Its algebraic length is the z-coordinate.
From the foot L, drop perpendiculars to the x-axis and the y-axis. Their algebraic lengths give the y-coordinate and the x-coordinate, so OA=x and OB=y.
Equivalently, complete the cuboid with O and P as opposite corners. Then PM=x, PN=y and PL=z.
Figure 3: Coordinates of a point in space. P(x,y,z) and O are opposite corners of a cuboid, so PM=x, PN=y and PL=z are the perpendicular distances from the three coordinate planes.
Position vector of a point
If i^, j^ and k^ are unit vectors along OX, OY and OZ, the position vector of P(x,y,z) with respect to O is
OP=r=xi^+yj^+zk^,OP=∣r∣=x2+y2+z2
In short, the point is often written simply as (x,y,z).
Figure 4: Position vector r=OP=xi^+yj^+zk^ built head to tail from its three components along the coordinate axes.
Points on the axes and coordinate planes
Set of points
Set notation
General point
x-axis
{(x,y,z)∣y=z=0}
(x,0,0)
y-axis
{(x,y,z)∣x=z=0}
(0,y,0)
z-axis
{(x,y,z)∣x=y=0}
(0,0,z)
XY-plane
{(x,y,z)∣z=0}
(x,y,0)
YZ-plane
{(x,y,z)∣x=0}
(0,y,z)
ZX-plane
{(x,y,z)∣y=0}
(x,0,z)
4. Distance Formula
The distance between the points P(x1,y1,z1) and Q(x2,y2,z2) is
PQ=(x2−x1)2+(y2−y1)2+(z2−z1)2
Why it works
Build the cuboid whose edges are parallel to the axes and whose diagonal is PQ (Figure 5). In the horizontal face, PS=∣x2−x1∣ and SR=∣y2−y1∣, so PR2=(x2−x1)2+(y2−y1)2. The edge RQ=∣z2−z1∣ is vertical, so △PRQ is right-angled at R and PQ2=PR2+RQ2.
Figure 5: Proof of the distance formula. Pythagoras in △PSR and then in △PRQ gives PQ2=(x2−x1)2+(y2−y1)2+(z2−z1)2.
Vector method
If the position vectors of A and B are OA=x1i^+y1j^+z1k^ and OB=x2i^+y2j^+z2k^, then AB=OB−OA, so
AB=∣OB−OA∣=∣(x2−x1)i^+(y2−y1)j^+(z2−z1)k^∣
⇒AB=(x2−x1)2+(y2−y1)2+(z2−z1)2
Putting x1=y1=z1=0 gives the distance of a point from the origin, OP=x2+y2+z2.
Solved Example 1
Show that the points (0,7,10), (−1,6,6) and (−4,9,6) form a right-angled isosceles triangle.
Solution:
Let A(0,7,10), B(−1,6,6) and C(−4,9,6).
AB2=(0+1)2+(7−6)2+(10−6)2=1+1+16=18, so AB=32.
BC2=(−1+4)2+(6−9)2+(6−6)2=9+9+0=18, so BC=32.
AC2=(0+4)2+(7−9)2+(10−6)2=16+4+16=36, so AC=6.
Since AB2+BC2=36=AC2, ∠ABC=90∘. Also AB=BC. Hence △ABC is right-angled and isosceles.
Solved Example 2
Show, using the distance formula, that the points (4,5,−5), (0,−11,3) and (2,−3,−1) are collinear.
Solution:
Let A(4,5,−5), B(0,−11,3) and C(2,−3,−1).
AB=(4−0)2+(5+11)2+(−5−3)2=16+256+64=336=421
BC=(0−2)2+(−11+3)2+(3+1)2=4+64+16=84=221
AC=(4−2)2+(5+3)2+(−5+1)2=4+64+16=84=221
Since BC+AC=421=AB, the points A, B, C are collinear and C lies between A and B. In fact BC=AC, so C is the midpoint of AB.
Solved Example 3
Find the locus of a point which moves so that the sum of its distances from A(0,0,−α) and B(0,0,α) is constant.
Solution:
Let the moving point be P(x,y,z) and let PA+PB=2a (a constant, with a>α).
x2+y2+(z+α)2=2a−x2+y2+(z−α)2
Squaring both sides and cancelling x2+y2+z2+α2:
4αz−4a2=−4ax2+y2+(z−α)2⇒a−aαz=x2+y2+(z−α)2
Squaring again:
a2−2αz+a2α2z2=x2+y2+z2+α2−2αz
⇒x2+y2+z2(1−a2α2)=a2−α2
⇒a2−α2x2+a2−α2y2+a2z2=1
This is the required locus, an ellipsoid with A and B as foci on the z-axis.
5. Distance of a Point from the Coordinate Axes and Planes
Let PA, PB and PC be the perpendiculars from P(x,y,z) to the x-axis, y-axis and z-axis. The feet are A(x,0,0), B(0,y,0) and C(0,0,z), so by the distance formula
PA=y2+z2,PB=z2+x2,PC=x2+y2
The distance from an axis uses the other two coordinates. The distance from a coordinate plane uses only the missing coordinate.
Figure 6: Distance of P(x,y,z) from the axes: PA=y2+z2 to the x-axis, PB=z2+x2 to the y-axis and PC=x2+y2 to the z-axis.
Distance of P(x,y,z) from
Value
origin
x2+y2+z2
x-axis
y2+z2
y-axis
z2+x2
z-axis
x2+y2
YZ-plane
∣x∣
ZX-plane
∣y∣
XY-plane
∣z∣
Solved Example 4
Find the distance of the point P(3,−4,12) from the origin, from each coordinate axis and from each coordinate plane.
Solution:
From the origin: OP=9+16+144=169=13.
From the x-axis: (−4)2+122=160=410. From the y-axis: 122+32=153=317. From the z-axis: 32+(−4)2=5.
From the YZ-plane: ∣3∣=3. From the ZX-plane: ∣−4∣=4. From the XY-plane: ∣12∣=12.
6. Shifting the Origin (Translation of Axes)
Shifting the origin to another point without changing the directions of the axes is called the translation of axes.
Let the origin O be shifted to O′(x′,y′,z′) without changing the direction of the axes, and let the new coordinate frame be O′X′Y′Z′. If P(x,y,z) is a point with respect to the frame OXYZ, then its coordinates with respect to O′X′Y′Z′ are (x1,y1,z1), where
x1=x−x′,y1=y−y′,z1=z−z′
Figure 7: Translation of axes. When the origin moves to O′(x′,y′,z′) with the same axis directions, the new coordinates of P are x1=x−x′, y1=y−y′, z1=z−z′.
New coordinates = old coordinates of the point minus the coordinates of the new origin. A shift of origin changes coordinates but never changes distances, angles or areas.
Solved Example 5
If the origin is shifted to (1,2,−3) without changing the directions of the axes, find the new coordinates of the point (0,4,5) with respect to the new frame.
Solution:
Here the new origin is (x′,y′,z′)=(1,2,−3) and the point is (x,y,z)=(0,4,5).
x1=x−x′=0−1=−1
y1=y−y′=4−2=2
z1=z−z′=5+3=8
Therefore the coordinates of the point with respect to the new frame are (−1,2,8).
7. Section Formula
Internal division
If P divides the join of A(x1,y1,z1) and B(x2,y2,z2) internally in the ratio m:n, that is AP:PB=m:n, then
Figure 8: Section formula. P divides AB internally and Q divides it externally, both in the ratio m:n.
Midpoint and the k:1 form
Putting m=n gives the midpoint of AB:
(2x1+x2,2y1+y2,2z1+z2)
When the ratio is unknown, take it as k:1. The dividing point is
(k+1kx2+x1,k+1ky2+y1,k+1kz2+z1)
If k>0 the division is internal; if k<0 it is external in the ratio ∣k∣:1.
Cross pairing: m multiplies the coordinates of the far end B and n multiplies the coordinates of the near end A. Swapping them gives the point that divides AB in n:m instead.
Solved Example 6
Find the coordinates of the point which divides the line joining the points (2,3,4) and (3,−4,7) in the ratio 3:5.
Solution:
Let the required point be (x,y,z). Here m=3, n=5, (x1,y1,z1)=(2,3,4) and (x2,y2,z2)=(3,−4,7).
x=3+53(3)+5(2)=819
y=3+53(−4)+5(3)=83
z=3+53(7)+5(4)=841
Hence the required point is (819,83,841).
Solved Example 7
Prove that the three points A(3,−2,4), B(1,1,1) and C(−1,4,−2) are collinear.
Solution:
The general coordinates of a point R which divides the join of A(3,−2,4) and B(1,1,1) in the ratio μ:1 are
R=(μ+1μ+3,μ+1μ−2,μ+1μ+4)...(1)
If C(−1,4,−2) lies on the line AB, then for some value of μ the point R coincides with C. Equating the x-coordinates:
μ+1μ+3=−1⇒μ+3=−μ−1⇒μ=−2
Putting μ=−2 in (1), R=(−11,−1−4,−12)=(−1,4,−2), which are the coordinates of C.
Hence A, B, C are collinear. Since μ<0, C divides AB externally in the ratio 2:1.
Solved Example 8
Show that the points A(2,3,4), B(−1,2,−3) and C(−4,1,−10) are collinear. Also find the ratio in which C divides AB.
Solution:
Let C divide AB in the ratio k:1. Then
C=(k+1−k+2,k+12k+3,k+1−3k+4)
Equating the x-coordinate to −4: −k+2=−4k−4⇒3k=−6⇒k=−2.
For k=−2: k+12k+3=−1−1=1 and k+1−3k+4=−110=−10, which match the y and z coordinates of C.
So one value of k satisfies all three coordinates, and A, B, C are collinear. Since k<0, C divides AB externally in the ratio 2:1.
Solved Example 9
The vertices of a triangle are A(5,4,6), B(1,−1,3) and C(4,3,2). The internal bisector of ∠BAC meets BC in D. Find AD.
Solution:
AB=42+52+32=50=52 and AC=12+12+42=18=32.
By the angle bisector theorem, DCBD=ACAB=35, so D divides BC internally in the ratio 5:3.
It lies on the line joining a vertex to the centroid of the opposite face and divides it in the ratio 3:1.
Figure 9: Centroid of a triangle divides each median in 2:1; centroid of a tetrahedron divides the line from a vertex to the opposite face centroid in 3:1.
Solved Example 11
Two vertices of a triangle are (4,−6,3) and (2,−2,1) and its centroid is (38,−1,2). Find the third vertex.
Solution:
Let the third vertex be (x,y,z). Using the centroid formula:
34+2+x=38⇒x=2
3−6−2+y=−1⇒y=5
33+1+z=2⇒z=2
Hence the third vertex is (2,5,2).
Solved Example 12
The centroid of the tetrahedron OABC, where O is the origin and A(a,2,3), B(1,b,2), C(2,1,c), is (1,2,3). Find the distance of the point (a,b,c) from the origin.
Solution:
40+a+1+2=1⇒a=1
40+2+b+1=2⇒b=5
40+3+2+c=3⇒c=7
Distance of (1,5,7) from the origin =1+25+49=75=53 units.
9. Area of a Triangle and Volume of a Tetrahedron
Area using projections on the coordinate planes
For the triangle with vertices A(x1,y1,z1), B(x2,y2,z2) and C(x3,y3,z3), let Δx, Δy and Δz be the areas of its projections on the YZ-plane, ZX-plane and XY-plane. Each projection is a triangle in two coordinates, so
Δx=21y1z11y2z21y3z31
Δy=21x1z11x2z21x3z31
Δz=21x1y11x2y21x3y31
The area Δ of △ABC is then given by
Δ2=Δx2+Δy2+Δz2
Figure 10: Area of a triangle in 3D. Δz is the area of the projection on the XY-plane; with Δx, Δy from the other two planes, Δ2=Δx2+Δy2+Δz2.
Three points are collinear exactly when this area is zero, which gives a third collinearity test after the distance and section-ratio methods.
Volume of a tetrahedron
The volume of the tetrahedron with vertices A(x1,y1,z1), B(x2,y2,z2), C(x3,y3,z3) and D(x4,y4,z4) is V=61 times the modulus of
x1y1z11x2y2z21x3y3z31x4y4z41
Equivalently, V=61[ABACAD]. If V=0, the four points are coplanar.
Solved Example 13
Find the area of the triangle with vertices A(1,2,1), B(2,1,3) and C(−1,1,2) by both methods.
Solution:
Vector method.AB=i^−j^+2k^ and AC=−2i^−j^+k^.
AB×AC=i^j^k^1−12−2−11=i^−5j^−3k^
So Δ=211+25+9=235 square units.
Projection method.
Δx=21211131121=21
Δy=21111231−121=25
Δz=21121211−111=−23
Δ2=41+425+49=435, so Δ=235 square units. Both methods agree; the sign of Δz does not matter because it is squared.
Solved Example 14
Find the volume of the tetrahedron with vertices O(0,0,0), A(1,2,1), B(2,1,3) and C(−1,1,2).
Solution:
With O as the origin, OA=(1,2,1), OB=(2,1,3) and OC=(−1,1,2).
[OAOBOC]=121213−112=1(2−3)−2(4+3)+1(2+1)=−12
V=61∣−12∣=2 cubic units.
Common Mistakes to Avoid
Watch out
Reading x as the distance of the point from the x-axis. It is the distance from the YZ-plane; the distance from the x-axis is y2+z2.
Pairing the ratio wrongly in the section formula. m+nmx1+nx2 gives the point dividing AB in n:m, not m:n.
Rejecting a negative k in the k:1 method. A negative value is valid and means external division.
Adding the new origin's coordinates while shifting the origin. The rule is subtraction: x1=x−x′.
Dropping the 21 in Δx, Δy, Δz, or the 61 and the modulus in the volume of a tetrahedron.
Giving an octant for a point that has a zero coordinate. Such a point lies on a coordinate plane or an axis.
Proving collinearity by showing two distances are equal. You must show that the sum of two distances equals the third.
Frequently Asked Questions
What are the coordinates of a point in space?
The coordinates (x,y,z) of a point are its signed perpendicular distances from the YZ-plane, ZX-plane and XY-plane respectively. You can read them by completing a cuboid with the origin and the point as opposite corners: the three edge lengths along the axes are x, y and z.
How do you find which octant a point lies in?
Look only at the signs of the coordinates. (+,+,+) is octant I, (−,+,+) is II, (−,−,+) is III and (+,−,+) is IV; the same four patterns with z negative give V to VIII. If any coordinate is zero, the point lies on a coordinate plane or axis instead.
What is the distance of a point from the x-axis?
For P(x,y,z) the foot of the perpendicular on the x-axis is (x,0,0), so the distance is y2+z2. Similarly the distances from the y-axis and z-axis are z2+x2 and x2+y2. The distance from the YZ-plane, by contrast, is simply ∣x∣.
How do you prove that three points are collinear in 3D?
There are three quick tests. Show that the sum of two distances equals the third, or show that one point divides the join of the other two in a ratio k:1 that satisfies all three coordinates, or show that the area of the triangle formed by the points, 21∣AB×AC∣, is zero.
What is the difference between internal and external division?
In internal division the point lies between A and B and the formula uses m+n in the denominator. In external division the point lies on AB produced and the formula uses m−n, with a minus sign in the numerator too. In the k:1 method, a negative k signals external division.
How do you find the area of a triangle with vertices in 3D?
The fastest method is Δ=21∣AB×AC∣ using a 3×3 determinant. Alternatively, find the areas Δx, Δy, Δz of the projections on the three coordinate planes and use Δ2=Δx2+Δy2+Δz2. Both give the same answer.
How important is this topic for JEE Main?
Distance formula, section formula and centroid are the first step in most JEE Main 3D geometry questions, including line and shortest-distance problems. Direct questions on collinearity, ratio of division and the third vertex from a centroid also appear, so aim to solve them accurately in under two minutes.
What should JEE Advanced aspirants focus on in this concept?
JEE Advanced rarely asks these formulas directly. They appear inside multi-step problems such as a locus, a ratio found from a variable point, or an area or volume found through vectors. Become fluent with the k:1 method and the cross-product area formula, since both return in lines and planes.
Previous year questions on Rectangular Coordinate System in Space
1 question from past papers, each with a step-by-step solution.