IB Maths AI HL Vector Equations of Lines Paper 1 & 2 Vector form ~8 min read

Equation of a Line in Vector Form

A line in 3D needs two things: a point on it, and a direction. The vector equation r = a + λb packages these together — a is the position vector of a known point, b is a direction vector, and λ is a scalar that slides you along the line. Different λ values give different points on the same line.

📘 What you need to know

Writing the equation — r = a + λb

Pick any point on the line, write its position vector as a. Pick any direction along the line, write it as b. The line is the set of all points r = a + λb as λ varies over ℝ. λ = 0 gives the point a; λ = 1 gives a + b; negative λ goes the other way along the line.

r = a + λb — slide along the line by varying λ z y x O l a b λ=−1 λ=0 (a) λ=1 (a+b) λ=2 r = a + λb every λ ∈ ℝ gives a point on the line; λ = 0 is the point a itself Vector equation reference ① Formula r = a + λb a = point on line b = direction vector λ ∈ ℝ = parameter ② Line through A and P direction = a − p (or p − a) r = a + λ(a − p) use either A or P as the base ③ Is P on the line? solve p = a + λb all 3 components → same λ if yes → on line; if no → off line
The line is fixed; the parameter λ moves you along it. λ = 0 places you at a, λ = 1 moves one full b further, λ = −1 moves one b backwards.
Vector equation of a line r = a + λb   ⇔   (xyz) = (a1a2a3) + λ(b1b2b3) a is any known point on the line; b is any non-zero direction vector along the line

Checking whether a point lies on the line

Given r = a + λb and a candidate point p, set p = a + λb and solve each component for λ. If all three give the same value of λ, the point is on the line. If any one disagrees, the point is off the line.

Shortcut: p is on the line ⇔ pa is a scalar multiple of b. If the components of pa divided by the components of b all give the same number, that number is your λ.

🧭 Recipe — vector equation of a line

  1. Need a point — pick any point on the line and write its position vector as a.
  2. Need a direction — given two points A, P, use b = ap (or pa). Given parametric/cartesian form, read the coefficients of the parameter.
  3. Write r = a + λb.
  4. Test a point P: solve each component pi = ai + λbi for λ — all three must match.
  5. Generate a point at parameter value λ = k: substitute λ = k and compute a + kb.

Worked examples

WE 1

Vector equation from a point and a direction

Write a vector equation of the line through the point (3, −1, 4) with direction vector (20−5).

apply r = a + λb directly a = (3−14),  b = (20−5) r = (3−14) + λ(20−5) any scalar multiple of (2, 0, −5) works as direction — e.g. (4, 0, −10) or (−2, 0, 5).
WE 2

Vector equation through two points

Find a vector equation of the line through A with position vector 4i − 5k and B with position vector 3i − 3k.

write OA and OB as columns OA = (40−5),  OB = (30−3) direction = AB = OB − OA AB = (−102) use a = OA, b = AB r = (40−5) + λ(−102) OB + λ(−1, 0, 2) is also a valid answer — same line, different base point.
WE 3

Is the point on the line?

Does the point C(2, 0, −1) lie on the line r = (40−5) + λ(−102)?

set c = a + λb, equate components x:  4 − λ = 2 → λ = 2 y:  0 + 0λ = 0 ✓ (any λ) z:  −5 + 2λ = −1 → λ = 2 all components give λ = 2 yes, C lies on the line (at λ = 2) when a component is 0 + 0λ on both sides, that equation is satisfied for every λ — ignore it for fixing λ.
WE 4

Point NOT on the line

Does D(7, 2, −3) lie on r = (123) + λ(30−2)?

equate components x:  1 + 3λ = 7 → λ = 2 y:  2 + 0λ = 2 ✓ z:  3 − 2λ = −3 → λ = 3 x gives λ = 2 but z gives λ = 3 ✗ no, D does NOT lie on the line just one mismatched λ is enough to rule it out.
WE 5

Find a specific point on the line

For r = (25−1) + λ(1−23): (a) find the point at λ = 3; (b) find the value of λ for which the point lies in the plane z = 0.

(a) substitute λ = 3 r = (2+3, 5−6, −1+9) = (5, −1, 8) point at λ = 3: (5, −1, 8) (b) set z-component = 0 −1 + 3λ = 0 → λ = 1/3 find the full point r = (2 + 1/3, 5 − 2/3, 0) = (7/3, 13/3, 0) crosses xy-plane at (7/3, 13/3, 0)
WE 6

Same line, different equations

Show that r1 = (102) + λ(21−1) and r2 = (520) + μ(−4−22) represent the same line.

directions parallel? (−4, −2, 2) = −2 · (2, 1, −1) ✓ (5, 2, 0) on r1? solve (5, 2, 0) = a + λb x: 1 + 2λ = 5 → λ = 2 y: 0 + λ = 2 → λ = 2 ✓ z: 2 − λ = 0 → λ = 2 ✓ parallel + share a point → same line r1 and r2 are the same line ✓ two conditions: (1) directions are scalar multiples, (2) one line’s base point lies on the other.

💡 Top tips

⚠ Common mistakes

Next up — Equation of a Line in Parametric Form. The same equation r = a + λb, split into its three components as x = x0 + λl, y = y0 + λm, z = z0 + λn. Same line, different presentation — you’ll see why parametric form is often easier for solving.

Need help with Vector Equations of Lines?

Get 1-on-1 help from an IB examiner who knows exactly what Paper 1 & 2 are looking for.

Book Free Session →