Vectors AI HL

A vector has a size and a direction, and most vector questions come down to three moves: subtract position vectors to get a displacement, find a magnitude, or use the scalar product to find an angle. The same moves give the vector equation of a line, the point where two lines meet and the closest approach of two moving objects. Work through the sections in order, because the line section uses the earlier work, and enter the components carefully on the calculator.

Formulas at a glance

The magnitude, the scalar product, the size of the vector product and the vector equation of a line are in the formula booklet, which writes the parameter as λ\lambda where this page uses tt. Unit vectors, the components of the vector product, the area of a triangle and r=r0+vt\mathbf r=\mathbf r_0+\mathbf vt are not, so learn them.

Magnitude of a vector

|v|=v12+v22+v32|\mathbf v|=\sqrt{v_1^2+v_2^2+v_3^2}

In the booklet

Unit vector in the direction of a vector

v^=v|v|\hat{\mathbf v}=\dfrac{\mathbf v}{|\mathbf v|}

Not in the booklet

Scalar product and the angle between two vectors

a⋅b=|a||b|cos⁡θ\mathbf a\cdot\mathbf b=|\mathbf a||\mathbf b|\cos\theta

In the booklet

Scalar product from components

a⋅b=a1b1+a2b2+a3b3\mathbf a\cdot\mathbf b=a_1b_1+a_2b_2+a_3b_3

Not in the booklet

Size of the vector product

|a×b|=|a||b|sin⁡θ|\mathbf a\times\mathbf b|=|\mathbf a||\mathbf b|\sin\theta

In the booklet

Components of the vector product

a×b=(a2b3−a3b2a3b1−a1b3a1b2−a2b1)\mathbf a\times\mathbf b=\begin{pmatrix}a_2b_3-a_3b_2\\ a_3b_1-a_1b_3\\ a_1b_2-a_2b_1\end{pmatrix}

Not in the booklet

Area of a triangle from two side vectors

Area=12|a×b|\text{Area}=\tfrac12|\mathbf a\times\mathbf b|

Not in the booklet

Vector equation of a line

r=a+λb\mathbf r=\mathbf a+\lambda\mathbf b

In the booklet

Parametric form of a line

x=x0+λl, y=y0+λm, z=z0+λnx=x_0+\lambda l,\ y=y_0+\lambda m,\ z=z_0+\lambda n

In the booklet

Position with constant velocity

r=r0+vt\mathbf r=\mathbf r_0+\mathbf vt

Not in the booklet

Position from a velocity that varies with time

r=r0+∫0tvdt\mathbf r=\mathbf r_0+\int_0^t\mathbf v\,dt

Not in the booklet

Which method to use

Decide first what the question asks for: a length, an angle, an area or a line. Then choose the tool that gives it directly, and write the vectors as components before using the calculator.

The question hasUseNotes
Two points, and the vector or the distance between them is wantedSubtract the position vectors, end minus start, then find the magnitudeThe order matters: BA→=−AB→\vec{BA}=-\vec{AB}
A direction, and a vector of a given length in that direction is wantedDivide by the magnitude to get the unit vector, then multiply by the lengthA speed in a direction gives a velocity in this way
Forces, displacements or velocities that act togetherAdd the vectors component by component to get the resultantThe magnitude of the resultant is not the sum of the magnitudes
The angle between two vectors or two linescos⁡θ=a⋅b|a||b|\cos\theta=\dfrac{\mathbf a\cdot\mathbf b}{|\mathbf a||\mathbf b|}, then inverse cosineA negative cosine means an obtuse angle; the acute angle between lines uses the positive value
A question whether two vectors are perpendicularCheck whether the scalar product is zeroNo magnitudes or angles are needed
The area of a triangle or a parallelogram from vectorsThe size of the vector product of two sides from the same vertex, halved for a triangleThe vector product is a vector, but the area is its magnitude
A line through two points, or a point and a directionDirection d=b−a\mathbf d=\mathbf b-\mathbf a, then r=a+td\mathbf r=\mathbf a+t\mathbf dAny point on the line can be a\mathbf a, and any non-zero multiple of d\mathbf d is a direction
Two lines, and where they meetGive the lines different parameters, equate the components and solveIn three dimensions check all three equations, because the lines may be skew
Two moving objects, and when or how close they comeFind the vector between them at time tt, then minimise its magnitude with the graphAt the closest approach the vector between them is perpendicular to the relative velocity
A velocity that changes with time, and the position, speed or highest point is wantedIntegrate each component for the position; the speed is the magnitude of the velocity; set one component to zero for a turning or highest pointThe starting position fixes the constant of integration in each component

Section 1 of 3 AHL3.10

Vector basics

A vector has both magnitude and direction, and in component form it is written as a column such as (25)\begin{pmatrix}2\\5\end{pmatrix} or as 2i+5j2\mathbf i+5\mathbf j. Vectors are added, subtracted and multiplied by scalars one component at a time, and the magnitude |v||\mathbf v| comes from Pythagoras' theorem. A unit vector has magnitude 11 and is found by dividing a vector by its magnitude.

Magnitude and unit vectors

Magnitude of a vector

|v|=x2+y2+z2|\mathbf v| = \sqrt{x^2+y^2+z^2}

The vector's length - Pythagoras' theorem extended to three components. Drop the z2z^2 term for a 2D vector.

✓ In the formula booklet

Unit vector

v^=1|v|v\hat{\mathbf v} = \dfrac{1}{|\mathbf v|}\mathbf v

Divide every component by the magnitude to rescale a vector to length 11 without changing its direction.

Not in the booklet

Vector product and area

The vector product a×b\mathbf a\times\mathbf b is a vector at right angles to both a\mathbf a and b\mathbf b, and 12|a×b|\tfrac12|\mathbf a\times\mathbf b| is the area of a triangle with sides a\mathbf a and b\mathbf b. Its components are in the next section.

Key terms

What is the difference between a scalar and a vector?

