PYQ Vault

HSC Maths · Line and Planes

Vector and Cartesian Equations of a Line

A line in space is fixed by one point on it and its direction. That gives its vector equation r = a + λb and its Cartesian equations (x − x₁)/a = (y − y₁)/b = (z − z₁)/c.

Why this matters

65 questions, the largest page of the chapter, eighteen of them from board papers: the vector equation of a line through a point parallel to a vector (2018, 2024, 2025) or through two points (2026), the Cartesian equations through two points (MCQs in 2020, 2022, 2026), changing Cartesian equations to vector form (2015), direction ratios and direction cosines (2025), a line perpendicular to two given lines or vectors (2015, 2019, 2020, 2024), and the angle between two lines (2018, an MCQ in 2024, 2025, 2026). The textbook rows are Exercise 6.1, Solved Examples 1 to 11, most of Miscellaneous Exercise 6 A and six MCQs of Miscellaneous Exercise 6 B.

Concept 1 of 4: Vector equation of a line

A line is fixed by one point A on it and a direction b. You reach any point P of the line by starting at A and moving some multiple of b. That multiple, λ, is the parameter: each real value of λ gives one point of the line, and each point gives one value of λ.

Definition

  • Theorem 6.1: the line through A(aˉ)A(\bar{a}) parallel to bˉ\bar{b} is rˉ=aˉ+λbˉ\bar{r} = \bar{a} + \lambda\bar{b}.
  • Proof outline: let P(rˉ)P(\bar{r}) be any point on the line.
  • AP‾\overline{AP} is parallel to bˉ\bar{b}, so AP‾=λbˉ\overline{AP} = \lambda\bar{b} for some scalar λ\lambda.
  • OP‾−OA‾=λbˉ\overline{OP} - \overline{OA} = \lambda\bar{b}, so rˉ−aˉ=λbˉ\bar{r} - \bar{a} = \lambda\bar{b}, that is rˉ=aˉ+λbˉ\bar{r} = \bar{a} + \lambda\bar{b}.
  • Theorem 6.3: the line through A(aˉ)A(\bar{a}) and B(bˉ)B(\bar{b}) is rˉ=aˉ+λ(bˉ−aˉ)\bar{r} = \bar{a} + \lambda(\bar{b} - \bar{a}), because AB‾=bˉ−aˉ\overline{AB} = \bar{b} - \bar{a} lies along the line.
  • A point P(rˉ)P(\bar{r}) lies on rˉ=aˉ+λbˉ\bar{r} = \bar{a} + \lambda\bar{b} exactly when rˉ−aˉ\bar{r} - \bar{a} is a scalar multiple of bˉ\bar{b}.

Vector equation of a line

rˉ=aˉ+λbˉ,rˉ=aˉ+λ(bˉ−aˉ)\bar{r} = \bar{a} + \lambda\bar{b}, \qquad \bar{r} = \bar{a} + \lambda(\bar{b} - \bar{a})
  • rˉ\bar{r}position vector of any point of the line
  • aˉ\bar{a}position vector of a known point A of the line
  • bˉ\bar{b}a vector along the line (in the second form, the position vector of a second point B)
  • λ\lambdathe parameter, any real number

Worked example

Find the vector equation of the line passing through A(2,−1,3)A(2, -1, 3) and B(5,1,−1)B(5, 1, -1). Hence check whether C(8,3,−5)C(8, 3, -5) lies on it.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2026 · Q. 8Easy

Example 1 · Line and Planes · Vector and Cartesian Equations of a Line

Find the vector equation of the line passing through the points A(1,2,3)A(1, 2, 3) and B(2,3,4)B(2, 3, 4).

Using a position vector as the direction

For a line through two points the direction is bˉ−aˉ\bar{b} - \bar{a}, not bˉ\bar{b}. Writing rˉ=aˉ+λbˉ\bar{r} = \bar{a} + \lambda\bar{b} here gives a line through AA in the wrong direction, which misses BB.

Dropping the parameter

An equation such as rˉ=2i^+3j^\bar{r} = 2\hat{i} + 3\hat{j} is one point, not a line. The direction must carry λ\lambda, and a full answer says λ\lambda is a real number.

Concept 2 of 4: Cartesian equations and direction ratios of a line

In coordinates, a point (x, y, z) is on the line when its steps from A, namely x − x₁, y − y₁ and z − z₁, are in the same proportion as the direction ratios. That is two equations written as one chain. A line in space cannot be given by a single equation.

