James Ashton MathsFREE MATHEMATICS. OPEN TO EVERYONE.
HomeIB DiplomaA levelAbout
IB Diploma › Maths AI HL › Geometry & trigonometry › Vectors & lines

Vectors & vector equations of lines

A vector has a size and a direction. Vectors describe displacements, velocities and forces, and they give a neat way to write a straight line in two or three dimensions: start at a point and move any multiple of a direction vector.

AHL 3.10AHL 3.11HL onlyPaper 1Paper 2GDC allowed≈ 55 min to work through
Before you start: 3D coordinates and distances (3D geometry) and Pythagoras.

1What you need to know

Tick these off as you go. By the end of the page you should be able to do all of them without notes.

  • Use column vectors and the base vectors 𝐢,𝐣,𝐤AHL 3.10
  • Add, subtract and scale vectors, and find resultantsAHL 3.10
  • Find position vectors, displacement vectors and magnitudesAHL 3.10
  • Find unit vectors, and rescale a vector to a given lengthAHL 3.10
  • Recognise parallel vectors as scalar multiplesAHL 3.10
  • Write the equation of a line as 𝐫=𝐚+λ𝐛 and in parametric formAHL 3.11
  • Check whether a point is on a line, and find where two lines meetAHL 3.11

2Notes & worked examples

Each idea is followed by a worked example. Try the question yourself first, then reveal the solution one step at a time.

The big idea

A vector is an instruction: "move this far in this direction". The position vector 𝐚 gets you to a point on a line, and the direction vector 𝐛 says which way the line goes. Every point on the line is 𝐚+λ𝐛 for some number λ.

2.1 Vectors and their notation

A scalar has size only (mass, speed, distance); a vector has size and direction (displacement, velocity, force). In components, 𝐯=(v1v2v3)=v1𝐢+v2𝐣+v3𝐤. Add and subtract component by component; k𝐯 multiplies every component by k. The zero vector 0 has every component 0, and −𝐯 points the opposite way to 𝐯.

The position vector of point A is OA→=𝐚. The displacement from A to B is AB→=𝐛−𝐚: "end minus start". The resultant of several displacements is their sum.

2.2 Magnitude, unit vectors and parallel vectors

Magnitude and unit vector In formula booklet
|𝐯|=v12+v22+v32unit vector =𝐯|𝐯|

A vector of length L in the direction of 𝐯 is L𝐯|𝐯|. Two vectors are parallel if one is a scalar multiple of the other.

Worked example 1Paper 1
A is (2,−1,3) and B is (5,3,3). Find AB→, |AB→| and a unit vector in the direction of AB→.
AB→=(5−23+13−3)=(340)
|AB→|=9+16+0=5
Unit vector (0.60.80)
Worked example 2Paper 1
A particle moves with speed 7 m s⁻¹ in the direction 3𝐢+4𝐣. Find its velocity vector.
|3𝐢+4𝐣|=5
𝐯=7×3𝐢+4𝐣5=4.2𝐢+5.6𝐣
Normalise, then scale to the speed.
Worked example 3 (faded)Paper 1
Find |2𝐢−3𝐣+6𝐤|.
4+9+36= 7  ← you work this out

2.3 The vector equation of a line

Vector equation of a line In formula booklet
𝐫=𝐚+λ𝐛⟺x=x0+λl,  y=y0+λm,  z=z0+λn

𝐚=(x0y0z0) is any point on the line and 𝐛=(lmn) is a direction vector. The second form is the parametric form.

Worked example 4Paper 1
Find a vector equation of the line through A(1,2,−1) and B(4,0,3), and determine whether (7,−2,7) lies on it.
𝐛=AB→=(3−24), so 𝐫=(12−1)+λ(3−24)
x: 1+3λ=7⇒λ=2
Find λ from one component, then check the others.
y=2−4=−2 ✓, z=−1+8=7 ✓, so the point is on the line.

2.4 Do two lines meet?

Give the two lines different parameters, λ and μ. Set the components equal, solve two of the equations simultaneously (the GDC is fine), and check the third. If it works, the lines intersect. If it fails and the direction vectors are not parallel, the lines are skew: in 3D they pass each other without meeting. Lines with parallel direction vectors are parallel (or the same line).

Worked example 5Paper 2
Show that L1: 𝐫=(102)+λ(21−1) and L2: 𝐫=(5−3−1)+μ(1−2−1) intersect, and find the point of intersection.
1+2λ=5+μ and λ=−3−2μ
λ=1, μ=−2
Solved on the GDC.
z: 2−1=1 and −1+2=1 ✓
They meet at (3,1,1).
Worked example 6Paper 2
Show that L1 above and L3: 𝐫=(010)+t(111) are skew.
1+2λ=t and λ=1+t give λ=−2, t=−3
z: 2−(−2)=4 but t=−3, so the lines do not meet.
(21−1) is not a multiple of (111), so they are not parallel: they are skew.
On your TI-Nspire Calculator tricks →

On the TI-Nspire, type vectors as [3,4,0] and use norm([3,4,0]) for the magnitude and unitV([3,4,0]) for a unit vector (both in menu → Matrix & Vector). To find where two lines meet, use menu → Algebra → Solve System of Linear Equations with two of the component equations in λ and μ, then check the third by hand.