A scalar has size only, while a vector has both size and direction. Distance and speed are scalars, and displacement and velocity are vectors.

e.g. A speed of 5 m/s is a scalar, but a velocity of 5 m/s due north is a vector.

What are the base vectors i\mathbf i, j\mathbf j and k\mathbf k?

They are unit vectors along the xx, yy and zz axes, so any vector can be written as a combination of them. The numbers in front of them are the components.

e.g. (2−35)=2i−3j+5k\begin{pmatrix}2\\-3\\5\end{pmatrix}=2\mathbf i-3\mathbf j+5\mathbf k.

How do you find the vector between two points?

Subtract the position vector of the start from the position vector of the end, so AB→=b−a\overrightarrow{AB}=\mathbf b-\mathbf a. The order matters because BA→=−AB→\overrightarrow{BA}=-\overrightarrow{AB}.

e.g. For A(1,2)A(1,2) and B(4,8)B(4,8), AB→=(36)\overrightarrow{AB}=\begin{pmatrix}3\\6\end{pmatrix} and |AB→|=6.71|\overrightarrow{AB}|=6.71.

What happens when a vector is multiplied by a scalar?

Every component is multiplied by the scalar, so the length is multiplied by the absolute value of the scalar. A negative scalar also reverses the direction.

e.g. 3(2−1)=(6−3)3\begin{pmatrix}2\\-1\end{pmatrix}=\begin{pmatrix}6\\-3\end{pmatrix}, while −2(2−1)=(−42)-2\begin{pmatrix}2\\-1\end{pmatrix}=\begin{pmatrix}-4\\2\end{pmatrix}.

Worked example, step by step

The question Calculator needed [6 marks]

A drone is at the point P(2,5,1)P(2,5,1) and flies in a straight line towards the point Q(9,−1,4)Q(9,-1,4). Coordinates are in metres, measured from a fixed origin OO.

(a) Find the displacement vector PQ→\vec{PQ}.

(b) Find the distance PQPQ.

(c) The drone flies from PP towards QQ at a constant speed of 6 m/s. Find its velocity vector, giving each component to three significant figures.

Worked solution: worked example

Answer: (a) (7−63)\begin{pmatrix}7\\-6\\3\end{pmatrix} (b) 9.709.70 m (c) (4.33−3.711.86)\begin{pmatrix}4.33\\-3.71\\1.86\end{pmatrix} m/s

Step 1 - Find the displacement.

Subtract the position vector of the start from that of the end: PQ→=(9−14)−(251)=(7−63).\vec{PQ}=\begin{pmatrix}9\\-1\\4\end{pmatrix}-\begin{pmatrix}2\\5\\1\end{pmatrix}=\begin{pmatrix}7\\-6\\3\end{pmatrix}. M1 - Subtract the position vectors, end minus start A1 - PQ→=(7,−6,3)\vec{PQ}=(7,-6,3)

Why? The displacement points from PP to QQ, so the start is subtracted from the end. Reversing the order would give QP→\vec{QP}, which points the other way.

Step 2 - Find the distance.

The distance is the magnitude of the displacement: |PQ→|=72+(−6)2+32=94=9.70 m.|\vec{PQ}|=\sqrt{7^2+(-6)^2+3^2}=\sqrt{94}=9.70\text{ m}. On the calculator, enter the square root of 72+62+327^2+6^2+3^2 and read the value. M1 - 72+(−6)2+32\sqrt{7^2+(-6)^2+3^2} A1 - 9.709.70 m

Why? The square of a negative component is positive, so the sign of −6-6 does not matter here. Keep the unrounded value, 9.6954…9.6954\ldots, for the next step.

Step 3 - Find the unit vector in the direction of the flight.

Divide each component by the magnitude: p^=194(7−63)=(0.722−0.6190.309).\hat{\mathbf p}=\dfrac{1}{\sqrt{94}}\begin{pmatrix}7\\-6\\3\end{pmatrix}=\begin{pmatrix}0.722\\-0.619\\0.309\end{pmatrix}.

Why? A unit vector has magnitude 1 and carries only the direction. Multiplying it by a speed gives a velocity of exactly that speed.

Step 4 - Scale to the speed.

The velocity is the speed times the unit vector, so v=6×194(7−63)=(4.33−3.711.86) m/s.\mathbf v=6\times\dfrac{1}{\sqrt{94}}\begin{pmatrix}7\\-6\\3\end{pmatrix}=\begin{pmatrix}4.33\\-3.71\\1.86\end{pmatrix}\text{ m/s}. Enter each component as 6×76\times7 divided by 94\sqrt{94}, and so on, using the stored magnitude. M1 - Multiply the unit vector in the direction of PQ→\vec{PQ} by the speed 6 A1 - (4.33,−3.71,1.86)(4.33,-3.71,1.86) m/s

Why? The direction is the direction of PQ→\vec{PQ} and the size is 6 m/s. Using the unrounded unit vector avoids rounding the components twice.

Step 5 - Check the speed.

|v|=4.332+3.712+1.862=35.97=5.997|\mathbf v|=\sqrt{4.33^2+3.71^2+1.86^2}=\sqrt{35.97}=5.997, which is 66 to the accuracy of the rounded components.

Why? The magnitude of the velocity must equal the speed. A different value would show that a component was scaled by the wrong factor.

Marks (6):
M1 Subtract the position vectors, end minus start
A1 PQ→=(7,−6,3)\vec{PQ}=(7,-6,3)
M1 72+(−6)2+32\sqrt{7^2+(-6)^2+3^2}
A1 9.709.70 m
M1 Multiply the unit vector in the direction of PQ→\vec{PQ} by the speed 6
A1 (4.33,−3.71,1.86)(4.33,-3.71,1.86) m/s

Now you try: enter your answers to be marked

These are real practice questions. Type your answer in each box and press Mark it. The worked solution and mark scheme appear straight away, and your first attempt is the one that counts. Use the keyboard for powers, roots and trig, and the working box for your notes.

