Notes
1P4 Mathematics · Topic 1

Vectors: notation, lines and planes

Lecture 1 · Fri 9 Oct

What is a vector?

Vectors model the 3-dimensional world. Later in the course we will also need -dimensional vectors.

Definition Scalar and vector
  • A scalar has only magnitude: e.g. mass, time, temperature.
  • A vector has magnitude and direction: e.g. force, acceleration, electric field.

Examples of vector equations:

  • : the force needed to move a charge in an electric field .
  • : Newton’s 2nd law.

Vector notation

Definition Vector notation
  • Bold denotes a vector in print (). In handwriting, underline it ().
  • is the length (magnitude) of .
  • A hat denotes a unit vector (length 1): .
  • is the scalar (dot) product. It is covered later.
  • is the vector (cross) product. It is covered later.
  • There is no division by a vector. (Or is there? See Appendix A1.)
  • Some texts do not use bold at all. The vector nature then comes from the context.
Watch out

In handwritten work, including the exam, underline every vector. Without the underline, reads as a scalar equation; with it, is clearly a vector equation.

  • Print uses bold ; handwriting uses . A hat means unit length; is the length.
  • You cannot divide by a vector.

The right-handed Cartesian basis set

Definition Right-handed Cartesian basis

are three mutually orthogonal unit vectors (at to each other). They form a right-handed set:

They are often written , a notation that comes from Hamilton’s quaternions.

  • The are unit vectors but get no hats. Hats are reserved for general unit vectors, not for this particular basis.
  • Any vector in 3D space is a linear combination of the basis vectors:
Equation Vector in components memorise

The components are scalars.

Where it comes from

This is what a basis means: three vectors that are not coplanar, so that every vector in 3D can be written in exactly one way as a combination of them (Right-handed Cartesian basis). The components are the numbers in that combination. With an orthonormal basis, (Lecture 2: Components are projections onto the basis).

e3 e2 e1 O

are mutually orthogonal, with .

Figure A right-handed coordinate frame

The vector product forms a third vector from two vectors; it is treated in detail later. Its direction follows the right-hand screw rule. Turn a right-handed screw from towards through the angle ; it advances along .

Interactive figure

Drag to rotate the view. Change and watch the length of the product change. Swap the order: points the opposite way.

Figure The right-hand screw rule
Explanation How do I check a frame is right-handed, and what are the other products?
  • Right hand: point your thumb along and your index finger along ; your middle finger then points along .
  • Cyclic products: going round the cycle gives
  • Going against the cycle flips the sign, e.g. . This is the general rule .
  • If you swap two axes of a right-handed frame, the frame becomes left-handed and every cross product changes sign.
  • are orthonormal and right-handed. They get no hats; hats are for general unit vectors.
  • The direction of follows the right-hand screw turned from to .

Representing a vector and its magnitude

Take a vector (say a force) with components along , along and along . It can be written in three equivalent ways:

The magnitude comes from Pythagoras’s theorem in 3D:

Equation Magnitude of a vector memorise
Show derivation

The basis vectors are perpendicular unit vectors, so Pythagoras applies twice. In the -plane, has length . That vector is perpendicular to , so the whole vector has length .

Interactive figure

Drag the components and rotate the box. The floor diagonal has squared length . The vertical edge is perpendicular to it, so Pythagoras applies a second time.

Figure Components and magnitude
Explanation Why does Pythagoras work here, and how do I get a unit vector?
  • Pythagoras needs a right angle. In the floor, and are perpendicular, giving the diagonal . That diagonal is perpendicular to the edge, so .
  • This only works because the are orthogonal unit vectors. In a skewed basis, the formula would be wrong.
  • Unit vector: dividing by the magnitude gives the unit vector along :
  • Example: has , so .
  • The same vector can be written , or .
  • The magnitude formula is 3D Pythagoras. It is valid only in an orthonormal basis.

Index notation and the Einstein summation convention

Definition Einstein summation convention

Sum over any repeated index. The summation sign is implied but not written:

The convention extends to matrices and tensors; the course returns to this in its last 4 lectures. Useful cases:

Equation Magnitude in index notation memorise
Show derivation

Square Magnitude of a vector: , and by the Einstein summation convention the repeated index means “sum over ”, so this is written .

Equation Scalar product in index notation databook p.16

For and :

Show derivation

Expand using the distributive property of the scalar product: . The basis is orthonormal: if (unit length) and if (perpendicular), which is the Kronecker delta . Only the terms with survive: . (Lecture 2 does this in full: Scalar product in components.)

The vector product can also be written concisely in index notation. This comes later.

