Introduction
A vector has both size (magnitude) and direction, unlike a scalar, which only has size. Displacement, velocity and force are vectors; distance, speed and mass are scalars. This topic covers vector notation in 2D and 3D, adding and scaling vectors, magnitude and direction, unit vectors, position vectors, and using vectors to prove geometric facts such as "these points are collinear" or "this quadrilateral is a parallelogram".
Why it matters
A pilot flying north at km/h in a km/h westerly wind does not travel north. Vectors tell you the actual velocity. Every physics engine in a video game, every GPS route and every structural engineering calculation uses vectors, and they are the bridge from Pure maths to Mechanics.
Intuitive explanation
means "3 right, 4 up". Where you start does not matter: the same arrow can be drawn anywhere. Adding vectors means doing one journey after another, nose to tail. Multiplying by means the same direction, twice as far; by , the reverse journey.
Two vectors are parallel exactly when one is a scalar multiple of the other. That single idea solves most geometric vector problems.
Formal definitions
In 2D, . In 3D, , where are unit vectors along the -, - and -axes.
. The unit vector in the direction of is .
The position vector of point is . Then .
Notation
- Bold in print; underlined in handwriting.
- is the vector from to ; is the length .
- Column vectors and notation are interchangeable; use whichever the question uses.
Key facts
Midpoint of : . Point dividing in ratio : .
makes angle with the positive -axis, where (check the quadrant).
Key results
for some scalar . Points are collinear if (parallel and sharing the point ).
If and are not parallel and , then and . This lets you compare coefficients in geometric proofs.
Proofs
The vector is the diagonal of a box. The diagonal of its base has length (Pythagoras), and then the space diagonal is .
∎.
∎Methods
- Choose two non-parallel base vectors (often given, such as and ).
- Write every vector you need as a route in terms of them.
- To show parallel: show one is a multiple of the other. To find unknown ratios: write the same vector two ways and compare coefficients.
Add the force vectors to get the resultant , then . The magnitude gives the size; the direction comes from .
The scalar (dot) product, and why it measures angles
Define . Apply the cosine rule to the triangle with sides , and :
But expanding the components directly,
Comparing the two:
Consequences:
- iff the vectors are perpendicular;
- ;
- is the length of the projection of onto the direction of , which is the "shadow" of .
The section formula
If divides in the ratio , then , so
The midpoint is the case . is a weighted average of and , with more weight on the nearer endpoint.
Vector equation of a line
Every point on the line through in direction is reached by starting at and moving some multiple of :
In 2D this is equivalent to , but it works equally well in 3D, where there is no single Cartesian equation for a line.
Proving geometry with vectors: the method
- Choose an origin and two (or three) basic vectors.
- Express every relevant point in terms of them.
- Translate "parallel" into "scalar multiple", "perpendicular" into "dot product zero", and "meet" into "equate two expressions and compare coefficients".
- Comparing coefficients is legitimate because the basic vectors are independent: forces and when and are not parallel.
Examples
.
More fully worked examples are in the Worked examples tab.
Common mistakes
, "end minus start", not .
; the minus sign disappears when squared.
points up and to the left: the angle with the positive -axis is .
Parallel vectors and only show collinearity if the lines share a point.
Applications
- Navigation: combining a boat's velocity with a current.
- Mechanics: resultant forces, equilibrium, .
- Computer graphics: positions, directions and lighting all use 3D vectors.
Connections
- Coordinate geometry: distances and midpoints.
- Forces and kinematics: vectors in mechanics.
- Further vectors (Further Maths): lines, planes and the scalar product.
- Matrices transform vectors.
Summary
- ; magnitude ; unit vector .
- Parallel scalar multiple; collinear = parallel + common point.
- Direction in 2D from , checking the quadrant.
- Distance between and is .
Worked examples
Try each one yourself first, then open the solution.
Find the magnitude of and the angle it makes with the positive -axis.
Show the solution
- 1Magnitude
.
- 2Reference angle
.
- 3Quadrant
points left and up (second quadrant): .
, at
Find the unit vector in the direction of .
Show the solution
- 1Magnitude
.
- 2Divide
.
and have position vectors and . Find .
Show the solution
- 1End minus start
.
- 2Magnitude
.
, and . Show that , and are collinear.
Show the solution
- 1Two vectors from
, .
- 2Parallel
.
- 3Conclude
Parallel and sharing the point , so collinear. is a third of the way from to .
In triangle , and . is the midpoint of and the midpoint of . Prove that is parallel to and half its length.
Show the solution
- 1Write
.
- 2Write
.
- 3Compare
: parallel and half the length.
is a parallelogram with , . is the point where the diagonals meet. Show that is the midpoint of each diagonal.
Show the solution
- 1Along
, so .
- 2Along
.
- 3Compare coefficients
and , so .
Forces N and N act on a particle of mass kg. Find the magnitude of its acceleration.
Show the solution
- 1Resultant
N.
- 2Newton's second law
.
- 3Magnitude
m s.
m s
University-level ideas and the deeper mathematics behind this topic. Not needed for exams, but this is where the subject really opens up.
Vector spaces: the abstract idea (university)
Arrows are just one example. What makes something a "vector" is how it behaves: you can add two of them and scale one by a number, and these operations obey sensible rules.
A set with addition and scalar multiplication satisfying, for all and scalars :
- and ;
- there is a zero vector , and every has a negative ;
- , , , and .
Surprising examples
- Polynomials of degree at most : add them and scale them. A basis is , so the dimension is .
- Functions : infinite-dimensional.
- Solutions of : any combination is again a solution. A 2-dimensional space with basis .
- Sequences satisfying : a 2-dimensional space with basis . This is why Binet's formula exists (Sequences and series).
- matrices, magic squares, quantum states.
A basis is a set of vectors that is linearly independent (no non-trivial combination gives ) and spanning (every vector is a combination of them). Every basis of a given space has the same size, its dimension.
The power of the abstraction: a theorem proved once for "vector spaces" applies at a stroke to arrows, polynomials, functions, signals and quantum states. Linear algebra is probably the single most widely used part of university mathematics.
If are independent and span , then .
Idea: swap the s into the spanning list one at a time, each time throwing out one of the s. Independence guarantees that there is always a to throw out, so you cannot run out of s first.
The cross product and determinants (university)
In three dimensions there is a second product, which gives a vector:
is perpendicular to both and , and has length , the area of the parallelogram they span. Its direction is given by the right-hand rule.
Perpendicularity: , since every term cancels with another. Length: a direct expansion gives Lagrange's identity
Properties that differ from ordinary multiplication
- Anticommutative: , and so .
- Not associative: , but .
- Instead it satisfies the Jacobi identity: . Vectors with this product form a Lie algebra, the algebra of infinitesimal rotations.
Volume and the triple product
is the (signed) volume of the parallelepiped spanned by , and . It is zero iff the three vectors are coplanar, i.e. linearly dependent. Determinants measure volume, in any dimension. That is why a matrix is invertible iff its determinant is non-zero: an invertible map cannot flatten space.
Physics
- Torque: .
- Angular momentum: .
- Magnetic force on a charge: , which is always perpendicular to the motion. That is why magnetic fields bend charged particles into circles and do no work on them.
A product that is bilinear, perpendicular to both factors, and has length exists only in dimensions and . This is connected to the quaternions (4D) and the octonions (8D) via Hurwitz's theorem. In other dimensions, the wedge product of exterior algebra does the job, as an oriented area rather than a vector.
Linear maps: vectors in motion (university)
A function from vectors to vectors is linear if and . Rotations, reflections, stretches, shears and projections are all linear. Translations are not, because they move .
If and , then . Writing and as the columns of a matrix , .
This is where matrices come from: a matrix is a linear map written in coordinates. Matrix multiplication is defined the way it is precisely so that : multiplying matrices composes the maps.
Eigenvectors
Most vectors change direction under . An eigenvector does not: . It is only stretched, by the eigenvalue .
Example: the shear-and-stretch has eigenvector (eigenvalue ) and (eigenvalue ). In the basis of eigenvectors, acts as a simple stretch along each axis. Finding that basis (diagonalisation) turns hard problems into easy ones. Examples:
- Powers: becomes trivial to compute, which is how Binet's formula and population models work.
- Differential equations: coupled systems separate into independent ones.
- Vibrations: the eigenvectors are the normal modes of a bridge, molecule or guitar string, and the eigenvalues are their frequencies.
- Google's PageRank: the ranking is the eigenvector of the web's link matrix with eigenvalue .
- Quantum mechanics: measurable quantities are eigenvalues. The energy levels of an atom are eigenvalues of its Hamiltonian.
A real symmetric matrix has real eigenvalues and an orthonormal basis of eigenvectors.
Geometrically: every symmetric linear map is a pure stretch along some set of perpendicular axes. These are the principal axes of stress in engineering, the principal moments of inertia in mechanics, and the principal components in statistics (PCA).
Vector calculus: fields and flows (university)
A vector field assigns a vector to every point: wind velocity, gravitational field, electric field. Calculus on vector fields uses the operator in three ways.
| operation | formula | meaning |
|---|---|---|
| gradient | direction and rate of steepest increase of | |
| divergence | net outflow per unit volume (sources and sinks) | |
| curl | local rotation (twice the angular velocity of a tiny paddle wheel) |
For a region with boundary surface and outward normal :
In words: what is produced inside must flow out through the boundary. This is the Fundamental Theorem of Calculus in three dimensions. Stokes' theorem does the same for curl and circulation round a loop.
Maxwell's equations
All of classical electromagnetism fits in four lines:
Taking the curl of the third equation in empty space, and using the identity , gives the wave equation with speed m s. Maxwell (1865) recognised this as the speed of light: light is an electromagnetic wave. One of the greatest discoveries in physics came out of vector calculus.
You cannot comb a hairy sphere flat without a cowlick: every continuous tangent vector field on a sphere vanishes somewhere. So at any moment there is a point on Earth where the horizontal wind speed is zero. On a doughnut (torus), by contrast, a nowhere-zero field is easy. The difference is topological: it depends on the Euler characteristic of the surface, which is for the sphere and for the torus.
Why does this work?
Apply Pythagoras twice: the diagonal of the base rectangle is , and it is perpendicular to the vertical edge , so the space diagonal is .
Beyond the syllabus
Mathematical curiosities
Every continuous tangent vector field on a sphere has a zero somewhere: you cannot comb a hairy ball flat. On Earth, at any instant there is somewhere the horizontal wind speed is zero.