1
Easy
Calculator
[4 marks]
Let v=(3,−4)\mathbf v = (3, -4).
(a) Find |v|.|\mathbf v|.
[2]
(b) Find the unit vector in the direction of v.\mathbf v.
[2]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
Calculator
[3 marks]
Two forces (52)\begin{pmatrix}5\\2\end{pmatrix} N and (−16)\begin{pmatrix}-1\\6\end{pmatrix} N act on a point.

Find the magnitude of the resultant.
[3]
Fractions & powers
Other

Worked solution: practice question 2

3
Hard
Calculator
[4 marks]
Triangle OABOAB has OA→=(3,1,0)\vec{OA} = (3, 1, 0) and OB→=(1,4,0).\vec{OB} = (1, 4, 0). Using the cross product, find the area of the triangle.
[4]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 11 marks

Common mistakes

  • Treating magnitude as a vector. |v||\mathbf v| is a single number (a scalar) - don't write it in component form or try to add it directly to another vector.
  • Dividing only one component when finding a unit vector. Every component must be divided by the same magnitude |v||\mathbf v|, not just the first one - a partial rescale changes the vector's direction as well as its length.
  • Rounding the magnitude too early. If |v||\mathbf v| is used again in the same question (for a unit vector, a speed, or a further calculation), keep it exact or unrounded until the final answer - early rounding compounds into an inaccurate final value.

Try some questions on vector basics

Section 2 of 3 AHL3.13

Dot product and angles

The scalar product of two vectors is a single number, found either by multiplying matching components and adding or from v⋅w=|v||w|cos⁡θ\mathbf v\cdot\mathbf w=|\mathbf v||\mathbf w|\cos\theta. Equating the two forms gives the angle θ\theta between the vectors, and a scalar product of zero shows that two non-zero vectors are perpendicular. It also gives the component of one vector in the direction of another.

The scalar product formula

Scalar product / angle between vectors

v⋅w=|v||w|cos⁡θ\mathbf v\cdot\mathbf w=|\mathbf v||\mathbf w|\cos\theta

In components, v⋅w\mathbf v\cdot\mathbf w is found by multiplying matching entries and adding the results. Rearrange for cos⁡θ\cos\theta to find the angle between two vectors.

✓ In the formula booklet

Perpendicularity test

Two non-zero vectors v\mathbf v and w\mathbf w are perpendicular exactly when v⋅w=0\mathbf v\cdot\mathbf w = 0. This follows straight from the formula above, since cos⁡90∘=0\cos 90^\circ = 0 - no need to find either magnitude first.

Vector (cross) product

a×b=(a2b3−a3b2a3b1−a1b3a1b2−a2b1)\mathbf a\times\mathbf b=\begin{pmatrix}a_2b_3-a_3b_2\\ a_3b_1-a_1b_3\\ a_1b_2-a_2b_1\end{pmatrix}

The result is a vector at right angles to both a\mathbf a and b\mathbf b, and its size is |a||b|sin⁡θ|\mathbf a||\mathbf b|\sin\theta, the area of the parallelogram with sides a\mathbf a and b\mathbf b. The area of a triangle with those sides is 12|a×b|\tfrac12|\mathbf a\times\mathbf b|. The booklet gives only the size, so learn the components. The calculator can find the components, and the order matters because b×a=−a×b\mathbf b\times\mathbf a=-\mathbf a\times\mathbf b.

Key terms

What does the scalar product of a vector with itself give?

Since the angle between a vector and itself is 0∘0^{\circ}, v⋅v=|v|2\mathbf v\cdot\mathbf v=|\mathbf v|^2. This gives a quick way to find a magnitude.

e.g. For v=(236)\mathbf v=\begin{pmatrix}2\\3\\6\end{pmatrix}, v⋅v=4+9+36=49\mathbf v\cdot\mathbf v=4+9+36=49, so |v|=7|\mathbf v|=7.

How do you find the angle between two vectors?

Rearrange the definition to cos⁡θ=v⋅w|v||w|\cos\theta=\dfrac{\mathbf v\cdot\mathbf w}{|\mathbf v||\mathbf w|}, then use inverse cosine. Find the scalar product and both magnitudes first.

e.g. For v=(10)\mathbf v=\begin{pmatrix}1\\0\end{pmatrix} and w=(12)\mathbf w=\begin{pmatrix}1\\2\end{pmatrix}, cos⁡θ=11×5\cos\theta=\dfrac{1}{1\times\sqrt5}, so θ=63.4∘\theta=63.4^{\circ}.

What does the sign of the scalar product tell you?

For non-zero vectors, a positive scalar product means the angle between them is acute, a negative one means it is obtuse, and zero means it is a right angle. The sign matches the sign of cos⁡θ\cos\theta.

e.g. (12)⋅(−31)=−3+2=−1\begin{pmatrix}1\\2\end{pmatrix}\cdot\begin{pmatrix}-3\\1\end{pmatrix}=-3+2=-1, which is negative, so the angle between the vectors is obtuse.

What is the component of one vector in the direction of another?

The component of a\mathbf a in the direction of b\mathbf b is a⋅b|b|\dfrac{\mathbf a\cdot\mathbf b}{|\mathbf b|}. It measures how much of a\mathbf a lies along b\mathbf b.

e.g. For a=(34)\mathbf a=\begin{pmatrix}3\\4\end{pmatrix} and b=(02)\mathbf b=\begin{pmatrix}0\\2\end{pmatrix}, a⋅b=8\mathbf a\cdot\mathbf b=8 and |b|=2|\mathbf b|=2, so the component is 82=4\dfrac{8}{2}=4.

Worked example, step by step

The question Calculator needed (degree mode) [5 marks]

A triangular shade sail has its corners fixed at the points A(1,2,0)A(1,2,0), B(5,5,2)B(5,5,2) and C(4,−1,3)C(4,-1,3), with coordinates in metres.

(a) Find the angle at the corner AA, in degrees.

(b) Find the area of the sail.

Worked solution: worked example

