PYQ Vault

CBSE Class 12 Maths · Three Dimensional Geometry

Equation of a Line in Space

A line in space is fixed by a point on it and a direction: its vector equation adds any multiple of a direction vector to the point's position vector, and its Cartesian equation sets three ratios equal.

Why this matters

76 questions, sixty-nine of them from board papers, the most of any page in this chapter: six in 2022 and fourteen to eighteen a year from 2023 to 2026. One-mark MCQs ask for the line through a point parallel to a vector, a line or an axis (2023 to 2025). The long answers ask for the foot of the perpendicular from a point and its length (every year from 2023), the image of a point in a line (2023, 2024 and 2025), a line perpendicular to two given lines (2023 to 2026), the point where two lines meet (every year from 2022), and the points of a line at a given distance from a point (2022, 2023, 2025 and 2026). The case studies of 2022 and 2025 put two lines in a story about motorcycles, transmission wires and metro tracks. The textbook adds Example 6, Exercise 11.2 Q4 to Q7 and Miscellaneous Exercise Q2 and Q5.

Concept 1 of 6: Vector and Cartesian equations of a line through a point

Stand at a point AA with position vector a⃗\vec{a} and walk along a vector b⃗\vec{b}. After walking λ\lambda times b⃗\vec{b} you are at r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b}. Every real λ\lambda gives a point of the line, and every point of the line comes from one λ\lambda. Comparing the i^\hat{i}, j^\hat{j}, k^\hat{k} parts and removing λ\lambda gives the Cartesian form.

Definition

  • Vector form: r⃗=a⃗+λb⃗\vec{r} = \vec{a} + \lambda\vec{b}, where a⃗\vec{a} is the position vector of a point and b⃗=ai^+bj^+ck^\vec{b} = a\hat{i} + b\hat{j} + c\hat{k} is parallel to the line.
  • Parametric form: x=x1+λax = x_1 + \lambda a, y=y1+λby = y_1 + \lambda b, z=z1+λcz = z_1 + \lambda c.
  • Cartesian form: x−x1a=y−y1b=z−z1c\dfrac{x - x_1}{a} = \dfrac{y - y_1}{b} = \dfrac{z - z_1}{c}.
  • Through two points with position vectors a⃗\vec{a} and b⃗\vec{b}: r⃗=a⃗+λ(b⃗−a⃗)\vec{r} = \vec{a} + \lambda(\vec{b} - \vec{a}).
  • Parallel to a given line: copy its direction ratios, after putting it in standard form. Parallel to the y-axis: b⃗=j^\vec{b} = \hat{j}.
  • From a vector equation such as r⃗=(2+λ)i^+λj^+(2λ−1)k^\vec{r} = (2 + \lambda)\hat{i} + \lambda\hat{j} + (2\lambda - 1)\hat{k}, collect the terms in λ\lambda: the point is (2,0,−1)(2, 0, -1) and the direction is i^+j^+2k^\hat{i} + \hat{j} + 2\hat{k}.

Line through a point, parallel to a vector

r⃗=a⃗+λb⃗x−x1a=y−y1b=z−z1c\vec{r} = \vec{a} + \lambda\vec{b} \qquad \dfrac{x - x_1}{a} = \dfrac{y - y_1}{b} = \dfrac{z - z_1}{c}
  • a⃗\vec{a}position vector of the point (x₁, y₁, z₁)
  • b⃗\vec{b}a vector along the line, with direction ratios a, b, c
  • λ\lambdaa real number (the parameter)

Worked example

Find the vector and Cartesian equations of the line through (3,−1,2)(3, -1, 2) parallel to the line x+24=1−y2=3z−69\dfrac{x + 2}{4} = \dfrac{1 - y}{2} = \dfrac{3z - 6}{9}.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2023 · 65/5/1 · Q25Moderate

Example 1 · Three Dimensional Geometry · Equation of a Line in Space

