Home
JEE Maths
Three Dimensional Geometry

Three Dimensional Geometry

Three-dimensional geometry encompasses the mathematical study of shapes and figures in 3D space, involving three coordinates: the x-coordinate, y-coordinate, and z-coordinate. These coordinates define the precise location of a point in three-dimensional space, requiring three parameters for accurate positioning. Three-dimensional geometry is crucial for exams like JEE, as it features prominently and includes various operations on points within a 3D plane. It covers fundamental concepts such as direction cosines and Direction Ratios of a line, as well as the Direction cosines of a line passing through two points. 

1.0Introduction to Three Dimensional Geometry

Three-dimensional geometry, also known as 3D geometry, is a branch of mathematics that deals with the study of shapes and figures in three-dimensional space. In three-dimensional space, objects not only have length and width (like in two-dimensional geometry) but also depth or height, creating a three-dimensional aspect.

3D geometry

2.0Section Formula in 3D

The section formula in 3D geometry helps determine the coordinates of a point that divides a line segment between two specified points in a given ratio. It is an extension of the section formula used in 2D geometry.

Let's consider two points in three-dimensional space:

  • Point A with coordinates (x1, y1, z1)
  • Point B with coordinates (x2, y2, z2)

Now, we want to find the coordinates of a point P that divides the line segment AB in the ratio m: n. The section formula in 3D can be expressed as follows:


3.0Direction Cosines and Direction Ratios of a Line

Direction Cosines

If 𝛼, 𝛽, 𝛾 are the angles made by a line with 𝑥 −axis, 𝑦 −axis, 𝑧 −axis, respectively, then cos𝛼, cos𝛽 & cos𝛾 are called direction cosines of a line, denoted by ℓ, 𝑚 & 𝑛 respectively.

(i) Direction cosines of a line

Take a vector parallel to a line whose 𝐷. 𝐶’𝑠 are to be found out. 

⇒ cos2 α + cos2 β + cos2 γ = 1 ⇒  l2 + m2 + n2 =1

(ii) Direction cosines of axes

Since the positive 𝑥 −axes makes angle 0°, 90°, 90° with axes of 𝑥, 𝑦 and 𝑧 respectively,

∴ 𝐷. 𝐶. ’𝑠 of 𝑥 − axis are 1, 0, 0. 

    𝐷. 𝐶. ’𝑠 of 𝑦 − axis are 0, 1, 0. 

    𝐷. 𝐶. ’𝑠 of 𝑧 − axis are 0, 0, 1. 

Direction Ratios

Any three numbers 𝑎, 𝑏, 𝑐, proportional to direction cosines ℓ, 𝑚, 𝑛 are called direction ratios of the line. i.e. .

There can be infinitely many sets of direction ratios for a given line.

4.0Relation Between Direction Cosines and Direction Ratios:

5.0Direction Ratios and Direction Cosines of the Line Joining Two Points

Let us assume 𝐴 (𝑥1, 𝑦1, 𝑧1) and 𝐵(𝑥2, 𝑦2, 𝑧2) be two points, then Direction Ratios of AB are 𝑥2 –  𝑥1, 𝑦2 𝑦1, 𝑧2  –  𝑧1 and the  Direction Cosines of 𝐴𝐵 are 

where

6.0Projection Of Line Segment Joining Two Points On Another Line

Consider A (x1, y1, z1) and B (x2, y2, z2).

The Projection of line segment AB onto a line with direction cosines l, m, n is given as:

l (x2 − x1) + m(y2 − y1) + n(z2 − z1)

7.0Angle Between Two Lines in 3 Dimensional Space

Angle between two lines in Three Dimensional Space whose direction cosines are (l1, m1, n1) and (l2, m2, n). Then angle between them is

θ = cos–1 (l1l2 + m1m2 + n1n2)

8.0Equation Of A Line In Space

A line is uniquely determined in three-dimensional space if:

(i) It passes through a given point and has a given direction vector, or

(ii) It passes through two distinct given points.

Equation of a line passing through a given point and parallel to a given vector b.

Let a be the position vector of a given point A w.r.t origin O and l be the line that passes through point A and is parallel to a given vector b. Let r be the position vector of an arbitrary point P on the line.

Equation Of A Line In Space