Answer: (a) 71.2∘71.2^\circ (b) 13.213.2 m2^2

Step 1 - Write the two sides from AA.

AB→=(432),AC→=(3−33).\vec{AB}=\begin{pmatrix}4\\3\\2\end{pmatrix},\qquad\vec{AC}=\begin{pmatrix}3\\-3\\3\end{pmatrix}. A1 - AB→=(4,3,2)\vec{AB}=(4,3,2) and AC→=(3,−3,3)\vec{AC}=(3,-3,3)

Why? The angle at AA is the angle between the two sides that start at AA, so both vectors must point away from AA.

Step 2 - Use the scalar product.

AB→⋅AC→=4(3)+3(−3)+2(3)=9\vec{AB}\cdot\vec{AC}=4(3)+3(-3)+2(3)=9, |AB→|=29|\vec{AB}|=\sqrt{29} and |AC→|=27|\vec{AC}|=\sqrt{27}, so cos⁡θ=92927=0.3216.\cos\theta=\dfrac{9}{\sqrt{29}\sqrt{27}}=0.3216. M1 - Use cos⁡θ=AB→⋅AC→|AB→||AC→|\cos\theta=\dfrac{\vec{AB}\cdot\vec{AC}}{|\vec{AB}||\vec{AC}|} with their vectors

Why? Rearranging a⋅b=|a||b|cos⁡θ\mathbf a\cdot\mathbf b=|\mathbf a||\mathbf b|\cos\theta gives the cosine of the angle. The scalar product is positive, so the angle is acute.

Step 3 - Find the angle.

With the calculator in degree mode, θ=cos−1⁡(0.3216…)=71.2∘\theta=\cos^{-1}(0.3216\ldots)=71.2^\circ. A1 - 71.2∘71.2^\circ

Why? The answer is wanted in degrees, so check the angle mode before using inverse cosine. In radian mode the calculator would give 1.24.

Step 4 - Find the vector product.

AB→×AC→=(3(3)−2(−3)2(3)−4(3)4(−3)−3(3))=(15−6−21),\vec{AB}\times\vec{AC}=\begin{pmatrix}3(3)-2(-3)\\ 2(3)-4(3)\\ 4(-3)-3(3)\end{pmatrix}=\begin{pmatrix}15\\-6\\-21\end{pmatrix}, and its magnitude is 152+62+212=702=26.5\sqrt{15^2+6^2+21^2}=\sqrt{702}=26.5. M1 - Find |AB→×AC→||\vec{AB}\times\vec{AC}|

Why? The size of the vector product of two sides is the area of the parallelogram they span, and the sail is half of that parallelogram.

Step 5 - Halve for the triangle.

Area=12×26.495…=13.2 m2.\text{Area}=\tfrac12\times26.495\ldots=13.2\text{ m}^2. As a check, 12|AB→||AC→|sin⁡71.2∘=12(5.385)(5.196)(0.9469)=13.2\tfrac12|\vec{AB}||\vec{AC}|\sin71.2^\circ=\tfrac12(5.385)(5.196)(0.9469)=13.2. A1 - 13.213.2 m2^2

Why? Two different routes, the vector product and one half of absin⁡θab\sin\theta, agree, which confirms both the angle and the area.

Marks (5):
A1 AB→=(4,3,2)\vec{AB}=(4,3,2) and AC→=(3,−3,3)\vec{AC}=(3,-3,3)
M1 Use cos⁡θ=AB→⋅AC→|AB→||AC→|\cos\theta=\dfrac{\vec{AB}\cdot\vec{AC}}{|\vec{AB}||\vec{AC}|} with their vectors
A1 71.2∘71.2^\circ
M1 Find |AB→×AC→||\vec{AB}\times\vec{AC}|
A1 13.213.2 m2^2

Now you try: enter your answers to be marked

1
Easy
No calc
[2 marks]
Find (2,1,−1)⋅(3,0,4).(2,1,-1)\cdot(3,0,4).
[2]
Fractions & powers
Other

Worked solution: practice question 1

2
Medium
Calculator
[2 marks]
A constant force F=(5,2)\mathbf F = (5, 2) N moves an object through displacement d=(3,6)\mathbf d = (3, 6) m. Work done is W=F⋅d.W = \mathbf F\cdot\mathbf d. Find W.W.
[2]
Fractions & powers
Other

Worked solution: practice question 2

3
Hard
Calculator
[3 marks]
Two roads have direction vectors (31)\begin{pmatrix}3\\1\end{pmatrix} and (12).\begin{pmatrix}1\\2\end{pmatrix}. Find the acute angle between them.
[3]
Fractions & powers
Trig
Other

Worked solution: practice question 3

Your score so far: 0 out of 7 marks

Common mistakes

  • Treating the dot product as a vector. v⋅w\mathbf v\cdot\mathbf w is always a single number (a scalar) - it's the cross product, not the dot product, that produces another vector.
  • Overcomplicating the perpendicularity test. There's no need to find |v||\mathbf v|, |w||\mathbf w|, or the angle itself to show two vectors are perpendicular - just show v⋅w=0\mathbf v\cdot\mathbf w = 0 directly from the components.
  • Wrong angle mode on the calculator. cos−1\cos^{-1} of a component ratio gives an answer in whatever mode the calculator is set to - check degrees vs radians before evaluating, or a fully correct method still scores the wrong final value.

Try some questions on dot product and angles

Section 3 of 3 AHL3.11 AHL3.12

Vector equations of lines

A vector equation of a line has the form r=a+td\mathbf r=\mathbf a+t\mathbf d, where a\mathbf a is the position vector of a point on the line, d\mathbf d is a direction vector and tt is a parameter. To write one, find a point on the line and a direction, which is the difference of two position vectors if two points are given. It works in two and three dimensions.

The line formula

Vector equation of a line

r=a+td\mathbf r = \mathbf a + t\mathbf d