Find the vector and the cartesian equations of a line that passes through the point A(1, 2, −1-1) and parallel to the line 5x−25=14−7y=35z5x - 25 = 14 - 7y = 35z.

Keeping the old point

A line parallel to a given line copies only its direction. The point must be the new one the question gives; MCQ options often keep the given line's point to catch this.

Copying a direction before the standard form

From a line printed as a chain of expressions, or with numerators like (k−y)(k - y), the direction ratios can be read only after each variable has coefficient +1+1.

A vector equation without a parameter

A vector equation needs r⃗=\vec{r} = on the left and a parameter such as λ\lambda multiplying the direction. Writing only a⃗+b⃗\vec{a} + \vec{b} is one point, not a line.

Concept 2 of 6: Points on a line: the general point and a given distance

Set the three equal ratios equal to λ\lambda and solve for xx, yy and zz. This writes every point of the line with one letter. Any condition on the point, a given coordinate, a sum of coordinates or a distance from another point, becomes an equation in λ\lambda alone.

Definition

  • General point: from x−x1a=y−y1b=z−z1c=λ\dfrac{x - x_1}{a} = \dfrac{y - y_1}{b} = \dfrac{z - z_1}{c} = \lambda, the point is (x1+aλ, y1+bλ, z1+cλ)(x_1 + a\lambda,\ y_1 + b\lambda,\ z_1 + c\lambda).
  • Line through two points AA and BB: use AA as the point and B−AB - A as the direction ratios.
  • A coordinate is given (it meets the zx-plane where y=0y = 0, or yy is three times xx): one linear equation in λ\lambda.
  • At distance dd from a point QQ: write PQ2=d2PQ^2 = d^2. This is a quadratic in λ\lambda, so there are usually two points.
  • Medians, sides and diagonals of a triangle or parallelogram are lines through two known points (a vertex and a mid-point, or two vertices).

General point of a line

x−x1a=y−y1b=z−z1c=λ ⇒ (x1+aλ, y1+bλ, z1+cλ)\dfrac{x - x_1}{a} = \dfrac{y - y_1}{b} = \dfrac{z - z_1}{c} = \lambda \ \Rightarrow\ (x_1 + a\lambda,\ y_1 + b\lambda,\ z_1 + c\lambda)

Worked example

Find the equation of the line through A(2,−1,1)A(2, -1, 1) and B(4,1,2)B(4, 1, 2). Hence find the points on this line at a distance of 6 units from AA.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2023 · 65/1/1 · 34 (b)Hard

Example 2 · Three Dimensional Geometry · Equation of a Line in Space

Find the equations of the line passing through the points A(1, 2, 3) and B(3, 5, 9). Hence, find the coordinates of the points on this line which are at a distance of 14 units from point B.

One point where there are two

A distance condition gives a quadratic in λ\lambda. Both roots are points of the line at that distance, one on each side. Give both.

Measuring from the wrong point

Read whether the distance is from AA, from BB or from some other point, and subtract that point's coordinates from the general point.

Leaving the square root in

Square both sides of PQ=dPQ = d before expanding. Expanding under a square root is where most arithmetic slips happen.

Concept 3 of 6: A line perpendicular to two given lines

A direction perpendicular to both b1⃗\vec{b_1} and b2⃗\vec{b_2} is exactly what the cross product gives: b1⃗×b2⃗\vec{b_1} \times \vec{b_2} is perpendicular to each of them. So the required line has the given point and the direction b1⃗×b2⃗\vec{b_1} \times \vec{b_2}.

Definition

  • Read b1⃗\vec{b_1} and b2⃗\vec{b_2} from the two lines, in standard form.
  • Direction of the required line: b⃗=b1⃗×b2⃗\vec{b} = \vec{b_1} \times \vec{b_2}. Divide out any common factor.
  • The same answer comes from solving aa1+bb1+cc1=0a a_1 + b b_1 + c c_1 = 0 and aa2+bb2+cc2=0a a_2 + b b_2 + c c_2 = 0 by cross-multiplication.
  • Check: b⃗⋅b1⃗=0\vec{b} \cdot \vec{b_1} = 0 and b⃗⋅b2⃗=0\vec{b} \cdot \vec{b_2} = 0.
  • If the line must pass through the point where the two lines meet, find that point first (see the next concept).