Definition

  • Theorem 6.2: the line through A(x1,y1,z1)A(x_1, y_1, z_1) with direction ratios a,b,ca, b, c is x−x1a=y−y1b=z−z1c\dfrac{x - x_1}{a} = \dfrac{y - y_1}{b} = \dfrac{z - z_1}{c}.
  • Theorem 6.4: the line through A(x1,y1,z1)A(x_1, y_1, z_1) and B(x2,y2,z2)B(x_2, y_2, z_2) is x−x1x2−x1=y−y1y2−y1=z−z1z2−z1\dfrac{x - x_1}{x_2 - x_1} = \dfrac{y - y_1}{y_2 - y_1} = \dfrac{z - z_1}{z_2 - z_1}.
  • Vector to Cartesian and back: aˉ=x1i^+y1j^+z1k^\bar{a} = x_1\hat{i} + y_1\hat{j} + z_1\hat{k} gives the point, and bˉ=ai^+bj^+ck^\bar{b} = a\hat{i} + b\hat{j} + c\hat{k} gives the direction ratios.
  • Before reading a point or a direction, make the coefficient of xx, yy and zz each equal to 1: 2x−14=x−122\dfrac{2x - 1}{4} = \dfrac{x - \frac{1}{2}}{2}.
  • If a direction ratio is 0, the book writes the line in parametric form x=x1+λax = x_1 + \lambda a, y=y1+λby = y_1 + \lambda b, z=z1+λcz = z_1 + \lambda c, not as a fraction with 0 below.
  • Direction cosines are the direction ratios divided by a2+b2+c2\sqrt{a^2 + b^2 + c^2}, and l2+m2+n2=1l^2 + m^2 + n^2 = 1.

Cartesian equations of a line

x−x1a=y−y1b=z−z1c\frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c}
  • (x1,y1,z1)(x_1, y_1, z_1)a point of the line
  • a,b,ca, b, cdirection ratios of the line

Worked example

Find the vector equation of the line 2x−14=y+3−1=1−z2\dfrac{2x - 1}{4} = \dfrac{y + 3}{-1} = \dfrac{1 - z}{2}.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2025 · Q. 18Moderate

Example 2 · Line and Planes · Vector and Cartesian Equations of a Line

A line passes through the points (6,−7,−1)(6, - 7, - 1) and (2,−3,1)(2, - 3,1). Find the direction ratios and the direction cosines of the line. Show that the line does not pass through the origin.

Reading the point with the wrong sign

x+23\dfrac{x + 2}{3} belongs to the point with x=−2x = -2, not x=2x = 2. Write each numerator as x−x1x - x_1 before you read the point.

Reading direction ratios before the coefficients are 1

In 3x+11\dfrac{3x + 1}{1} the direction ratio along xx is 13\dfrac{1}{3}, not 1. Divide out the coefficient of the variable first, then clear fractions.

Giving direction ratios when direction cosines are asked

Direction cosines must satisfy l2+m2+n2=1l^2 + m^2 + n^2 = 1. Divide the ratios by a2+b2+c2\sqrt{a^2 + b^2 + c^2} and check the squares add to 1.

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

When a line must be perpendicular to two directions, its direction is their cross product, because b × c is perpendicular to both b and c. After that you only need one point of the line, and the question gives it.

Definition

  • bˉ×cˉ\bar{b} \times \bar{c} is perpendicular to both bˉ\bar{b} and cˉ\bar{c}, so it is the direction of a line perpendicular to both.
  • For lines given in Cartesian form, use their direction ratios as bˉ\bar{b} and cˉ\bar{c}; their points play no part.
  • Work the cross product as a determinant, then write rˉ=aˉ+λ(bˉ×cˉ)\bar{r} = \bar{a} + \lambda(\bar{b} \times \bar{c}) or the Cartesian form through the given point.
  • Check: the direction found must give a dot product of 0 with each given direction.

Direction perpendicular to two vectors

bˉ×cˉ=∣i^j^k^b1b2b3c1c2c3∣\bar{b} \times \bar{c} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ b_1 & b_2 & b_3 \\ c_1 & c_2 & c_3 \end{vmatrix}

Worked example

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

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2024 · Q. 18Moderate

Example 3 · Line and Planes · Vector and Cartesian Equations of a Line

Find the vector equation of the line passing through the point (i^+2j^+3k^)(\hat{i} + 2\hat{j} + 3\hat{k}) and perpendicular to the vectors i^+j^+k^\hat{i} + \hat{j} + \hat{k} and 2i^−j^+k^2\hat{i} - \hat{j} + \hat{k}.

A sign slip in the middle term

The j^\hat{j} part of a cross product carries a minus sign: −(b1c3−b3c1)-(b_1c_3 - b_3c_1). Dot your answer with both given directions; if either dot product is not 0, recheck that term.

Using the points of the given lines