Explanation What are the rules for the repeated index?
  • The letter does not matter. A repeated index is a dummy index: . All three mean the same sum.
  • Use different letters when two sums are multiplied. That is why the handout writes and not . Expanding,
    Only the terms survive, because is 1 if and 0 otherwise. This leaves .
  • An index may appear at most twice in a term. For example, must be written , never .
  • Preview of matrices: the matrix product (see Matrix product (element form)) becomes . Here is summed, while and are free.
  • A repeated index means sum over it (). The letter used is irrelevant.
  • Use a fresh letter for each separate sum. An index may never appear three times in one term.
  • .

Vector equation of a line in 3D

A line passes through points and , with position vectors and . Its direction is .

Equation Line through two points memorise

is a general point on the line. at and at .

Show derivation

Start at the point on the line. The line’s direction is that of (the vector from A to B). Every point on the line is reached by moving from some multiple of that direction, forwards () or backwards (), and every such point is on the line. gives A and gives .

Interactive figure

Drag . The tip of reaches at and at . It lies between them for , beyond for , and behind for .

Figure A line through A and B

If (tangential) is a unit vector along the line, the line can also be written as follows.

Equation Line with a unit direction memorise

The parameter is called rather than because is not .

Show derivation

Same reasoning as Line through two points, with the direction given as a unit vector . Then is the actual distance moved along the line from (since ). With two points, and .

Either way, a line needs only one scalar parameter.

Write and . Equating the coefficients of gives the scalar Cartesian form:

Equation Line: Cartesian form memorise

Rearranging each equation for :

Show derivation

Write Line through two points in components (Vector in components): two vectors are equal when their components are, so each component gives one scalar equation. Each one contains the same , so solving each for gives three expressions that must all be equal (assuming no is zero).

Watch out

If for some component, that fraction is and must be dropped. That component equation simply says for all : the line lies in that constant-coordinate plane.

Explanation What is the parameter μ physically?
  • Because has unit length, is the signed distance from along the line.
  • With , the two parameters are related by
  • instead counts in units of : is one full step from to .

Example: equation of a line

Example Line through (1, 2, 3) and (4, 5, 6)

A line passes through and . Find a vector equation of the line. Does lie on it?

The first component equation gives . For :

So lies on the line, at .

Explanation Why substitute λ back in?
  • One component equation always gives some .
  • The point lies on the line only if the same satisfies all three components.
  • For example, gives from and , but from . It is therefore not on the line.
  • A line is : one parameter, with direction . Alternatively , where is the distance from .
  • Cartesian form: . Drop any component with ; it just says .
  • To test whether a point is on a line, find from one component and check that it fits all three.

Defining a plane in three dimensions

Three non-collinear points define a plane. Let their position vectors be . The vectors and lie in the plane, so an arbitrary point in the plane is:

Equation Plane through three points memorise
Show derivation

Like Line through two points, but a plane needs two directions. and both lie in the plane and, if A, B, C are not on one line, are not parallel. Then every point of the plane can be reached from by a combination (they form a basis for the plane), and every such point lies in the plane.

A plane is 2D, so it needs two scalar parameters.

Interactive figure

Move and . The dashed path goes from by , then by . However you set the two parameters, the tip of never leaves the plane. Rotate the view edge-on to check.

Figure A plane through A, B, C

Equivalently, take and as basis vectors in the plane:

Equation Plane in terms of in-plane basis vectors memorise

are unit vectors along .

Show derivation

In Plane through three points any two non-parallel vectors in the plane can replace and . Writing just rescales the parameter: , and similarly for .

  • and need not be orthogonal.
  • They form a valid basis provided are not collinear. Later we will see this means .
Explanation Why must A, B, C be non-collinear?
  • If lies on line , then is parallel to , say .
  • Then . This is effectively one parameter, so only sweeps out the line , not a plane.
  • Two parameters give a plane only if the two direction vectors point in genuinely different directions.

Example: equation of a plane

Example Plane through three given points

Find a vector equation of the plane through , and .

The handout leaves an exercise: write the equivalent form and find .

Explanation Answer to the handout exercise
  • Divide each direction vector by its length:
  • The parameters rescale accordingly: and .
  • Check: . So the two directions are not orthogonal, and they don’t need to be.
  • A plane is : two parameters, with non-collinear.
  • The two in-plane directions need not be orthogonal; they just must not be parallel.
Try now

Differentiating a time-varying vector w.r.t. time

Write .

Equation Derivative of a vector memorise

We just differentiate the coefficient of each component. A dot denotes .

Show derivation Differentiate component by component

Differentiation is linear, so

Apply the product rule to each term:

The are static, so . The second term vanishes, and the same happens in all three terms. (The derivative itself is defined as for a scalar, ; with constant the difference is , which gives the same result.)

Watch out

This works only because the Cartesian basis vectors are fixed in space. In polar coordinates (Appendix A2) the basis vectors rotate as the point moves. Their derivatives are then not zero, and extra terms appear (IA Mechanics).

Application: circular motion at constant angular velocity

A mass moves on a circle of radius with constant angular velocity , so .

  • The angular velocity vector points out of the page, drawn .
  • A vector into the page would be drawn .
