This whole subtopic is higher level. Nothing in it is on an SL paper.
Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 3.12 · HL only
Introduction to vectors
What is a vector, how do you write, add, subtract and scale vectors both as arrows and as components, and how do vectors prove facts about shapes?
What you will learn
HL Understand a vector as a size and a direction, drawn as a directed line segment or written in components with i, j and k.
HL Know how to add, subtract and scale vectors as arrows and as components, including the zero vector and -v.
HL Know that parallel vectors are scalar multiples, and how to find magnitudes, distances and unit vectors.
HL Understand how position vectors and AB = b - a turn questions about points and shapes into vector algebra.
You must be able to
HL Find a displacement vector from two points and the distance between them.
HL Express a vector on a diagram in terms of two given vectors.
HL Find an unknown that makes two vectors parallel, or show that three points are collinear.
HL Find a unit vector, or a vector of a given length, in a given direction.
HL Find a point dividing a segment in a given ratio, or the fourth vertex of a parallelogram.
HL Prove a geometrical property, such as the midpoint theorem, using vectors.
In the exam. Paper 1 (no calculator) and Paper 2 both ask it: of the 54 past-paper questions tagged to this subtopic, 23 are Paper 1 and 31 are Paper 2. Find is the usual command term (26 of them), then Show that (9) and Hence chains. The typical tasks: find a displacement vector from coordinates (1 to 2 marks, usually the first part of a longer question); find an unknown that makes two vectors parallel (2 marks); write a point on a segment in terms of two vectors (1 to 2 marks); find the least and greatest length of a sum (2 marks); use a unit vector with a missing component to locate a point (a longer part); prove a geometric property. Paper 2 sets the same in a context, such as the positions of aircraft. Every later vector subtopic (the scalar product, lines, planes) is built on this one, so its notation turns up everywhere.
1What a vector is
A vector has magnitude (size) and direction. A scalar has magnitude only.
Example: displacement, velocity, force and acceleration are vectors. Distance, speed, mass and time are scalars.
A vector is drawn as a directed line segment: an arrow whose length shows the magnitude and whose arrowhead shows the direction. The arrow from A to B is AB. A is its tail and B its head.
Figure 1 shows the key idea. Arrows in different places are the same vector when they have the same length and direction. Position on the page is not part of a vector.
Figure 1 · A vector has a length and a direction, and nothing else
The negative−v has the same length as v and the opposite direction. In particular BA=−AB.
The zero vector0 has magnitude 0 and no direction. It is what AA gives, and what v+(−v) gives.
2Components and base vectors
On a coordinate grid, a vector is described by how far it moves in each direction. The base vectors are unit arrows along the axes:
i is one step in the x-direction.
j is one step in the y-direction.
In three dimensions, k is one step in the z-direction.
Figure 2 draws v=3i+2j: three steps of i, then two steps of j. The numbers 3 and 2 are the components of v.
Read from a grid, a move right is positive, left negative, up positive, down negative. An arrow that goes 4 left and 1 down is −4i−j.
Figure 2 · Components: how far along i and how far along j
In three dimensions a vector has three components, v=v1i+v2j+v3k, written as a column when you prefer. The axes are drawn right-handed. If x points towards you and y to the right, z points up, as in Figure 3.
Figure 3 · Base vectors i, j, k and the position vector of P(2, 3, 4)
The position vector of a point P = the vector OP from the origin O to P. Its components are the coordinates of P.
Example: P(2,3,4) has position vector p=OP=2i+3j+4k.
By convention the position vector of A is a, of B is b, and so on. A point and its position vector carry the same numbers but are different things. P is a place. p is the journey from O to that place.
A missing component is zero: 5i−k has components 5, 0 and −1.
Equal vectors = vectors whose components all match. So one vector equation is one ordinary equation for each component. This is how unknown scalars are found.
Worked example 1 (Paper 1).
(a) Write 0−47 using base vectors.
(b) Find x, y and z if xi+(y−2)j+4k=3i+7j+(z+1)k.
(c) Write 11i−j in the form λ(3i+j)+μ(i−2j).
(a) −4j+7kthe zero component simply does not appear(b) x=3,y−2=7⇒y=9,4=z+1⇒z=3(c) 3λ+μ=11,λ−2μ=−1i-parts, then j-partsdouble the first, add: 7λ=21,λ=3,μ=2check: 3(3i+j)+2(i−2j)=11i−j✓
3Adding and subtracting
Geometrically, to add u and v, draw v starting where u ends. The sum goes from the tail of u to the head of v. This is the triangle law, Figure 4(a).
Drawing both from one point and completing the parallelogram gives the same diagonal, Figure 4(b). It also shows u+v=v+u.
Figure 4 · Adding vectors: nose to tail, or as a parallelogram
Algebraically, add the components. Addition is commutative and associative, and v+0=v.
So a chain AB+BC+CD equals AD: follow the letters from the first start to the last end. A closed loop adds to 0.
Subtracting is adding the negative: u−v=u+(−v). With both drawn from one point, u−v is the arrow from the head of v to the head of u.
Worked example 2 (Paper 1).u=3i+5j−2k and v=i−4j+6k. Find 2u−3v, and the vector x that satisfies 2x+u=3v.
2u−3v=(6−3)i+(10+12)j+(−4−18)k=3i+22j−22k2x=3v−u=(3−3)i+(−12−5)j+(18+2)k=−17j+20kx=−217j+10kmultiply by the reciprocal scalar, never "divide by a vector"
The most common arrow question names two or three vectors and asks for another. To express a vector in terms of others on a diagram:
Walk from the start to the end along edges whose vectors you know.
Add when you go with an arrow. Subtract when you go against it.
Any route gives the same answer. Take the shortest.
Worked example 3 (Paper 1). PQRS is a parallelogram with PQ=p and PS=s. T is the midpoint of QR. Express PR, QS, PT and TS in terms of p and s.
QR=PS=sopposite sides of a parallelogram: equal and parallelPR=PQ+QR=p+sQS=QP+PS=−p+sPT=PQ+21QR=p+21sTS=TR+RS=21s−pRS runs against PQ
4Scalar multiples and parallel vectors
Multiplying a vector by a scalar k multiplies every component by k. Geometrically, kv is v stretched by the factor ∣k∣, and turned round if k<0. Figure 5 shows v, 2v, 21v and −1.5v.
Figure 5 · Multiplying by a scalar changes the length, and the sign sets the direction
The scalar distributes over a sum, k(u+v)=ku+kv. It also scales the length: ∣kv∣=∣k∣∣v∣. That gives the test for direction:
u and v are parallel exactly when u=kv for some scalar k=0. Same direction if k>0, opposite if k<0.
Worked example 4 (Paper 1). Show that u=4i−10j+6k and w=−6i+15j−9k are parallel. Then find s and t so that si+5j+tk is parallel to u.
w=−23ueach component of u times −23 gives −6,15,−9: parallel, opposite directionssi+5j+tk=λu5=−10λ⇒λ=−21start from the component that is knowns=4λ=−2,t=6λ=−3
Find the scalar from one component and check it in all the others. If they do not share one ratio, the vectors are not parallel.
When the components contain an unknown, equate the ratios instead. The condition can turn into an equation to solve.
Worked example 5 (Paper 1). The vectors (p+1)i+6j and 4i+(p−1)j are parallel. Find the possible values of p, and say for which value they point the same way.
4p+1=p−16the same scalar in both components(p+1)(p−1)=24⇒p2=25⇒p=±5p=5:6i+6j and 4i+4jpositive scalar: same directionp=−5:−4i+6j and 4i−6jscalar −1: opposite directions
5Position and displacement vectors
Figure 6 gives the most used fact on this page. To go from A to B, go back from A to O (that is −a). Then go out from O to B (that is b).
Figure 6 · From A to B: back along a, then out along b
AB=b−a · the position of the end minus the position of the start.
a−b is BA: the same length, the wrong way.
ABCD (letters in order round the shape) is a parallelogram exactly when AB=DC. Opposite sides are equal and parallel, and point the same way when read in that order.
One pair is enough: b−a=c−d rearranges to d−a=c−b, that is AD=BC.
The same rearrangement gives a+c=b+d, which says the diagonals share a midpoint.
A parallelogram is a rhombus if two adjacent sides also have equal magnitude. Three points alone allow three different parallelograms, so the question fixes the order of the letters.
Worked example 6 (Paper 1).A(−2,1,3), B(1,−1,4) and C(5,2,−1) are three vertices of the parallelogram ABCD. Find AB and the coordinates of D.
AB=(1+2)i+(−1−1)j+(4−3)k=3i−2j+kAB=DC⇒d=c−ABD is C pushed back by the vector ABd=(5−3)i+(2+2)j+(−1−1)k=2i+4j−2kD(2,4,−2)check: a+c=b+d=(3,3,2)
6Magnitude, distance and unit vectors
The magnitude∣v∣ is the length of the arrow. It comes from Pythagoras, applied once in two dimensions and twice in three.
∣v∣=v12+v22+v32 · in the formula booklet. The distance between A and B is ∣AB∣.
A unit vector has magnitude 1. The unit vector in the direction of v is ∣v∣v. A vector of length L in that direction is L∣v∣v, with a minus sign for the opposite direction.
A vector of length L that is merely parallel to v has two answers, ±L∣v∣v.
Worked example 7 (Paper 1).C(1,2,−3) and D(5,−2,−1).
(a) Find the distance CD.
(b) Find the unit vector in the direction of CD.
(c) v=6i−2j+3k. Find the vector of length 21 in the direction of v, and the vector of length 5 in the opposite direction.
CD=4i−4j+2k,∣CD∣=16+16+4=6unit vector=61(4i−4j+2k)=32i−32j+31k∣v∣=36+4+9=7length 21: 3v=18i−6j+9k21 is 3 lots of 7length 5, opposite: −75v=−730i+710j−715k
An unknown from a magnitude gives a quadratic, and both roots stand unless the question restricts the unknown. The same idea finds a missing component of a unit vector.
Worked example 8 (Paper 1). (a) ∣xi+(x+1)j−2k∣=3. Find x. (b) 72i−73j+mk is a unit vector with m>0. Find m.
(a) x2+(x+1)2+4=9⇒2x2+2x−4=0⇒(x+2)(x−1)=0square, expand, collectx=1 or x=−2(b) 494+499+m2=1⇒m2=4936⇒m=76m>0 discards −76
The direction of a two-dimensional vectorai+bj is the angle θ it makes with the positive x-axis, where tanθ=b/a. Choose the quadrant from the signs of a and b, exactly as for any angle.
Going the other way, a vector of length L at angle θ has components Lcosθ and Lsinθ.
Worked example 9 (Paper 1 or 2).
(a) Find the magnitude of w=−4i−4j and the angle it makes with the positive x-axis.
(b) A boat moves at 12 m s−1 on a bearing of 060°, with i east and j north. Write its velocity as a vector.
(a) ∣w∣=16+16=42,tanα=44=1⇒α=45∘acute angle with the x-axisw points down and to the left, so θ=180∘+45∘=225∘or −135∘(b) bearing 060° is 60∘ clockwise from north: east=12sin60∘=63,north=12cos60∘=6velocity=63i+6j
In general ∣u+v∣ is not∣u∣+∣v∣. In the triangle law the three sides have lengths ∣u∣, ∣v∣ and ∣u+v∣. One side of a triangle is never longer than the other two together, so ∣u+v∣≤∣u∣+∣v∣.
Equality needs the same direction.
Opposite directions make the lengths subtract.
Example: for ∣u∣=6 and ∣v∣=9, the length of u+v lies between 9−6=3 and 6+9=15.
Those two extremes are what a "least or greatest value" question wants.
Comparing the magnitudes of side vectors tests for isosceles, equilateral and right-angled triangles. For a right angle, check that the squares of the two shorter sides add to the square of the longest (the converse of Pythagoras).
The scalar product in 3.13 gives a quicker test for a right angle.
Worked example 10 (Paper 1).E(−1,−1,0), F(1,1,1) and G(3,2,−5). Show that triangle EFG has a right angle at F.
EG is the longest side, and its square is the sum of the other two. By the converse of Pythagoras, the angle opposite EG, at F, is a right angle.
7Collinear points and dividing a segment
A, B and C are collinear (lie on one straight line) when AB and AC are parallel. They share the point A, so parallel means the same line, not two separate lines.
The scalar also tells you the order. A positive multiple puts both points on the same side of A. A negative one puts A between them.
Worked example 11 (Paper 1). (a) Show that W(−8,7,3), U(−2,1,5) and V(1,−2,6) are collinear, and find WU:UV. (b) P(2,−1,3), Q(5,1,−1) and R(8,k,m) are collinear. Find k and m.
(a) WU=6i−6j+2k,UV=3i−3j+kWU=2UVparallel, and U is common to bothWU:UV=2:1(b) PQ=3i+2j−4k,PR=6i+(k+1)j+(m−3)kPR=2PQthe i-components give the scalar: 6=3×2k+1=4⇒k=3,m−3=−8⇒m=−5
In (a), write the conclusion: parallel and sharing U, so W, U and V are collinear.
The midpoint M of AB is halfway along AB, so m=a+21(b−a)=21(a+b). The same reasoning finds any point along a segment.
If P divides AB in the ratio m:n (so AP:PB=m:n), P is the fraction m+nm of the way from A to B. In symbols:
AP=m+nmAB, so p=a+m+nm(b−a)=m+nna+mb
The denominator is the total number of parts, not the second number. A ratio of 1 : 2 means a third of the way, not a half.
If P lies on OA, the start is the origin. So OP:PA=1:3 gives OP=41a.
Worked example 12 (Paper 1).P(−4,1,6) and Q(1,−4,−4). R lies on PQ with PR:RQ=3:2. Find R.
PQ=5i−5j−10kPR=53PQ=3i−3j−6k3 parts out of 5r=p+PR=−i−2j+0k,R(−1,−2,0)check by the formula: 52p+3q=5(−8+3)i+(2−12)j+(12−12)k✓
8Proving geometry with vectors
The method is always the same. Name two independent vectors, write everything else in terms of them, and read off the conclusion.
Parallel means one vector is a multiple of the other.
Equal length means equal magnitudes.
Bisect means two routes reach the same point.
Collinear means two vectors from a common point are parallel.
Worked example 13 (Paper 1). In triangle OAB, M is the midpoint of OA and N the midpoint of OB. Prove that MN is parallel to AB and half its length (the midpoint theorem, Figure 7).
Figure 7 · Joining the midpoints of two sides
let OA=aandOB=bOM=21a,ON=21bMN=ON−OM=21(b−a)=21AB
MN is a positive multiple of AB, so MN is parallel to AB, and ∣MN∣=21∣AB∣. It holds for every triangle, since a and b were never given values.
Worked example 14 (Paper 1). ABCD is any quadrilateral. P, Q, R and S are the midpoints of AB, BC, CD and DA. Prove that PQRS is a parallelogram.
One pair of opposite sides is equal and parallel, so by the test in section 5, PQRS is a parallelogram.
Nothing about ABCD was assumed, not even that it is flat. So it holds for any four points.
The same method shows that the three medians of a triangle meet at the centroid31(a+b+c). It lies two thirds of the way along each median from its vertex.
When two lines cross at X, write OX once along each line, with a different scalar for each. Then make the two expressions equal.
This works because of one fact. If a and b are not parallel (and not zero) and pa+qb=ra+sb, then p=r and q=s.
So you may equate the coefficients of a and b, because neither can be built from the other. Say that they are non-parallel in the line before you do it.
Worked example 15 (Paper 1). In triangle OAB, OA=a, OB=b.
P is on OA with OP:PA=2:3, and Q is on OB with OQ:QB=1:2. The lines AQ and BP meet at X.
Find OX, and the ratios AX : XQ and BX : XP.
OP=52a,OQ=31balong AQ: OX=a+λ(31b−a)=(1−λ)a+3λbalong BP: OX=b+μ(52a−b)=52μa+(1−μ)b1−λ=52μ,3λ=1−μa and b not parallel: equate coefficientsλ=3−3μ⇒−2+3μ=52μ⇒513μ=2⇒μ=1310,λ=139OX=134a+133bcheck: 52μ=134, 3λ=133 and 1−μ=133
λ=139 puts X nine thirteenths of the way from A to Q, so AX : XQ = 9 : 4. μ=1310 gives BX : XP = 10 : 3.
Practice questions
41 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.