Direction perpendicular to two lines

b⃗=b1⃗×b2⃗=∣i^j^k^a1b1c1a2b2c2∣\vec{b} = \vec{b_1} \times \vec{b_2} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \end{vmatrix}

Worked example

Find the vector and Cartesian equations of the line through (1,0,−2)(1, 0, -2) perpendicular to both the lines x−21=y+1−1=z2\dfrac{x - 2}{1} = \dfrac{y + 1}{-1} = \dfrac{z}{2} and x+32=y−41=z−1−1\dfrac{x + 3}{2} = \dfrac{y - 4}{1} = \dfrac{z - 1}{-1}.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2023 · 65/4/1 · 25 (a)Moderate

Example 3 · Three Dimensional Geometry · Equation of a Line in Space

Find the vector equation of the line passing through the point (2, 1, 3) and perpendicular to both the lines x−11=y−22=z−33\dfrac{x-1}{1} = \dfrac{y-2}{2} = \dfrac{z-3}{3}; x−3=y2=z5\dfrac{x}{-3} = \dfrac{y}{2} = \dfrac{z}{5}.

The middle sign of the cross product

The j^\hat{j} term of b1⃗×b2⃗\vec{b_1} \times \vec{b_2} carries a minus sign: −j^(a1c2−a2c1)-\hat{j}(a_1c_2 - a_2c_1). Check the answer with two dot products; both must be zero.

Adding or dotting the directions

b1⃗+b2⃗\vec{b_1} + \vec{b_2} is not perpendicular to either line, and b1⃗⋅b2⃗\vec{b_1} \cdot \vec{b_2} is a number, not a direction. Only the cross product gives a direction perpendicular to both.

Concept 4 of 6: Where two lines meet

Two lines meet when one point lies on both. Write a general point of each line with its own letter, λ\lambda for one and μ\mu for the other. Equating two coordinates gives two equations for λ\lambda and μ\mu; the third coordinate is then the test.

Definition

  • General points: P(x1+a1λ, y1+b1λ, z1+c1λ)P(x_1 + a_1\lambda,\ y_1 + b_1\lambda,\ z_1 + c_1\lambda) and Q(x2+a2μ, y2+b2μ, z2+c2μ)Q(x_2 + a_2\mu,\ y_2 + b_2\mu,\ z_2 + c_2\mu).
  • Equate two coordinates and solve for λ\lambda and μ\mu.
  • Put them in the third equation. If it holds, the lines meet, at PP for that λ\lambda. If it fails, they do not meet.
  • An unknown in the equations (a value of bb or pp that makes the lines meet) is found from the third equation, or from the shortest-distance test on the next page.
  • A vertex of a figure is where two of its sides meet. The diagonals of a parallelogram meet at their common mid-point.

The lines meet when one λ and one μ satisfy all three

x1+a1λ=x2+a2μ,y1+b1λ=y2+b2μ,z1+c1λ=z2+c2μx_1 + a_1\lambda = x_2 + a_2\mu,\quad y_1 + b_1\lambda = y_2 + b_2\mu,\quad z_1 + c_1\lambda = z_2 + c_2\mu

Worked example

Show that the lines x−12=y+13=z1\dfrac{x - 1}{2} = \dfrac{y + 1}{3} = \dfrac{z}{1} and x−41=y−1−1=z−32\dfrac{x - 4}{1} = \dfrac{y - 1}{-1} = \dfrac{z - 3}{2} intersect, and find the point of intersection.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2022 · 65/1/1 · 14 (ii)Moderate

Example 4 · Three Dimensional Geometry · Equation of a Line in Space