Equation Circular motion: position, velocity, acceleration memorise

Here is the radius. The velocity is tangential to the circle and .

Show derivation

and are constant and the are fixed, so differentiate each component (Derivative of a vector) with the chain rule, and :

Tangential: (Scalar product in index notation), so .

Result Centripetal acceleration memorise

The magnitude is and the direction is towards the origin.

Show derivation

From Circular motion: position, velocity, acceleration: . So , pointing opposite to , i.e. to the centre.

Key point: vector notation captures both the magnitude () and the direction (towards the origin) of the acceleration in one line. This is the payoff of working with vectors rather than separate components from the start.

The Cartesian basis was easy to use here. A basis that naturally encodes the circular nature of the problem might be more natural; see Appendix A2 (used in IA Mechanics).

Interactive figure

Press ▶ to run time. stays tangent to the circle and always points at the centre. The arrows for and show direction only, not length. Raise : grows like , but grows like .

Figure Uniform circular motion
Explanation How can I check that v is perpendicular to r?
  • Perpendicular: take the scalar product, .
  • Constant speed: , which is constant. The speed is constant, but the velocity is not, because its direction keeps turning. That turning is what measures.
  • Sense of motion: at , , so for the motion is anticlockwise. This matches pointing out of the page by the right-hand screw rule.
  • Notation: bold is the position vector; plain is the radius. Keep the underline in handwriting.
  • To differentiate a vector, differentiate each component. This works because for the fixed Cartesian basis.
  • Circular motion: and . is tangential with .
  • : magnitude , directed towards the centre.
  • means out of the page, into it.

Important: extending to dimensions

  • Later you will need vector spaces of dimension higher than 3.
  • So, as far as possible, the course writes its analysis in a form that extends naturally to dimensions.
  • The definition of a vector space is in Appendix A3. This course does not specifically need it.
Explanation What carries over to n dimensions?

Almost everything in this lecture works unchanged with :

  • components: ;
  • magnitude: ;
  • scalar product: ;
  • the line and the plane .

The cross product is the exception. It is special to 3D, which is why results built on it, such as , do not generalise directly.

Appendix A1: division by a vector?

Not in the syllabus.

Suppose there were a product of two vectors that gives a valid object, not just a scalar or a vector, and such that is a scalar for every . Then

So dividing by the vector gives the quantity

This product is called the geometric or Clifford product.

Appendix A2: Cylindrical and spherical polar coordinates

These are for information only at this stage; they are introduced properly in IA Mechanics. The same conversions appear in Cylindrical ↔ Cartesian and Spherical ↔ Cartesian.

Cylindrical polar coordinates

  • : radial distance from the -axis.
  • : azimuthal angle in the -plane.
  • : height along the -axis.
Equation Cylindrical polars to Cartesian memorise
Show derivation

Drop a perpendicular from the point to the -plane. Its foot is a distance from the -axis at angle from the -axis, so right-angled-triangle trigonometry gives , ; the height is unchanged. (Same as Cylindrical ↔ Cartesian.)

In 2D, is often renamed and renamed . This gives 2D polar coordinates, as used in the circular-motion example.

Interactive figure

Change and moves round a cylinder of radius about the -axis. Change and it slides straight up.

Figure Cylindrical polar coordinates

Spherical polar coordinates

  • : radial distance from the origin.
  • : polar angle measured from the -axis.
  • : azimuthal angle in the -plane.
Equation Spherical polars to Cartesian memorise
Show derivation

The point is at distance from O and angle from the -axis. In the vertical plane through the -axis and the point, its height is and its distance from the -axis is . Then use Cylindrical polars to Cartesian with that : , .

Interactive figure

tilts the radius down from the -axis, and swings its shadow round the -plane. The shadow has length , which is where the in and comes from.

Figure Spherical polar coordinates
Explanation Why is θ different in spherical and 2D polar coordinates?
  • Clash of names: in spherical coordinates is measured from the -axis. In 2D polar coordinates, is the angle in the -plane, which is the role plays here. Always check which convention a question uses.
  • Where the formulas come from: project onto the -plane to get a shadow of length . Then treat the shadow exactly like 2D polars with angle . Meanwhile, the height is .
  • Usual ranges: , and . Cylindrical coordinates use .

Appendix A3: Vector space – definition

Definition Vector space

A vector space is a set of vectors with the following properties:

  • Addition: for any , is also in .
  • Scalar multiplication: for any scalar and , is also in .
  • Addition is commutative and associative.
  • There is a zero vector with .
  • Every has an additive inverse with .
  • Scalar multiplication distributes over addition: and .
Explanation Is that the complete list of axioms?
  • The standard textbook list adds two more axioms: and .
  • Ordinary 3D arrows satisfy all of them.
  • So do column vectors in , polynomials, and functions. This is why vector methods reach far beyond geometry.