a\mathbf a is the position vector of any known point on the line, d\mathbf d is a direction vector, and tt is a scalar parameter. If two points AA and BB are given, take a\mathbf a as AA's position vector and d=AB→=B−A\mathbf d = \vec{AB} = B - A.

✓ In the formula booklet

Intersection of two lines

Give each line its own parameter, e.g. ss for line 1 and tt for line 2. Equate the xx- and yy- (and zz-) components to get simultaneous equations, solve for ss and tt, then check every equation is satisfied with the same pair before stating the point.

Constant velocity

An object that starts at r0\mathbf r_0 and moves with constant velocity v\mathbf v has position r=r0+vt\mathbf r=\mathbf r_0+\mathbf vt at time tt, so its speed is |v||\mathbf v|. To compare two moving objects, find the vector between them at time tt: its magnitude is the distance, and the least value of that magnitude is the closest approach. They meet only if the same value of tt gives the same position for both.

Not in the booklet

Variable velocity

When the velocity depends on time, for example v=(76−4t)\mathbf v=\begin{pmatrix}7\\6-4t\end{pmatrix}, integrate each component to get the position, r=r0+∫0tvdt\mathbf r=\mathbf r_0+\int_0^t\mathbf v\,dt, and differentiate each component to get the acceleration. The speed is |v|=vx2+vy2|\mathbf v|=\sqrt{v_x^2+v_y^2}. The object is moving horizontally when vy=0v_y=0, which is the highest point of a projectile. Starting at the origin, this velocity gives r=(7t6t−2t2)\mathbf r=\begin{pmatrix}7t\\6t-2t^2\end{pmatrix}; vy=0v_y=0 at t=1.5t=1.5, where the position is (10.5,4.5)(10.5,\,4.5), and the starting speed is 49+36=9.22\sqrt{49+36}=9.22.

Not in the booklet

Key terms

What is a direction vector?

A direction vector is any non-zero vector parallel to the line. Any non-zero scalar multiple of it is also a direction vector for the same line.

e.g. For the line through A(2,1)A(2,1) and B(5,5)B(5,5), AB→=(34)\overrightarrow{AB}=\begin{pmatrix}3\\4\end{pmatrix}, and (68)\begin{pmatrix}6\\8\end{pmatrix} is also a direction vector.

What is a position vector?

The position vector of a point is the vector from the origin to that point, so its components equal the coordinates of the point. The line needs one such vector, a\mathbf a, to fix where it passes.

e.g. The point (4,−1,2)(4,-1,2) has position vector (4−12)\begin{pmatrix}4\\-1\\2\end{pmatrix}.

What does the parameter tt do?

Each value of tt gives one point on the line, and t=0t=0 gives the point with position vector a\mathbf a. Negative values of tt give points on the other side of that point.

e.g. For r=(12)+t(31)\mathbf r=\begin{pmatrix}1\\2\end{pmatrix}+t\begin{pmatrix}3\\1\end{pmatrix}, the value t=2t=2 gives the point (7,4)(7,4).

How do you check whether a point lies on a line?

Equate the point to the vector equation, find tt from one component, and check that the same tt works for every other component. If it does not, the point is not on the line.

e.g. For r=(102)+t(21−1)\mathbf r=\begin{pmatrix}1\\0\\2\end{pmatrix}+t\begin{pmatrix}2\\1\\-1\end{pmatrix}, the point (5,2,0)(5,2,0) gives t=2t=2 from the xx component, and 0+2=20+2=2 and 2−2=02-2=0 match, so it lies on the line.

Worked example, step by step

The question Calculator needed [5 marks]

Two ships leave a harbour area at noon. At time tt hours after noon, ship AA has position vector rA=(12)+t(43)\mathbf r_A=\begin{pmatrix}1\\2\end{pmatrix}+t\begin{pmatrix}4\\3\end{pmatrix} and ship BB has position vector rB=(13−4)+t(−25)\mathbf r_B=\begin{pmatrix}13\\-4\end{pmatrix}+t\begin{pmatrix}-2\\5\end{pmatrix}, where distances are in kilometres and 0≤t≤50\le t\le5.

(a) Find the vector AB→\vec{AB} at time tt.

(b) Write down an expression for the distance between the ships at time tt.

(c) Find the least distance between the ships and the time at which it occurs.

Worked solution: worked example

Answer: (a) (12−6t−6+2t)\begin{pmatrix}12-6t\\-6+2t\end{pmatrix} (b) d=(12−6t)2+(2t−6)2d=\sqrt{(12-6t)^2+(2t-6)^2} (c) 1.901.90 km at t=2.10t=2.10 hours

Step 1 - Find the vector from AA to BB.

AB→=rB−rA=(13−2t−1−4t−4+5t−2−3t)=(12−6t−6+2t).\vec{AB}=\mathbf r_B-\mathbf r_A=\begin{pmatrix}13-2t-1-4t\\-4+5t-2-3t\end{pmatrix}=\begin{pmatrix}12-6t\\-6+2t\end{pmatrix}. M1 - Subtract the position vectors, rB−rA\mathbf r_B-\mathbf r_A A1 - (12−6t,−6+2t)(12-6t,\,-6+2t)

Why? The vector from AA to BB is the position of the end minus the position of the start, both at the same time tt.

Step 2 - Write the distance.

The distance is the magnitude of AB→\vec{AB}: d=(12−6t)2+(2t−6)2.d=\sqrt{(12-6t)^2+(2t-6)^2}. A1 - d=(12−6t)2+(2t−6)2d=\sqrt{(12-6t)^2+(2t-6)^2}

Why? The distance changes with tt, so it is a function of tt, and its least value is the closest approach.

Step 3 - Minimise on the calculator.

Graph y=(12−6x)2+(2x−6)2y=\sqrt{(12-6x)^2+(2x-6)^2} for 0≤x≤50\le x\le5 and use the minimum tool. It gives t=2.10 hours,d=1.90 km.t=2.10\text{ hours},\qquad d=1.90\text{ km}. A1 - t=2.10t=2.10 hours A1 - 1.901.90 km

