Skip to content
IB Diploma ProgrammeSL & HL

Vectors and components

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Vectors and components notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Vectors and components notes as text: skim, search, and jump between subtopics.

~12 min read

1. Vectors, position vectors and displacement vectors

A vector has magnitude and direction. A scalar has size only. A vector is drawn as a directed line segment: the length is the magnitude and the arrow gives the direction.

The vector from A to B is written overrightarrowAB. A position vector starts at the origin O: overrightarrowOA = a is the position vector of A. A displacement vector is the change in position from one point to another, so it can start anywhere.

The position vector of a point has the same components as its coordinates.

A(x, y, z) ⇒ overrightarrowOA = beginpmatrixx y zendpmatrix

overrightarrowOA = a, overrightarrowOB = b

Worked example 12 marks

Given that overrightarrowOA = beginpmatrix2 1 -3endpmatrix, write down the coordinates of A. State whether overrightarrowOA is a position vector or a displacement vector.

  1. 1

    the coordinates of A are (2, 1, -3) (A1) [1]

  2. 2

    it starts at the origin O, so it is a position vector (R1) [1]

2. Base vectors and components

The base vectors are i, j and k. They are unit vectors along the x-, y- and z-axes.

Every vector is a sum of multiples of them. The multiples are its components.

If a base vector is missing from the sum, that component is 0. Write the zero in the column.

i = beginpmatrix1 0 0endpmatrix, j = beginpmatrix0 1 0endpmatrix, k = beginpmatrix0 0 1endpmatrix

v = beginpmatrixv₁ v₂ v₃endpmatrix = v₁i + v₂j + v₃k

Worked example 12 marks

Write the vector 3i - 5k as a column vector. State the component of this vector in the direction of j.

  1. 1

    beginpmatrix3 0 -5endpmatrix (A1) [1]

  2. 2

    there is no j term, so the component in the direction of j is 0 (A1) [1]

3. Sum, difference and scalar multiples

Add and subtract vectors component by component. Geometrically, place the vectors head to tail: a + b goes from the tail of a to the head of b.

The zero vector 0 has every component 0. The vector -v has the same magnitude as v and the opposite direction, so v + (-v) = 0 and a - b = a + (-b).

Multiplication by a scalar k multiplies every component by k. It changes the length by the factor |k|.

beginpmatrixa₁ a₂ a₃endpmatrix ± beginpmatrixb₁ b₂ b₃endpmatrix = beginpmatrixa₁ ± b₁ a₂ ± b₂ a₃ ± b₃endpmatrix

kv = beginpmatrixkv₁ kv₂ kv₃endpmatrix

Worked example 14 marks

Given p = beginpmatrix2 -1 3endpmatrix and q = beginpmatrix-4 0 5endpmatrix, find(a) p + q,(b) 3p - 2q.

  1. 1

    (a) add the corresponding components (M1) [1]

  2. 2

    p + q = beginpmatrix-2 -1 8endpmatrix (A1) [1]

  3. 3

    (b) 3p - 2q = beginpmatrix6 -3 9endpmatrix - beginpmatrix-8 0 10endpmatrix (M1) [1]

  4. 4

    = beginpmatrix14 -3 -1endpmatrix (A1) [1]

4. Parallel vectors

Two non-zero vectors are parallel when one is a scalar multiple of the other: a = kb for some scalar k ≠ 0.

If k > 0 they point the same way. If k < 0 they point in opposite directions. In both cases |a| = |k||b|.

To test for parallel vectors, find k from one component, then check that every component gives the same k.

a ∥ b iff a = kb, k ≠ 0

|kb| = |k| |b|

Worked example 13 marks

The vectors a = beginpmatrix2 k 6endpmatrix and b = beginpmatrix-3 6 -9endpmatrix are parallel. Find the value of k.

  1. 1

    parallel, so a = λb for a scalar λ (M1) [1]

  2. 2

    2 = -3λ, so λ = -2/3; check: 6 = -9(-2/3) (A1) [1]

  3. 3

    k = 6(-2/3) = -4 (A1) [1]

5. Magnitude and unit vectors

The magnitude of a vector is its length. It comes from Pythagoras' theorem in three dimensions, and every component is squared.