Electrical transmission wires which are laid down in winters are stretched tightly to accommodate expansion in summers. Two such wires lie along the following lines : l1:x+13=y−3−2=z+2−1l_1 : \frac{x + 1}{3} = \frac{y - 3}{-2} = \frac{z + 2}{-1} l2:x−1=y−73=z+7−2l_2 : \frac{x}{-1} = \frac{y - 7}{3} = \frac{z + 7}{-2} Based on the given information, answer the following questions :
Find the point of intersection of the lines l1l_1 and l2l_2.

One letter for both lines

Using λ\lambda in both general points forces the two points to move together, and you may decide that lines which do meet do not. Give each line its own parameter.

Not checking the third coordinate

Two equations in λ\lambda and μ\mu always have a solution unless the lines are parallel. The lines meet only if that solution also satisfies the third equation; write the check in your answer.

Concept 5 of 6: The foot of the perpendicular and the distance of a point from a line

From a point PP off a line, the shortest path to the line meets it at a right angle, at the foot MM. MM is one of the line's general points, and the condition that PMPM is perpendicular to the line (dot product zero) fixes which one.

Definition

  • Put the line in standard form and write its general point M(x1+aλ, y1+bλ, z1+cλ)M(x_1 + a\lambda,\ y_1 + b\lambda,\ z_1 + c\lambda).
  • Direction ratios of PMPM: M−PM - P, in terms of λ\lambda.
  • PMPM is perpendicular to the line: a(xM−xP)+b(yM−yP)+c(zM−zP)=0a(x_M - x_P) + b(y_M - y_P) + c(z_M - z_P) = 0. Solve for λ\lambda.
  • Put λ\lambda back to get the foot MM.
  • The length of the perpendicular is PMPM, the distance between PP and MM.
  • The same length is ∣b⃗×(p⃗−a⃗)∣∣b⃗∣\dfrac{|\vec{b} \times (\vec{p} - \vec{a})|}{|\vec{b}|}, the expression the book uses for the distance between parallel lines.

Foot M of the perpendicular from P

M=(x1+aλ, y1+bλ, z1+cλ),PM→⋅(ai^+bj^+ck^)=0M = (x_1 + a\lambda,\ y_1 + b\lambda,\ z_1 + c\lambda), \qquad \overrightarrow{PM} \cdot (a\hat{i} + b\hat{j} + c\hat{k}) = 0

Worked example

Find the foot of the perpendicular from P(1,2,−3)P(1, 2, -3) to the line x+12=y−3−2=z−1\dfrac{x + 1}{2} = \dfrac{y - 3}{-2} = \dfrac{z}{-1}. Also find the length of the perpendicular.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2024 · 65/5/1 · 34 (a)Hard

Example 5 · Three Dimensional Geometry · Equation of a Line in Space

Find the co-ordinates of the foot of the perpendicular drawn from the point (2,3,−8)(2, 3, -8) to the line 4−x2=y6=1−z3\dfrac{4 - x}{2} = \dfrac{\mathrm{y}}{6} = \dfrac{1 - \mathrm{z}}{3}. Also, find the perpendicular distance of the given point from the line.

Reading the direction before the standard form

A numerator like (k−x)(k - x) means the denominator's sign must change before it is a direction ratio. A wrong sign in one direction ratio gives a wrong λ\lambda and a wrong foot.

Dotting the wrong vectors

The perpendicular condition is PM→\overrightarrow{PM} dotted with the line's direction. Dotting p⃗\vec{p} or a⃗\vec{a} with the direction gives nothing useful.

The length to the wrong point

The length of the perpendicular is PP to the foot MM, not PP to the point printed in the line's equation.

Concept 6 of 6: The image of a point in a line

Fold space along the line like a mirror: PP lands on its image P′P'. The line is then the perpendicular bisector of PP′PP', so the foot MM of the perpendicular from PP is the mid-point of PP′PP'. Find MM, then go the same distance again beyond it.

