Crayonbird
Menu

Maths

What is a vector in maths, and how do you add vectors?

Quick answer

A vector is a quantity with both size (magnitude) and direction, like “5 km north”. In maths it is written as a column of numbers, such as (3, 4), and drawn as an arrow.

Ages 14–17Secondary

In one sentence

A vector is a quantity that has both a size (its magnitude) and a direction, such as "walk 5 km north", and you can draw it as an arrow.

Explained

Some quantities need only a number. A mass of 5 kg, a temperature of 18 °C or a speed of 30 km/h are scalars: they have a size but no direction. Other quantities make no sense without a direction. "Walk 3 km" does not tell you where you end up; "walk 3 km east" does. Quantities like this are vectors. Displacement, velocity, force and acceleration are all vectors, which is why physics uses them all the time.

  • plane
  • map
  • ruler
A pilot needs more than a speed: the direction of the plane and of the wind are vectors.

You draw a vector as an arrow. Its length shows the magnitude and the way it points shows the direction. In books a vector is written in bold, a, or underlined by hand, a̲. A vector from point A to point B is written AB with an arrow on top.

In maths at school, most vectors are column vectors. The top number is the move across (right is positive, left is negative) and the bottom number is the move up (up is positive, down is negative). It is written as a column in brackets, with 3 above 4; on this page we write it on one line as (3, 4). It means "3 right, 4 up", the same kind of move as a translation in transformations.

The rules are simple because you work on the two numbers separately:

  • Adding: (3, 4) + (1, −2) = (4, 2). On a drawing, put the arrows nose to tail; the answer, the resultant, goes from the start of the first to the end of the last.
  • Subtracting: (3, 4) − (1, −2) = (2, 6). Subtracting b is the same as adding −b, the arrow turned round.
  • Multiplying by a number (a scalar): 2 × (3, 4) = (6, 8). The arrow becomes twice as long and keeps its direction. A negative number turns it round.
  • Magnitude: the length of (x, y) is √(x² + y²), straight from Pythagoras' theorem. The length of (3, 4) is √(9 + 16) = 5.

Two vectors are parallel if one is a number times the other: (2, 3) and (6, 9) are parallel because (6, 9) = 3 × (2, 3). Three points A, B and C are collinear (on one straight line) if AB and BC are parallel and share the point B. Two vectors are perpendicular if their dot product is zero: for (a, b) and (c, d) that is ac + bd = 0.

Vectors also make geometry easier. If O is the origin, the position vector of a point A is OA. With OA = a and OB = b, the vector from A to B is always b − a, and the midpoint of AB has position vector ½(a + b). In 3D a vector simply has three numbers, (x, y, z), and its magnitude is √(x² + y² + z²).

Examples

Question Working Answer
(5, 1) + (−2, 3) 5 + (−2) = 3, 1 + 3 = 4 (3, 4)
(4, −2) − (1, 5) 4 − 1 = 3, −2 − 5 = −7 (3, −7)
3 × (2, −1) 3 × 2 = 6, 3 × (−1) = −3 (6, −3)
Magnitude of (−5, 12) √(25 + 144) = √169 13
Vector from A(2, 1) to B(7, 4) (7 − 2, 4 − 1) (5, 3)
Are (4, 6) and (6, 9) parallel? (6, 9) = 1.5 × (4, 6) yes

Worked example: a drone flies (6, 2) and then (−1, 10), in metres. Its total displacement is (6 + (−1), 2 + 10) = (5, 12), and its distance from the start is √(25 + 144) = √169 = 13 m, even though it flew further than that.

Common mistakes

  • Writing AB as a − b. Fix: AB = b − a, "end minus start", just like finding a change.
  • Losing the minus sign when squaring. (−3)² = 9, not −9, so the magnitude of (−3, 4) is 5.
  • Adding the lengths. A 3 m move and a 4 m move do not make 7 m unless they point the same way. Add the vectors, then find the magnitude.
  • Calling vectors parallel when only one number matches. (4, 6) and (4, 9) are not parallel: you must multiply both numbers by the same amount.

Step by step

Step by step

  1. Write each vector as a columnTop number = across, bottom number = up. Use negatives for left and down.
  2. Combine top with top, bottom with bottomAdd or subtract each row separately. Multiply both rows by any scalar first.
  3. Find the magnitude if asked√(x² + y²). Square both numbers, add, then take the square root.
  4. Test for parallelIs one vector a single number times the other? Check both rows.
  5. Sketch itA quick arrow diagram, nose to tail, shows whether your answer points the right way.

Practice questions

Vector calculations