Why? The least value of a distance function is a minimum point of its graph. The time is the xx-coordinate and the distance is the yy-coordinate.

Step 4 - Check by a perpendicularity test.

The relative velocity is (−25)−(43)=(−62)\begin{pmatrix}-2\\5\end{pmatrix}-\begin{pmatrix}4\\3\end{pmatrix}=\begin{pmatrix}-6\\2\end{pmatrix}. At the closest approach AB→⋅(−62)=0\vec{AB}\cdot\begin{pmatrix}-6\\2\end{pmatrix}=0, so −6(12−6t)+2(2t−6)=40t−84=0-6(12-6t)+2(2t-6)=40t-84=0 and t=2.1t=2.1. Then AB→=(−0.6−1.8)\vec{AB}=\begin{pmatrix}-0.6\\-1.8\end{pmatrix} and d=3.6=1.90d=\sqrt{3.6}=1.90.

Why? At the closest approach the separation stops getting smaller, so it is at right angles to the direction in which the separation is changing. A zero scalar product confirms this.

Marks (5):
M1 Subtract the position vectors, rB−rA\mathbf r_B-\mathbf r_A
A1 (12−6t,−6+2t)(12-6t,\,-6+2t)
A1 d=(12−6t)2+(2t−6)2d=\sqrt{(12-6t)^2+(2t-6)^2}
A1 t=2.10t=2.10 hours
A1 1.901.90 km

Now you try: enter your answers to be marked

1
Medium
Calculator
[4 marks]
A line passes through A(1,2,3)A(1, 2, 3) and B(4,0,5).B(4, 0, 5).
(a) Find the vector AB→\vec{AB}.
[2]
(b) Write a vector equation of the line.
[2]
Fractions & powers
Other

Worked solution: practice question 1

2
Hard
Calculator
[6 marks]
A line is r=(1,0,2)+t(2,1,−2).\mathbf r = (1, 0, 2) + t(2, 1, -2). Find the shortest distance from the point P(3,4,1)P(3, 4, 1) to the line.
[6]
Fractions & powers
Other

Worked solution: practice question 2

3
Hard
Calculator
[6 marks]
Line 1: r=(1,2)+s(2,1).\mathbf r = (1, 2) + s(2, 1). Line 2: r=(7,−1)+t(−1,2).\mathbf r = (7, -1) + t(-1, 2). Find their point of intersection.
[6]
Fractions & powers
Other

Worked solution: practice question 3

Your score so far: 0 out of 16 marks

Common mistakes

  • Using the same parameter letter for both lines. If both equations use tt, solving "t=tt=t" only finds where the two parametrisations agree, not where the actual lines cross - use ss for one line and tt for the other so each can take a different value at the crossing point.
  • Assuming crossing paths mean a collision. Solving the position equations only tells you the two lines meet somewhere - it does not mean two moving objects following those lines arrive there at the same time. A genuine collision needs the same time value tt to satisfy both objects' equations simultaneously.
  • Forgetting to verify with all coordinates. In three dimensions, solving two of the three component equations can give values of ss and tt that don't actually satisfy the third - always check the zz-equation (or state that the lines are skew if it fails).

Try some questions on vector equations of lines

Using your GDC

The exact key presses for the TI-84 Plus CE, Casio fx-CG50, Casio fx-CG100 and TI-Nspire CX, with what the screen shows. Pick your calculator.

Magnitude, dot product and angle between vectors

Used in: Vector basics, Dot product and angles

How to find the magnitude, dot product and angle between vectors on a TI-84 Plus CE

Store each vector as a list

The TI-84 Plus CE has no vector commands, so a vector is a list of its components. For a=(2,−1,3)\mathbf{a} = (2, -1, 3) press 2nd ( ({) 2 , (−) 1 , 3 2nd ) (}) sto▶ 2nd 1 (L1) enter.

Do the same for b=(4,0,−2)\mathbf{b} = (4, 0, -2), storing it in L2 (2nd 2). Both lists must have the same number of entries.

{2,-1,3}→L1
{4,0,-2}→L2
Dot product

Press 2nd stat (LIST), move to MATH with ▶, and choose 5:sum(. Then press 2nd 1 × 2nd 2 ) enter. This multiplies the two lists term by term and adds the products.

a⋅b=2\mathbf{a} \cdot \mathbf{b} = 2.

sum(L1*L2)
2
Magnitude

Press 2nd x² (√), then 2nd stat (LIST), MATH, 5:sum(, then 2nd 1 x² ) ) enter. This is 22+(−1)2+32\sqrt{2^2 + (-1)^2 + 3^2}. Repeat with 2nd 2 for b\mathbf{b}.

|a|=3.74|\mathbf{a}| = 3.74 and |b|=4.47|\mathbf{b}| = 4.47 to 3 significant figures.

√(sum(L1²))
3.741657387
√(sum(L2²))
4.472135955
Angle between the vectors

Check the angle mode first (see switching between degrees and radians): use degree mode for an answer in degrees. Press 2nd cos (cos⁻¹) and type the dot product divided by the product of the magnitudes: sum(L1*L2) ÷ ( √(sum(L1²)) × √(sum(L2²)) ) ), using the same keys as above. Press enter.

θ=83.1∘\theta = 83.1^\circ to 1 decimal place.

cos⁻¹(sum(L1*L2)/(√(sum(
L1²))*√(sum(L2²))))
83.13543366
Cross product

The cross product of a\mathbf{a} and b\mathbf{b} is a vector at right angles to both. Its components are (a2b3−a3b2, a3b1−a1b3, a1b2−a2b1)\left(a_2b_3 - a_3b_2,\ a_3b_1 - a_1b_3,\ a_1b_2 - a_2b_1\right).

The TI-84 Plus CE has no cross product command, so type each component from list entries. For the first component press 2nd 1 ( 2 ) × 2nd 2 ( 3 ) − 2nd 1 ( 3 ) × 2nd 2 ( 2 ) enter. This is L1(2)*L2(3)-L1(3)*L2(2), where L1(2) is the second entry of L1. Use L1(3)*L2(1)-L1(1)*L2(3) for the second component and L1(1)*L2(2)-L1(2)*L2(1) for the third.