A unit vector has magnitude 1. Divide a vector by its magnitude to get the unit vector in the same direction.

To find a vector of magnitude m in the direction of v, multiply the unit vector by m.

|v| = √(v₁² + v₂² + v₃²)

hatv = v/(|v|), |hatv| = 1

magnitude m in direction of v: m v/(|v|)

Worked example 14 marks

Do not use a calculator. Given v = 2i - 3j + 6k,(a) find |v|,(b) write down the unit vector in the direction of v,(c) find the vector of magnitude 14 in the direction of v.

  1. 1

    (a) |v| = √(2² + (-3)² + 6²) (M1) [1]

  2. 2

    = √49 = 7 (A1) [1]

  3. 3

    (b) unit vector = 1/7(2i - 3j + 6k) (A1) [1]

  4. 4

    (c) 14 × 1/7v = 2v = 4i - 6j + 12k (A1) [1]

6. Position vectors and the displacement vector AB

The journey from A to B goes back to O and then out to B: overrightarrowAB = overrightarrowOB - overrightarrowOA = b - a. The rule is end minus start.

Reversing the journey reverses the vector: overrightarrowBA = -overrightarrowAB.

The distance between A and B is the magnitude of overrightarrowAB. The sign of the vector does not change its magnitude.

overrightarrowAB = b - a

overrightarrowBA = -overrightarrowAB

AB = |overrightarrowAB|

Worked example 14 marks

The points A and B have coordinates A(1, -2, 3) and B(5, 0, -1). Find the distance between A and B.

  1. 1

    overrightarrowAB = overrightarrowOB - overrightarrowOA (M1) [1]

  2. 2

    = beginpmatrix5 0 -1endpmatrix - beginpmatrix1 -2 3endpmatrix = beginpmatrix4 2 -4endpmatrix (A1) [1]

  3. 3

    distance = |overrightarrowAB| = √(4² + 2² + (-4)²) (M1) [1]

  4. 4

    = √36 = 6 (A1) [1]

7. Proofs of geometrical properties

To prove a geometrical property, write every vector in the figure in terms of two non-parallel vectors, such as a and b. Use overrightarrowPQ = q - p and the midpoint of PQ at p + 1/2overrightarrowPQ.

Two lines are parallel when their vectors are scalar multiples. Three points are collinear when two of their displacement vectors are parallel and share a common point.

Finish with a sentence in words that says what the algebra has shown.

overrightarrowPQ = koverrightarrowRS ⇒ PQ ∥ RS and PQ = |k| RS

overrightarrowAB = koverrightarrowBC ⇒ A, B, C collinear

Worked example 14 marks

In triangle OAB, overrightarrowOA = a and overrightarrowOB = b. The point M is the midpoint of OA and N is the midpoint of OB. Prove that MN is parallel to AB and half its length.

  1. 1

    overrightarrowOM = 1/2a and overrightarrowON = 1/2b (A1) [1]

  2. 2

    overrightarrowMN = overrightarrowON - overrightarrowOM (M1) [1]

  3. 3

    = 1/2(b -a) = 1/2overrightarrowAB (A1) [1]

  4. 4

    overrightarrowMN is a scalar multiple of overrightarrowAB, so MN is parallel to AB and half its length (R1) [1]

