VectorsTensorsHandout12 03 2021
VectorsTensorsHandout12 03 2021
Enrico Nobile
OUTLINE
1 Vectors
The scalar product
The vector product
The scalar triple product
The vector triple product
The Nabla ∇ operator
2 Index notation
Summation convention and dummy index
Free index
The Kronecker delta
Rules of index notation
The Permutation Symbol
a · (b + c) = a · b + a · c
a · a = |a|2
a · b = (ax i + ay j + az k) · (bx i + by j + bz k)
= ax bx + ay by + az bz
b × a = −a × b
i j k
a × (b + c) = a × b + a × c
a×b = ax ay az
a × b = (ax i + ay j + az k) × (bx i + by j + bz k) bx by bz
= (ay bz − az by ) i + (az bx − ax bz ) j + (ax by − ay bx ) k
Vector area A
Volume of a parallelepiped
a · (b × c) = b · (c × a) = c · (a × b)
A useful way of expressing the scalar triple product is in determinant form. Since
i j k
a×b= ax ay az
bx by bz
it follows that
Geometric interpretation
i j k
a × (b × c) = ax ay az
by cz − bz cy cx bz − bx cz bx c y − c x by
= i [ay (bx cy − cx by ) − az (cx bz − bx cz )]
− j [ax (bx cy − cx by ) − az (by cz − bz cy )]
+ k [ax (cx bz − bx cz ) − ay (by cz − bz cy )]
a × (b × c) = (a · c) b − (a · b) c (1)
and therefore
α=a·c
β =a·b
Gradient of a scalar
A vector operator, which is frequently used in fluid dynamics and heat transfer, is the nabla, (or
del) operator, defined as
∂ ∂ ∂
∇= i+ j+ k
∂x ∂y ∂z
When the nabla operator is applied on a scalar variable φ, it results in the gradient of φ, given
by:
∂φ ∂φ ∂φ
∇φ = i+ j+ k
∂x ∂y ∂z
Therefore, the gradient of a scalar field is a vector field and it indicates that the value of φ
changes in space in both magnitude and direction.
The scalar product of the ∇ operator with a vector u of components u, v and w in the x, y
and z direction, respectively, is the Divergence of the vector u, which is a scalar quantity
written as
∂u ∂u ∂u
∇·u= + +
∂x ∂y ∂z
The divergence of the gradient of a scalar variable φ is denoted by the Laplacian operator
and is a scalar given by
∂2φ
2 ∂2φ ∂2φ
∇ · (∇φ) = ∇ φ = + +
∂x2 ∂y 2 ∂z 2
The Laplacian of a vector follows from the above definition and is a vector given by
∇2 u = ∇2 u i + ∇2 v j + ∇2 w k
If φ is a scalar field, and v, v1 and v2 are vector fields, then the following relations apply:
∇ · (∇ × v) = 0
∇ × (∇φ) = 0
∇ · (φv) = φ∇ · v + v · ∇φ
∇ × (φv) = φ∇ × v + ∇φ × v
∇ (v1 · v2 ) = v1 × (∇ × v2 ) + v2 × (∇ × v1 ) + (v1 · ∇) v2 + (v2 · ∇) v1
∇ · (v1 × v2 ) = v2 · (∇ × v1 ) − v1 · (∇ × v2 )
∇ × (v1 × v2 ) = v1 (∇ · v2 ) − v2 (∇ · v1 ) + (v2 · ∇) v1 − (v1 · ∇) v2
∇ × (∇ × v) = ∇ (∇ · v) − ∇2 v
(∇ × v) × v = v · (∇v) − ∇ (v · v)
Another quantity of interest is the curl of a vector field u, which is a vector obtained by the
cross product of the ∇ operator and vector u
∂ ∂ ∂
∇×u= i+ j+ k × (ui + vj + wk)
∂x ∂y ∂z
i j k
∂ ∂ ∂
=
∂x ∂y ∂z
u v z
∂w ∂v ∂u ∂w ∂v ∂u
= − i+ − j+ − k
∂y ∂z ∂z ∂x ∂x ∂y
A dyad is a tensor of order two and rank one, and is the result of the dyadic product (also
called outer product or tensor product) of two vectors.
If a and b are two vectors, then the dyadic product is indicated as ab, a ⊗ b or abT ,
where T means transpose.
The dyadic product of two vectors a and b is a Tensor and is given, in matrix form, by
a1 a1 b1 a1 b2 a1 b3
ab ≡ a ⊗ b ≡ abT = a2 [b1 b2 b3 ] = a2 b1 a2 b2 a2 b3
a3 a3 b1 a3 b2 a3 b3
The Vector Product (or Dot Product) of a vector a and a tensor T is a vector and is given by
T
T T11 T12 T13
a · T ≡ aT T = [a1 a2 a3 ] T21 T22 T23
T31 T32 T33
= [a1 T11 + a2 T21 + a3 T31 a1 T12 + a2 T22 + a3 T32 a1 T13 + a2 T23 + a3 T33 ]T
a1 T11 + a2 T21 + a3 T31
= a1 T12 + a2 T22 + a3 T32
a1 T13 + a2 T23 + a3 T33
An important mixed product, which is frequently found in fluid mechanics, is the following
∂ ∂ ∂
[(u · ∇) u] = (ui + vj + wk) · i+ j+ k (ui + vj + wk)
∂x ∂y ∂z
∂ ∂ ∂
= u +v +w (ui + vj + wk)
∂x ∂y ∂z
∂u ∂u ∂u ∂v ∂v ∂v ∂w ∂w ∂w
= u +v +w i+ u +v +w j+ u +v +w k
∂x ∂y ∂z ∂x ∂y ∂z ∂x ∂y ∂z
∂u ∂u ∂u
u +v +w
∂x ∂y ∂z
∂v ∂v ∂v
= u +v +w
∂x ∂y ∂z
∂w ∂w ∂w
u +v +w
∂x ∂y ∂z
It is easy to see that the same result can be obtained considering the vector (dot) product of the
vector u with the tensor obtained with the dyadic product of the divergence with the vector u:
∂u ∂v ∂w T
∂x ∂x ∂x
T
T ∂u ∂v ∂w
u · (∇u) ≡ u (∇u) = [u v w]
∂y ∂y ∂y
∂u ∂v ∂w
∂z ∂z ∂z
T
∂u ∂u ∂u ∂v ∂v ∂v ∂w ∂w ∂w
= u +v +w u +v +w u +v +w
∂x ∂y ∂z ∂x ∂y ∂z ∂x ∂y ∂z
∂u ∂u ∂u
u +v +w
∂x ∂y ∂z
∂v ∂v ∂v
= u +v +w
∂x ∂y ∂z
∂w ∂w ∂w
u +v +w
∂x ∂y ∂z
The notation adopted to describe vectors is perhaps the most widely accepted.
There are a number of alternative notations, and one of the most useful is the index
notations, also called Cartesian notation.
The index notation is a powerful tool for manipulating multidimensional equations, and it
enjoys a number of advantages in comparison to the traditional vector notation:
I Conciseness: it allows standard results to be written in an immediately clear though compact
form.
I Quick proof of the results that we need.
There are other advantages - and a couple of disadvantages - but in addition it is important
to note that the index approach is the most natural notation when dealing with a
generalization of the vector: the tensor.
We will find convenient to relabel the coordinates (x, y, z) as (x1 , x2 , x3 ) or simply as xi ,
with the agreement that the index i can take any of the values 1, 2 and 3.
Using this index notation, a vector a may be denoted by ai . Therefore the components of
the vector ai are (a1 , a2 , a3 ).
There are times when the more conventional vector notation is more useful. It is therefore
important to be able to easily convert back and forth between the two.
Equality
Two vectors ai and bi are equal if and only if
ai = bi (2)
If the index is unspecified then the equation in which it occurs is assumed to be valid for each of
the three possible values that the index can take, e.g. (2) is shorthand for
a1 = b1 , a2 = b2 , a3 = b3 (3)
Using this convention, if ai and bi are two vectors (representing a and b), then the scalar
product a · b is represented by ai bi .
Dummy index
Dummy index
A repeated index is called a dummy index, since the precise letter used is irrelevant: ai bi has the
same meaning as aj bj , ap bp , as bs etc., that is a1 b1 + a2 b2 + a3 b3 .
A dummy index appears twice within an additive term of an expression. In the equation below,
j and k are both dummy indices
ai = ijk bj ck + Dij ej
The dummy index is local to an individual additive term. It may be renamed in one term - so
long as the renaming doesn’t conflict with other indices - and it does not need to be renamed in
other terms (and, in fact, may not necessarily even be present in other terms).
3
X
λ = ai bi ≡ λ = ai bi ≡ λ = a1 b1 + a2 b2 + a3 b3
i=1
3
X c1 = S11 x1 + S12 x2 + S13 x3
ci = Sik xk ≡ ci = Sik xk ≡ c2 = S21 x1 + S22 x2 + S23 x3
c3 = S31 x1 + S32 x2 + S33 x3
k=1
3 X
X 3
τ = Sij Sij ≡ τ = Sij Sij ≡ τ = S11 S11 + S12 S12 + . . . + S32 S32 + S33 S33
i=1 j=1
3
X
Cij = Aik Bkj ≡ Cij = Aik Bkj ≡ [C] = [A] [B]
k=1
3
X
Cij = Aki Bkj ≡ Cij = Aki Bkj ≡ [C] = [A]T [B]
k=1
Free index
Free index
An index that is not repeated (in a term) is called a free index.
ai = ijk bj ck + Dij ej
The same letter must be used for the free index in every additive term. The free index may be
renamed if and only if it is renamed in every term.
Terms in an expression may have more than one free index so long as the indices are distinct.
For example the vector-notation expression
A = BT
is written
Aij = (Bij )T = Bji
in index notation.
This expression implies nine distinct equations, since i and j are both free indices.
Notation Rank
scalar a 0
vector ai 1
tensor Aij 2
tensor Aijk 3
Technically, a scalar is a tensor with rank 0, and a vector is a tensor of rank 1. Tensors may
assume a rank of any integer greater than or equal to zero. You may only sum together terms
with equal rank.
The first free index in a term corresponds to the row, and the second corresponds to the column.
Thus, a vector (which has only one free index) is written as a column of three rows
a1
a = ai = a2
a3
Thus δ11 = δ22 = δ33 = 1 and δ12 = δ21 = δ13 = δ31 = δ23 = δ32 = 0. Another name
for this quantity is the substitution operator, since it can be used to substitute one index for
another. This follows from the easiliy verified result
aj = δji ai (6)
Like in ordinary algebra, an equation will be formed from a collection of terms added
together and equated to zero.
Each term will include one or more indexed objects multiplied together.
xi = ui + ci ≡ x = u + c
ai = Aki Bkj xj + Cik uk ≡ a = AT Bx + Cu
xi = Aij
xj = Aik uk
xi = Aik uk + cj
are meaningless.
Rules - cont.
3 Free and dummy indices may be changed without altering the meaning of an expression,
provided that rules 1 and 2 are not violated. Thus
Example 1
If ai and bi correspond to vectors a and b, the index form of the vector equation
a + (a · b)b = 0
is the following
ai + aj bj bi = 0
Example 2
Verify that δij δij = 3
XX
δij δij = δij δij
i j
= δ11 δ11 +
δ12
δ
12 +
δ13
δ
13 +
δ21
δ
21 + δ22 δ22 +
δ32
δ
32 +
δ31
δ
31 +
δ32
δ
32 + δ33 δ33
δij δij = 3
Permutation Symbol
The Permutation Symbol or Levi-Civita symbol 1 , sometimes also called Alternating Unit
Tensor, is defined by
1 if i, j, k is a cyclic permutation of 1, 2, 3
ijk = −1 if i, j, k is a non-cyclic permutation of 1, 2, 3 (7)
0 otherwise
The alternating unit tensor is positive when the indices assume any clockwise cyclical
progression, and it is negative when the indices assume any anticlockwise cyclic order, as
shown in the figure:
Since each subscript can only take on values 1, 2 or 3, it follows that ijk has 27 components.
1
Tullio Levi-Civita, 29 March 1873 Padua - 29 December 1941 Rome, was an Italian mathematician, most famous for
his work on absolute differential calculus (tensor calculus) and its applications to the theory of relativity.
Vectors & Tensors, E. Nobile March 12, 2021 32 / 36
Permutation Symbol - cont.
That is, a cyclic permutation of the indices on the permutation symbol does not alter its value.
Also
ijk = −kji , ijk = −jik , ijk = −ikj (12)
that is, interchange of any two indices on the permutation symbol introduces a minus sign. This
corresponds to an anticyclic permutation of indices.
With the introduction of the permutation symbol ijk it can be shown that the ith component of
the vector product of two vectors a and b (or ai and bi ) is
The right-hand side of (13) involves two repeated indices and therefore a double summation.
1 Firstly summation over the index j:
ijk aj bk =
i11
a
1 b1 + i12 a1 b2 + i13 a1 b3
+ i21 a2 b1 +
i22
a
2 b2 + i23 a2 b3
+ i31 a3 b1 + i32 a3 b2 +
i33
a
3 b3
Similarly, if i = 2
and if i = 3
3jk aj bk = 312 a1 b2 + 321 a2 b1 = a1 b2 − a2 b1
But these three terms - just replace 1, 2, 3 with x, y, z - are the components of a × b, and thus
(13) is verified.
The − δ identity
There exists a basic identity (it is proved using the properties of determinants) connecting the
symbol and the δ symbol. It is
It has numerous applications when developing vector identities. For example, it is possible to
re-prove, using the index approach, the identity (1), namely
a × (b × c) = (a · c) b − (a · b) c
Now the ith component of the left-hand side is, using (13) twice
After a cyclic permutation on the first symbol on the right-hand side, it results
Gradient
∂φ
(∇φ)i = = φ,i (17)
∂xi
where a comma followed by an index is tensor notation for differentiation with respect to xi .
Divergence
∂ui
∇·u= = ui,i (18)
∂xi
Curl
∂uk
(∇ × u) = ijk = ijk uk,j (19)
∂xj