Line Through a Point, Parallel to a Vector

A line in space is pinned down by (i) a point on it plus a direction, or (ii) two points on it.

Let AA (position vector a⃗\vec{a}) lie on line ll, and let ll be parallel to b⃗\vec{b}. For any point PP (position vector r⃗\vec{r}) on the line, AP→\overrightarrow{AP} is parallel to b⃗\vec{b}: r⃗−a⃗=λb⃗\vec{r} - \vec{a} = \lambda\vec{b}. Hence the vector equation:

r⃗=a⃗+λb⃗,λ∈R\vec{r} = \vec{a} + \lambda\vec{b}, \qquad \lambda \in \mathbb{R}

Each value of the parameter λ\lambda produces exactly one point of the line — λ=0\lambda = 0 gives AA itself; sweeping λ\lambda sweeps the whole line.

Line through point A parallel to vector b with position vector r

Key Point: if b⃗=ai^+bj^+ck^\vec{b} = a\hat{i} + b\hat{j} + c\hat{k}, then a,b,ca, b, c are direction ratios of the line — and conversely, direction ratios of a line hand you a parallel vector for free. The letter bb here names a component, not the magnitude ∣b⃗∣|\vec{b}|.

Cartesian (symmetric) form

Writing r⃗=xi^+yj^+zk^\vec{r} = x\hat{i} + y\hat{j} + z\hat{k}, A=(x1,y1,z1)A = (x_1, y_1, z_1) and equating components gives the parametric equations x=x1+λax = x_1 + \lambda a, y=y1+λby = y_1 + \lambda b, z=z1+λcz = z_1 + \lambda c; eliminating λ\lambda:

x−x1a=y−y1b=z−z1c\frac{x - x_1}{a} = \frac{y - y_1}{b} = \frac{z - z_1}{c}

If direction cosines l,m,nl, m, n are used as denominators, the common value of the three fractions is the signed distance along the line from (x1,y1,z1)(x_1, y_1, z_1).

Line Through Two Points, and Form-Keeping Rules

Two-point form

The line through points A(a⃗)A(\vec{a}) and B(b⃗)B(\vec{b}) has direction b⃗−a⃗\vec{b} - \vec{a}, so:

r⃗=a⃗+λ(b⃗−a⃗)\vec{r} = \vec{a} + \lambda\left(\vec{b} - \vec{a}\right)

and in Cartesian form (direction ratios = coordinate differences):

x−x1x2−x1=y−y1y2−y1=z−z1z2−z1\frac{x - x_1}{x_2 - x_1} = \frac{y - y_1}{y_2 - y_1} = \frac{z - z_1}{z_2 - z_1}

λ=0\lambda = 0 lands on AA, λ=1\lambda = 1 on BB, and 0<λ<10 < \lambda < 1 traces the segment between them.

Reading equations correctly — the three traps

  1. Numerators must be x−x1x - x_1, never x1−xx_1 - x or 3−x3 - x. An equation like 3−x5=y+47=2z−64\dfrac{3 - x}{5} = \dfrac{y + 4}{7} = \dfrac{2z - 6}{4} must be standardised before reading anything off: x−3−5=y−(−4)7=z−32\dfrac{x - 3}{-5} = \dfrac{y - (-4)}{7} = \dfrac{z - 3}{2} — direction ratios (−5,7,2)(-5, 7, 2) and point (3,−4,3)(3, -4, 3), not (5,7,4)(5, 7, 4) and (3,−4,6)(3, -4, 6).
  2. Coefficients of x,y,zx, y, z must be 11: divide out any 2z2z-style factor (and its denominator) first.
  3. Testing whether a point lies on a line: substitute into all three fractions — the point is on the line only if all three give the same value of λ\lambda. Two matching and one differing means NOT on the line.

Key Point (conversions both ways): vector → Cartesian: read the point from a⃗\vec{a} and denominators from b⃗\vec{b}. Cartesian → vector: the point comes from the numerators, the parallel vector from the denominators. Every exam conversion is these two sentences.

Solved Examples

Example 1: Both forms from a point and a vector

Find the vector and Cartesian equations of the line through (5,2,−4)(5, 2, -4) parallel to 3i^+2j^−8k^3\hat{i} + 2\hat{j} - 8\hat{k}.

Solution:

  1. Vector form: r⃗=(5i^+2j^−4k^)+λ(3i^+2j^−8k^)\vec{r} = \left(5\hat{i} + 2\hat{j} - 4\hat{k}\right) + \lambda\left(3\hat{i} + 2\hat{j} - 8\hat{k}\right).
  2. Cartesian form (point over ratios): x−53=y−22=z+4−8\dfrac{x - 5}{3} = \dfrac{y - 2}{2} = \dfrac{z + 4}{-8}.