Definition

  • Find the foot MM of the perpendicular from PP to the line (previous concept).
  • MM is the mid-point of PP′PP': P′=2M−PP' = 2M - P, coordinate by coordinate.
  • PP′=2PMPP' = 2PM, and the line PP′PP' has the direction ratios of PMPM.
  • Given the image, find the point: the same steps starting from P′P'.
  • Image of a line parallel to the mirror line: it is parallel to the mirror line, so it is the line through the image of any one of its points, with the same direction.

Image from the foot

M=P+P′2 ⇒ P′=2M−PM = \dfrac{P + P'}{2} \ \Rightarrow\ P' = 2M - P

Worked example

Find the image of the point P(5,0,2)P(5, 0, 2) in the line x−12=y+11=z−2−2\dfrac{x - 1}{2} = \dfrac{y + 1}{1} = \dfrac{z - 2}{-2}. Also find the length PP′PP'.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

CBSE Class 12 · 2023 · 65/4/3 · 32 (a)Hard

Example 6 · Three Dimensional Geometry · Equation of a Line in Space

Find the image of the point (2,−1,5)(2, -1, 5) in the line x−1110=y+2−4=z+8−11\dfrac{x - 11}{10} = \dfrac{y + 2}{-4} = \dfrac{z + 8}{-11}.

Stopping at the foot

The foot MM is halfway. The image is as far beyond MM as PP is before it: P′=2M−PP' = 2M - P.

Subtracting the wrong way

M−PM - P is the step from PP to the foot, not the image. Use the mid-point formula and solve for each coordinate of P′P'.

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 (6)

  • Vector and Cartesian equations of a line through a point

    Line through a point, parallel to a vector

    r⃗=a⃗+λb⃗x−x1a=y−y1b=z−z1c\vec{r} = \vec{a} + \lambda\vec{b} \qquad \dfrac{x - x_1}{a} = \dfrac{y - y_1}{b} = \dfrac{z - z_1}{c}
  • Points on a line: the general point and a given distance

    General point of a line

    x−x1a=y−y1b=z−z1c=λ ⇒ (x1+aλ, y1+bλ, z1+cλ)\dfrac{x - x_1}{a} = \dfrac{y - y_1}{b} = \dfrac{z - z_1}{c} = \lambda \ \Rightarrow\ (x_1 + a\lambda,\ y_1 + b\lambda,\ z_1 + c\lambda)
  • A line perpendicular to two given lines

    Direction perpendicular to two lines

    b⃗=b1⃗×b2⃗=∣i^j^k^a1b1c1a2b2c2∣\vec{b} = \vec{b_1} \times \vec{b_2} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ a_1 & b_1 & c_1 \\ a_2 & b_2 & c_2 \end{vmatrix}
  • Where two lines meet

    The lines meet when one λ and one μ satisfy all three

    x1+a1λ=x2+a2μ,y1+b1λ=y2+b2μ,z1+c1λ=z2+c2μx_1 + a_1\lambda = x_2 + a_2\mu,\quad y_1 + b_1\lambda = y_2 + b_2\mu,\quad z_1 + c_1\lambda = z_2 + c_2\mu
  • The foot of the perpendicular and the distance of a point from a line

    Foot M of the perpendicular from P

    M=(x1+aλ, y1+bλ, z1+cλ),PM→⋅(ai^+bj^+ck^)=0M = (x_1 + a\lambda,\ y_1 + b\lambda,\ z_1 + c\lambda), \qquad \overrightarrow{PM} \cdot (a\hat{i} + b\hat{j} + c\hat{k}) = 0
  • The image of a point in a line

    Image from the foot

    M=P+P′2 ⇒ P′=2M−PM = \dfrac{P + P'}{2} \ \Rightarrow\ P' = 2M - P

Watch out for (15)

Test yourself on Three Dimensional Geometry

15 past CBSE Class 12 questions from this chapter, timed at 23 minutes and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.