Ox - Lec 01 - Vector Algebra
Ox - Lec 01 - Vector Algebra
Overview
This course is concerned chiefly with the properties of vectors which are related to
physical processes in 3 spatial dimensions.
It starts by reviewing and, perhaps, developing your knowledge of vector algebra and
geometry, but soon moves on to consider new material by applying calculus of single
variables to invidual vectors and to vector relationships. An important area here will
be to understand how to describe curves in 3D spaces and how to perform integration
along a curve.
The course then moves on to consider calculus of several variables applied to both scalar
and vector fields. To give you a feeling for the issues, suppose you were interested in
the temperature T of water in a river. Temperature T is a scalar, and will certainly
be a function of a position vector x = (x, y , z) and may also be a function of time t:
T = T (x, t). It is a scalar field. The heat flows generated by this temperature field
will in general be non-uniform, and must be described by a vector field.
Now let’s dive into a flow. At each point x in the stream, at each time t, there will
be a stream velocity v(x, t). The local stream velocity can be viewed directly using
modern techniques such as laser Doppler anemometry, or traditional techniques such a
throwing twigs in. The point now is that v is a function that has the same four input
variables as temperature did, but its output result is a vector. We may be interested
in places x where the stream suddenly accelerates, or vortices where the stream curls
around dangerously. That is, we will be interested in finding the acceleration of the
stream, the gradient of its velocity. We may be interested in the magnitude of the
acceleration (a scalar). Equally, we may be interested in the acceleration as a vector,
so that we can apply Newton’s law and figure out the force. This is the stuff of vector
calculus.
Syllabus
Vector algebra: scalar and vector products; scalar and vector triple products; geometric
applications. Differentiation of a vector function; scalar and vector fields. Gradient,
divergence and curl - definitions and physical interpretations; product formulae; curvi-
linear coordinates. Gauss’ and Stokes’ theorems and evaluation of integrals over lines,
surfaces and volumes. Derivation of continuity equations and Laplace’s equation in
Cartesian, cylindrical and spherical coordinate systems.
Course Content
• Revision: scalar and vector products; product, vector product.
0/2
Learning Outcomes
You should be comfortable with expressing systems (especially those in 2 and 3 dimen-
sions) using vector quantities and manipulating these vectors without necessarily going
back to some underlying coordinates.
You should have a sound grasp of the concept of a vector field, and be able to link this
idea to descriptions various physical phenomena.
You should have a good intuition of the physical meaning of the various vector calculus
operators and the important related theorems. You should be able to interpret the
formulae describing physical systems in terms of this intuition.
References
Although these notes cover the material you need to know you should, wider reading
is essential. Different explanations and different diagrams in books will give you the
perspective to glue everything together, and further worked examples give you the
confidence to tackle the tute sheets.
Just the notes and the tute sheets get put on weblearn.
0/4
Lecture 1
Vector Algebra
Notation
In these notes we will use a bold font a, b, . . . , α, β, . . . to represent vectors and the
corresponding non-bold font a, b, . . . , α, β, . . . as their magnitudes. Unit vectors will
wear hats â, b̂, . . . , α̂, β̂, . . ..
The unit vector along Cartesian x, y , z axes are ı̂,̂, k̂. Later we will require unit vectors
in cylindrical and spherical coordinates. These will be r̂, φ̂, ẑ and r̂, θ̂, φ̂. (Note that
HLT uses êr , êθ , êφ for these unit vectors.) On the odd occasion we use l̂, m̂, n̂ as an
orthogonal trio. Please distinguish l̂ from ı̂.
In your written work, underline the vector symbol a, ω and be meticulous about doing
so. Chaos ensues if you can’t distinguish vectors from scalars in expressions like r 2 r.
1.1 Vectors
Many physical quantities, such a mass, time, temperature are scalars, and are fully
specified by one number or magnitude. But others, such velocity, electric field, and
force, are specified by both magnitude and direction, requiring two numbers in a 2D
planar world and three in 3D.
These are vectors — but there are three slightly different types:
• Free vectors: In many situtations only the magnitude and direction of a vector
are important, and we can translate them at will (with 3 degrees of freedom for a
vector in 3-dimensions).
• Sliding vectors: In mechanics the line of action of a force is often important for
deriving moments. The force vector can slide with 1 degree of freedom.
• Bound or position vectors: When describing lines, curves etc in space, it is
obviously important that the origin and head of the vector are not translated
1
1/2 LECTURE 1. VECTOR ALGEBRA
about arbitrarily. The origins of position vectors all coincide at an overall origin O.
r r
r1 2 3
O
Free vectors Sliding vectors Position vectors
Figure 1.1:
The chief power of vector representation (and one that is often not appreciated) is
that analysis is freed from the restriction of arbitrarily imposed coordinate frames. As
a simple example, if two free vectors are equal we need only say that their magnitudes
and directions are equal, and that can be done with a drawing that is independent of
any coordinate system. (For a more sophisticated example, see the last question on
2A1B.) Try to spot things in the notes that are independent of coordinate system.
However, coordinate systems are ultimately useful when performing calculation, so it
useful to introduce the idea of vector components.
k
x
v3 2
v
x
1 j
v2
v1
i
It is obvious that in terms of components vector addition involves the addition of the
corresponding components. That is a + b = [a1 + b1 , a2 + b2 , a3 + b3 ].
a+b
a a−b
k c
c b+c
b b
a+b
i j
a
(a) (b)
Figure 1.3: (a) Addition of two vectors is commutative. Note that the coordinate frame is irrelevant.
(b) subtraction of vectors; (c) Addition of three vectors is associative.
1/4 LECTURE 1. VECTOR ALGEBRA
♣ Example
Q: Coulomb’s law states that the electrostatic force on charged particle Q due to
another charged particle q1 is
Qq1
F=K r̂ (1.1)
r2
where r is the vector from q1 to Q and r̂ is the unit vector in that same direction. (Note
that the rule “unlike charges attract, like charges repel” is built into this formula.) The
force between two particles is not modified by the presence of other charged particles.
Hence write down an expression for the force on Q at R due to N charges qi at ri .
A: The vector from qi to Q is R−ri . The unit vector in that direction is (R−ri )/|R−ri |,
so the resultant force is
N
X Qqi
F(R) = K (R − ri ) . (1.2)
|R − ri |3
i =1
(a) a · b = b · a (commutativity)
(b) a · (b + c) = a · b + a · c (distributivity with respect to vector addition)
(c) (λa) · b = λ(a · b) = a · (λb) scalar multiple of a scalar product of two vectors
1.2. SCALAR, DOT, OR INNER PRODUCT 1/5
B b
b
a−b
θ
a
θ
Projection of b onto
O A direction of a
a
(a) (b)
|a − b|2 = (a − b) · (a − b) (1.3)
= a · a + b · b − 2(a · b)
= a2 + b2 − 2(a · b)
But, by the cosine rule for the triangle OAB (Figure 1.4a), the length AB 2 is given by
|a − b|2 = a2 + b2 − 2ab cos θ (1.4)
where θ is the angle between the two vectors. It follows that
a · b = ab cos θ, (1.5)
which is independent of the co-ordinate system used, and that |a · b| ≤ ab. Conversely,
the cosine of the angle between vectors a and b is given by cos θ = a · b/ab.
In the particular case a · b = 0, the angle between the two vectors is a right angle and
the vectors are said to be mutually orthogonal or perpendicular — neither vector has
any component in the direction of the other.
An orthonormal coordinate system is characterised by ı̂ · ı̂ = ̂ · ̂ = k̂ · k̂ = 1; and
ı̂ · ̂ = ̂ · k̂ = k̂ ·ı̂ = 0.
♣ Examples
Q1:
A force F is applied to an object as it moves by a small displacement δr. What work is
done on the object by the force?
A1:
The work done is equal to the component of force in the direction of the displacement
multiplied by the displacement itself. This is just a scalar product:
δW = F · δr . (1.8)
Q2:
A cube has four diagonals, connecting opposite vertices. What is the angle between
an adjacent pair?
A2:
You could plod through using Pythagoras’ theorem to find the length of the diagonal
from cube vertex to cube centre, and perhaps you should to check the following answer.
1.2. SCALAR, DOT, OR INNER PRODUCT 1/7
The directions of the diagonals are [±1, ±1, ±1]. The ones shown in the figure are
[1, 1, 1] and [−1, 1, 1]. The angle is thus
[1, 1, 1] · [−1, 1, 1] −1 1
θ = cos−1 √ √ = cos (1.9)
12 + 12 + 12 −12 + 12 + 12 3
[−1,1,1] [1,1,1] q
^u
k p
j s
i
Cube example Pinball example
Q3:
A pinball moving in a plane with velocity s bounces (in a purely elastic impact) from a
baffle whose endpoints are p and q. What is the velocity vector after the bounce?
A3: Rather than imposing a new coordinate frame, it is best to refer to a natural frame
that involves û as a principal direction.
û = (q − p) |q − p|. (1.10)
The vector component of s along û is s|| = (s · û)û, so the vector component perpen-
dicular is just s minus the s||
s⊥ = s − (s · û)û . (1.11)
Physics tells us that after the impact, the component of velocity in the direction of the
baffle is unchanged and the component normal to the baffle is reversed:
safter = s|| − s⊥ = (s · û)û − (s − (s · û)û) = 2(s · û)û − s . (1.12)
1/8 LECTURE 1. VECTOR ALGEBRA
In practice, figure out the direction from a right-handed screw twisted from the first
to second vector as shown in Figure 1.5(a).
ax b b
axb
in right−hand screw sense
b
bsin θ
θ
a
Plane of vectors a and b a
Figure 1.5: (a)The vector product is orthogonal to both a and b. Twist from first to second and move
in the direction of a right-handed screw. (b) Area of parallelogram is ab sin θ.
♣ Example
Q: g is vector from A [1,2,3] to B [3,4,5].
â is the unit vector in the direction from O to A.
Find b̂, a UNIT vector along g × â
Verify that b̂ is is perpendicular to â.
Find ĉ, the third member of a right-handed coordinate set â, b̂, ĉ.
A:
Hence
1 1
b̂ = √ · √ [2, −4, 2] (1.19)
14 24
and
ĉ = â × b̂ (1.20)
1/10 LECTURE 1. VECTOR ALGEBRA
v = αa + βb + γc . (1.21)
a v
Figure 1.6: A basis set in 3D made up of three no orthogonal, non-unit, non-coplanar vectors.
The question now is what is α? You will be tempted to answer “the component of v
in the direction of a”. That is,
The way to find α is to dot the RHS of the equation with a vector that this perpendicular
to both b and c. The obvious choice is (b×c), hence
Notice that the results are unique. Even though the vectors a, b, c are not orthogonal
one cannot substitute, say, a bit more b and c for a loss of a bit of a.
1.4. VECTOR COMPONENTS WITH A NON-ORTHOGONAL BASIS SET 1/11
Also notice that this general result specializes properly when the set is orthonormal.
For example
v · (̂×k̂) v ·ı̂
α= = = v ·ı̂ . (1.25)
ı̂ · (̂×k̂) ı̂ ·ı̂
The expressions for α, β, γ in Eq. 1.24 fail when the denominator is zero. As we shall
see, this occurs when the vectors a, b, c are coplanar.