Answer: as above — note z+4z + 4 is z−(−4)z - (-4), and the −8-8 stays in the denominator with its sign.


Example 2: Cartesian to vector

Write the vector equation of the line x+32=y−54=z−62\dfrac{x + 3}{2} = \dfrac{y - 5}{4} = \dfrac{z - 6}{2}.

Solution:

  1. Point from numerators: (−3,5,6)(-3, 5, 6).
  2. Direction from denominators: 2i^+4j^+2k^2\hat{i} + 4\hat{j} + 2\hat{k}.

Answer: r⃗=(−3i^+5j^+6k^)+λ(2i^+4j^+2k^)\vec{r} = \left(-3\hat{i} + 5\hat{j} + 6\hat{k}\right) + \lambda\left(2\hat{i} + 4\hat{j} + 2\hat{k}\right) — equivalently with the simplified direction i^+2j^+k^\hat{i} + 2\hat{j} + \hat{k}, since direction ratios scale freely.


Example 3: Through two points

Find the vector and Cartesian equations of the line through A(−1,0,2)A(-1, 0, 2) and B(3,4,6)B(3, 4, 6).

Solution:

  1. Direction: b⃗−a⃗=4i^+4j^+4k^\vec{b} - \vec{a} = 4\hat{i} + 4\hat{j} + 4\hat{k}.
  2. Vector form: r⃗=(−i^+2k^)+λ(4i^+4j^+4k^)\vec{r} = \left(-\hat{i} + 2\hat{k}\right) + \lambda\left(4\hat{i} + 4\hat{j} + 4\hat{k}\right).
  3. Cartesian form: x+14=y4=z−24\dfrac{x + 1}{4} = \dfrac{y}{4} = \dfrac{z - 2}{4} (or with the reduced ratios 1,1,11, 1, 1).

Answer: as above; the reduced direction (1,1,1)(1, 1, 1) shows the line is equally inclined to all three axes.


Example 4: Standardising a disguised equation

Find the direction ratios and a point of the line 3−x5=y+47=2z−64\dfrac{3 - x}{5} = \dfrac{y + 4}{7} = \dfrac{2z - 6}{4}.

Solution:

  1. Fix the xx-numerator: 3−x5=x−3−5\dfrac{3 - x}{5} = \dfrac{x - 3}{-5}.
  2. Fix the zz-term: 2z−64=2(z−3)4=z−32\dfrac{2z - 6}{4} = \dfrac{2(z - 3)}{4} = \dfrac{z - 3}{2}.
  3. Read off the standard form x−3−5=y+47=z−32\dfrac{x - 3}{-5} = \dfrac{y + 4}{7} = \dfrac{z - 3}{2}.

Answer: direction ratios (−5,7,2)(-5, 7, 2); point (3,−4,3)(3, -4, 3). Reading the raw equation without standardising gives wrong ratios and a wrong point — this single trap fills board papers every year.


Example 5: Is the point on the line?

Does the point (5,8,11)(5, 8, 11) lie on the line r⃗=(i^+2j^+3k^)+λ(2i^+3j^+4k^)\vec{r} = \left(\hat{i} + 2\hat{j} + 3\hat{k}\right) + \lambda\left(2\hat{i} + 3\hat{j} + 4\hat{k}\right)?

Solution:

  1. Equate components: 5=1+2λ5 = 1 + 2\lambda, 8=2+3λ8 = 2 + 3\lambda, 11=3+4λ11 = 3 + 4\lambda.
  2. Solve each: λ=2\lambda = 2, λ=2\lambda = 2, λ=2\lambda = 2 — all three agree.

Answer: yes, it is the point with λ=2\lambda = 2. Had even one equation disagreed, the answer would be no — all three must produce the same λ\lambda.


Example 6: A line through the origin

Write both forms of the line through the origin with direction ratios 2,−1,32, -1, 3.

Solution:

  1. Vector form (a⃗=0⃗\vec{a} = \vec{0}): r⃗=λ(2i^−j^+3k^)\vec{r} = \lambda\left(2\hat{i} - \hat{j} + 3\hat{k}\right).
  2. Cartesian form: x2=y−1=z3\dfrac{x}{2} = \dfrac{y}{-1} = \dfrac{z}{3}.

Answer: as above — through the origin, the numerators are simply x,y,zx, y, z.