Try each one, then check your answer.

  1. a = (3, 2) and b = (1, 4). Find a + b.
    Show answer
    (3 + 1, 2 + 4) = (4, 6)
  2. With the same vectors, find a − b.
    Show answer
    (3 − 1, 2 − 4) = (2, −2)
  3. Find 3a.
    Show answer
    (3 × 3, 3 × 2) = (9, 6)
  4. Find 2a − b.
    Show answer
    (6 − 1, 4 − 4) = (5, 0)
  5. Find the magnitude of (3, 4).
    Show answer
    √(9 + 16) = √25 = 5
  6. Find the magnitude of (5, −12).
    Show answer
    √(25 + 144) = √169 = 13
  7. Find the magnitude of (2, 6).
    Show answer
    √(4 + 36) = √40 = 2√10 ≈ 6.32
  8. A is (1, 2) and B is (6, −1). Find the vector AB.
    Show answer
    (6 − 1, −1 − 2) = (5, −3)
  9. Is (6, −9) parallel to (2, −3)?
    Show answer
    (6, −9) = 3 × (2, −3), so yes.
  10. Is (4, 6) parallel to (6, 8)?
    Show answer
    6 ÷ 4 = 1.5 but 8 ÷ 6 ≈ 1.33. The multipliers differ, so no.
  11. (k, 10) is parallel to (3, 5). Find k.
    Show answer
    10 = 2 × 5, so k = 2 × 3 = 6
  12. Are A(0, 1), B(2, 4) and C(6, 10) collinear?
    Show answer
    AB = (2, 3) and BC = (4, 6) = 2 × AB, and they share B, so yes.
  13. Find the unit vector (magnitude 1) in the direction of (3, 4).
    Show answer
    Divide by the magnitude 5: (0.6, 0.8)
  14. Are (2, 3) and (3, −2) perpendicular?
    Show answer
    Dot product: 2 × 3 + 3 × (−2) = 6 − 6 = 0, so yes.
  15. OA = a and OB = b. M is the midpoint of AB. Find OM in terms of a and b.
    Show answer
    OM = a + ½(b − a) = ½(a + b)

Word problems

Vectors in real life

Try each one, then check your answer.

  1. A boat sails 6 km east and then 8 km north. Write its displacement as a column vector and find how far it is from the start.
    Show answer
    (6, 8); √(36 + 64) = √100 = 10 km
  2. Two people pull a box: one with force (4, 0) N, the other with (0, 3) N. What is the size of the resultant force?
    Show answer
    (4, 3); √(16 + 9) = 5 N
  3. A swimmer swims straight across a river at 1.5 m/s while the current flows at 2 m/s. What is her actual speed?
    Show answer
    √(1.5² + 2²) = √(2.25 + 4) = √6.25 = 2.5 m/s
  4. A plane heads north at 200 km/h and the wind blows east at 50 km/h. Find its speed over the ground and its direction.
    Show answer
    √(200² + 50²) = √42,500 ≈ 206 km/h, at tan⁻¹(50 ÷ 200) ≈ 14° east of north
  5. A robot moves by (2, 1) metres on every step. Where is it after 5 steps from (0, 0), and how far from the start?
    Show answer
    5 × (2, 1) = (10, 5); √(100 + 25) = √125 ≈ 11.2 m

Questions people ask

What is the difference between a vector and a scalar?

A scalar has only a size, like 20 m/s or 5 kg. A vector has a size and a direction, like 20 m/s due north. Speed is a scalar; velocity is the matching vector.

How do you add two vectors?

Add the top numbers together and the bottom numbers together: (2, 5) + (3, −1) = (5, 4). On a drawing, place the arrows nose to tail and draw the resultant from the very start to the very end.

How do you know if two vectors are parallel?

One must be a single number times the other, in both rows. (3, −2) and (−6, 4) are parallel because (−6, 4) = −2 × (3, −2); the minus sign means they point opposite ways.

How do you show that two vectors are perpendicular?

Find the dot product: multiply the top numbers, multiply the bottom numbers and add. If the result is 0, the vectors are at right angles, as with (2, 3) and (3, −2).

How do you show that three points are collinear?

Show that AB and BC (or AB and AC) are parallel. Because they share a point, they must lie on the same straight line.

What is a vector in physics?

Any quantity with a direction: displacement, velocity, acceleration, force and momentum. Adding force vectors gives the resultant force, which decides how an object moves.

Does "vector" mean something else in biology or design?

Yes. In biology a vector is a living thing that carries a disease to people, such as a mosquito carrying malaria. In design, vector graphics store pictures as points, lines and curves described by numbers, so they can be enlarged without going blurry.

Quick quiz

Vectors

Check what you know with 5 quick questions.

Question 1 of 5

What is (2, −1) + (−3, 4)?

Practise it

Try it

All Geometry sheets

Practise it step by step in a full course: Grade 11 Maths

For grown-ups

Coordinates

Coordinates are a pair of numbers that give an exact position on a grid, like (3, 5). The first number is how far across (x) and the second is how far up (y).

Maths · Ages 8–14

Pythagoras' theorem

Pythagoras' theorem says that in a right-angled triangle, a² + b² = c², where c is the longest side (the hypotenuse). For sides 3 and 4, the hypotenuse is 5.

Maths · Ages 12–16

Trigonometry

Trigonometry links the angles and sides of right-angled triangles using sine, cosine and tangent. It lets you find a missing side or angle. SOH CAH TOA helps you remember the three ratios.

Maths · Ages 13–17

Matrices

A matrix is a rectangular grid of numbers in rows and columns. You add matrices entry by entry, and you multiply them row by column, which only works when the sizes match.

Maths · Ages 15–18

Angles in parallel lines

When a line crosses two parallel lines, corresponding (F) and alternate (Z) angles are equal and co-interior (C) angles add to 180°. Vertically opposite angles are always equal.

Maths · Ages 11–14

Back to the Learning Wiki