Only the direction ratios of the given lines are crossed. The required line passes through the point the question names, not through a point of either given line.

Concept 4 of 4: Angle between two lines, and lines that meet

The angle between two lines is the angle between their directions, so dot the two direction vectors. A dot product of 0 means the lines are perpendicular; proportional directions mean they are parallel. Whether two lines actually meet is a different question: one point must satisfy both equations.

Definition

  • The angle θ\theta between rˉ=a1ˉ+λb1ˉ\bar{r} = \bar{a_1} + \lambda\bar{b_1} and rˉ=a2ˉ+μb2ˉ\bar{r} = \bar{a_2} + \mu\bar{b_2} is the angle between b1ˉ\bar{b_1} and b2ˉ\bar{b_2}: cos⁡θ=b1ˉ⋅b2ˉ∣b1ˉ∣ ∣b2ˉ∣\cos\theta = \dfrac{\bar{b_1} \cdot \bar{b_2}}{|\bar{b_1}|\,|\bar{b_2}|}.
  • For the acute angle, take the modulus of the dot product.
  • With direction ratios: cos⁡θ=a1a2+b1b2+c1c2a12+b12+c12 a22+b22+c22\cos\theta = \dfrac{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}}.
  • Perpendicular lines: a1a2+b1b2+c1c2=0a_1a_2 + b_1b_2 + c_1c_2 = 0. Parallel lines: a1a2=b1b2=c1c2\dfrac{a_1}{a_2} = \dfrac{b_1}{b_2} = \dfrac{c_1}{c_2}.
  • To show two lines meet: write the general point of each, equate the coordinates, solve two of the equations for λ\lambda and μ\mu, and check that the third is satisfied.

Angle between two lines

cos⁡θ=∣b1ˉ⋅b2ˉ∣∣b1ˉ∣ ∣b2ˉ∣\cos\theta = \frac{|\bar{b_1} \cdot \bar{b_2}|}{|\bar{b_1}|\,|\bar{b_2}|}

Worked example

Find the acute angle between the lines x−51=y+14=z8\dfrac{x - 5}{1} = \dfrac{y + 1}{4} = \dfrac{z}{8} and x4=y−67=z+44\dfrac{x}{4} = \dfrac{y - 6}{7} = \dfrac{z + 4}{4}.
Practise this conceptself-check · 3 quick reps

The same idea in a real exam question:

Maharashtra HSC Class 12 · 2026 · Q. 8Moderate

Example 4 · Line and Planes · Vector and Cartesian Equations of a Line

Find the angle between the lines rˉ=(i^+2j^+3k^)+λ(2i^−j^+k^)\bar{r} = (\hat{i} + 2\hat{j} + 3\hat{k}) + \lambda(2\hat{i} - \hat{j} + \hat{k}) rˉ=(i^+2j^+3k^)+μ(i^+2j^+k^)\bar{r} = (\hat{i} + 2\hat{j} + 3\hat{k}) + \mu(\hat{i} + 2\hat{j} + \hat{k})

Putting the points into the angle

The angle uses only the directions b1ˉ\bar{b_1} and b2ˉ\bar{b_2}. The position vectors a1ˉ\bar{a_1} and a2ˉ\bar{a_2} never enter it.

A negative cosine for the acute angle

If the dot product is negative, the formula gives the obtuse angle. When the acute angle is asked, take the modulus of the dot product.

Checking only two equations when lines are said to meet

Two of the three coordinate equations always give some λ\lambda and μ\mu. The lines meet only if the third equation holds too; write that check in the answer.

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

  • Vector equation of a line

    Vector equation of a line

    rˉ=aˉ+λbˉ,rˉ=aˉ+λ(bˉ−aˉ)\bar{r} = \bar{a} + \lambda\bar{b}, \qquad \bar{r} = \bar{a} + \lambda(\bar{b} - \bar{a})
  • Cartesian equations and direction ratios of a line

    Cartesian equations of a line

    x−x1a=y−y1b=z−z1c\frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c}
  • A line perpendicular to two given lines

    Direction perpendicular to two vectors

    bˉ×cˉ=∣i^j^k^b1b2b3c1c2c3∣\bar{b} \times \bar{c} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ b_1 & b_2 & b_3 \\ c_1 & c_2 & c_3 \end{vmatrix}
  • Angle between two lines, and lines that meet

    Angle between two lines

    cos⁡θ=∣b1ˉ⋅b2ˉ∣∣b1ˉ∣ ∣b2ˉ∣\cos\theta = \frac{|\bar{b_1} \cdot \bar{b_2}|}{|\bar{b_1}|\,|\bar{b_2}|}

Watch out for (10)

Test yourself on Line and Planes

15 past MH HSC 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.