L1(2)*L2(3)-L1(3)*L2(2)
2

For the magnitude, store the three components as a list: press 2nd ( ({), type the three expressions above separated by ,, then 2nd ) (}) sto▶ 2nd 3 (L3) enter. Then press 2nd x² (√), 2nd stat (LIST), MATH, 5:sum(, 2nd 3 x² ) ) enter.

a×b=(2,16,4)\mathbf{a} \times \mathbf{b} = (2, 16, 4) and its magnitude is 16.616.6 to 3 significant figures.

√(sum(L3²))
16.61324773

Press 2nd enter (ENTRY) to bring back the last line and edit it, so you do not retype the long angle expression for new vectors.

The full guide: Magnitude, dot product and angle between vectors

Enter a calculation on the home screen

Used in: Vector basics, Vector equations of lines

How to enter a calculation on a TI-84 Plus CE

Type a calculation and press enter

Go to the home screen: press 2nd mode (QUIT) from any menu or app. Press clear if the entry line is not empty.

Type the calculation as you would write it, then press enter. For 3(2.4)2−5×1.83(2.4)^2 - 5 \times 1.8 press 3 ( 2 . 4 ) x² − 5 × 1 . 8 enter.

The calculator understands a number next to a bracket as a multiplication, so × is not needed in 3(2.4)3(2.4). If a fraction, square root or power template is on the screen, press ▶ to move out of it before you carry on typing.

8.288.28

3(2.4)²-5*1.8
8.28
Use the last answer in the next calculation

To increase the answer by 15%, press × 1 . 1 5 enter on a blank line. The calculator puts Ans, the last answer, in front of the operator for you.

You can also type Ans yourself, anywhere in a calculation: press 2nd (−) (ANS), for example 2nd (−) (ANS) × 1 . 1 5 enter.

9.5229.522, which is 9.529.52 to 3 significant figures.

Ans*1.15
9.522

To use an earlier entry or answer, press ▲ to move up through the history, then enter to paste the highlighted one on the entry line. Press 2nd enter (ENTRY) to bring back your last entry and change it.

Ans always holds the last answer that was worked out, so if you do a different calculation in between, Ans changes. Type a number you need later, or keep it on the screen, rather than relying on Ans for many steps.

The full guide: Enter a calculation on the home screen

Find a maximum, minimum or zero of a graph (stationary points)

Used in: Vector equations of lines

How to find a maximum, minimum or zero on a TI-84 Plus CE

Graph the function and use the CALC menu

Press Y=, clear any old functions with clear, then type X,T,θ,n ^ 3 − 6 X,T,θ,n x² + 5 X,T,θ,n + 4 next to Y1=.

Plot1 Plot2 Plot3
\Y1=X^3-6X²+5X+4
\Y2=

Press window and set Xmin = −2, Xmax = 6, Ymin = −15, Ymax = 10. For a negative number use the (−) key, not the subtraction key. Press graph. The graph should show the turning points and the places where it crosses the x-axis.

WINDOW
Xmin=-2
Xmax=6
Xscl=1
Ymin=-15
Ymax=10
Yscl=1

For the local maximum, press 2nd trace (CALC) and choose 4:maximum. Left Bound? appears with the cursor on the graph: use ◀ to move it to the left of the maximum, then press enter. Right Bound? appears: use ▶ to move to the right of the maximum and press enter. Guess? appears: move the cursor close to the maximum, between the two bounds, and press enter. With more than one graph drawn, use ▲ or ▼ first to put the cursor on the right graph.

The screen shows Maximum with x=0.472x = 0.472 and y=5.13y = 5.13.

Maximum X=0.472475 Y=5.128451

For the local minimum, press 2nd trace and choose 3:minimum, then set the left bound, the right bound and the guess in the same way, with the bounds either side of the minimum.

The screen shows Minimum with x=3.528x = 3.528 and y=−9.13y = -9.13.

Minimum X=3.527525 Y=-9.128451

For a zero (a place where the graph crosses the x-axis), press 2nd trace and choose 2:zero. Set the left bound on one side of the crossing and the right bound on the other, then give a guess between them. Each search finds one zero, so repeat with the bounds round each of the other crossings.

The zero between x=1x = 1 and x=2x = 2 is x=1.711x = 1.711, with y=0y = 0.

Zero X=1.710831 Y=0

Put the left and right bounds either side of the point you want, and the guess between them. A bound or guess that is outside the window, or on the wrong side, gives an error or a different point.

The full guide: Find a maximum, minimum or zero of a graph (stationary points)

Find where two graphs meet (intersection)

Used in: Vector equations of lines

How to find where two graphs meet on a TI-84 Plus CE

Graph both and use intersect

Press Y=, clear any old functions with clear, then type X,T,θ,n x² − 3 next to Y1=. Press ▼ and type 2 X,T,θ,n + 1 next to Y2=.

Plot1 Plot2 Plot3
\Y1=X²-3
\Y2=2X+1
\Y3=

Press window and set Xmin = −3, Xmax = 5, Ymin = −4, Ymax = 10. For a negative number use the (−) key, not the subtraction key. Press graph. Both curves should show, with two crossing points on the screen.

WINDOW
Xmin=-3
Xmax=5
Xscl=1
Ymin=-4
Ymax=10
Yscl=1

Press 2nd trace (CALC) and choose 5:intersect. First curve? appears with the cursor on one graph: press enter. Second curve? appears: press enter again. If more than two graphs are drawn, use ▲ or ▼ to put the cursor on the right graph before pressing enter.

Second curve?

Guess? appears. Use ◀ or ▶ to move the cursor close to the right-hand crossing, then press enter.

The screen shows Intersection with x=3.24x = 3.24 and y=7.47y = 7.47.

Intersection X=3.236068 Y=7.472136

