Vector calculator
Type the components of a (and b if you want to combine two vectors). You get the magnitude, the unit vector, the sum and difference, the scalar product, the angle between them and, in 3D, the vector product.
- |a|
- 5.00
- |b|
- 2.24
- a · b
- 5.00
- Angle
- 63.4°
Show the working
|a| = √(3² + 4²) = 5.00
Unit vector â = a ÷ |a| = 0.6000.800
|b| = 2.24
a + b = 2.006.00 a − b = 4.002.00
a · b = (3)(−1) + (4)(2) = 5.00
cos θ = a · b ÷ (|a||b|) = 5.00 ÷ (5.00 × 2.24) = 0.447, so θ = 63.4° (1.11 radians)
Answers are rounded to 3 significant figures. Give your answer to the accuracy the question asks for.
How to do it by hand
- A column vector with top number x and bottom number y means x across and y up; negative numbers go left or down.
- Magnitude: |a| = √(x² + y²), Pythagoras on the two components.
- Add or subtract column vectors by adding or subtracting the top numbers, then the bottom numbers; 3a multiplies both components by 3.
- In geometry questions, write a route such as AB = AO + OB in terms of a and b. Two vectors are parallel when one is a multiple of the other.
Worked example
a has components 3 and 4, and b has components −1 and 2. Find |a|, a + b and a − b. (The tool also gives the scalar product and the angle, which IGCSE does not use.)
Solution
|a| = √(3² + 4²) = 5.00
Unit vector â = a ÷ |a| = 0.6000.800
|b| = 2.24
a + b = 2.006.00 a − b = 4.002.00
a · b = (3)(−1) + (4)(2) = 5.00
cos θ = a · b ÷ (|a||b|) = 5.00 ÷ (5.00 × 2.24) = 0.447, so θ = 63.4° (1.11 radians)
Answer: |a| = 5.00, a · b = 5.00, θ = 63.4°
Every number in this example is worked out by the same code as the tool above, and the code is tested against independent results from Python's SciPy library.
Where you need it
| Edexcel 4MA1 | 5.1 Vectors: Higher tier only. |
|---|---|
| Cambridge 0580 | E7.3 Magnitude of a vector: Extended only. |
Calculator: 4MA1: A calculator may be used in all four papers. 0580: No calculator on Papers 1 and 2; a scientific calculator is needed for Papers 3 and 4. Algebraic or graphic calculators are not allowed.
IGCSE uses vectors in two dimensions: column vectors, their magnitude by Pythagoras, adding and subtracting them and multiplying by a number. The scalar product, angles between vectors and 3D are for IB and A Level.
Common mistakes
- Squaring a negative component wrongly: (−5)² = 25, so the column vector with components −5 and 12 has magnitude 13.
- Writing a column vector as a coordinate pair when the question asks for a column vector.
- Taking a route backwards: BA = −AB, so every vector in the route changes sign.
- Saying two vectors are parallel without showing that one is a multiple of the other, for example 6a − 3b = 3(2a − b).
Notes and practice
Questions students ask
Are vectors on IGCSE Foundation or Core?
No. On Edexcel 4MA1 vectors (section 5.1) are Higher tier only. On Cambridge 0580, vectors in two dimensions, their magnitude and vector geometry are Extended only (sub-topics 7.2 to 7.4).
How do I show that three points are collinear with vectors?
Show that two of the vectors between them are multiples of each other and share a point: if AC = 3AB, then A, B and C lie on one straight line.
Is the scalar product on IGCSE?
No. IGCSE vectors are column vectors, magnitude and vector geometry in two dimensions; the scalar product and the angle between vectors belong to A Level and IB. The tool shows them, but 4MA1 and 0580 do not ask for them.