3Explore it

The line is r = a + λb. Change the point a, the direction b and the parameter λ. The navy arrow is a, the red arrow is λb, and the dot is the point on the line for that value of λ.

4Common mistakes & exam tips

Common mistakes

  • Finding AB→ as 𝐚−𝐛. It is end minus start: 𝐛−𝐚.
  • Using the same parameter for both lines when checking for an intersection.
  • Solving two component equations and forgetting to check the third.
  • Calling non-intersecting lines parallel without checking the direction vectors: in 3D they may be skew.
  • Writing a line as 𝐫=𝐛+λ𝐚, with the point and direction swapped.

Exam tips

  • "Write down a vector equation" needs the full 𝐫=…, not just the two vectors.
  • Any point on the line and any multiple of the direction vector give a correct equation, so your answer may look different from the markscheme.
  • "Show that the lines intersect" needs the check of the third equation to be written down.
  • Give coordinates of a point as (x,y,z), not as a column vector, unless asked for a position vector.

5Practice

Fluency questions build the basics. Problem-solving questions make you think about which method to use.

FluencyP1
Given 𝐩=(3−12) and 𝐪=(−140), find 2𝐩−𝐪.
(7−64)
FluencyP2
Find a vector of magnitude 10 in the direction of (122).
103(122)=(3.336.676.67)
FluencyP3
Find k so that (2k−6) is parallel to (−143).
Multiple is −2, so k=−8.
FluencyP4
Write the line 𝐫=(20−1)+λ(1−34) in parametric form.
x=2+λ, y=−3λ, z=−1+4λ
Problem solvingP5
The line 𝐫=(123)+λ(2−11) meets the plane z=0. Find the point.
3+λ=0⇒λ=−3: (−5, 5, 0)
Problem solvingP6
A drone flies 3 km east, then 4 km north, then climbs 0.5 km. Find its resultant displacement as a vector and the straight-line distance from its start.
(340.5); distance 25.25=5.02 km

6Exam-style questions

Original questions in the style of the IB Maths AI HL exam, with full markschemes. Your GDC is allowed throughout: use it, but write down what you entered and what it gave you. Give yourself about 1 minute per mark.

Question 1Paper 1[6 marks]

The points A and B have coordinates (2,1,−3) and (6,−1,1).

  • (a)Find AB→.[1]
  • (b)Find |AB→|.[1]
  • (c)Write down a vector equation of the line L through A and B.[2]
  • (d)The point C(k,3,−7) lies on L. Find k.[2]
(a)
(4−24)A1
(b)
6A1
(c)
𝐫=(21−3)+λ(4−24)A1A1
A1 for a correct point, A1 for a correct direction, with "𝐫=". Accept equivalent forms.
(d)
1−2λ=3⇒λ=−1(M1)
k=−2A1
Question 2Paper 1[7 marks]

The lines L1 and L2 have equations L1: 𝐫=(3−12)+λ(12−1) and L2: 𝐫=(−154)+μ(3−1−2).

  • (a)Show that L1 and L2 intersect, and find the coordinates of the point of intersection, M.[5]
  • (b)The point D on L1 has λ=−1. Find the distance DM.[2]
(a)
3+λ=−1+3μ and −1+2λ=5−μM1
λ=2, μ=2A1A1
z: 2−2=0 and 4−4=0R1
M(5,3,0)A1
(b)
D(2,−3,3), DM→=(36−3)(M1)
7.35A1
Question 3Paper 2[8 marks]

Two straight tunnels are dug underground. Relative to an origin at ground level, with z measured upwards in metres, the first tunnel starts at A(0,0,−10) and follows 𝐫=(00−10)+λ(43−1). The second starts at B(50,−10,−25) and follows 𝐫=(50−10−25)+μ(−140.5).

  • (a)Show that the tunnels meet, and find the coordinates of the meeting point.[5]
  • (b)Find the length of the first tunnel from A to the meeting point.[2]
  • (c)Write down the depth of the meeting point below ground level.[1]
(a)
4λ=50−μ and 3λ=−10+4μM1
λ=10, μ=10A1A1
z: −10−10=−20 and −25+5=−20R1
(40, 30, −20)A1
(b)
10|(43−1)|=1026(M1)
51.0 mA1
(c)
20 mA1

7Check yourself

Six quick questions, marked instantly. Aim for 6/6 before moving on. Fractions like 3/2 are accepted.

8Past-paper practice

Once you are scoring well above, try these real IB Maths AI HL questions on this topic. Your school or teacher will have the papers.

PaperQuestionFocusDifficulty
Nov 2022 · Paper 1Q8Two intersecting lines: the point of intersection and the angle★★☆
May 2024 · TZ2 · Paper 1Q8Vectors between 3D points; showing a shape is a parallelogram★★☆
May 2022 · TZ2 · Paper 1Q15Writing y=mx+c in vector form★★☆
Nov 2023 · Paper 1Q14The point on a line closest to a given point★★★
Spotted a mistake on this page?Tell me and I'll fix it. The button opens an email with this page already named, or write to jamesashtonmaths@gmail.com.
Report a mistake