For the other crossing, repeat 2nd trace 5:intersect, enter, enter, and this time move the guess close to the left-hand crossing before pressing enter.

x=−1.24x = -1.24 and y=−1.47y = -1.47.

Intersection X=-1.236068 Y=-1.472136

The guess decides which crossing the calculator finds, so give a guess near the point you want. A crossing outside the window cannot be found, so check WINDOW first.

The full guide: Find where two graphs meet (intersection)

See the full list of GDC guides for every calculator task.

Syllabus content covered

CodeSyllabus content
AHL3.10Concept of a vector and a scalar. Representation of vectors using directed line segments. Sum and difference of two vectors, multiplication by a scalar, magnitude of a vector |v||\mathbf v| from components, unit vectors, base vectors i,j,k\mathbf i,\mathbf j,\mathbf k, the resultant as the sum of two or more vectors, position vectors, and rescaling and normalizing vectors.
AHL3.11Vector equation of a line in two and three dimensions: r=a+λb\mathbf r=\mathbf a+\lambda\mathbf b, where b\mathbf b is a direction vector of the line. Convert to parametric form: x=x0+λl, y=y0+λm, z=z0+λnx=x_0+\lambda l,\ y=y_0+\lambda m,\ z=z_0+\lambda n.
AHL3.12Vector applications to kinematics. Modelling linear motion with constant velocity in two and three dimensions: r=r0+vt\mathbf r=\mathbf r_0+\mathbf vt. Finding positions, intersections, describing paths, finding times and distances when two objects are closest to each other. Motion with variable velocity in two dimensions, for example (vx,vy)=(7,6−4t)(v_x,v_y)=(7,6-4t). Projectile motion and circular motion are special cases.
AHL3.13Definition and calculation of the scalar product of two vectors: v⋅w=|v||w|cos⁡θ\mathbf v\cdot\mathbf w=|\mathbf v||\mathbf w|\cos\theta, where θ\theta is the angle between two non-zero vectors v\mathbf v and w\mathbf w; the angle between two vectors and the acute angle between two lines; perpendicular vectors (v⋅w=0\mathbf v\cdot\mathbf w=0). Definition and calculation of the vector product of two vectors: v×w=|v||w|sin⁡θn\mathbf v\times\mathbf w=|\mathbf v||\mathbf w|\sin\theta\,\mathbf n. Use of |v×w||\mathbf v\times\mathbf w| to find the area of a parallelogram (and hence a triangle). Components of vectors: the component of a\mathbf a in the direction of b\mathbf b is a⋅b|b|\dfrac{\mathbf a\cdot\mathbf b}{|\mathbf b|}, and the component perpendicular to b\mathbf b is |a×b||b|\dfrac{|\mathbf a\times\mathbf b|}{|\mathbf b|}.

Official IB source: Mathematics: applications and interpretation subject brief (PDF, ibo.org).

Quick questions

How do you find the magnitude of a vector?

For a vector v\mathbf v with components x,yx, y (and zz in 3D), the magnitude is |v|=x2+y2+z2|\mathbf v| = \sqrt{x^2+y^2+z^2} - the vector's length, found using Pythagoras' theorem extended to three dimensions.

What is the formula for the scalar product of two vectors?

v⋅w=|v||w|cos⁡θ\mathbf v\cdot\mathbf w=|\mathbf v||\mathbf w|\cos\theta, where θ\theta is the angle between the two vectors. In components, v⋅w\mathbf v\cdot\mathbf w is found by multiplying matching components and adding the results.

What is the vector equation of a line?

r=a+td\mathbf r = \mathbf a + t\mathbf d, where a\mathbf a is the position vector of a known point, d\mathbf d is a direction vector, and tt is a scalar parameter that generates every point on the line as it varies.

What is a unit vector?

A unit vector has magnitude 11. To rescale any vector v\mathbf v into a unit vector in the same direction, divide every component by |v||\mathbf v|.

How do you test whether two vectors are perpendicular?

Two non-zero vectors are perpendicular exactly when their scalar product is zero: v⋅w=0\mathbf v\cdot\mathbf w = 0. This works directly from the components, with no need to find magnitudes or angles first.

How do you find where two lines intersect?

Give each line its own parameter (commonly ss and tt), equate the corresponding xx, yy (and zz) components, and solve the resulting simultaneous equations. If a consistent solution exists, substitute it back into either line to get the point of intersection.

How do you add two vectors in component form?

Add the matching components. For example, (12)+(3−5)=(4−3)\begin{pmatrix}1\\2\end{pmatrix}+\begin{pmatrix}3\\-5\end{pmatrix}=\begin{pmatrix}4\\-3\end{pmatrix}, and subtraction works the same way.

Does the order of the vectors matter in a scalar product?

No, v⋅w=w⋅v\mathbf v\cdot\mathbf w=\mathbf w\cdot\mathbf v. For example, (12)⋅(34)=11\begin{pmatrix}1\\2\end{pmatrix}\cdot\begin{pmatrix}3\\4\end{pmatrix}=11 and (34)⋅(12)=11\begin{pmatrix}3\\4\end{pmatrix}\cdot\begin{pmatrix}1\\2\end{pmatrix}=11.

Is the vector equation of a line unique?

No. Any point on the line can be used for a\mathbf a, and any non-zero multiple of the direction vector can be used for d\mathbf d. For example, r=(01)+t(12)\mathbf r=\begin{pmatrix}0\\1\end{pmatrix}+t\begin{pmatrix}1\\2\end{pmatrix} and r=(13)+s(24)\mathbf r=\begin{pmatrix}1\\3\end{pmatrix}+s\begin{pmatrix}2\\4\end{pmatrix} describe the same line.

What is a position vector?

A position vector is the vector from the origin to a point, so it has the same components as the coordinates of the point. The point P(2,−1)P(2,-1) has position vector (2−1)\begin{pmatrix}2\\-1\end{pmatrix}.

Ready to practise properly?

Practice questions on every section, marked instantly like the real exam.