A line in space is pinned down by (i) a point on it plus a direction, or (ii) two points on it.
Let A (position vector a) lie on line l, and let l be parallel to b. For any point P (position vector r) on the line, AP is parallel to b: r−a=λb. Hence the vector equation:
r=a+λb,λ∈R
Each value of the parameter λ produces exactly one point of the line — λ=0 gives A itself; sweeping λ sweeps the whole line.
Key Point: if b=ai^+bj^+ck^, then a,b,c are direction ratios of the line — and conversely, direction ratios of a line hand you a parallel vector for free. The letter b here names a component, not the magnitude ∣b∣.
Cartesian (symmetric) form
Writing r=xi^+yj^+zk^, A=(x1,y1,z1) and equating components gives the parametric equationsx=x1+λa, y=y1+λb, z=z1+λc; eliminating λ:
ax−x1=by−y1=cz−z1
If direction cosinesl,m,n are used as denominators, the common value of the three fractions is the signed distance along the line from (x1,y1,z1).
Line Through Two Points, and Form-Keeping Rules
Two-point form
The line through points A(a) and B(b) has direction b−a, so:
r=a+λ(b−a)
and in Cartesian form (direction ratios = coordinate differences):
x2−x1x−x1=y2−y1y−y1=z2−z1z−z1
λ=0 lands on A, λ=1 on B, and 0<λ<1 traces the segment between them.
Reading equations correctly — the three traps
Numerators must be x−x1, never x1−x or 3−x. An equation like 53−x=7y+4=42z−6 must be standardised before reading anything off: −5x−3=7y−(−4)=2z−3 — direction ratios (−5,7,2) and point (3,−4,3), not (5,7,4) and (3,−4,6).
Coefficients of x,y,z must be 1: divide out any 2z-style factor (and its denominator) first.
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 λ. Two matching and one differing means NOT on the line.
Key Point (conversions both ways): vector → Cartesian: read the point from a and denominators from 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) parallel to 3i^+2j^−8k^.
Solution:
Vector form:r=(5i^+2j^−4k^)+λ(3i^+2j^−8k^).
Cartesian form (point over ratios): 3x−5=2y−2=−8z+4.
Answer: as above — note z+4 is z−(−4), and the −8 stays in the denominator with its sign.
Example 2: Cartesian to vector
Write the vector equation of the line 2x+3=4y−5=2z−6.
Solution:
Point from numerators:(−3,5,6).
Direction from denominators:2i^+4j^+2k^.
Answer:r=(−3i^+5j^+6k^)+λ(2i^+4j^+2k^) — equivalently with the simplified direction i^+2j^+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) and B(3,4,6).
Solution:
Direction:b−a=4i^+4j^+4k^.
Vector form:r=(−i^+2k^)+λ(4i^+4j^+4k^).
Cartesian form:4x+1=4y=4z−2 (or with the reduced ratios 1,1,1).
Answer: as above; the reduced direction (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 53−x=7y+4=42z−6.
Solution:
Fix the x-numerator:53−x=−5x−3.
Fix the z-term:42z−6=42(z−3)=2z−3.
Read off the standard form−5x−3=7y+4=2z−3.
Answer: direction ratios (−5,7,2); point (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) lie on the line r=(i^+2j^+3k^)+λ(2i^+3j^+4k^)?
Solution:
Equate components:5=1+2λ, 8=2+3λ, 11=3+4λ.
Solve each:λ=2, λ=2, λ=2 — all three agree.
Answer: yes, it is the point with λ=2. Had even one equation disagreed, the answer would be no — all three must produce the same λ.
Example 6: A line through the origin
Write both forms of the line through the origin with direction ratios 2,−1,3.
Solution:
Vector form (a=0): r=λ(2i^−j^+3k^).
Cartesian form:2x=−1y=3z.
Answer: as above — through the origin, the numerators are simply x,y,z.
Ready to test your knowledge?
Take a quick interactive quiz on this topic —
free, works without login.