So, the equation of a line in a Vector Form is given by: r = a + λ b

If l, m, and n represent the direction cosines of the line, the equation of the line in Cartesian coordinates can be expressed as:

9.0Angle between Two Lines

Let 𝜃 represent the angle between the lines with direction cosines ℓ1, 𝑚1, 𝑛1 and ℓ2, 𝑚2, 𝑛2. Then, the cosine of 𝜃 is given by 𝜃 = ℓ12 + 𝑚1𝑚2 + 𝑛1𝑛2. If direction ratios are 𝑎1, 𝑏1, 𝑐1 and 𝑎2, 𝑏2, 𝑐2 of two lines, then the angle 𝜃 between them is given by: 

 

10.0Angle Between a Line and a Plane

Let equations of the line and plane be and 𝑎𝑥 + 𝑏𝑦 + 𝑐𝑧 + 𝑑 = 0, respectively, and 𝜃 be the angle which the line makes with the plane. Then

is the angle between the line and the normal to the plane.

 So,

 

Line is parallel to the plane

If 𝜃 = 0, i.e. if 𝑎ℓ + 𝑏𝑚 + 𝑐𝑛 = 0. 

Line is perpendicular to the plane-

If the line is parallel to the normal of the plane i.e., if 

11.0Shortest Distance Between Two Lines

If two lines in space intersect at a common point, then their shortest distance between them is zero. Also, if two lines are parallel to each other, then the shortest distance between them will be the perpendicular distance, i.e. the length of the perpendicular drawn from a point on one line onto the other line.

12.0Distance Between Two Skew Lines

The length of the line intercepted between two lines, which is perpendicular to both the lines, is the shortest distance between them. Let the equations of the lines 𝐴𝐵 and 𝐶𝐷 be:

Distance Between Two Skew Lines

And         

13.0Three Dimensional Geometry Solved Examples

Example 1: A line OP makes with the x −axis an angle of measure 120° and with y −axis an angle of measure 60°. Find the angle made by the line with the z −axis.

Solution: 𝛼 = 120° and 𝛽 = 60°

∴ cos𝛼 = cos120° = and cos𝛽 = cos 60° =

  but cos2 𝛼 + cos2 𝛽 + cos2 𝛾 = 1

∴ 𝛾 = 45° or 135°


Example 2: Determine the length of the projection of the line segment that connects the points (-1, 0, 3) and (2, 5, 1) onto the line with direction ratios 6, 2, 3.

Solution: The direction cosines ℓ, 𝑚, 𝑛 of the line are given by  

The direction cosines l m , n of the line are given by

 

The required length of projection is given by


Example 3. If a line makes an angle 90°, 60°, and 30° with the positive direction of the x, y, and z-axis, respectively, find its direction cosines.

Solution: Let the d. c. 's of the lines be l, m, n. Then l = cos 90° = 0, m = cos 60° = , n =


Example 4. Calculate the shortest distance between the lines l1 and l2, whose vector equations are  

….(1)

    ….(2)

Solution Comparing (1) and (2) with

respectively.   

We get

Therefore  

and 

So  

Hence , the shortest distance between the given lines is given by

14.0Solved Questions on Three dimensional Geometry

Q. How do you calculate distances in 3D space?

Ans: The distance between two points represented as (x1, y1, z1) & (x2, y2, z2) in 3D space can be found using the distance formula derived from the Pythagorean theorem:

d = (x2 − x1)2 + (y2 − y1)2 + (z2 − z1)2


Q. How do you find the angle between two vectors in 3D space?

Ans: The angle (θ) between two vectors A = (a1, a2, a3) and B = (b1, b2, b3) in 3D space can be calculated using the dot product formula:


Frequently Asked Questions

Three-dimensional (3D) space refers to the geometric setting where objects have length, width, and height, allowing them to occupy space in three directions.

In mathematics, three-dimensional space is represented using coordinates (x, y, z) to locate points within a three-dimensional Cartesian coordinate system.

Direction cosines (l, m, n) are ratios of the direction of a line or vector to its magnitude in three-dimensional space. They help define the orientation of lines and angles.

Join ALLEN!

(Session 2025 - 26)


Choose class
Choose your goal
Preferred Mode
Choose State