Recap

  • A vector has magnitude and direction. A position vector overrightarrowOA = a starts at the origin O.
  • The base vectors i, j, k give v = v₁i + v₂j + v₃k. A missing term means the component is 0.
  • Add, subtract and multiply by a scalar component by component. -v has the opposite direction.
  • Parallel: a = kb. A negative k means opposite directions.
  • |v| = √(v₁² + v₂² + v₃²). The unit vector is v/(|v|).
  • overrightarrowAB = b - a (end minus start). The distance AB is |overrightarrowAB|.
  • Proofs: write each vector in terms of two non-parallel vectors, show a scalar multiple, then say what it proves. Collinear needs a common point.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State the position vector of the point (-3, 0, 7) in terms of i, j and k.1 mark
    Answer
    1. -3i + 7k.

    Trap: The y-coordinate is 0, so there is no j term. Writing -3i + 7j puts the 7 in the wrong direction.

  2. Do not use a calculator. Given u = 4i - j + 2k, write down -u as a column vector.2 marks
    Answer
    1. Negate every component.
    2. -u = beginpmatrix-4 1 -2endpmatrix.

    Trap: The j coefficient is -1, so -u has +1 there. Negating only the first component gives the wrong vector.

  3. Given p = beginpmatrix3 -2 1endpmatrix, which of the following is 2p - beginpmatrix1 1 1endpmatrix? A beginpmatrix5 -5 1endpmatrix · B beginpmatrix7 -3 3endpmatrix · C beginpmatrix5 -3 1endpmatrix · D beginpmatrix2 -3 0endpmatrix1 mark
    Answer
    1. A.
    2. 2p = beginpmatrix6 -4 2endpmatrix, so 2p - beginpmatrix1 1 1endpmatrix = beginpmatrix5 -5 1endpmatrix.
    3. B adds instead of subtracting. C slips on the second component (-4 + 1). D forgets to double p.

    Trap: Multiply the whole vector by 2 before you subtract.

  4. Do not use a calculator. Determine the magnitude of w = i - 4j + 8k, and write down the unit vector in the direction of w.3 marks
    Answer
    1. |w| = √(1² + (-4)² + 8²) = √81 = 9.
    2. Unit vector = 1/9(i - 4j + 8k).

    Trap: (-4)² = 16, not -16. Dividing by 1 - 4 + 8 = 5 is not dividing by the magnitude.

  5. Do not use a calculator. Show that the vectors beginpmatrix4 -2 10endpmatrix and beginpmatrix-6 3 -15endpmatrix are parallel. State whether they point in the same direction.3 marks
    Answer
    1. Let beginpmatrix-6 3 -15endpmatrix = λbeginpmatrix4 -2 10endpmatrix.
    2. -6 = 4λ gives λ = -3/2. Then 3 = -2(-3/2) and 10(-3/2) = -15, so every component fits.
    3. λ < 0, so the vectors point in opposite directions.

    Trap: Checking one component is not enough, and parallel does not mean the same direction.

  6. The points A(2, -1, 5) and B(-2, 2, 17) are given. Find overrightarrowAB. Hence calculate the distance between A and B.4 marks
    Answer
    1. overrightarrowAB = overrightarrowOB - overrightarrowOA = beginpmatrix-2 2 17endpmatrix - beginpmatrix2 -1 5endpmatrix = beginpmatrix-4 3 12endpmatrix.
    2. AB = √((-4)² + 3² + 12²) = √(169) = 13.

    Trap: a - b gives beginpmatrix4 -3 -12endpmatrix, which is overrightarrowBA. The distance is the same, but the vector points the wrong way.

  7. Do not use a calculator. Given p = 2i + j - k and q = i - 3j + 4k, find |p + 2q| in the form a√b, where a, b ∈ Z⁺.4 marks
    Answer
    1. p + 2q = (2 + 2)i + (1 - 6)j + (-1 + 8)k = 4i - 5j + 7k.
    2. |p + 2q| = √(16 + 25 + 49) = √90.
    3. √90 = 3√10.

    Trap: Add the vectors first, then find one magnitude. |p| + 2|q| is a different number.

  8. Do not use a calculator. The vector u has magnitude 12 and is parallel to -2i - j + 2k. The k component of u is positive. Find u.4 marks
    Answer
    1. |-2i - j + 2k| = √(4 + 1 + 4) = 3.
    2. u = ±12/3(-2i - j + 2k) = ± 4(-2i - j + 2k).
    3. The k component is positive, so u = -8i - 4j + 8k.

    Trap: Parallel allows both directions, so there are two vectors until the condition on k picks one. Multiplying by 12 without dividing by 3 gives magnitude 36.

  9. A drone is tracked from a base station O, with i pointing east, j north and k vertically up, in metres. It takes off from A, with position vector 2i + 3j, and flies in a straight line through B, with position vector 6i + 15j + 3k. (a) Find the unit vector in the direction of overrightarrowAB. [3] (b) The drone stops at C, 39 m from A along the same line. Find the position vector of C. [2] (c) Calculate the distance from O to C. [1]6 marks
    Answer
    1. (a) overrightarrowAB = b - a = 4i + 12j + 3k.
    2. |overrightarrowAB| = √(16 + 144 + 9) = √(169) = 13, so the unit vector is 1/13(4i + 12j + 3k).
    3. (b) overrightarrowAC = 39 × 1/13(4i + 12j + 3k) = 12i + 36j + 9k.
    4. overrightarrowOC = a + overrightarrowAC = 14i + 39j + 9k.
    5. (c) OC = √(14² + 39² + 9²) = √(1798) = 42.4 m (3 s.f.).

    Trap: 12i + 36j + 9k is the displacement overrightarrowAC, not the position vector of C: add a. Multiplying overrightarrowAB by 39 instead of the unit vector gives a point 507 m away.

  10. OABC is a parallelogram with overrightarrowOA = a and overrightarrowOC = c. The point M is the midpoint of BC. The line OM meets the diagonal AC at P. Show that AP : PC = 2 : 1.6 marks
    Answer
    1. overrightarrowCB = overrightarrowOA = a, so overrightarrowOM = c + 1/2a.
    2. P lies on OM: overrightarrowOP = λ(1/2a + c) for some scalar λ.
    3. P lies on AC: overrightarrowOP = a + μ(c - a) = (1 - μ)a + μc for some scalar μ.
    4. a and c are not parallel, so equate coefficients: 1/2λ = 1 - μ and λ = μ.
    5. 1/2μ = 1 - μ gives μ = 2/3.
    6. overrightarrowAP = 2/3overrightarrowAC, so AP : PC = 2/3 : 1/3 = 2 : 1.

    Trap: Using the same letter for the scalar on both lines assumes P is the same fraction along each; give each line its own scalar, and equate coefficients only because a and c are not parallel.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
