For an interactive study experience with progress tracking, bookmarks, and solutions, try our reader.
Open in Interactive ReaderChapter Overview
In two-dimensional geometry, we locate a point using an ordered pair $(x, y)$. However, our physical world is three-dimensional. To describe the position of an object in space—like a bird flying or a plane in the sky—we need a third reference called the Z-axis. Thus, every point is represented by an ordered triple $(x, y, z)$. This chapter forms the foundation for 3D Geometry and Vectors. In the NEB exams, this unit is crucial for both multiple-choice questions (MCQs) and long-answer analytical problems.
What this chapter covers
Octants and Signs of CoordinatesDistance Formula in 3DSection Formula (Internal, External, Midpoint)Direction Cosines (d.c's) — l, m, nDirection Ratios (d.r's) — a, b, cRelation between D.C's and D.R'sAngle Between Two LinesConditions for Parallel and Perpendicular LinesProjection of a Line Segment on Another Line
Learning Objectives
1
Identify the octant of a point based on the signs of its coordinates
2
Calculate distance between two points and from the origin in 3D space
3
Apply internal, external, and midpoint section formulae correctly in 3D
4
Understand and calculate Direction Cosines (d.c's) and Direction Ratios (d.r's)
5
Find the angle between two lines using d.c's and d.r's
6
State and apply conditions for lines to be parallel or perpendicular
7
Find the projection of a line segment on a line with given d.c's
The Power of the Third Axis — Z
Key Insight
Every concept from 2D coordinate geometry has a direct 3D analogue. The distance formula adds a $(z_2-z_1)^2$ term. The section formula adds a z-coordinate. The slope becomes direction cosines. If you mastered Straight Line (2D), Coordinates in Space (3D) is just one more dimension.
The fundamental identity $l^2 + m^2 + n^2 = 1$ is the 3D equivalent of $\cos^2\theta + \sin^2\theta = 1$ — it appears in almost every problem involving direction cosines.
The fundamental identity $l^2 + m^2 + n^2 = 1$ is the 3D equivalent of $\cos^2\theta + \sin^2\theta = 1$ — it appears in almost every problem involving direction cosines.
In NEB exams: always check whether the problem gives d.c's (which satisfy $l^2+m^2+n^2=1$) or d.r's (any proportional numbers). Convert d.r's to d.c's before using angle or projection formulas.
Key Definitions
Origin (O)
The point where three mutually perpendicular axes (X, Y, Z) intersect, denoted as $(0, 0, 0)$.
Coordinate Axes
The three mutually perpendicular lines: X-axis, Y-axis, and Z-axis. Any point on an axis has two coordinates equal to zero.
Coordinate Planes
The three planes: XY-plane (where $z=0$), YZ-plane (where $x=0$), and ZX-plane (where $y=0$). Any point on a plane has one coordinate equal to zero.
Octants
The three axes divide space into eight parts called octants. The first octant has all coordinates positive.
Direction Cosines (l, m, n)
The cosines of the angles $\alpha, \beta, \gamma$ that a line makes with the positive X, Y, and Z axes respectively.
$$l = \cos \alpha, \; m = \cos \beta, \; n = \cos \gamma$$
Direction Angles
The angles $\alpha, \beta, \gamma$ made by a line with the positive X, Y, Z axes respectively. Range: $0^\circ \le \alpha, \beta, \gamma \le 180^\circ$.
Direction Ratios (a, b, c)
Any three numbers proportional to the direction cosines. They are not unique — multiplying by a constant gives the same line direction.
Octants and Sign Rules
Just as 2D has 4 quadrants, 3D has 8 octants. The signs of $(x, y, z)$ determine which octant a point lies in.
$$\text{If a point is on an axis: two coordinates are zero. If on a plane: one coordinate is zero.}$$
Why it works (Derivation):
1Octant I: $(+,+,+)$ — all coordinates positive. This is the 'first' octant analogous to Quadrant I in 2D.
2Octant II: $(-,+,+)$ — x negative, y and z positive.
3Octant III: $(-,-,+)$ — x and y negative, z positive.
4Octant IV: $(+,-,+)$ — x positive, y negative, z positive.
5Octants V–VIII: Same x-y patterns as I–IV, but with $z < 0$ (negative).
6Key rule: The first 4 octants have $Z$ positive (+), the last 4 have $Z$ negative (−).
Example: Point $(-1, 2, -3)$ has $x<0$, $y>0$, $z<0$. This matches the pattern of the 6th octant (X negative, Y positive, Z negative).
When to use: Knowing octants helps in visualization and sign-checking. In MCQs, octant identification is a common 1-mark question.
Complete Formula Sheet with Derivations
Distance Between Two Points in 3D
$$d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2}$$
Direct extension of 2D distance formula. Add the squared z-difference.
Distance from Origin
$$d = \sqrt{x^2 + y^2 + z^2}$$
Special case when one point is $(0,0,0)$. Frequently tested in MCQs.
Internal Section Formula (3D)
$$R = \left(\frac{m_1x_2 + m_2x_1}{m_1+m_2},\; \frac{m_1y_2 + m_2y_1}{m_1+m_2},\; \frac{m_1z_2 + m_2z_1}{m_1+m_2}\right)$$
Point R divides AB internally in ratio $m_1 : m_2$. Identical structure to 2D, just add z-coordinate.
External Section Formula (3D)
$$R = \left(\frac{m_1x_2 - m_2x_1}{m_1-m_2},\; \frac{m_1y_2 - m_2y_1}{m_1-m_2},\; \frac{m_1z_2 - m_2z_1}{m_1-m_2}\right)$$
Replace the '+' sign with '−' in both numerator and denominator. Common mistake: forgetting the minus in the denominator.
Midpoint Formula (3D)
$$M = \left(\frac{x_1+x_2}{2},\; \frac{y_1+y_2}{2},\; \frac{z_1+z_2}{2}\right)$$
Special case of section formula with $m_1 = m_2 = 1$. Simply the average of coordinates.
Direction Cosines Identity
$$l^2 + m^2 + n^2 = 1$$
The most important identity in this chapter. If given $(l,m,n)$, always verify this first. If it doesn't hold, they are d.r's, not d.c's.
Converting D.R's to D.C's
$$l = \frac{a}{\sqrt{a^2+b^2+c^2}},\; m = \frac{b}{\sqrt{a^2+b^2+c^2}},\; n = \frac{c}{\sqrt{a^2+b^2+c^2}}$$
Always divide by the magnitude $\sqrt{a^2+b^2+c^2}$. This ensures $l^2+m^2+n^2=1$.
D.R's of Line Joining Two Points
$$(a,b,c) = (x_2-x_1,\; y_2-y_1,\; z_2-z_1)$$
Just subtract coordinates. The simplest way to find direction ratios of a line through two given points.
Angle Between Two Lines (using d.c's)
$$\cos \theta = l_1l_2 + m_1m_2 + n_1n_2$$
Use this when d.c's are given. If d.r's are given, convert to d.c's first OR use the modified formula below.
Angle Between Two Lines (using d.r's)
$$\cos \theta = \frac{a_1a_2 + b_1b_2 + c_1c_2}{\sqrt{a_1^2+b_1^2+c_1^2}\sqrt{a_2^2+b_2^2+c_2^2}}$$
Use directly when d.r's are given. No need to convert to d.c's first.
Perpendicularity Condition (d.r's)
$$a_1a_2 + b_1b_2 + c_1c_2 = 0$$
Think of this as a 'dot product' being zero. For perpendicular lines, the dot product of their d.r's equals zero.
Parallelism Condition (d.r's)
$$\frac{a_1}{a_2} = \frac{b_1}{b_2} = \frac{c_1}{c_2}$$
The d.r's are proportional. Same direction means same ratios (or same d.c's).
Projection of Line Segment PQ on a Line with d.c's (l,m,n)
$$\text{Projection} = (x_2-x_1)l + (y_2-y_1)m + (z_2-z_1)n$$
This is the dot product of vector PQ with the unit vector along the line. Gives the signed length of the shadow.
Memory Tricks — Never Forget These
Trick: Four quick memory hooks that cover the most common formula confusions in this chapter.
Steps to Remember:
- D.C's Unity — Love My Nepal = 1: Remember $l^2 + m^2 + n^2 = 1$ using the mnemonic 'Love My Nepal'. Every direction cosine triplet must satisfy this. If it doesn't, they're d.r's, not d.c's.
- Octant Signs — Z divides them: The first 4 octants have $Z$ positive (+), the last 4 have $Z$ negative (−). The x-y pattern is the same as quadrants I–IV repeated twice.
- Perpendicular = Product Zero: $a_1a_2 + b_1b_2 + c_1c_2 = 0$. Think of it as a 'dot product' being zero. This is the same idea as $m_1m_2 = -1$ in 2D, but for 3D direction ratios.
- Distance from Axis: To find distance of $(x,y,z)$ from the X-axis, use $\sqrt{y^2+z^2}$ — exclude the axis coordinate. Same pattern for Y-axis ($\sqrt{x^2+z^2}$) and Z-axis ($\sqrt{x^2+y^2}$).
- $k:1$ Ratio Shortcut: For a plane dividing a line segment, if the plane is XY, set $z=0$ and solve for $k$. If YZ, set $x=0$. If ZX, set $y=0$.
Mnemonic: Love My Nepal = 1 for d.c's | Z sign divides octants | Dot product = 0 for perpendicular | Exclude axis coordinate for axis distance
Common Mistakes
These mistakes cause the most mark losses in NEB exams for this chapter.
- Confusing D.C's and D.R's: D.C's must satisfy $l^2+m^2+n^2=1$, while D.R's are just any proportional numbers. Always convert d.r's to d.c's before using the angle formula with d.c's.
- Sign errors in Section Formula: For external division, always use subtraction in both numerator and denominator. Students often forget the minus in the denominator.
- Distance from Axis: To find the distance of $(x, y, z)$ from the X-axis, the formula is $\sqrt{y^2+z^2}$ (exclude the axis coordinate). Don't use $\sqrt{x^2+y^2+z^2}$ — that's distance from origin!
- Using d.c's vs d.r's in angle formula: If using $\cos\theta = l_1l_2 + m_1m_2 + n_1n_2$, you MUST use d.c's. If using d.r's, use the full formula with denominators.
- External division ratio confusion: When the ratio is $k:1$ and the dividing point is outside, the external formula has $m_1 - m_2$ in the denominator. Be careful with signs.
NEB Exam Traps — These Appear Every Year
NEB Exam Warning
Board examiners specifically test these edge cases. Knowing them can save 2–5 marks.
- Asking for 'Find the point on XY-plane' — students forget to set $z=0$. On any coordinate plane, the missing coordinate is always zero.
- 'Show points are collinear' — in 3D, check if $PQ + QR = PR$ (distance check) OR if the d.r's of PQ and QR are proportional (same direction).
- 'Find the angle' — always find d.r's of both lines first, then convert to d.c's or use the d.r's angle formula directly. Don't mix d.c's and d.r's.
- 'Find the ratio' — assume ratio $k:1$ and set the relevant coordinate ($x$, $y$, or $z$) to zero based on the plane given. Solve for $k$.
- Cube diagonal angle problem ($\cos^{-1}(1/3)$) — a board favorite. Use vertices from $(0,0,0)$ to $(a,a,a)$ and find d.c's of two face diagonals or space diagonals.
- When d.c's satisfy two equations (like $l+m+n=0$ and $l^2+m^2-n^2=0$), solve the system to find the actual d.c's, then use the angle formula.
Question Recognition Guide
| Keyword / Phrase in Question | Use This |
|---|---|
| Find point on XY-plane... | Set $z=0$ and solve |
| Find point on YZ-plane... | Set $x=0$ and solve |
| Find point on ZX-plane... | Set $y=0$ and solve |
| Show points are collinear... | Check if $PQ + QR = PR$ OR d.r's of PQ and QR are proportional |
| Find angle between two lines... | Find d.r's of both lines, then use $\cos\theta$ formula |
| Find ratio in which a plane divides... | Assume ratio $k:1$, set the relevant coordinate to zero, solve for $k$ |
| Find d.c's of line perpendicular to two given lines... | Use cross-multiplication on the two perpendicularity conditions |
| Find projection of segment AB on line L... | Use $(x_2-x_1)l + (y_2-y_1)m + (z_2-z_1)n$ with d.c's of L |
| Direction ratios of a line making equal angles... | If $\alpha = \beta = \gamma$, then $l=m=n=\pm 1/\sqrt{3}$ |
| Distance from origin... | $\sqrt{x^2+y^2+z^2}$ |
| Distance from X-axis... | $\sqrt{y^2+z^2}$ (exclude x) |
| Condition for parallel lines... | $a_1/a_2 = b_1/b_2 = c_1/c_2$ |
| Condition for perpendicular lines... | $a_1a_2 + b_1b_2 + c_1c_2 = 0$ |
Solved Examples (Easy → Hard)
1
Find the distance between $A(1, 2, -1)$ and $B(4, 6, 11)$.
Easy
2
Find the ratio in which the YZ-plane divides the line segment joining $A(-2, 4, 7)$ and $B(3, -5, 8)$.
Medium
3
Find the D.C's of a line perpendicular to two lines having D.R's $(1, -2, 3)$ and $(2, 1, -1)$.
Hard
MCQ Practice
Mixed Level — MCQ
1
The distance of point $(3, 4, 5)$ from the origin is:
Correct!
Incorrect. Correct: $\sqrt{50}$
2
The $z$-coordinate of any point on the XY-plane is:
Correct!
Incorrect. Correct: 0
3
If a line makes equal angles with the axes, its d.c's are:
Correct!
Incorrect. Correct: $(\pm \frac{1}{\sqrt{3}}, \pm \frac{1}{\sqrt{3}}, \pm \frac{1}{\sqrt{3}})$
4
Direction ratios of the Y-axis are:
Correct!
Incorrect. Correct: $(0,1,0)$
5
If $l, m, n$ are d.c's, then $l^2+m^2+n^2$ is:
Correct!
Incorrect. Correct: 1
6
The point $(-1, 2, -3)$ lies in which octant?
Correct!
Incorrect. Correct: 6th
7
Angle between lines with d.r's $(1,1,0)$ and $(0,1,1)$ is:
Correct!
Incorrect. Correct: $60^\circ$
8
Ratio in which the XY-plane divides $(2,4,5)$ and $(3,5,6)$ is:
Correct!
Incorrect. Correct: $-5:6$
9
Condition for $a_1, b_1, c_1$ and $a_2, b_2, c_2$ to be parallel:
Correct!
Incorrect. Correct: $a_1/a_2 = b_1/b_2 = c_1/c_2$
10
Projection of a point $(x,y,z)$ on X-axis is:
Correct!
Incorrect. Correct: $x$
Short Questions (2 Marks Each)
1
Find the distance of $(2, -3, 6)$ from the origin.
[2 marks]
2
Find the mid-point of $(1, 4, 5)$ and $(3, 0, -1)$.
[2 marks]
3
Find d.c's of line with d.r's $3, 4, 12$.
[2 marks]
4
Show that lines with d.r's $(1, 2, 3)$ and $(-2, 1, 0)$ are perpendicular.
[2 marks]
5
Find the projection of the segment joining $(1, 2, 3)$ and $(4, 2, 3)$ on the X-axis.
[2 marks]
6
Find the value of $k$ if $(1, 2, 3)$ and $(2, k, 5)$ are parallel to a line with d.r's $(1, 1, 2)$.
[2 marks]
7
Write the coordinates of a point on the Z-axis at a distance of 5 units from origin.
[2 marks]
8
Find the angle between two lines with d.c's $(1/\sqrt{3}, 1/\sqrt{3}, 1/\sqrt{3})$ and $(1/\sqrt{2}, -1/\sqrt{2}, 0)$.
[2 marks]
9
If $\alpha, \beta, \gamma$ are direction angles, prove $\sin^2 \alpha + \sin^2 \beta + \sin^2 \gamma = 2$.
[2 marks]
10
Find the ratio in which the point $(3, 4, 5)$ divides the join of $(1, 2, 3)$ and $(4, 5, 6)$.
[2 marks]
Long Questions (4–5 Marks Each)
1
Find the foot of the perpendicular from $(1, 2, 3)$ to the line joining $(0, 4, 1)$ and $(2, 6, 2)$.
[5 marks]
2
Prove that the angle between any two diagonals of a cube is $\cos^{-1}(1/3)$.
[5 marks]
3
Find the angle between lines whose d.c's satisfy $l+m+n=0$ and $l^2+m^2-n^2=0$.
[5 marks]
4
Show that points $A(1,2,3), B(-1,-2,-1), C(2,3,2), D(4,7,6)$ form a parallelogram.
[4 marks]
5
Find the projection of AB on CD where $A(1,2,3), B(3,5,7), C(2,1,0), D(4,3,1)$.
[4 marks]
6
Derive the coordinates of a point dividing a line segment internally in the ratio $m_1:m_2$.
[4 marks]
7
Find the angle between lines with d.r's $(a, b, c)$ and $(b-c, c-a, a-b)$.
[4 marks]
8
Prove that the lines $al+bm+cn=0$ and $fmn+gnl+hlm=0$ are perpendicular if $f/a + g/b + h/c = 0$.
[5 marks]
9
Find the point where the line through $(1,2,3)$ and $(4,5,6)$ meets the ZX-plane.
[4 marks]
10
Show that the triangle with vertices $(0,7,10), (-1,6,6), (-4,9,6)$ is isosceles right-angled.
[5 marks]
Chapter Test — Full Mixed Paper
Attempt this test in 50 minutes without notes. This mirrors the NEB exam format.
1
Section A — MCQs (1 Mark Each)
Mixed Level — MCQ
1
Sign of $z$ in 5th octant?
Correct!
Incorrect. Correct: Negative
2
D.C's of X-axis?
Correct!
Incorrect. Correct: $(1,0,0)$
3
Distance of $(x,y,z)$ from XY-plane?
Correct!
Incorrect. Correct: $|z|$
2
Section B — Short Questions (2 Marks Each)
1
Find the ratio in which the ZX-plane divides the join of $(2, 3, 1)$ and $(6, -1, 5)$.
[2 marks]
2
Find d.c's of a line making $60^\circ, 60^\circ$ with X and Y axes.
[2 marks]
3
Find the distance between $(1, -1, 3)$ and $(2, 3, 5)$.
[2 marks]
3
Section C — Long Questions (4–5 Marks Each)
1
Prove the cube diagonal angle theorem (angle between any two diagonals is $\cos^{-1}(1/3)$).
[5 marks]
2
Find the foot of the perpendicular from $(1, 0, 3)$ to the join of $(4, 7, 1)$ and $(3, 5, 3)$.
[5 marks]
3
Find d.c's of lines given by $l-5m+3n=0$ and $7l^2+5m^2-3n^2=0$.
[5 marks]
One-Page Revision Cheat Sheet
1
Point: $P(x,y,z)$ — three coordinates in 3D space.
2
Distance: $d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2 + (z_2-z_1)^2}$ — always positive.
3
Distance from Origin: $d = \sqrt{x^2+y^2+z^2}$.
4
Section (Internal): $x = \frac{m_1x_2+m_2x_1}{m_1+m_2}$, same for y and z.
5
Section (External): Replace '+' with '−' in numerator and denominator.
6
Midpoint: Average of coordinates: $(\frac{x_1+x_2}{2}, \frac{y_1+y_2}{2}, \frac{z_1+z_2}{2})$.
7
D.C's: $l, m, n$ where $l = \cos\alpha$, $m = \cos\beta$, $n = \cos\gamma$.
8
D.C's Identity: $l^2 + m^2 + n^2 = 1$ — always verify this.
9
D.R's to D.C's: Divide by $\sqrt{a^2+b^2+c^2}$.
10
Angle (d.c's): $\cos\theta = l_1l_2 + m_1m_2 + n_1n_2$.
11
Angle (d.r's): $\cos\theta = \frac{a_1a_2+b_1b_2+c_1c_2}{\sqrt{a_1^2+b_1^2+c_1^2}\sqrt{a_2^2+b_2^2+c_2^2}}$.
12
Perpendicular condition: $a_1a_2 + b_1b_2 + c_1c_2 = 0$ (dot product = 0).
13
Parallel condition: $a_1/a_2 = b_1/b_2 = c_1/c_2$ (proportional d.r's).
14
Projection of PQ on line L: $(x_2-x_1)l + (y_2-y_1)m + (z_2-z_1)n$ with d.c's of L.
15
Tip: Always check if d.r's or d.c's are given. If d.r's = $(1,1,1)$, d.c's = $(1/\sqrt{3}, 1/\sqrt{3}, 1/\sqrt{3})$.
16
Distance from X-axis: $\sqrt{y^2+z^2}$. From Y-axis: $\sqrt{x^2+z^2}$. From Z-axis: $\sqrt{x^2+y^2}$.