overrightarrowAB = a - b, so the vector from A to B is A minus BoverrightarrowAB = b - a: end minus start, overrightarrowOB - overrightarrowOA
|v| = v₁ + v₂ + v₃, or √(v₁ + v₂ + v₃), with no squares|v| = √(v₁² + v₂² + v₃²): square every component, add, then take the root
a and b are parallel because they point the same waya = kb for a scalar k, with every component giving the same k
overrightarrowAB ∥ overrightarrowBC, so ABC is a lineoverrightarrowAB = koverrightarrowBC and B is a common point, so A, B, C are collinear

Frequently asked questions

What is the difference between a position vector and a displacement vector?
A position vector overrightarrowOA starts at the origin O, so its components are the coordinates of A. A displacement vector is the change in position from one point to another, so it can start anywhere. For example overrightarrowOA = beginpmatrix2 1 -3endpmatrix is the position vector of the point (2, 1, -3).
How do you find the magnitude and the unit vector of a vector?
The magnitude is |v| = √(v₁² + v₂² + v₃²), and the unit vector is v/(|v|). For v = 2i - 3j + 6k, |v| = 7 and the unit vector is 1/7(2i - 3j + 6k). To get a vector of magnitude 14 in the same direction, multiply the unit vector by 14.
How do you find the vector overrightarrowAB and the distance between two points?
Use end minus start: overrightarrowAB = overrightarrowOB - overrightarrowOA = b - a. For A(1, -2, 3) and B(5, 0, -1), overrightarrowAB = beginpmatrix4 2 -4endpmatrix. The distance AB is the magnitude of overrightarrowAB, which is √36 = 6.
How do you test whether two vectors are parallel?
Two non-zero vectors are parallel when a = kb for a scalar k ≠ 0. Find k from one component, then check that every component gives the same k. If k < 0 the vectors point in opposite directions. For a = beginpmatrix2 k 6endpmatrix and b = beginpmatrix-3 6 -9endpmatrix the parallel condition gives k = -4.
How do you prove a geometrical property using vectors?
Write every vector in the figure in terms of two non-parallel vectors, such as a and b, then show that one vector is a scalar multiple of another. If M and N are the midpoints of OA and OB, then overrightarrowMN = 1/2overrightarrowAB, so MN is parallel to AB and half its length. Finish with a sentence in words that says what has been shown.
What is the common mistake when finding the magnitude of a vector?
Using v₁ + v₂ + v₃ for the magnitude is wrong. Square every component, add them, then take the square root: |v| = √(v₁² + v₂² + v₃²). The same method gives the distance AB, which is the magnitude of overrightarrowAB = b - a.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters