Vector Calculus


155 121 546KB

English Pages [84] Year 2015

Report DMCA / Copyright

DOWNLOAD PDF FILE

Table of contents :
Introduction
Derivatives and coordinates
Derivative of functions
Inverse functions
Coordinate systems
Curves and Line
Parametrised curves, lengths and arc length
Line integrals of vector fields
Gradients and Differentials
Work and potential energy
Integration in R2 and R3
Integrals over subsets of R2
Change of variables for an integral in R2
Generalization to R3
Further generalizations
Surfaces and surface integrals
Surfaces and Normal
Parametrized surfaces and area
Surface integral of vector fields
Change of variables in R2 and R3 revisited
Geometry of curves and surfaces
Div, Grad, Curl and del
Div, Grad, Curl and del
Second-order derivatives
Integral theorems
Statement and examples
Green's theorem (in the plane)
Stokes' theorem
Divergence/Gauss theorem
Relating and proving integral theorems
Some applications of integral theorems
Integral expressions for div and curl
Conservative fields and scalar products
Conservation laws
Orthogonal curvilinear coordinates
Line, area and volume elements
Grad, Div and Curl
Gauss' Law and Poisson's equation
Laws of gravitation
Laws of electrostatics
Poisson's Equation and Laplace's equation
Laplace's and Poisson's equations
Uniqueness theorems
Laplace's equation and harmonic functions
The mean value property
The maximum (or minimum) principle
Integral solutions of Poisson's equations
Statement and informal derivation
Point sources and delta-functions*
Maxwell's equations
Laws of electromagnetism
Static charges and steady currents
Electromagnetic waves
Tensors and tensor fields
Definition
Tensor algebra
Symmetric and antisymmetric tensors
Tensors, multi-linear maps and the quotient rule
Tensor calculus
Tensors of rank 2
Decomposition of a second-rank tensor
The inertia tensor
Diagonalization of a symmetric second rank tensor
Invariant and isotropic tensors
Definitions and classification results
Application to invariant integrals
Recommend Papers

Vector Calculus

  • 0 0 0
  • Like this paper and download? You can publish your own PDF file online for free in a few minutes! Sign Up
File loading please wait...
Citation preview

Part IA — Vector Calculus Based on lectures by B. Allanach Notes taken by Dexter Chua

Lent 2015 These notes are not endorsed by the lecturers, and I have modified them (often significantly) after lectures. They are nowhere near accurate representations of what was actually lectured, and in particular, all errors are almost surely mine.

Curves in R3 Parameterised curves and arc length, tangents and normals to curves in R3 , the radius of curvature. [1] Integration in R2 and R3 Line integrals. Surface and volume integrals: definitions, examples using Cartesian, cylindrical and spherical coordinates; change of variables. [4] Vector operators Directional derivatives. The gradient of a real-valued function: definition; interpretation as normal to level surfaces; examples including the use of cylindrical, spherical *and general orthogonal curvilinear* coordinates. Divergence, curl and ∇2 in Cartesian coordinates, examples; formulae for these operators (statement only) in cylindrical, spherical *and general orthogonal curvilinear* coordinates. Solenoidal fields, irrotational fields and conservative fields; scalar potentials. Vector derivative identities. [5] Integration theorems Divergence theorem, Green’s theorem, Stokes’s theorem, Green’s second theorem: statements; informal proofs; examples; application to fluid dynamics, and to electromagnetism including statement of Maxwell’s equations. [5] Laplace’s equation Laplace’s equation in R2 and R3 : uniqueness theorem and maximum principle. Solution of Poisson’s equation by Gauss’s method (for spherical and cylindrical symmetry) and as an integral. [4] Cartesian tensors in R3 Tensor transformation laws, addition, multiplication, contraction, with emphasis on tensors of second rank. Isotropic second and third rank tensors. Symmetric and antisymmetric tensors. Revision of principal axes and diagonalization. Quotient theorem. Examples including inertia and conductivity. [5]

1

Contents

IA Vector Calculus

Contents 0 Introduction

4

1 Derivatives and coordinates 1.1 Derivative of functions . . . . . . . . . . . . . . . . . . . . . . . . 1.2 Inverse functions . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.3 Coordinate systems . . . . . . . . . . . . . . . . . . . . . . . . . .

5 5 9 10

2 Curves and Line 2.1 Parametrised curves, lengths and arc 2.2 Line integrals of vector fields . . . . 2.3 Gradients and Differentials . . . . . 2.4 Work and potential energy . . . . . .

length . . . . . . . . . . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

11 11 12 14 15

3 Integration in R2 and R3 3.1 Integrals over subsets of R2 . . . . . 3.2 Change of variables for an integral in 3.3 Generalization to R3 . . . . . . . . . 3.4 Further generalizations . . . . . . . .

. . R2 . . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

17 17 19 21 24

. . . . . . . . . . . . . . . . . . revisited .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

. . . .

26 26 27 29 31

4 Surfaces and surface integrals 4.1 Surfaces and Normal . . . . . . . 4.2 Parametrized surfaces and area . 4.3 Surface integral of vector fields . 4.4 Change of variables in R2 and R3

. . . .

5 Geometry of curves and surfaces

32

6 Div, Grad, Curl and ∇ 35 6.1 Div, Grad, Curl and ∇ . . . . . . . . . . . . . . . . . . . . . . . . 35 6.2 Second-order derivatives . . . . . . . . . . . . . . . . . . . . . . . 37 7 Integral theorems 7.1 Statement and examples . . . . . . . . . 7.1.1 Green’s theorem (in the plane) . 7.1.2 Stokes’ theorem . . . . . . . . . . 7.1.3 Divergence/Gauss theorem . . . 7.2 Relating and proving integral theorems .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

38 38 38 39 40 41

8 Some applications of integral theorems 46 8.1 Integral expressions for div and curl . . . . . . . . . . . . . . . . 46 8.2 Conservative fields and scalar products . . . . . . . . . . . . . . . 47 8.3 Conservation laws . . . . . . . . . . . . . . . . . . . . . . . . . . 49 9 Orthogonal curvilinear coordinates 51 9.1 Line, area and volume elements . . . . . . . . . . . . . . . . . . . 51 9.2 Grad, Div and Curl . . . . . . . . . . . . . . . . . . . . . . . . . . 52

2

Contents

IA Vector Calculus

10 Gauss’ Law and Poisson’s equation 54 10.1 Laws of gravitation . . . . . . . . . . . . . . . . . . . . . . . . . . 54 10.2 Laws of electrostatics . . . . . . . . . . . . . . . . . . . . . . . . . 55 10.3 Poisson’s Equation and Laplace’s equation . . . . . . . . . . . . . 57 11 Laplace’s and Poisson’s equations 11.1 Uniqueness theorems . . . . . . . . . . . . . . 11.2 Laplace’s equation and harmonic functions . . 11.2.1 The mean value property . . . . . . . 11.2.2 The maximum (or minimum) principle 11.3 Integral solutions of Poisson’s equations . . . 11.3.1 Statement and informal derivation . . 11.3.2 Point sources and δ-functions* . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

. . . . . . .

61 61 62 62 63 64 64 65

12 Maxwell’s equations 67 12.1 Laws of electromagnetism . . . . . . . . . . . . . . . . . . . . . . 67 12.2 Static charges and steady currents . . . . . . . . . . . . . . . . . 68 12.3 Electromagnetic waves . . . . . . . . . . . . . . . . . . . . . . . . 69 13 Tensors and tensor fields 13.1 Definition . . . . . . . . . . . . . . . . . . . . . . 13.2 Tensor algebra . . . . . . . . . . . . . . . . . . . 13.3 Symmetric and antisymmetric tensors . . . . . . 13.4 Tensors, multi-linear maps and the quotient rule 13.5 Tensor calculus . . . . . . . . . . . . . . . . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

. . . . .

70 70 71 72 73 74

14 Tensors of rank 2 77 14.1 Decomposition of a second-rank tensor . . . . . . . . . . . . . . . 77 14.2 The inertia tensor . . . . . . . . . . . . . . . . . . . . . . . . . . 78 14.3 Diagonalization of a symmetric second rank tensor . . . . . . . . 80 15 Invariant and isotropic tensors 81 15.1 Definitions and classification results . . . . . . . . . . . . . . . . 81 15.2 Application to invariant integrals . . . . . . . . . . . . . . . . . . 82

3

0

0

Introduction

IA Vector Calculus

Introduction

In the differential equations class, we learnt how to do calculus in one dimension. However, (apparently) the world has more than one dimension. We live in a 3 (or 4) dimensional world, and string theorists think that the world has more than 10 dimensions. It is thus important to know how to do calculus in many dimensions. For example, the position of a particle in a three dimensional world can be d ˙ given by a position vector x. Then by definition, the velocity is given by dt x = x. This would require us to take the derivative of a vector. This is not too difficult. We can just differentiate the vector componentwise. However, we can reverse the problem and get a more complicated one. We can assign a number to each point in (3D) space, and ask how this number changes as we move in space. For example, the function might tell us the temperature at each point in space, and we want to know how the temperature changes with position. In the most general case, we will assign a vector to each point in space. For example, the electric field vector E(x) tells us the direction of the electric field at each point in space. On the other side of the story, we also want to do integration in multiple dimensions. Apart from the obvious “integrating a vector”, we might want to integrate over surfaces. For example, we can let v(x) be the velocity of some fluid at each point in space. Then to find the total fluid flow through a surface, we integrate v over the surface. In this course, we are mostly going to learn about doing calculus in many dimensions. In the last few lectures, we are going to learn about Cartesian tensors, which is a generalization of vectors. Note that throughout the course (and lecture notes), summation convention is implied unless otherwise stated.

4

1

Derivatives and coordinates

1

IA Vector Calculus

Derivatives and coordinates

1.1

Derivative of functions

We used to define a derivative as the limit of a quotient and a function is differentiable if the derivative exists. However, this obviously cannot be generalized to vector-valued functions, since you cannot divide by vectors. So we want an alternative definition of differentiation, which can be easily generalized to vectors. Recall, that if a function f is differentiable at x, then for a small perturbation δx, we have def δf = f (x + δx) − f (x) = f 0 (x)δx + o(δx), which says that the resulting change in f is approximately proportional to δx (as opposed to 1/δx or something else). It can be easily shown that the converse is true — if f satisfies this relation, then f is differentiable. This definition is more easily extended to vector functions. We say a function F is differentiable if, when x is perturbed by δx, then the resulting change is “something” times δx plus an o(δx) error term. In the most general case, δx will be a vector and that “something” will be a matrix. Then that “something” will be what we call the derivative. Vector functions R → Rn We start with the simple case of vector functions. Definition (Vector function). A vector function is a function F : R → Rn . This takes in a number and returns a vector. For example, it can map a time to the velocity of a particle at that time. Definition (Derivative of vector function). A vector function F(x) is differentiable if def δF = F(x + δx) − F(x) = F0 (x)δx + o(δx) for some F0 (x). F0 (x) is called the derivative of F(x). We don’t have anything new and special here, since we might as well have defined F0 (x) as F0 =

dF 1 = lim [F(x + δx) − F(x)], δx→0 δx dx

which is easily shown to be equivalent to the above definition. Using differential notation, the differentiability condition can be written as dF = F0 (x) dx. Given a basis ei that is independent of x, vector differentiation is performed componentwise, i.e. Proposition. F0 (x) = Fi0 (x)ei . Leibnitz identities hold for the products of scalar and vector functions. 5

1

Derivatives and coordinates

IA Vector Calculus

Proposition. d df dg (f g) = g+f dt dt dt d dg dh (g · h) = ·h+g· dt dt dt d dg dh (g × h) = ×h+g× dt dt dt Note that the order of multiplication must be retained in the case of the cross product. Example. Consider a particle with mass m. It has position r(t), velocity r˙ (t) and acceleration ¨r. Its momentum is p = m˙r(t). Note that derivatives with respect to t are usually denoted by dots instead of dashes. If F(r) is the force on a particle, then Newton’s second law states that p˙ = m¨r = F. We can define the angular momentum about the origin to be L = r × p = mr × r˙ . If we want to know how the angular momentum changes over time, then L˙ = m˙r × r˙ + mr × ¨r = mr × ¨r = r × F. which is the torque of F about the origin. Scalar functions Rn → R We can also define derivatives for a different kind of function: Definition. A scalar function is a function f : Rn → R. A scalar function takes in a position and gives you a number, e.g. the potential energy of a particle at different positions. Before we define the derivative of a scalar function, we have to first define what it means to take a limit of a vector. Definition (Limit of vector). The limit of vectors is defined using the norm. (r)| So v → c iff |v − c| → 0. Similarly, f (r) = o(r) means |f|r| → 0 as r → 0. Definition (Gradient of scalar function). A scalar function f (r) is differentiable at r if def δf = f (r + δr) − f (r) = (∇f ) · δr + o(δr) for some vector ∇f , the gradient of f at r. Here we have a fancy name “gradient” for the derivative. But we will soon give up on finding fancy names and just call everything the “derivative”! Note also that here we genuinely need the new notion of derivative, since “dividing by δr” makes no sense at all! 6

1

Derivatives and coordinates

IA Vector Calculus

The above definition considers the case where δr comes in all directions. What if we only care about the case where δr is in some particular direction n? For example, maybe f is the potential of a particle that is confined to move in one straight line only. Then taking δr = hn, with n a unit vector, f (r + hn) − f (r) = ∇f · (hn) + o(h) = h(∇f · n) + o(h), which gives Definition (Directional derivative). The directional derivative of f along n is 1 [f (r + hn) − f (r)], h→0 h

n · ∇f = lim

It refers to how fast f changes when we move in the direction of n. Using this expression, the directional derivative is maximized when n is in the same direction as ∇f (then n · ∇f = |∇f |). So ∇f points in the direction of greatest slope. How do we evaluate ∇f ? Suppose we have an orthonormal basis ei . Setting n = ei in the above equation, we obtain 1 ∂f [f (r + hei ) − f (r)] = . h→0 h ∂xi

ei · ∇f = lim Hence Theorem. The gradient is

∇f =

∂f ei ∂xi

Hence we can write the condition of differentiability as δf =

∂f δxi + o(δx). ∂xi

In differential notation, we write df = ∇f · dr =

∂f dxi , ∂xi

which is the chain rule for partial derivatives. Example. Take f (x, y, z) = x + exy sin z. Then   ∂f ∂f ∂f ∇f = , , ∂x ∂y ∂z = (1 + yexy sin z, xexy sin z, exy cos z) At (x, y, z) = (0, 1, 0), ∇f = (1, 0, 1). So f increases/decreases most rapidly for √ n = ± √12 (1, 0, 1) with a rate of change of ± 2. There is no change in f if n is perpendicular to ± √12 (1, 0, 1).

7

1

Derivatives and coordinates

IA Vector Calculus

Now suppose we have a scalar function f (r) and we want to consider the rate of change along a path r(u). A change δu produces a change δr = r0 δu + o(δu), and δf = ∇f · δr + o(|δr|) = ∇f · r0 (u)δu + o(δu). This shows that f is differentiable as a function of u and Theorem (Chain rule). Given a function f (r(u)), df dr ∂f dxi = ∇f · = . du du ∂xi du Note that if we drop the du, we simply get df = ∇f · dr =

∂f dxi , ∂xi

which is what we’ve previously had. Vector fields Rn → Rm We are now ready to tackle the general case, which are given the fancy name of vector fields. Definition (Vector field). A vector field is a function F : Rn → Rm . Definition (Derivative of vector field). A vector field F : Rn → Rm is differentiable if def δF = F(x + δx) − F(x) = M δx + o(δx) for some m × n matrix M . M is the derivative of F. As promised, M does not have a fancy name. Given an arbitrary function F : Rn → Rm that maps x 7→ y and a choice of basis, we can write F as a set of m functions yj = Fj (x) such that y = (y1 , y2 , · · · , ym ). Then ∂Fj dyj = dxi . ∂xi and we can write the derivative as Theorem. The derivative of F is given by Mji =

∂yj . ∂xi

Note that we could have used this as the definition of the derivative. However, the original definition is superior because it does not require a selection of coordinate system. Definition. A function is smooth if it can be differentiated any number of times. This requires that all partial derivatives exist and are totally symmetric in i, j and k (i.e. the differential operator is commutative). The functions we will consider will be smooth except where things obviously go wrong (e.g. f (x) = 1/x at x = 0). 8

1

Derivatives and coordinates

IA Vector Calculus

Theorem (Chain rule). Suppose g : Rp → Rn and f : Rn → Rm . Suppose that the coordinates of the vectors in Rp , Rn and Rm are ua , xi and yr respectively. By the chain rule, ∂yr ∂yr ∂xi = , ∂ua ∂xi ∂ua with summation implied. Writing in matrix form, M (f ◦ g)ra = M (f )ri M (g)ia . Alternatively, in operator form, ∂ ∂xi ∂ = . ∂ua ∂ua ∂xi

1.2

Inverse functions

Suppose g, f : Rn → Rn are inverse functions, i.e. g ◦ f = f ◦ g = id. Suppose that f (x) = u and g(u) = x. Since the derivative of the identity function is the identity matrix (if you differentiate x wrt to x, you get 1), we must have M (f ◦ g) = I. Therefore we know that M (g) = M (f )−1 . We derive this result more formally by noting ∂ub = δab . ∂ua So by the chain rule, ∂ub ∂xi = δab , ∂xi ∂ua i.e. M (f ◦ g) = I. In the n = 1 case, it is the familiar result that du/dx = 1/(dx/du). Example. For n = 2, write u1 = ρ, u2 = ϕ and let x1 = ρ cos ϕ and x2 = ρ sin ϕ. Then the function used to convert between the coordinate systems is g(u1 , u2 ) = (u1 cos u2 , u1 sin u2 ) Then     ∂x1 /∂ρ ∂x1 /∂ϕ cos ϕ −ρ sin ϕ M (g) = = ∂x2 /∂ρ ∂x2 /∂ϕ sin ϕ ρ cos ϕ We can invert the relations between (x1 , x2 ) and (ρ, ϕ) to obtain x2 ϕ = tan−1 x1 q 2 ρ = x1 + x22 We can calculate  M (f ) =

∂ρ/∂x1 ∂ϕ/∂x1

∂ρ/∂x2 ∂ϕ/∂x2



= M (g)−1 .

These matrices are known as Jacobian matrices, and their determinants are known as the Jacobians. 9

1

Derivatives and coordinates

IA Vector Calculus

Note that det M (f ) det M (g) = 1.

1.3

Coordinate systems

Now we can apply the results above the changes of coordinates on Euclidean space. Suppose xi are the coordinates are Cartesian coordinates. Then we can define an arbitrary new coordinate system ua in which each coordinate ua is a function of x. For example, we can define the plane polar coordinates ρ, ϕ by x1 = ρ cos ϕ,

x2 = ρ sin ϕ.

However, note that ρ and ϕ are not components of a position vector, i.e. they are not the “coefficients” of basis vectors like r = x1 e1 + x2 e2 are. But we can associate related basis vectors that point to directions of increasing ρ and ϕ, obtained by differentiating r with respect to the variables and then normalizing: eρ = cos ϕ e1 + sin ϕ e2 ,

eϕ = − sin ϕ e1 + cos ϕ e2 .

e2 eϕ



ρ ϕ

e1

These are not “usual” basis vectors in the sense that these basis vectors vary with position and are undefined at the origin. However, they are still very useful when dealing with systems with rotational symmetry. In three dimensions, we have cylindrical polars and spherical polars. Cylindrical polars

Spherical polars Conversion formulae

x1 = ρ cos ϕ x2 = ρ sin ϕ x3 = z

x1 = r sin θ cos ϕ x2 = r sin θ sin ϕ x3 = r cos θ Basis vectors

eρ = (cos ϕ, sin ϕ, 0) eϕ = (− sin ϕ, cos ϕ, 0) ez = (0, 0, 1)

er = (sin θ cos ϕ, sin θ sin ϕ, cos θ) eϕ = (− sin ϕ, cos ϕ, 0) eθ = (cos θ cos ϕ, cos θ sin ϕ, − sin θ)

10

2

Curves and Line

2

IA Vector Calculus

Curves and Line

2.1

Parametrised curves, lengths and arc length

There are many ways we can described a curve. We can, say, describe it by a equation that the points on the curve satisfy. For example, a circle can be described by x2 + y 2 = 1. However, this is not a good way to do so, as it is rather difficult to work with. It is also often difficult to find a closed form like this for a curve. Instead, we can imagine the curve to be specified by a particle moving along the path. So it is represented by a function x : R → Rn , and the curve itself is the image of the function. This is known as a parametrisation of a curve. In addition to simplified notation, this also has the benefit of giving the curve an orientation. Definition (Parametrisation of curve). Given a curve C in Rn , a parametrisation of it is a continuous and invertible function r : D → Rn for some D ⊆ R whose image is C. r0 (u) is a vector tangent to the curve at each point. A parametrization is regular if r0 (u) 6= 0 for all u. Clearly, a curve can have many different parametrizations. Example. The curve 1 2 x + y 2 = 1, 4

y ≥ 0,

z = 3.

ˆ can be parametrised by 2 cos uˆi + sin uˆj + 3k If we change u (and hence r) by a small amount, then the distance |δr| is roughly equal to the change in arclength δs. So δs = |δr| + o(δr). Then we have Proposition. Let s denote the arclength of a curve r(u). Then dr ds = ± = ±|r0 (u)| du du with the sign depending on whether it is in the direction of increasing or decreasing arclength. Example. Consider a helix described by r(u) = (3 cos u, 3 sin u, 4u). Then r0 (u) = (−3 sin u, 3 cos u, 4) p ds = |r0 (u)| = 32 + 42 = 5 du So s = 5u. i.e. the arclength from r(0) and r(u) is s = 5u. We can change parametrisation of r by taking an invertible smooth function u 7→ u ˜, and have a new parametrization r(˜ u) = r(˜ u(u)). Then by the chain rule, dr dr d˜ u = × du d˜ u du dr dr d˜ u = / d˜ u du du 11

2

Curves and Line

IA Vector Calculus

It is often convenient to use the arclength s as the parameter. Then the tangent vector will always have unit length since the proposition above yields |r0 (s)| =

ds = 1. ds

We call ds the scalar line element, which will be used when we consider integrals. Definition (Scalar line element). The scalar line element of C is ds. Proposition. ds = ±|r0 (u)|du

2.2

Line integrals of vector fields

Definition (Line integral). The line integral of a smooth vector field F(r) along a path C parametrised by r(u) along the direction (orientation) r(α) → r(β) is Z

Z

β

F(r(u)) · r0 (u) du.

F(r) · dr = C

α

We say dr = r0 (u)du is the line element on C. Note that the upper and lower limits of the integral are the end point and start point respectively, and β is not necessarily larger than α. For example, we may be moving a particle from a to b along a curve C under a force field F. Then we may divide the curve into many small segments δr. Then for each segment, the force experienced is F(r) and the work done is F(r) · δr. Then the total work done across the curve is Z W = F(r) · dr. C

Example. Take F(r) = (xey , z 2 , xy) and we want to find the line integral from a = (0, 0, 0) to b = (1, 1, 1). b C2

C1

a We first integrate along the curve C1 : r(u) = (u, u2 , u3 ). Then r0 (u) = 2 (1, 2u, 3u2 ), and F(r(u)) = (ueu , u6 , u3 ). So Z Z 1 F · dr = F · r0 (u) du C1

0

Z =

1

2

ueu + 2u7 + 3u5 du

0

e 1 1 1 = − + + 2 2 4 2 e 1 = + 2 4 12

2

Curves and Line

IA Vector Calculus

Now we try to integrate along another curve C2 : r(t) = (t, t, t). So r0 (t) = (1, 1, 1). Z Z F · dr = F · r0 (t)dt C2

Z

1

=

tet + 2t2 dt

0

=

5 . 3

We see that the line integral depends on the curve C in general, not just a, b. We can also use the arclength s as the parameter. Since dr = t ds, with t being the unit tangent vector, we have Z Z F · dr = F · t ds. C

C

Note that we do not necessarily have to integrate F · Rt with respect to s. We can also integrate a scalar function as a function of s, C f (s) ds. By convention, this is calculated in the direction of increasing s. In particular, we have Z 1 ds = length of C. C

Definition (Closed curve). A closed curve is a curve with the same start and H end point. The line integral along a closed curve is (sometimes) written as and is (sometimes) called the circulation of F around C. Sometimes we are not that lucky and our curve is not smooth. For example, the graph of an absolute value function is not smooth. However, often we can break it apart into many smaller segments, each of which is smooth. Alternatively, we can write the curve as a sum of smooth curves. We call these piecewise smooth curves. Definition (Piecewise smooth curve). A piecewise smooth curve is a curve C = C1 + C2 + · · · + Cn with all Ci smooth with regular parametrisations. The line integral over a piecewise smooth C is Z Z Z Z F · dr = F · dr + F · dr + · · · + F · dr. C

C1

C2

Cn

Example. Take the example above, and let C3 = −C2 . Then C = C1 + C3 is piecewise smooth but not smooth. Then I Z Z F · dr = F · dr + F · dr C C1 C3   e 1 5 = + − 2 4 3 17 e =− + . 12 2

13

2

Curves and Line

IA Vector Calculus

b C3

C1

a

2.3

Gradients and Differentials

Recall that the line integral depends on the actual curve taken, and not just the end points. However, for some nice functions, the integral does depend on the end points only. Theorem. If F = ∇f (r), then Z F · dr = f (b) − f (a), C

where b and a are the end points of the curve. In particular, the line integral does not depend on the curve, but the end points only. This is the vector counterpart of the fundamental theorem of H calculus. A special case is when C is a closed curve, then C F · dr = 0. Proof. Let r(u) be any parametrization of the curve, and suppose a = r(α), b = r(β). Then Z Z Z dr F · dr = ∇f · dr = ∇f · du. du C C So by the chain rule, this is equal to Z

β

α

d (f (r(u))) du = [f (r(u))]βα = f (b) − f (a). du

Definition (Conservative vector field). If F = ∇f for some f , the F is called a conservative vector field. The name conservative comes from mechanics, where conservative vector fields represent conservative forces that conserve energy. This is since if the force is conservative, then the integral (i.e. work done) about a closed curve is 0, which means that we cannot gain energy after travelling around the loop. It is convenient to treat differentials F · dr = Fi dxi as if they were objects by themselves, which we can integrate along curves if we feel like doing so. Then we can define Definition (Exact differential). A differential F · dr is exact if there is an f such that F = ∇f . Then df = ∇f · dr =

∂f dxi . ∂xi

To test if this holds, we can use the necessary condition

14

2

Curves and Line

IA Vector Calculus

Proposition. If F = ∇f for some f , then ∂Fi ∂Fj = . ∂xj ∂xi This is because both are equal to ∂ 2 f /∂xi ∂xj . For an exact differential, the result from the previous section reads Z Z F · dr = df = f (b) − f (a). C

C

Differentials can be manipulated using (for constant λ, µ): Proposition. d(λf + µg) = λdf + µdg d(f g) = (df )g + f (dg) Using these, it may be possible to find f by inspection. Example. Consider Z

3x2 y sin z dx + x3 sin z dy + x3 y cos z dz.

C

We see that if we integrate the first term with respect to x, we obtain x3 y sin z. We obtain the same thing if we integrate the second and third term. So this is equal to Z d(x3 y sin z) = [x3 y sin z]b a.

C

2.4

Work and potential energy

R Definition (Work and potential energy). If F(r) is a force, then C F · dr is the work done by the force along the curve C. It is the limit of a sum of terms F(r) · δr, i.e. the force along the direction of δr. Consider a point particle moving under F(r) according to Newton’s second law: F(r) = m¨r. Since the kinetic energy is defined as T (t) =

1 2 m˙r , 2

the rate of change of energy is d T (t) = m˙r · ¨r = F · r˙ . dt Suppose the path of particle is a curve C from a = r(α) to b = r(β), Then Z

β

T (β) − T (α) = α

dT dt = dt

Z

β

Z F · r˙ dt =

α

F · dr. C

So the work done on the particle is the change in kinetic energy. 15

2

Curves and Line

IA Vector Calculus

Definition (Potential energy). Given a conservative force F = −∇V , V (x) is the potential energy. Then Z F · dr = V (a) − V (b). C

Therefore, for a conservative force, we have F = ∇V , where V (r) is the potential energy. So the work done (gain in kinetic energy) is the loss in potential energy. So the total energy T + V is conserved, i.e. constant during motion. We see that energy is conserved for conservative forces. In fact, the converse is true — the energy is conserved only for conservative forces.

16

3

Integration in R2 and R3

3 3.1

IA Vector Calculus

Integration in R2 and R3 Integrals over subsets of R2

Definition (Surface integral). Let D ⊆ R2 . Let r = (x, y) be in Cartesian coordinates. We can approximate D by N disjoint subsets of simple shapes, e.g. triangles, parallelograms. These shapes are labelled by I and have areas δAi . y D

x P To integrate a function f over D, we would like to take the sum f (ri )δAi , and take the limit as δAi → 0. But we need a condition stronger than simply δAi → 0. We won’t want the areas to grow into arbitrarily long yet thin strips whose area decreases to 0. So we say that we find an ` such that each area can be contained in a disc of diameter `. Then we take the limit as ` → 0, N → ∞, and the union of the pieces tends to D. For a function f (r), we define the surface integral as Z X f (r) dA = lim f (ri )δAi . D

`→0

I

where ri is some point within each subset Ai . The integral exists if the limit is well-defined (i.e. the same regardless of what Ai and ri we choose before we take the limit) and exists. If we take f = 1, then the surface integral is the area of D. On the other hand, if we put z = f (x, y) and plot out the surface z = f (x, y), then the area integral is the volume under the surface. The definition allows us to take the δAi to be any weird shape we want. However, the sensible thing is clearly to take Ai to be rectangles. We choose the small sets in the definition to be rectangles, each of size δAI = δxδy. We sum over subsets in a narrow horizontal strip of height δy with R y and δy held constant. Take the limit as δx → 0. We get a contribution δy xy f (y, x) dx with range xy ∈ {x : (x, y) ∈ D}.

17

3

Integration in R2 and R3

IA Vector Calculus

y D

Y

δy

y

x xy We sum over all such strips and take δy → 0, giving Proposition. Z

Z

!

Z

f (x, y) dx dy.

f (x, y) dA = D

Y

xy

with xy ranging over {x : (x, y) ∈ D}. Note that the range of the inner integral is given by a set xy . This can be an interval, or many disconnected intervals, xy = [a1 , b1 ] ∪ [a2 , b2 ]. In this case, Z Z b1 Z b2 f (x) dx = f (x) dx + f (x) dx. xy

a1

a2

This is useful if we want to integrate over a concave area and we have disconnected vertical strips. y

x We could also do it the other way round, integrating over y first, and come up with the result  Z Z Z f (x, y) dA = f (x, y) dy dx. D

X

yx

Theorem (Fubini’s theorem). If f is a continuous function and D is a compact (i.e. closed and bounded) subset of R2 , then ZZ ZZ f dx dy = f dy dx. 18

3

Integration in R2 and R3

IA Vector Calculus

While we have rather strict conditions for this theorem, it actually holds in many more cases, but those situations have to be checked manually. Definition (Area element). The area element is dA. Proposition. dA = dx dy in Cartesian coordinates. Example. We integrate over the triangle bounded by (0, 0), (2, 0) and (0, 1). We want to integrate the function f (x, y) = x2 y over the area. So  Z Z 1 Z 2−2y f (xy) dA = x2 y dx dy D

0

0 1

Z = 0

x3 y 3 

2−2y dy 0

Z 8 1 y(1 − y)3 dy 3 0 2 = 15

=

We can integrate it the other way round: Z Z 2 Z 1−x/2 x2 y dA = x2 y dy dx D

0

0

1−x/2 1 2 dx y = x 2 0 0 Z 2 2 x x 2 = dx 1− 2 0 2 2 = 15 Z

2

2



Since it doesn’t matter whether we integrate x first or y first, if we find it difficult to integrate one way, we can try doing it the other way and see if it is easier. While this integral is tedious in general, there is a special case where it is substantially easier. Definition (Separable function). A function f (x, y) is separable if it can be written as f (x, y) = h(y)g(x). Proposition. Take separable f (x, y) = h(y)g(x) and D be a rectangle {(x, y) : a ≤ x ≤ b, c ≤ y ≤ d}. Then ! Z ! Z Z b d f (x, y) dx dy = g(x) dx h(y) dy D

3.2

a

c

Change of variables for an integral in R2

Proposition. Suppose we have a change of variables (x, y) ↔ (u, v) that is smooth and invertible, with regions D, D0 in one-to-one correspondence. Then Z Z f (x, y) dx dy = f (x(u, v), y(u, v))|J| du dv, D

D0

19

3

Integration in R2 and R3

IA Vector Calculus

where

∂x ∂(x, y) ∂u J= = ∂(u, v) ∂y ∂u is the Jacobian. In other words,

∂x ∂v ∂y ∂v

dx dy = |J| du dv. Proof. Since we are writing (x(u, v), y(u, v)), we are actually transforming from (u, v) to (x, y) and not the other way round. Suppose we start with an area δA0 = δuδv in the (u, v) plane. Then by Taylors’ theorem, we have δx = x(u + δu, v + δv) − x(u, v) ≈

∂x ∂x δu + δv. ∂u ∂v

We have a similar expression for δy and we obtain    ∂x ∂x    δu δx ∂v ≈ ∂u ∂y ∂y δv δy ∂u ∂v Recall from Vectors and Matrices that the determinant of the matrix is how much it scales up an area. So the area formed by δx and δy is |J| times the area formed by δu and δv. Hence dx dy = |J| du dv. Example. We transform from (x, y) to (ρ, ϕ) with x = ρ cos ϕ y = ρ sin ϕ We have previously calculated that |J| = ρ. So dA = ρ dρ dϕ. Suppose we want to integrate a function over a quarter area D of radius R. y D

x Let the function to be integrated be f = exp(−(x2 + y 2 )/2) = exp(−ρ2 /2). Then Z Z f dA = f ρ dρ dϕ ! Z Z R

π/2

2

e−ρ

= ρ=0

ϕ=0

20

/2

ρ dϕ δρ

3

Integration in R2 and R3

IA Vector Calculus

Note that in polar coordinates, we are integrating over a rectangle and the function is separable. So this is equal to h iR 2 π/2 = −e−ρ /2 [ϕ]0 0  2 π (∗) = 1 − e−R /2 . 2 Note that the integral exists as R → ∞. Now we take the case of x, y → ∞ and consider the original integral. Z Z ∞ Z ∞ 2 2 e−(x +y )/2 dx dy f dA = D x=0 y=0 Z ∞  Z ∞  −x2 /2 −y 2 /2 e e = dx dy 0

0

π = 2 where the last line is from (*). So each of the two integrals must be r Z ∞ π −x2 /2 . e dx = 2 0

3.3

p

π/2, i.e.

Generalization to R3

We will do exactly the same thing as we just did, but with one more dimension: Definition (Volume integral). Consider a volume V ⊆ R3 with position vector r = (x, y, z). We approximate V by N small disjoint subsets of some simple shape (e.g. cuboids) labelled by I, volume δVI , contained within a solid sphere of diameter `. Assume that as ` → 0 and N → ∞, the union of the small subsets tend to V . Then Z X f (r) dV = lim f (r∗I )δVI , `→0

V

I

where r∗I is any chosen point in each small subset. To evaluate this, we can take δVI = δxδyδz, and take δx → 0, δy → 0 and δz in some order. For example, ! Z Z Z f (r) dv = f (x, y, z) dz dx dy. V

D

Zxy

So we integrate f (x, y, z) over z at each point (x, y), then take the integral of that over the area containing all required (x, y). Alternatively, we can take the area integral first, and have  Z Z Z f (r) dV = f (x, y, z) dx dy dz. V

z

DZ

Again, if we take f = 1, then we obtain the volume of V . Often, f (r) is the density of some quantity, and is usually denoted by ρ. For example, we might have mass density, charge density, or probability density. ρ(r)δV is then the amount of quantity in a small volume δV at r. Then R ρ(r) dV is the total amount of quantity in V . V 21

3

Integration in R2 and R3

IA Vector Calculus

Definition (Volume element). The volume element is dV . Proposition. dV = dx dy dz. We can change variables by some smooth, invertible transformation (x, y, z) 7→ (u, v, w). Then Proposition. Z

Z f |J| du dv dw,

f dx dy dz = V

V

with

∂x ∂u ∂y ∂(x, y, z) J= = ∂(u, v, w) ∂u ∂z ∂u Proposition. In cylindrical coordinates,

∂x ∂w ∂y ∂w ∂z ∂w

∂x ∂v ∂y ∂v ∂z ∂v

dV = ρ dρ dϕ dz. In spherical coordinates dV = r2 sin θ dr dθ dϕ. Proof. Loads of algebra. Example. Suppose f (r) is spherically symmetric and V is a sphere of radius a centered on the origin. Then Z Z a Z π Z 2π f dV = f (r)r2 sin θ dr dθ dϕ V

r=0 a

θ=0 ϕ=0 Z π Z 2π

Z =

dr 0

Z

dθ 0

a

dϕ r2 f (r) sin θ

0

h iπ h i2π r2 f (r)dr − cos θ ϕ

=

0

0

Z = 4π

0

a

f (r)r2 dr.

0

where we separated the integral into three parts as in the area integrals. Note that in the second line, we rewrote the integrals to write the differentials next to the integral sign. This is simply a different notation that saves us from writing r = 0 etc. in the limits of the integrals. This is a useful general result. We understand it as the sum of spherical shells of thickness δr and volume 4πr2 δr. If we take f = 1, then we have the familiar result that the volume of a sphere is 43 πa3 . Example. Consider a volume within a sphere of radius a with a cylinder of radius b (b < a) removed. The region is defined as x2 + y 2 + z 2 ≤ a2 x 2 + y 2 ≥ b2 . 22

3

Integration in R2 and R3

IA Vector Calculus

a b

We use cylindrical coordinates. The second criteria gives b ≤ ρ ≤ a. For the x2 + y 2 + z 2 ≤ a2 criterion, we have p p − a2 − ρ2 ≤ z ≤ a2 − ρ2 . So the volume is Z

Z

a

dV = V

Z √a2 −ρ2



Z dρ



b





0

dz ρ a2 −ρ2

a

Z

p

a2 − ρ2 dρ  a 2 = 2π (a2 − ρ2 )3/2 3 b 4 2 2 3/2 = π(a − b ) . 3

= 2π



b

Example. Suppose the density of electric charge is ρ(r) = ρ0 az in a hemisphere H of radius a, with z ≥ 0. What is the total charge of H? We use spherical polars. So r ≤ a,

0 ≤ ϕ ≤ 2π,

We have ρ(r) =

0≤θ≤

π . 2

ρ0 r cos θ. a

The total charge Q in H is Z

Z

Z

π/2

Z



ρ0 r cos θr2 sin θ a 0 0 0 Z Z π/2 Z 2π ρ0 a 3 = r dr sin θ cos θ dθ dϕ a 0 0 0  a  π/2 ρ0 r 4 1 2 = sin θ [ϕ]2π 0 a 4 0 2 0

ρ dV = H

a

=

dr



ρ0 πa3 . 4 23



3

Integration in R2 and R3

3.4

IA Vector Calculus

Further generalizations

Integration in Rn R Similar to the above, D f (x1 , x2 , · · · xn ) dx1 dx2 · · · dxn is simply the integration over an n-dimensional volume. The change of variable formula is Proposition. Z Z f (x1 , x2 , · · · xn ) dx1 dx2 · · · dxn =

f ({xi (u)})|J| du1 du2 · · · dun .

D0

D

Change of variables for n = 1 dx In the n = 1 case, the Jacobian is du . However, we use the following formula for change of variables: Z Z dx f (x) dx = f (x(u)) du. du D D0

We introduce the modulus because of our natural convention about integrating Rb over D and D0 . If D = [a, b] with a < b, we write a . But if a 7→ α and b 7→ β, Rα but α > β, we would like to write β instead, so we introduce the modulus in the 1D case. To show that the modulus is the right thing to do, we check case by case: If dx a < b and α < β, then du is positive, and we have, as expected Z

b

Z

β

f (x) dx =

f (u)

a

If α > β, then

dx du

Z

α

dx du. du

is negative. So

b

Z

β

f (x) dx = a

f (u) α

dx du = − du

Z

α

f (u) β

dx du. du

dx By taking the absolute value of du , we ensure that we always have the numerically smaller bound as the lower bound. This is not easily generalized to higher dimensions, so we don’t employ the same trick in other cases.

Vector-valued integrals R R We can define V F(r) dV in a similar way to V f (r) dV as the limit of a sum over small contributions of volume. In practice, we integrate them componentwise. If F(r) = Fi (r)ei , then

Z

Z F(r) dV =

(Fi (r) dV )ei .

V

V

For example, if a mass has density ρ(r), then its mass is Z M= ρ(r) dV V

24

3

Integration in R2 and R3

IA Vector Calculus

and its center of mass is R=

1 M

Z rρ(r) dV. V

Example. Consider a solid hemisphere H with r ≤ a, z ≥ 0 with uniform density ρ. The mass is Z 2 M= ρ dV = πa3 ρ. 3 H Now suppose that R = (X, Y, Z). By symmetry, we expect X = Y = 0. We can find this formally by Z 1 X= xρ dV M H Z a Z π/2 Z 2π ρ xr2 sin θ dϕ dθ dr = M 0 0 0 Z a Z π/2 Z 2π ρ 2 3 = r dr × sin θ dθ × cos ϕ dϕ M 0 0 0 =0 as expected. Note that it evaluates to 0 because the integral of cos from 0 to 2π is 0. Similarly, we obtain Y = 0. Finally, we find Z. ρ Z= M

Z

a 3

Z

π/2

r dr 0

Z sin θ cos θ dθ

0

dϕ 0

  π/2 1 r a4 sin2 θ 2π M 4 2 0 3a = . 8 =

So R = (0, 0, 3a/8).

25



4

Surfaces and surface integrals

4

IA Vector Calculus

Surfaces and surface integrals

4.1

Surfaces and Normal

So far, we have learnt how to do calculus with regions of the plane or space. What we would like to do now is to study surfaces in R3 . The first thing to figure out is how to specify surfaces. One way to specify a surface is to use an equation. We let f be a smooth function on R3 , and c be a constant. Then f (r) = c defines a smooth surface (e.g. x2 + y 2 + z 2 = 1 denotes the unit sphere). Now consider any curve r(u) on S. Then by the chain rule, if we differentiate f (r) = c with respect to u, we obtain d dr [f (r(u))] = ∇f · = 0. du du dr dr This means that ∇f is always perpendicular to du . Since du is the tangent to the curve, ∇f is perpendicular to the tangent. Since this is true for any curve r(u), ∇f is perpendicular to any tangent of the surface. Therefore

Proposition. ∇f is the normal to the surface f (r) = c. Example. (i) Take the sphere f (r) = x2 + y 2 + z 2 = c for c > 0. Then ∇f = 2(x, y, z) = 2r, which is clearly normal to the sphere. (ii) Take f (r) = x2 + y 2 − z 2 = c, which is a hyperboloid. Then ∇f = 2(x, y, −z). In the special case where c = 0, we have a double cone, with a singular apex 0. Here ∇f = 0, and we cannot find a meaningful direction of normal. Definition (Boundary). A surface S can be defined to have a boundary ∂S consisting of a piecewise smooth curve. If we define S as in the above examples but with the additional restriction z ≥ 0, then ∂S is the circle x2 + y 2 = c, z = 0. A surface is bounded if it can be contained in a solid sphere, unbounded otherwise. A bounded surface with no boundary is called closed (e.g. sphere). Example.

The boundary of a hemisphere is a circle (drawn in red). Definition (Orientable surface). At each point, there is a unit normal n that’s unique up to a sign. If we can find a consistent choice of n that varies smoothly across S, then we say S is orientable, and the choice of sign of n is called the orientation of the surface.

26

4

Surfaces and surface integrals

IA Vector Calculus

Most surfaces we encounter are orientable. For example, for a sphere, we can declare that the normal should always point outwards. A notable example of a non-orientable surface is the M¨obius strip (or Klein bottle). For simple cases, we can describe the orientation as “inward” and “outward”.

4.2

Parametrized surfaces and area

However, specifying a surface by an equation f (r) = c is often not too helpful. What we would like is to put some coordinate system onto the surface, so that we can label each point by a pair of numbers (u, v), just like how we label points in the x, y-plane by (x, y). We write r(u, v) for the point labelled by (u, v). Example. Let S be part of a sphere of radius a with 0 ≤ θ ≤ α.

α We can then label the points on the spheres by the angles θ, ϕ, with r(θ, ϕ) = (a cos ϕ sin θ, a sin θ sin ϕ, a cos θ) = aer . We restrict the values of θ, ϕ by 0 ≤ θ ≤ α, 0 ≤ ϕ ≤ 2π, so that each point is only covered once. Note that to specify a surface, in addition to the function r, we also have to specify what values of (u, v) we are allowed to take. This corresponds to a region D of allowed values of u and v. When we do integrals with these surfaces, these will become the bounds of integration. When we have such a parametrization r, we would want to make sure this indeed gives us a two-dimensional surface. For example, the following two parametrizations would both be bad: r(u, v) = u,

r(u, v) = u + v.

The idea is that r has to depend on both u and v, and in “different ways”. More precisely, when we vary the coordinates (u, v), the point r will change accordingly. By the chain rule, this is given by δr =

∂r ∂r δu + δv + o(δu, δv). ∂u ∂v

∂r ∂r Then δu and ∂v are tangent vectors to curves on S with v and u constant respectively. What we want is for them to point in different directions.

Definition (Regular parametrization). A parametrization is regular if for all u, v, ∂r ∂r × 6= 0, ∂u ∂v i.e. there are always two independent tangent directions.

27

4

Surfaces and surface integrals

IA Vector Calculus

The parametrizations we use will all be regular. Given a surface, how could we, say, find its area? We can use our parametrization. Suppose points on the surface are given by r(u, v) for (u, v) ∈ D. If we want to find the area of D itself, we would simply integrate Z du dv. D

However, we are just using u and v as arbitrary labels for points in the surface, and one unit of area in D does not correspond to one unit of area in S. Instead, suppose we produce a small rectangle in D by changing u and v by small δu, δv. In D, this corresponds to a rectangle with vertices (u, v), (u + δu, v), (u, v + δv), (u + δu, v + δv), and spans an area δuδv. In the surface S, these small ∂r ∂r changes δu, δv correspond to changes ∂u δu and ∂v δv, and these span a vector area of ∂r ∂r δS = × δuδv = n δS. ∂u ∂v Note that the order of u, v gives the choice of the sign of the unit normal. The actual area is then given by ∂r ∂r δS = × δu δv. ∂u ∂v Making these into differentials instead of deltas, we have Proposition. The vector area element is dS =

∂r ∂r × du dv. ∂u ∂v

The scalar area element is ∂r ∂r dS = × du dv. ∂u ∂v By summing and taking limits, the area of S is Z Z ∂r ∂r dS = × du dv. ∂v S D ∂u Example. Consider again the part of the sphere of radius a with 0 ≤ θ ≤ α.

α Then we have r(θ, ϕ) = (a cos ϕ sin θ, a sin θ sin ϕ, a cos θ) = aer . So we find

∂r = aeθ . ∂θ 28

4

Surfaces and surface integrals

IA Vector Calculus

Similarly, we have ∂r = a sin θeϕ . ∂ϕ Then

∂r ∂r × = a2 sin θ er . ∂θ ∂ϕ

So dS = a2 sin θ dθ dϕ. Our bounds are 0 ≤ θ ≤ α, 0 ≤ ϕ ≤ 2π. Then the area is Z 2π Z α a2 sin θ dθ dϕ = 2πa2 (1 − cos α). 0

4.3

0

Surface integral of vector fields

Just computing the area of a surface would be boring. Suppose we have a surface S parametrized by r(u, v), where (u, v) takes values in D. We would like to ask how much “stuff” is passing through S, where the flow of stuff is given by a vector field F(r). We might attempt to use the integral Z |F| dS. D

However, this doesn’t work. For example, if all the flow is tangential to the surface, then nothing is really passing through the surface, but |F| is non-zero, so we get a non-zero integral. Instead, what we should do is to consider the component of F that is normal to the surface S, i.e. parallel to its normal. Definition (Surface integral). The surface integral or flux of a vector field F(r) over S is defined by   Z Z Z ∂r ∂r F(r) · dS = F(r) · n dS = F(r(u, v)) · × du dv. ∂u ∂v S S D Intuitively, this is the total amount of F passing through S. For example, if F is the electric field, the flux is the amount of electric field passing through a surface. R For a given orientation, the integral F·dS is independent of the parametrization. Changing orientation is equivalent to changing the sign of n, which is in turn equivalent to changing the order of u and v in the definition of S, which is also equivalent to changing the sign of the flux integral. Example. Consider a sphere of radius a, r(θ, ϕ). Then ∂r = aeθ , ∂θ

∂r = a sin θeϕ . ∂ϕ

The vector area element is dS = a2 sin θer dθ dϕ, 29

4

Surfaces and surface integrals

IA Vector Calculus

taking the outward normal n = er = r/a. Suppose we want to calculate the fluid flux through the surface. The velocity field u(r) of a fluid gives the motion of a small volume of fluid r. Assume that u depends smoothly on r (and t). For any small area δS, on a surface S, the volume of fluid crossing it in time δt is u · δS δt. u δt n δS So the amount of flow of u over at time δt through S is Z δt u · dS. S

R

u · dS is the rate of volume crossing S. S For example, let u = (−x, 0, z) and S be the section of a sphere of radius a with 0 ≤ ϕ ≤ 2π and 0 ≤ θ ≤ α. Then So

dS = a2 sin θn dϕ dθ, with n= So

1 (−x2 + z 2 ) = a(− sin2 θ cos2 ϕ + cos2 θ). a

n·u= Therefore Z

Z

α

Z

u · dS = S

r 1 = (x, y, z). a a

0

Z



a3 sin θ[(cos2 θ − 1) cos2 ϕ + cos2 θ] dϕ dθ

0 α

a3 sin θ[π(cos2 θ − 1) + 2π cos2 θ] dθ

= 0

Z =

α

a3 π(3 cos3 θ − 1) sin θ dθ

0

= πa3 [cosθ − cos3 θ]α 0 = πa3 cos α sin2 α. What happens when we change parametrization? Let r(u, v) and r(˜ u, v˜) be two regular parametrizations for the surface. By the chain rule, ∂r ∂ u ˜ ∂r ∂˜ v ∂r = + ∂u ∂u ˜ ∂u ∂˜ v ∂u ∂r ∂r ∂ u ˜ ∂r ∂˜ v = + ∂v ∂u ˜ ∂v ∂˜ v ∂v So

∂r ∂r ∂(˜ u, v˜) ∂r ∂r × = × ∂u ∂v ∂(u, v) ∂ u ˜ ∂˜ v 30

4

Surfaces and surface integrals

u,˜ v) where ∂(˜ ∂(u,v) is the Jacobian. Since

d˜ u d˜ v=

IA Vector Calculus

∂(˜ u, v˜) du dv, ∂(u, v)

We recover the formula ∂r ∂r ∂r ∂r du dv = d˜ u d˜ v. dS = × × ∂u ∂v ∂u ˜ ∂˜ v Similarly, we have dS =

∂r ∂r ∂r ∂r × du dv = × d˜ u d˜ v. ∂u ∂v ∂u ˜ ∂˜ v

provided (u, v) and (˜ u, v˜) have the same orientation.

4.4

Change of variables in R2 and R3 revisited

In this section, we derive our change of variable formulae in a slightly different way. Change of variable formula in R2 We first derive the 2D change of variable formula from the 3D surface integral formula. Consider a subset S of the plane R2 parametrized by r(x(u, v), y(u, v)). We can embed it to R3 as r(x(u, v), y(u, v), 0). Then ∂r ∂r × = (0, 0, J), ∂u ∂v with J being the Jacobian. Therefore Z Z Z ∂r ∂r f (r) dS = f (r(u, v)) × du dv = f (r(u, v))|J| du dv, ∂u ∂v S D D and we recover the formula for changing variables in R2 . Change of variable formula in R3 In R3 , suppose we have a volume parametrised by r(u, v, w). Then δr =

∂r ∂r ∂r δu + δv + δw + o(δu, δv, δw). ∂u ∂v ∂w

Then the cuboid δu, δv, δw in u, v, w space is mapped to a parallelopiped of volume   ∂r ∂r ∂r δV = δu · δv × δw = |J| δu δv δw. ∂u ∂v ∂w So dV = |J| du dv dw.

31

5

5

Geometry of curves and surfaces

IA Vector Calculus

Geometry of curves and surfaces

dr Let r(s) be a curve parametrized by arclength s. Since t(s) = ds is a unit vector, 0 0 t · t = 1. Differentiating yields t · t = 0. So t is a normal to the curve if t0 6= 0. We define the following:

Definition (Principal normal and curvature). Write t0 = κn, where n is a unit vector and κ > 0. Then n(s) is called the principal normal and κ(s) is called the curvature. Note that we must be differentiating against s, not any other parametrization! If the curve is given in another parametrization, we can either change the parametrization or use the chain rule. We take a curve that can Taylor expanded around s = 0. Then 1 r(s) = r(0) + sr0 (0) + s2 r00 (0) + O(s3 ). 2 We know that r0 = t and r00 = t0 . So we have 1 r(s) = r(0) + st(0) + κ(0)s2 n + O(s3 ). 2 How can we interpret κ as the curvature? Suppose we want to approximate the curve near r(0) by a circle. We would expect a more “curved” curve would be approximated by a circle of smaller radius. So κ should be inversely proportional to the radius of the circle. In fact, we will show that κ = 1/a, where a is the radius of the best-fit circle. Consider the vector equation for a circle passing through r(0) with radius a in the plane defined by t and n. a n θ t

r(0)

Then the equation of the circle is r = r(0) + a(1 − cos θ)n + a sin θt. We can expand this to obtain 1 r = r(0) + aθt + θ2 an + o(θ3 ). 2 Since the arclength s = aθ, we obtain r = r(0) + st +

11 2 s n + O(s3 ). 2a

As promised, κ = 1/a, for a the radius of the circle of best fit.

32

5

Geometry of curves and surfaces

IA Vector Calculus

Definition (Radius of curvature). The radius of curvature of a curve at a point r(s) is 1/κ(s). Since we are in 3D, given t(s) and n(s), there is another normal to the curve. We can add a third normal to generate an orthonormal basis. Definition (Binormal). The binormal of a curve is b = t × n. We can define the torsion similar to the curvature, but with the binormal instead of the tangent.1 Definition (Torsion). Let b0 = −τ n. Then τ is the torsion. Note that this makes sense, since b0 is both perpendicular to t and b, and hence must be in the same direction as n. (b0 = t0 × n + t × n0 = t × n0 , so b0 is perpendicular to t; and b · b = 1 ⇒ b · b0 = 0. So b0 is perpendicular to b). The geometry of the curve is encoded in how this basis (t, n, b) changes along it. This can be specified by two scalar functions of arc length — the curvature κ(s) and the torsion τ (s) (which determines what the curve looks like to third order in its Taylor expansions and how the curve lifts out of the t, r plane). Surfaces and intrinsic geometry* We can study the geometry of surfaces through curves which lie on them. At a given point P at a surface S with normal n, consider a plane containing n. The intersection of the plane with the surface yields a curve on the surface through P . This curve has a curvature κ at P . If we choose different planes containing n, we end up with different curves of different curvature. Then we define the following: Definition (Principal curvature). The principal curvatures of a surface at P are the minimum and maximum possible curvature of a curve through P , denoted κmin and κmax respectively. Definition (Gaussian curvature). The Gaussian curvature of a surface at a point P is K = κmin κmax . Theorem (Theorema Egregium). K is intrinsic to the surface S. It can be expressed in terms of lengths, angles etc. which are measured entirely on the surface. So K can be defined on an arbitrary surface without embedding it on a higher dimension surface. The is the start of intrinsic geometry: if we embed a surface in Euclidean space, we can determine lengths, angles etc on it. But we don’t have to do so — we can “live in ” the surface and do geometry in it without an embedding. For example, we can consider a geodesic triangle D on a surface S. It consists of three geodesics: shortest curves between two points. Let θi be the interior angles of the triangle (defined by using scalar products of tangent vectors). Then 1 This was not taught in lectures, but there is a question on the example sheet about the torsion, so I might as well include it here.

33

5

Geometry of curves and surfaces

IA Vector Calculus

Theorem (Gauss-Bonnet theorem). Z θ1 + θ2 + θ3 = π +

K dA, D

integrating over the area of the triangle.

34

6

Div, Grad, Curl and ∇

IA Vector Calculus

Div, Grad, Curl and ∇

6 6.1

Div, Grad, Curl and ∇

Recalled that ∇f is given by (∇f )i = the scalar field f by applying

∂f ∂xi .

We can regard this as obtained from

∂ ∂xi for cartesian coordinates xi and orthonormal basis ei , where ei are orthonormal and right-handed, i.e. ei × ej = εijk ek (it is left handed if ei × ej = −εijk ek ). We can alternatively write this as   ∂ ∂ ∂ ∇= , , . ∂x ∂y ∂z ∇ = ei

∇ (nabla or del ) is both an operator and a vector. We can apply it to a vector field F(r) = Fi (r)ei using the scalar or vector product. Definition (Divergence). The divergence or div of F is ∇·F=

∂F1 ∂F2 ∂F3 ∂Fi = + + . ∂xi ∂x1 ∂x2 ∂x3

Definition (Curl). The curl of F is e1 ∂ ∂Fk ∇ × F = εijk ei = ∂x ∂xj Fx

e2 ∂ ∂y

Fy

e3 ∂ ∂z Fz

Example. Let F = (xez , y 2 sin x, xyz). Then ∇·F=

∂ z ∂ 2 ∂ xe + y sin x + xyz = ez + 2y sin x + xy. ∂x ∂y ∂z

and   ∂ ∂ 2 ∇ × F = ˆi (xyz) − (y sin x) ∂y ∂z   ∂ ∂ + ˆj (xez ) + (xyz) ∂z ∂x   ˆ ∂ (y 2 sin x) − ∂ (xez ) +k ∂x ∂y = (xz, xez − yz, y 2 cos x). Note that ∇ is an operator, so ordering is important. For example, F · ∇ = Fi

∂ ∂xi

is a scalar differential operator, and F × ∇ = ek εijk Fi is a vector differential operator. 35

∂ ∂xj

6

Div, Grad, Curl and ∇

IA Vector Calculus

Proposition. Let f, g be scalar functions, F, G be vector functions, and µ, λ be constants. Then ∇(λf + µg) = λ∇f + µ∇g ∇ · (λF + µG) = λ∇ · F + µ∇ · G ∇ × (λF + µG) = λ∇ × F + µ∇ × G. Note that Grad and Div can be analogously defined in any dimension n, but curl is specific to n = 3 because it uses the vector product. Example. Consider rα with r = |r|. We know that r = xi ei . So r2 = xi xi . Therefore ∂r 2r = 2xj , ∂xj or ∂r xi = . ∂xi r So ∂r ∂ α (r ) = ei αrα−1 = αrα−2 r. ∇rα = ei ∂xi ∂xi Also, ∂xi = 3. ∇·r= ∂xi and ∂xj ∇ × r = ek εijk = 0. ∂xi Proposition. We have the following Leibnitz properties: ∇(f g) = (∇f )g + f (∇g) ∇ · (f F) = (∇f ) · F + f (∇ · F) ∇ × (f F) = (∇f ) × F + f (∇ × F) ∇(F · G) = F × (∇ × G) + G × (∇ × F) + (F · ∇)G + (G · ∇)F ∇ × (F × G) = F(∇ · G) − G(∇ · F) + (G · ∇)F − (F · ∇)G ∇ · (F × G) = (∇ × F) · G − F · (∇ × G) which can be proven by brute-forcing with suffix notation and summation convention. There is absolutely no point in memorizing these (at least the last three). They can be derived when needed via suffix notation. Example. ∇ · (rα r) = (∇rα )r + rα ∇ · r = (αrα−2 r) · r + rα (3) = (α + 3)rα ∇ × (rα r) = (∇(rα )) × r + rα (∇ × r) = αrα−2 r × r =0 36

6

Div, Grad, Curl and ∇

6.2

IA Vector Calculus

Second-order derivatives

We have Proposition. ∇ × (∇f ) = 0 ∇ · (∇ × F) = 0 Proof. Expand out using suffix notation, noting that εijk

∂2f = 0. ∂xi ∂xj

since if, say, k = 3, then εijk

∂2f ∂2f ∂2f = − = 0. ∂xi ∂xj ∂x1 ∂x2 ∂x2 ∂x1

The converse of each result holds for fields defined in all of R3 : Proposition. If F is defined in all of R3 , then ∇ × F = 0 ⇒ F = ∇f for some f . Definition (Conservative/irrotational field and scalar potential). If F = ∇f , then f is the scalar potential. We say F is conservative or irrotational. Similarly, Proposition. If H is defined over all of R3 and ∇ · H = 0, then H = ∇ × A for some A. Definition (Solenoidal field and vector potential). If H = ∇ × A, A is the vector potential and H is said to be solenoidal. Not that is is true only if F or H is defined on all of R3 . Definition (Laplacian operator). The Laplacian operator is defined by  2  ∂2 ∂ ∂2 ∂2 + + . ∇2 = ∇ · ∇ = = ∂xi ∂xi ∂x21 ∂x22 ∂x33 This operation is defined on both scalar and vector fields — on a scalar field, ∇2 f = ∇ · (∇f ), whereas on a vector field, ∇2 A = ∇(∇ · A) − ∇ × (∇ × A).

37

7

Integral theorems

7 7.1

IA Vector Calculus

Integral theorems Statement and examples

There are three big integral theorems, known as Green’s theorem, Stoke’s theorem and Gauss’ theorem. There are all generalizations of the fundamental theorem of calculus in some sense. In particular, they all say that an n dimensional integral of a derivative is equivalent to an n − 1 dimensional integral of the original function. We will first state all three theorems with some simple applications. In the next section, we will see that the three integral theorems are so closely related that it’s easiest to show their equivalence first, and then prove just one of them. 7.1.1

Green’s theorem (in the plane)

Theorem (Green’s theorem). For smooth functions P (x, y), Q(x, y) and A a bounded region in the (x, y) plane with boundary ∂A = C,  Z  Z ∂Q ∂P − dA = (P dx + Q dy). ∂x ∂y C A Here C is assumed to be piecewise smooth, non-intersecting closed curve, traversed anti-clockwise. Example. Let Q = xy 2 and P = x2 y. If C is the parabola y 2 = 4ax and the line x = a, both with −2a ≤ y ≤ 2a, then Green’s theorem says Z Z (y 2 − x2 ) dA = x2 dx + xy 2 dy. A

C

From example sheet 1, each side gives

104 4 105 a .

Example. Let A be a rectangle confined by 0 ≤ x ≤ a and 0 ≤ y ≤ b. y

b A a

x

Then Green’s theorem follows directly from the fundamental theorem of calculus in 1D. We first consider the first term of Green’s theorem: Z Z aZ b ∂P ∂P − dA = − dy dx ∂y ∂y 0 0 Z a = [−P (x, b) + P (x, 0)] dx Z0 = P dx C

38

7

Integral theorems

IA Vector Calculus

Note that we can convert the 1D integral in the second-to-last line to a line integral around the curve C, since the P (x, 0) and P (x, b) terms give the horizontal part of C, and the lack of dy term means that the integral is nil when integrating the vertical parts. Similarly, Z Z ∂Q dA = Q dy. A ∂x C Combining them gives Green’s theorem. Green’s theorem also holds for a bounded region A, where the boundary ∂A consists of disconnected components (each piecewise smooth, non-intersecting and closed) with anti-clockwise orientation on the exterior, and clockwise on the interior boundary, e.g.

The orientation of the curve comes from imagining the surface as:

and take the limit as the gap shrinks to 0. 7.1.2

Stokes’ theorem

Theorem (Stokes’ theorem). For a smooth vector field F(r), Z Z ∇ × F · dS = F · dr, S

∂S

where S is a smooth, bounded surface and ∂S is a piecewise smooth boundary of S. The direction of the line integral is as follows: If we walk along C with n facing up, then the surface is on your left. It also holds if ∂S is a collection of disconnected piecewise smooth closed curves, with the orientation determined in the same way as Green’s theorem. 39

7

Integral theorems

IA Vector Calculus

Example. Let S be the section of a sphere of radius a with 0 ≤ θ ≤ α. In spherical coordinates, dS = a2 sin θer dθ dϕ. Let F = (0, xz, 0). Then ∇ × F = (−x, 0, z). We have previously shown that Z ∇ × F · dS = πa3 cos α sin2 α. S

Our boundary ∂C is r(ϕ) = a(sin α cos ϕ, sin α sin ϕ, cos α). The right hand side of Stokes’ is Z Z 2π F · dr = a sin α cos ϕ a cos α a sin α cos ϕ dϕ | {z } | {z } | {z } C 0 x

z

= a3 sin2 α cos α

Z

dy



cos2 ϕ dϕ

0

= πa3 sin2 α cos α. So they agree. 7.1.3

Divergence/Gauss theorem

Theorem (Divergence/Gauss theorem). For a smooth vector field F(r), Z Z ∇ · F dV = F · dS, V

∂V

where V is a bounded volume with boundary ∂V , a piecewise smooth, closed surface, with outward normal n. Example. Consider a hemisphere. S1

S2

V is a solid hemisphere x2 + y 2 + z 2 ≤ a2 ,

z ≥ 0,

and ∂V = S1 + S2 , the hemisphere and the disc at the bottom. Take F = (0, 0, z + a) and ∇ · F = 1. Then Z 2 ∇ · F dV = πa3 , 3 V the volume of the hemisphere. 40

7

Integral theorems

IA Vector Calculus

On S1 , dS = n dS = Then F · dS =

1 (x, y, z) dS. a

1 z(z + a) dS = cos θa(cos θ + 1) a2 sin θ dθ dϕ . | {z } a dS

Then Z

F · dS = a3



Z

Z

π/2

sin θ(cos2 θ + cos θ) dθ

dϕ 0

0

S1

3



= 2πa

−1 1 cos3 θ − cos2 θ 3 2

π/2 0

5 = πa3 . 3 On S2 , dS = n dS = −(0, 0, 1) dS. Then F · dS = −a dS. So Z F · dS = −πa3 . S2

So

Z S1



Z F · dS +

F · dS = S2

 5 2 − 1 πa3 = πa3 , 3 3

in accordance with Gauss’ theorem.

7.2

Relating and proving integral theorems

We will first show the following two equivalences: – Stokes’ theorem ⇔ Green’s theorem – 2D divergence theorem ⇔ Greens’ theorem Then we prove the 2D version of divergence theorem directly to show that all of the above hold. A sketch of the proof of the 3D version of divergence theorem will be provided, because it is simply a generalization of the 2D version, except that the extra dimension makes the notation tedious and difficult to follow. Proposition. Stokes’ theorem ⇒ Green’s theorem Proof. Stokes’ theorem talks about 3D surfaces and Green’s theorem is about 2D regions. So given a region A on the (x, y) plane, we pretend that there is a third dimension and apply Stokes’ theorem to derive Green’s theorem. Let A be a region in the (x, y) plane with boundary C = ∂A, parametrised by arc length, (x(s), y(s), 0). Then the tangent to C is   dx dy t= , ,0 . ds ds Given any P (x, y) and Q(x, y), we can consider the vector field F = (P, Q, 0), 41

7

Integral theorems

IA Vector Calculus

So ∇×F=

  ∂Q ∂P 0, 0, − . ∂x ∂y

Then the left hand side of Stokes is Z Z Z F · dr = F · t ds = P dx + Q dy, C

C

C

and the right hand side is  Z Z  ∂Q ∂P ˆ − dA. (∇ × F) · k dA = ∂x ∂y A A Proposition. Green’s theorem ⇒ Stokes’ theorem. Proof. Green’s theorem describes a 2D region, while Stokes’ theorem describes a 3D surface r(u, v). Hence to use Green’s to derive Stokes’ we need find some 2D thing to act on. The natural choice is the parameter space, u, v. Consider a parametrised surface S = r(u, v) corresponding to the region A in the u, v plane. Write the boundary as ∂A = (u(t), v(t)). Then ∂S = r(u(t), v(t)). We want to prove Z Z F · dr = (∇ × F) · dS ∂S

S

given Z 

Z Fu du + Fv dv = ∂A

A

∂Fv ∂Fu − ∂u ∂v

 dA.

Doing some pattern-matching, we want F · dr = Fu du + Fv dv for some Fu and Fv . By the chain rule, we know that dr =

∂r ∂r du + dv. ∂u ∂v

So we choose

∂r ∂r , Fv = F · . ∂u ∂v This choice matches the left hand sides of the two equations. To match the right, recall that   ∂r ∂r (∇ × F) · dS = (∇ × F) · × du dv. ∂u ∂v Fu = F ·

Therefore, for the right hand sides to match, we want   ∂Fv ∂Fu ∂r ∂r − = (∇ × F) · × . ∂u ∂v ∂u ∂v

(∗)

Fortunately, this is true. Unfortunately, the proof involves complicated suffix notation and summation convention:       ∂Fv ∂ ∂r ∂ ∂xi ∂Fi ∂xj ∂xi ∂xi = F· = Fi = + Fi . ∂u ∂u ∂v ∂u ∂v ∂xj ∂u ∂v ∂u∂v 42

7

Integral theorems

IA Vector Calculus

Similarly, ∂Fu ∂ = ∂u ∂u So



∂r F· ∂u



∂ = ∂u





∂xj Fj ∂u



∂Fj ∂xi ∂xi ∂v



∂Fi ∂Fj − ∂xj ∂xi



=

∂Fv ∂Fu ∂xj ∂xi − = ∂u ∂v ∂u ∂v



∂xj ∂xi + Fi . ∂u ∂u∂v

.

This is the left hand side of (∗). The right hand side of (∗) is   ∂r ∂r ∂Fj ∂xp ∂xq (∇ × F) · × = εijk εkpq ∂u ∂v ∂xi ∂u ∂v ∂Fj ∂xp ∂xq = (δip δjq − δiq δjp ) ∂xi ∂u ∂v   ∂Fj ∂Fi ∂xi ∂xj = − . ∂xi ∂xj ∂u ∂v So they match. Therefore, given our choice of Fu and Fv , Green’s theorem translates to Stokes’ theorem. Proposition. Greens theorem ⇔ 2D divergence theorem. Proof. The 2D divergence theorem states that Z Z (∇ · G) dA = G · n ds. A

∂A

with an outward normal n. Write G as (Q, −P ). Then ∂Q ∂P − . ∂x ∂y

∇·G=

Around the curve r(s) = (x(s), y(s)), t(s) = (x0 (s), y 0 (s)). Then the normal, being tangent to t, is n(s) = (y 0 (s), −x0 (s)) (check that it points outwards!). So G·n=P

dx dy +Q . ds ds

Then we can expand out the integrals to obtain Z Z G · n ds = P dx + Q dy, C

and

C

Z 

Z (∇ · G) dA = A

A

∂Q ∂P − ∂x ∂y

 dA.

Now 2D version of Gauss’ theorem says the two LHS are the equal, and Green’s theorem says the two RHS are equal. So the result follows. Proposition. 2D divergence theorem. Z Z (∇ · G) dA = A

C=∂A

43

G · n ds.

7

Integral theorems

IA Vector Calculus

Proof. For the sake of simplicity, we assume that G only has a vertical component, noting that the same proof works for purely horizontal G, and an arbitrary G is just a linear combination of the two. Furthermore, we assume that A is a simple, convex shape. A more complicated shape can be cut into smaller simple regions, and we can apply the simple case to each of the small regions. Suppose G = G(x, y)ˆj. Then ∇·G= Then

∂G . ∂y

Z Z

Z ∇ · G dA = A

X

Yx

∂G dy ∂y

 dx.

Now we divide A into an upper and lower part, with boundaries C+ = y+ (x) and C− = y− (x) respectively. Since I cannot draw, A will be pictured as a circle, but the proof is valid for any simple convex shape. y

C+ Yx

C− x

dy

We see that the boundary of Yx at any specific x is given by y− (x) and y+ (x). Hence by the Fundamental theorem of Calculus, Z Yx

∂G dy = ∂y

Z

y+ (x)

y− (x)

∂G dy = G(x, y+ (x)) − G(x, y− (x)). ∂y

To compute the full area integral, we want to integrate over all x. However, the divergence theorem talks in terms of ds, not dx. So we need to find some way to relate ds and dx. If we move a distance δs, the change in x is δs cos θ, where θ is the angle between the tangent and the horizontal. But θ is also the angle between the normal and the vertical. So cos θ = n · ˆj. Therefore dx = ˆj · n ds. In particular, G dx = G ˆj · n ds = G · n ds, since G = G ˆj. However, at C− , n points downwards, so n · ˆj happens to be negative. So, actually, at C− , dx = −G · n ds.

44

7

Integral theorems

IA Vector Calculus

Therefore, our full integral is  Z Z Z ∂G ∇ · G dA = dY dx A X yx ∂y Z = G(x, y+ (x)) − G(x, y− (x)) dx X Z Z = G · n ds + G · n ds C+ C− Z = G · n ds. C

ˆ a purely vertical To prove the 3D version, we again consider F = F (x, y, z)k, vector field. Then ! Z Z Z ∂F ∇ · F dV = dz dA. V D Zxy ∂z Again, split S = ∂V into the top and bottom parts S+ and S− (ie the parts ˆ · n ≥ 0 and k ˆ · n < 0), and parametrize by z+ (x, y) and z− (x, y). Then with k the integral becomes Z Z Z ∇ · F dV = (F (x, y, z+ ) − F (x, y, z− )) dA = F · n dS. V

D

S

45

8

Some applications of integral theorems

8

IA Vector Calculus

Some applications of integral theorems

8.1

Integral expressions for div and curl

We can use these theorems to come up with alternative definitions of the div and curl. The advantage of these alternative definitions is that they do not require a choice of coordinate axes. They also better describe how we should interpret div and curl. Gauss’ theorem for F in a small volume V containing r0 gives Z Z F · dS = ∇ · F dV ≈ (∇ · F)(r0 ) vol(V ). ∂V

V

We take the limit as V → 0 to obtain Proposition. (∇ · F)(r0 ) =

1 diam(V )→1 vol(V )

Z F · dS,

lim

∂V

where the limit is taken over volumes containing the point r0 . Similarly, Stokes’ theorem gives, for A a surface containing the point r0 , Z Z F · dr = (∇ × F) · n dA ≈ n · (∇ × F)(r0 ) area(A). ∂A

A

So Proposition. 1 n · (∇ × F)(r0 ) = lim diam(A)→0 area(A)

Z F · dr, ∂A

where the limit is taken over all surfaces A containing r0 with normal n. These are coordinate-independent definitions of div and curl. Example. Suppose u is a velocity field of fluid flow. Then Z u · dS S

is the rate of which fluid crosses S. Taking V to be the volume occupied by a fixed quantity of fluid material, we have Z V˙ = u · dS ∂V

Then, at r0 ,

V˙ , V →0 V

∇ · u = lim

the relative rate of change of volume. For example, if u(r) = αr (ie fluid flowing out of origin), then ∇ · u = 3α, which increases at a constant rate everywhere.

46

8

Some applications of integral theorems

IA Vector Calculus

Alternatively, take a planar area A to be a disc of radius a. Then Z Z u · dr = u · t ds = 2πa × average of u · t around the circumference. ∂A

∂A

(u · t is the component of u which is tangential to the boundary) We define the quantity 1 ω = × (average of u · t). a This is the local angular velocity of the current. As a → 0, a1 → ∞, but the average of u · t will also decrease since a smooth field is less “twirly” if you look closer. So ω tends to some finite value as a → 0. We have Z u · dr = 2πa2 ω. ∂A

Recall that

1 A→0 πa2

Z

n · ∇ × u = lim

u · dr = 2ω, ∂A

ie twice the local angular velocity. For example, if you have a washing machine rotating at a rate of ω, Then the velocity u = ω × r. Then the curl is ∇ × (ω × r) = 2ω, which is twice the angular velocity.

8.2

Conservative fields and scalar products

Definition (Conservative field). A vector field F is conservative if (i) F = ∇f for some scalar field f ; or R (ii) C F · dr is independent of C, for fixed end points and orientation; or (iii) ∇ × F = 0. In R3 , all three formulations are equivalent. We have previously shown (i) ⇒ (ii) since Z F · dr = f (b) − f (a). C

We have also shown that (i) ⇒ (iii) since ∇ × (∇f ) = 0. So we want to show that (iii) ⇒ (ii) and (ii) ⇒ (i) R Proposition. If (iii) ∇ × F = 0, then (ii) C F · dr is independent of C. Proof. Given F(r) satisfying ∇ × F = 0, let C and C˜ be any two curves from a to b.

47

8

Some applications of integral theorems

IA Vector Calculus

b

C C˜ a

˜ By Stokes’ theorem, If S is any surface with boundary ∂S = C − C, Z Z Z Z ∇ × F · dS = F · dr = F · dr − F · dr. S

∂S

But ∇ × F = 0. So

Z

Z F · dr −

F · dr = 0, ˜ C

C

or

˜ C

C

Z

Z F · dr =

F · dr. ˜ C

C

R Proposition. If (ii) C F · dr is independent of C for fixed end points and orientation, then (i) F = ∇f for some scalar field f . R Proof. We fix a and define f (r) = C F(r0 ) · dr0 for any curve from a to r. Assuming (ii), f is well-defined. For small changes r to r + δr, there is a small extension of C by δC. Then Z f (r + δr) = F(r0 ) · dr0 C+δC Z Z = F · dr0 + F · dr0 C

δC

= f (r) + F(r) · δr + o(δr). So δf = f (r + δr) − f (r) = F(r) · δr + o(δr). But the definition of grad is exactly δf = ∇f · δr + o(δr). So we have F = ∇f . Note that these results assume F is defined on the whole of R3 . It also works of F is defined on a simply connected domain D, ie a subspace of R3 without holes. By definition, this means that any two curves C, C˜ with fixed end points can be smoothly deformed into one another (alternatively, any loop can be shrunk into a point). ˜ the process sweeps out a If we have a smooth transformation from C to C, ˜ This is required by the proof that (iii) ⇒ (ii). surface bounded by C and C. If D is not simply connected, then we obtain a multi-valued f (r) on D in general (for the proof (ii) ⇒ (i)). However, we can choose to restrict to a subset D0 ⊆ D such that f (r) is single-valued on D0 .

48

8

Some applications of integral theorems

IA Vector Calculus

Example. Take  F=

 −y x , ,0 . x2 + y 2 x2 + y 2

This obeys ∇ × F = 0, and is defined on D = R3 \ {z-axis}, which is not simply-connected. We can also write F = ∇f, where

y . x which is multi-valued. If we integrate it about the closed loop x2 + y 2 = 1, z = 0, i.e. a circle about the z axis, the integral gives 2π, as opposed to the expected 0 for a conservative force. This shows that the simply-connected-domain criterion is important! However f can be single-valued if we restrict it to f = tan−1

D0 = R3 − {half-plane x ≥ 0, y = 0}, which is simply-connected. (Draw and check!) Any closed curve we can draw in this area will have an integral of 0 (the circle mentioned above will no longer be closed!).

8.3

Conservation laws

Definition (Conservation equation). Suppose we are interested in a quantity Q. Let ρ(r, t) be the amount of stuff per unit volume and j(r, t) be the flow rate of the quantity (eg if Q is charge, j is the current density). The conservation equation is ∂ρ + ∇ · j = 0. ∂t This is stronger than the claim that the total amount of Q in the universe is fixed. It says that Q cannot just disappear here and appear elsewhere. It must continuously flow out. In particular, let V be a fixed time-independent volume with boundary S = ∂V . Then Z Q(t) = ρ(r, t) dV V

Then the rate of change of amount of Q in V is Z Z Z dQ ∂ρ = dV = − ∇ · j dV = − j · ds. dt V ∂t V S by divergence theorem. So this states that the rate of change of the quantity Q in V is the flux of the stuff flowing out of the surface. ie Q cannot just disappear but must smoothly flow out. In particular, if V is the whole universe (ie R3 ), and j → 0 sufficiently rapidly as |r| → ∞, then we calculate the total amount of Q in the universe by taking V to be a solid sphere of radius R, and take the limit as R → ∞. Then the surface integral → 0, and the equation states that dQ = 0, dt 49

8

Some applications of integral theorems

IA Vector Calculus

Example. If ρ(r, t) is the charge density (i.e. ρδV is the amount of charge in a small volume δV ), then Q(t) is the total charge in V . j(r, t) is the electric current density. So j · dS is the charge flowing through δS per unit time. Example. Let j = ρu with u being the velocity field. Then (ρu δt) · δS is equal to the mass of fluid crossing δS in time δt. So Z dQ = − j · dS dt S does indeed imply the conservation of mass. The conservation equation in this case is ∂ρ + ∇ · (ρu) = 0 ∂t For the case where ρ is constant and uniform (i.e. independent of r and t), we get that ∇ · u = 0. We say that the fluid is incompressible.

50

9

Orthogonal curvilinear coordinates

9

IA Vector Calculus

Orthogonal curvilinear coordinates

9.1

Line, area and volume elements

In this chapter, we study funny coordinate systems. A coordinate system is, roughly speaking, a way to specify a point in space by a set of (usually 3) numbers. We can think of this as a function r(u, v, w). By the chain rule, we have dr =

∂r ∂r ∂r du + dv + dw ∂u ∂v ∂w

For a good parametrization, ∂r · ∂u



∂r ∂r × ∂v ∂w

 6= 0,

∂r ∂r ∂r , ∂v and ∂w i.e. ∂u are linearly independent. These vectors are tangent to the curves parametrized by u, v, w respectively when the other two are being fixed. Even better, they should be orthogonal:

Definition (Orthogonal curvilinear coordinates). u, v, w are orthogonal curvilinear if the tangent vectors are orthogonal. We can then set ∂r = hu eu , ∂u

∂r = hv ev , ∂v

∂r = hw ew , ∂w

with hu , hv , hw > 0 and eu , ev , ew form an orthonormal right-handed basis (i.e. eu × ev = ew ). Then dr = hu eu du + hv ev dv + hw ew dw, and hu , hv , hw determine the changes in length along each orthogonal direction resulting from changes in u, v, w. Note that clearly by definition, we have ∂r hu = . ∂u Example. ˆ Then hx = hy = hz = 1, (i) In cartesian coordinates, r(x, y, z) = xˆi + yˆj + z k. ˆ ˆ ˆ and ex = i, ey = j and ez = k. ˆ Then hρ = hz = 1, (ii) In cylindrical polars, r(ρ, ϕ, z) = ρ[cos ϕˆi + sin ϕˆj] + z k. and ∂r hϕ = = |(−ρ sin ϕ, ρ sin ϕ, 0)| = ρ. ∂ϕ The basis vectors eρ , eϕ , ez are as in section 1. (iii) In spherical polars, ˆ r(r, θ, ϕ) = r(cos ϕ sin θˆi + sin θ sin ϕˆj + cos θk). Then hr = 1, hθ = r and hϕ = r sin θ. 51

9

Orthogonal curvilinear coordinates

IA Vector Calculus

Consider a surface with w constant and parametrised by u and v. The vector area element is ∂r ∂r dS = × du dv = hu eu × hv ev du dv = hu hv ew du dv. ∂u ∂v We interpret this as δS having a small rectangle with sides approximately hu δu and hv δv. The volume element is   ∂r ∂r ∂r dV = · × du dv dw = hu hv hw du dv dw, ∂u ∂v ∂w i.e. a small cuboid with sides hu δu , hv δv and hw δw respectively.

9.2

Grad, Div and Curl

Consider f (r(u, v, w)) and compare df =

∂f ∂f ∂f du + dv + dw, ∂u ∂v ∂w

with df = (∇f ) · dr. Since we know that ∂r ∂r ∂r du + dv + dw = hu eu du + hv ev dv + hw ew dv, ∂u ∂v ∂w we can compare the terms to know that dr =

Proposition. 1 ∂f 1 ∂f 1 ∂f eu + ev + ew . hu ∂u hv ∂v hw ∂w Example. Take f = r sin θ cos ϕ in spherical polars. Then ∇f =

1 1 ∇f = sin θ cos ϕ er + (r cos θ cos ϕ) eθ + (−r sin θ sin ϕ) eϕ r r sin θ = cos ϕ(sin θ er + cos θ eθ ) − sin ϕ eϕ . Then we know that the differential operator is Proposition. 1 1 1 ∂ ∂ ∂ + + . eu ev ew hu ∂u hv ∂v hw ∂w We can apply this to a vector field ∇=

F = Fu eu + Fv ev + Fw ew using scalar or vector products to obtain Proposition.  ∂ ∂ (hw Fw ) − (hv Fv ) eu + two similar terms ∂v ∂w hu eu hv ev hw ew 1 ∂ ∂ ∂ = ∂u ∂v ∂w hu hv hw hu Fu hv Fv hw Fw

1 ∇×F= hv hw

and



1 ∇·F= hu hv hw



 ∂ (hv hw Fu ) + two similar terms . ∂u 52

9

Orthogonal curvilinear coordinates

IA Vector Calculus

There are several ways to obtain these formulae. We can Proof. (non-examinable) (i) Apply ∇· or ∇× and differentiate the basis vectors explicitly. (ii) First, apply ∇· or ∇×, but calculate the result by writing F in terms of ∇u, ∇v and ∇w in a suitable way. Then use ∇×∇f = 0 and ∇·(∇×f ) = 0. (iii) Use the integral expressions for div and curl. Recall that

Z 1 F · dr. A→0 A ∂A So to calculate the curl, we first find the ew component. n · ∇ × F = lim

Consider an area with W fixed and change u by δu and v by δv. Then this has an area of hu hv δuδv with normal ew . Let C be its boundary. v

C

δv δu

u

We then integrate around the curve C. We split the curve C up into 4 parts (corresponding to the four sides), and take linear approximations by assuming F and h are constant when moving through each horizontal/vertical segment. Z F · dr ≈ Fu (u, v)hu (u, v) δu + Fv (u + δu, v)hv (u + δu, v) δu C

− Fu (u, v + δv)hu (u, v + δv) δu − Fv (u, v)hv (u, v) δv   ∂ ∂ ≈ hv Fv − (hu Fu ) δuδv. ∂u ∂v Divide by the area and take the limit as area → 0, we obtain   Z 1 1 ∂ ∂ lim F · dr = hv Fv − (hu Fu ) . A→0 A C hu hv ∂u ∂v So, by the integral definition of divergence,   1 ∂ ∂ ew · ∇ × F = (hv Fv ) − (hu Fu ) , hu hv ∂u ∂v and similarly for other components. We can find the divergence similarly. Example. Let A = er ∂ 1 ∇×A= 2 r sin θ ∂r 0

1 r

tan θ2 eϕ in spherical polars. Then   reθ r sin θeϕ ∂ θ 1 ∂ ∂ = er sin θ tan = 2 er . ∂θ ∂ϕ r2 sin θ ∂θ 2 r 0 r sin θ · 1r tan θ2 53

10

Gauss’ Law and Poisson’s equation

10 10.1

IA Vector Calculus

Gauss’ Law and Poisson’s equation Laws of gravitation

Consider a distribution of mass producing a gravitational force F on a point mass m at r. The total force is a sum of contributions from each part of the mass distribution, and is proportional to m. Write F = mg(r), Definition (Gravitational field). g(r) is the gravitational field, acceleration due to gravity, or force per unit mass. The gravitational field is conservative, ie I g · dr = 0. C

This means that if you walk around the place and return to the same position, the total work done is 0 and you did not gain energy, i.e. gravitational potential energy is conserved. Gauss’ law tells us what this gravitational field looks like: Law (Gauss’ law for gravitation). Given any volume V bounded by closed surface S, Z g · dS = −4πGM, S

where G is Newton’s gravitational constant, and M is the total mass contained in V . These equations determine g(r) from a mass distribution. Example. We can obtain Newton’s law of gravitation from Gauss’ law together with an assumption about symmetry. Consider a total mass M distributed with a spherical symmetry about the origin O, with all the mass contained within some radius r = a. By spherical symmetry, we have g(r) = g(r)ˆr. ˆ = ˆr. Consider Gauss’ law with S being a sphere of radius r = R > a. Then n So Z Z Z g · dS = g(R)ˆr · ˆr dS = g(R)dS = 4πR2 g(R). S

S

By Gauss’ law, we obtain 4πR2 g(R) = −4πGM. So g(R) = −

GM R2

for R > a. Therefore the gravitational force on a mass m at r is F(r) = −

GM m ˆr. r2

If we take the limit as a → 0, we get a point mass M at the origin. Then we recover Newton’s law of gravitation for point masses. 54

10

Gauss’ Law and Poisson’s equation

The condition theorem as

R C

IA Vector Calculus

g · dr = 0 for any closed C can be re-written by Stoke’s Z ∇ × g · dS = 0, S

where S is bounded by the closed curve C. This is true for arbitrary S. So ∇ × g = 0. In our example above, ∇ × g = 0 due to spherical symmetry. But here we showed that it is true for all cases. Note that we exploited symmetry to solve Gauss’ law. However, if the mass distribution is not sufficiently symmetrical, Gauss’ law in integral form can be difficult to use. But we can rewrite it in differential form. Suppose Z M= ρ(r) dV, V

where ρ is the mass density. Then by Gauss’ theorem Z Z Z g · dS = −4πGM ⇒ ∇ · g dV = −4πGρ dV. S

V

V

Since this is true for all V , we must have Law (Gauss’ Law for gravitation in differential form). ∇ · g = −4πGρ. Since ∇ × g = 0, we can introduce a gravitational potential ϕ(r) with g = −∇ϕ. Then Gauss’ Law becomes ∇2 ϕ = 4πGρ. In the example with spherical symmetry, we can solve that ϕ(r) = −

GM r

for r > a.

10.2

Laws of electrostatics

Consider a distribution of electric charge at rest. They produce a force on a charge q, at rest at r, which is proportional to q. Definition (Electric field). The force produced by electric charges on another charge q is F = qE(r), where E(r) is the electric field, or force per unit charge. Again, this is conservative. So I E · dr = 0 C

for any closed curve C. It also obeys 55

10

Gauss’ Law and Poisson’s equation

IA Vector Calculus

Law (Gauss’ law for electrostatic forces). Z Q E · dS = , ε0 S where ε0 is the permittivity of free space, or electric constant. Then we can write it in differential form, as in the gravitational case. Law (Gauss’ law for electrostatic forces in differential form). ∇·E=

ρ . ε0

Assuming constant (or no) magnetic field, we have ∇ × E = 0. So we can write E = −∇ϕ. Definition (Electrostatic potential). If we write E = −∇ϕ, then ϕ is the electrostatic potential, and ρ ∇2 ϕ = . ε0 Example. Take a spherically symmetric charge distribution about O with total charge Q. Suppose all charge is contained within a radius r = a. Then similar to the gravitational case, we have E(r) =

Qˆr , 4πε0 r2

and

−Q . 4πε0 r As a → 0, we get point charges. From E, we can recover Coulomb’s law for the force on another charge q at r: ϕ(r) =

F = qE =

qQˆr . 4πε0 r2

Example (Line charge). Consider an infinite line with uniform charge density per unit length σ. We use cylindrical polar coordinates: z

E r=

56

p x2 + y 2

10

Gauss’ Law and Poisson’s equation

IA Vector Calculus

By symmetry, the field is radial, i.e. E(r) = E(r)ˆr. Pick S to be a cylinder of length L and radius r. We know that the end caps do not contribute to the flux since the field lines are perpendicular to the normal. Also, the curved surface has area 2πrL. Then by Gauss’ law in integral form, Z σL E · dS = E(r)2πrL = . ε0 S So E(r) =

σ ˆr. 2πε0 r

Note that the field varies as 1/r, not 1/r2 . Intuitively, this is because we have one more dimension of “stuff” compared to the point charge, so the field does not drop as fast.

10.3

Poisson’s Equation and Laplace’s equation

Definition (Poisson’s equation). The Poisson’s equation is ∇2 ϕ = −ρ, where ρ is given and ϕ(r) is to be solved. This is the form of the equations for gravity and electrostatics, with −4πGρ and ρ/ε0 in place of ρ respectively. When ρ = 0, we get Definition (Laplace’s equation). Laplace’s equation is ∇2 ϕ = 0. One example is irrotational and incompressible fluid flow: if the velocity is u(r), then irrotationality gives u = ∇ϕ for some velocity potential ϕ. Since it is incompressible, ∇ · u = 0 (cf. previous chapters). So ∇2 ϕ = 0. The expressions for ∇2 can be found in non-Cartesian coordinates, but are a bit complicated. We’re concerned here mainly with cases exhibiting spherical or cylindrical symmetry (use r for radial coordinate here). i.e. when ϕ(r) has spherical or cylindrical symmetry. Write ϕ = ϕ(r). Then ∇ϕ = ϕ0 (r)ˆr. Then Laplace’s equation ∇2 ϕ = 0 becomes an ordinary differential equation. – For spherical symmetry, using the chain rule, we have 2 1 ∇2 ϕ = ϕ00 + ϕ0 = 2 (r2 ϕ0 )0 = 0. r r Then the general solution is ϕ= 57

A + B. r

10

Gauss’ Law and Poisson’s equation

IA Vector Calculus

– For cylindrical symmetry, with r2 = x21 + x22 , we have 1 1 ∇2 ϕ = ϕ00 + ϕ0 = (rϕ0 )0 = 0. r r Then ϕ = A ln r + B. Then solutions to Poisson’s equations can be obtained in a similar way, i.e. by integrating the differential equations directly, or by adding particular integrals to the solutions above. For example, for a spherically symmetric solution of ∇2 ϕ = −ρ0 , with ρ0 constant, recall that ∇2 rα = α(α + 1)rα−2 . Taking α = 2, we find the particular integral ρ0 ϕ = − r2 , 6 So the general solution with spherical symmetry and constant ρ0 is ϕ(r) =

A 1 + B − ρ0 r 2 . r 6

To determine A, B, we must specify boundary conditions. If ϕ is defined on all of R3 , we often require ϕ → 0 as |r| → ∞. If ϕ is defined on a bounded volume V , then there are two kinds of common boundary conditions on ∂V : – Specify ϕ on ∂V — a Dirichlet condition – Specify n · ∇ϕ (sometimes written as the outward normal on ∂V ).

∂ϕ ∂n ):

a Neumann condition. (n is

The type of boundary conditions we get depends on the physical content of the problem. For example, specifying ∂ϕ ∂n corresponds to specifying the normal component of g or E. We can also specify different boundary conditions on different boundary components. Example. We might have a spherically symmetric distribution with constant ρ0 , defined in a ≤ r ≤ b, with ϕ(a) = 0 and ∂ϕ ∂n (b) = 0. Then the general solution is ϕ(r) =

1 A + B − ρ0 r 2 . r 6

We apply the first boundary condition to obtain A 1 + B − ρ0 a2 = 0. a 6 The second boundary condition gives n · ∇ϕ = −

A 1 − ρ0 b = 0. 2 b 3

These conditions give 1 A = − ρ 0 b3 , 3

B= 58

1 1 b3 ρ0 a2 + ρ0 . 5 3 a

10

Gauss’ Law and Poisson’s equation

IA Vector Calculus

Example. We might also be interested with spherically symmetric solution with ( −ρ0 r ≤ a 2 ∇ ϕ= 0 r>a with ϕ non-singular at r = 0 and ϕ(r) → 0 as r = a. This models the gravitational potential Then the general solution from above is ( A + B − 61 ρ0 r2 ϕ = Cr r +D

r → ∞, and ϕ, ϕ0 continuous at on a uniform planet. r≤a r > a.

Since ϕ is non-singular at r = 0, we have A = 0. Since ϕ → 0 as r → ∞, D = 0. So ( B − 1 ρ0 r 2 r ≤ a ϕ= C 6 r > a. r This is the gravitational potential inside and outside a planet of constant density ρ0 and radius a. We want ϕ and ϕ0 to be continuous at r = a. So we have 1 C B + 4πρ0 Ga2 = 6 a 4 C πGρ0 a = − 2 . 3 a The second equation gives C = −GM . Substituting that into the first equation to find B, we get (   r2 GM −3 r≤a 2a a ϕ(r) = GM − r r>a Since g = −ϕ0 , we have ( g(r) =

r − GM a3 − GM r

r≤a r>a

We can plot the potential energy: ϕ(r) r=a

r

We can also plot −g(r), the inward acceleration: −g(r)

r=a

59

r

10

Gauss’ Law and Poisson’s equation

IA Vector Calculus

Alternatively, we can apply Gauss’ Law for a flux of g = g(r)er out of S, a sphere of radius R. For R ≤ a, Z



2

g · dS = 4πR g(R) = −4πGM S

R a

3

So

GM R . a3 For R ≥ a, we can simply apply Newton’s law of gravitation. In general, even if the problem has nothing to do with gravitation or electrostatics, if we want to solve ∇2 ϕ = −ρ with ρ and ϕ sufficiently symmetric, we can consider the flux of ∇ϕ out of a surface S = ∂V : Z Z ∇ϕ · dS = − ρ dV, g(R) = −

S

V

by divergence theorem. This is called the Gauss Flux method.

60

11

Laplace’s and Poisson’s equations

11

IA Vector Calculus

Laplace’s and Poisson’s equations

11.1

Uniqueness theorems

Theorem. Consider ∇2 ϕ = −ρ for some ρ(r) on a bounded volume V with S = ∂V being a closed surface, with an outward normal n. Suppose ϕ satisfies either (i) Dirichlet condition, ϕ(r) = f (r) on S (ii) Neumann condition

∂ϕ(r) ∂n

= n · ∇ϕ = g(r) on S.

where f, g are given. Then (i) ϕ(r) is unique (ii) ϕ(r) is unique up to a constant. This theorem is practically important - if you find a solution by any magical means, you know it is the only solution (up to a constant). Since the proof of the cases of the two different boundary conditions are very similar, they will be proved together. When the proof is broken down into (i) and (ii), it refers to the specific cases of each boundary condition. Proof. Let ϕ1 (r) and ϕ2 (r) satisfy Poisson’s equation, each obeying the boundary conditions (N) or (D). Then Ψ(r) = ϕ2 (r) − ϕ1 (r) satisfies ∇2 Ψ = 0 on V by linearity, and (i) Ψ = 0 on S; or (ii)

∂Ψ ∂n

= 0 on S.

Combining these two together, we know that Ψ ∂Ψ ∂n = 0 on the surface. So using the divergence theorem, Z Z ∇ · (Ψ∇Ψ) dV = (Ψ∇Ψ) · dS = 0. V

S

But 2 2 ∇ · (Ψ∇Ψ) = (∇Ψ) · (∇Ψ) + Ψ ∇ | {zΨ} = |(∇Ψ)| . =0

So

Z

|∇Ψ|2 dV = 0.

V

Since |∇Ψ|2 ≥ 0, the integral can only vanish if |∇Ψ| = 0. So ∇Ψ = 0. So Ψ = c, a constant on V . So (i) Ψ = 0 on S ⇒ c = 0. So ϕ1 = ϕ2 on V . (ii) ϕ2 (r) = ϕ1 (r) + C, as claimed.

61

11

Laplace’s and Poisson’s equations

IA Vector Calculus

We’ve proven uniqueness. How about existence? It turns out it isn’t difficult to craft a boundary condition in which there are no solutions. For example, if we have ∇2 ϕ = −ρ on V with the condition ∂ϕ ∂n = g, then by the divergence theorem, Z Z ∂ϕ 2 ∇ ϕ dV = dS. V ∂S ∂n Using Poisson’s equation and the boundary conditions, we have Z Z ρ dV + g dS = 0 V

∂V

So if ρ and g don’t satisfy this equation, then we can’t have any solutions. The theorem can be similarly proved and stated for regions in R2 , R3 , · · · , by using the definitions of grad, div and the divergence theorem. The result also extends to unbounded domains. To prove it, we can take a sphere of radius R 2 and impose the boundary conditions |Ψ(r)| = O(1/R) or | ∂Ψ ∂n (r)| = O(1/R ) as R → ∞. Then we just take the relevant limits to complete the proof. Similar results also apply to related equations and different kinds of boundary conditions, eg D or N on different parts of the boundary. But we have to analyse these case by case and see if the proof still applies. The proof uses a special case of the result Proposition (Green’s first identity). Z Z Z (u∇v) · dS = (∇u) · (∇v) dV + u∇2 v dV, S

V

V

By swapping u and v around and subtracting the equations, we have Proposition (Green’s second identity). Z Z (u∇v − v∇u) · dS = (u∇2 v − v∇2 u) dV. S

V

These are sometimes useful, but can be easily deduced from the divergence theorem when needed.

11.2

Laplace’s equation and harmonic functions

Definition (Harmonic function). A harmonic function is a solution to Laplace’s equation ∇2 ϕ = 0. These have some very special properties. 11.2.1

The mean value property

Proposition (Mean value property). Suppose ϕ(r) is harmonic on region V containing a solid sphere defined by |r − a| ≤ R, with boundary SR = |r − a| = R, for some R. Define Z 1 ϕ(R) ¯ = ϕ(r) dS. 4πR2 SR Then ϕ(a) = ϕ(R). ¯ 62

11

Laplace’s and Poisson’s equations

IA Vector Calculus

In words, this says that the value at the center of a sphere is the average of the values on the surface on the sphere. Proof. Note that ϕ(R) ¯ → ϕ(a) as R → 0. We take spherical coordinates (u, θ, χ) centered on r = a. The scalar element (when u = R) on SR is dS = R2 sin θ dθ dχ. So

dS R2

is independent of R. Write ϕ(R) ¯ =

1 4π

Z ϕ

dS . R2

Differentiate this with respect to R, noting that dS/R2 is independent of R. Then we obtain Z d 1 ∂ϕ dS ϕ(R) ¯ = dR 4πR2 ∂u u=R But

∂ϕ ∂ϕ = eu · ∇ϕ = n · ∇ϕ = ∂u ∂n

on SR . So d 1 ϕ(R) ¯ = dR 4πR2

Z ∇ϕ · dS = SR

1 4πR2

Z

∇2 ϕ dV = 0

VR

by divergence theorem. So ϕ(R) ¯ does not depend on R, and the result follows. 11.2.2

The maximum (or minimum) principle

In this section, we will talk about maxima of functions. It should be clear that the results also hold for minima. Definition (Local maximum). We say that ϕ(r) has a local maximum at a if for some ε > 0, ϕ(r) < ϕ(a) when 0 < |r − a| < ε. Proposition (Maximum principle). If a function ϕ is harmonic on a region V , then ϕ cannot have a maximum at an interior point of a of V . Proof. Suppose that ϕ had a local maximum at a in the interior. Then there is an ε such that for any r such that 0 < |r − a| < ε, we have ϕ(r) < ϕ(a). Note that if there is an ε that works, then any smaller ε will work. Pick an ε sufficiently small such that the region |r − a| < ε lies within V (possible since a lies in the interior of V ). Then for any r such that |r − a| = ε, we have ϕ(r) < ϕ(a). Z 1 ϕ(ε) ¯ = ϕ(r) dS < ϕ(a), 4πR2 SR which contradicts the mean value property. We can understand this by performing a local analysis of stationary points by differentiation. Suppose at r = a, we have ∇ϕ = 0. Let the eigenvalues of the 2 Hessian matrix Hij = ∂x∂i ∂xj be λi . But since ϕ is harmonic, we have ∇2 ϕ = 0, 63

11

Laplace’s and Poisson’s equations

IA Vector Calculus

2

ϕ i.e. ∂x∂i ∂x = Hii = 0. But i P Hii is the trace of the Hessian matrix, which is the sum of eigenvalues. So λi = 0. Recall that a maximum or minimum occurs when all eigenvalues have the same sign. This clearly cannot happen if the sum is 0. Therefore we can only have saddle points. (note we ignored the case where all λi = 0, where this analysis is inconclusive)

11.3 11.3.1

Integral solutions of Poisson’s equations Statement and informal derivation

We want to find a solution to Poisson’s equations. We start with a discrete case, and try to generalize it to a continuous case. If there is a single point source of strength λ at a, the potential ϕ is ϕ=

1 λ . 4π |r − a|

(we have λ = −4πGM for gravitation and Q/ε0 for electrostatics) If we have many sources λα at positions rα , the potential is a sum of terms ϕ(r) =

X 1 λα . 4π |r − rα | α

If we have infinitely many of them, having a distribution of ρ(r) with ρ(r0 ) dV 0 being the contribution from a small volume at position r0 . It would be reasonable to guess that the solution is what we obtain by replacing the sum with an integral: Proposition. The solution to Poisson’s equation ∇2 ϕ = −ρ, with boundary conditions |ϕ(r)| = O(1/|r|) and |∇ϕ(r)| = O(1/|r|2 ), is Z ρ(r0 ) 1 dV 0 ϕ(r) = 4π V 0 |r − r0 | For ρ(r0 ) non-zero everywhere, but suitably well-behaved as |r0 | → ∞, we can also take V 0 = R3 . Example. Suppose ( 2

∇ ϕ=

−ρ0 0

|r| ≤ a |r| > a.

Fix r and introduce polar coordinates r0 , θ, χ for r0 . We take the θ = 0 direction to be the direction along the line from r0 to r. Then Z 1 ρ0 ϕ(r) = dV 0 . 4π V 0 |r − r0 | We have dV 0 = r02 sin θ dr0 dθ dχ. We also have |r − r0 | =

p

r2 + r02 − 2rr0 cos θ

64

11

Laplace’s and Poisson’s equations

IA Vector Calculus

by the cosine rule (c2 = a2 + b2 − 2ab cos C). So Z π Z 2π Z a ρ0 r02 sin θ 1 0 dθ dχ √ ϕ(r) = dr 4π 0 r2 + r02 − 2rr0 cos θ 0 0 Z a iθ=π 02 hp r ρ0 dr0 0 = r2 + r02 − rr0 cos θ 2 0 rr θ=0 Z a 0 ρ0 r = dr0 (|r + r0 | + |r − r0 |) 2 0 r ( !# Z a" 0 2r0 r > r0 ρ0 0r dr = 2 0 r 2r r < r0 If r > a, then r > r0 always. So Z ϕ(r) = ρ0 0

a

r02 0 r0 a3 dr = . r 3r

If r < a, then the integral splits into two parts:  Z r   Z a 02 1 2 a2 0 0 0r ϕ(r) = ρ0 + dr r = ρ0 − r + dr . r 6 2 r 0 11.3.2

Point sources and δ-functions*

Recall that Ψ=

λ 4π|r − a|

is our potential for a point source. When r 6= a, we have ∇Ψ = −

λ r−a , 4π |r − a|3

∇2 Ψ = 0.

What about when r = a? Ψ is singular at this point, but can we say anything about ∇2 Ψ? For any sphere with center a, we have Z ∇Ψ · dS = −λ. S

By the divergence theorem, we have Z ∇2 Ψ dV = −λ. for V being a solid sphere with ∂V = S. Since ∇2 Ψ is zero at any point r 6= a, we must have ∇2 Ψ = −λδ(r − a), where δ is the 3d delta function, which satisfies Z f (r)δ(r − a) dV = f (a) V

for any volume containing a. 65

11

Laplace’s and Poisson’s equations

IA Vector Calculus

In short, we have ∇2



1 |r − r0 |



= −4πδ(r − r0 ).

Using these, we can verify that the integral solution of Poisson’s equation we obtained previously is correct:   Z 1 ρ(r0 ) 2 2 0 ∇ Ψ(r) = ∇ dV 4π V 0 |r − r0 |   Z 1 1 0 2 = ρ(r )∇ dV 0 4π V 0 |r − r0 | Z =− ρ(r0 )δ(r − r0 ) dV 0 V0

= −ρ(r), as required.

66

12

Maxwell’s equations

12 12.1

IA Vector Calculus

Maxwell’s equations Laws of electromagnetism

Maxwell’s equations are a set of four equations that describe the behaviours of electromagnetism. Together with the Lorentz force law, these describe all we know about (classical) electromagnetism. All other results we know are simply mathematical consequences of these equations. It is thus important to understand the mathematical properties of these equations. To begin with, there are two fields that govern electromagnetism, known as the electric and magnetic field. These are denoted by E(r, t) and B(r, t) respectively. To understand electromagnetism, we need to understand how these fields are formed, and how these fields affect charged particles. The second is rather straightforward, and is given by the Lorentz force law. Law (Lorentz force law). A point charge q experiences a force of F = q(E + r˙ × B). The dynamics of the field itself is governed by Maxwell’s equations. To state the equations, we need to introduce two more concepts. Definition (Charge and current density). ρ(r, t) is the charge density, defined as the charge per unit volume. j(r, t) is the current density, defined as the electric current per unit area of cross section. Then Maxwell’s equations say Law (Maxwell’s equations). ρ ε0 ∇·B=0 ∂B ∇×E+ =0 ∂t ∂E ∇ × B − µ0 ε0 = µ0 j, ∂t ∇·E=

where ε0 is the electric constant (permittivity of free space) and µ0 is the magnetic constant (permeability of free space), which are constants determined experimentally. We can quickly derive some properties we know from these four equations. The conservation of electric charge comes from taking the divergence of the last equation. ∂ ∇ · (∇ × B) −µ0 ε0 (∇ · E) = µ0 ∇ · j. | {z } ∂t | {z } =0

So

=ρ/ε0

∂ρ + ∇ · j = 0. ∂t 67

12

Maxwell’s equations

IA Vector Calculus

We can also take the volume integral of the first equation to obtain Z Z 1 Q ∇ · E dV = ρ dV = . ε ε 0 V 0 V By the divergence theorem, we have Z Q E · dS = , ε0 S which is Gauss’ law for electric fields We can integrate the second equation to obtain Z B · dS = 0. S

This roughly states that there are no “magnetic charges”. The remaining Maxwell’s equations also have integral forms. For example, Z Z Z d B · dS, E · dr = ∇ × E dS = − dt S C=∂S S where the first equality is from from Stoke’s theorem. This says that a changing magnetic field produces a current.

12.2

Static charges and steady currents

If ρ, j, E, B are all independent of time, E and B are no longer linked. We can solve the equations for electric fields: ∇ · E = ρ/ε0 ∇×E=0 Second equation gives E = −∇ϕ. Substituting into first gives ∇2 ϕ = −ρ/ε0 . The equations for the magnetic field are ∇·B=0 ∇ × B = µ0 j First equation gives B = ∇ × A for some vector potential A. But the vector potential is not well-defined. Making the transformation A 7→ A + ∇χ(x) produces the same B, since ∇ × (∇χ) = 0. So choose χ such that ∇ · A = 0. Then ∇2 A = ∇(∇ · A}) − ∇ × (∇ × A) = −µ0 j. | {z | {z } =0

B

In summary, we have Electrostatics

Magnetostatics

∇ · E = ρ/ε0 ∇×E=0 ∇2 ϕ = −ρ/ε0 ε0 sets the scale of electrostatic effects, e.g. the Coulomb force

∇·B=0 ∇ × B = µ0 j ∇2 A = −µ0 j. µ0 sets the scale of magnetic effects, e.g. force between two wires with currents.

68

12

Maxwell’s equations

12.3

IA Vector Calculus

Electromagnetic waves

Consider Maxwell’s equations in empty space, i.e. ρ = 0, j = 0. Then Maxwell’s equations give ∇2 E = ∇(∇ · E) − ∇ × (∇ × E) = ∇ × Define c =

√ 1 µ0 ε0 .

∂B ∂ ∂2E = (∇ × B) = µ0 ε0 2 . ∂t ∂t ∂ t

Then the equation gives   1 ∂2 ∇2 − 2 2 E = 0. c ∂t

This is the wave equation describing propagation with speed c. Similarly, we can obtain   1 ∂2 ∇2 − 2 2 B = 0. c ∂t So Maxwell’s equations predict that there exists electromagnetic waves in free space, which move with speed c = √ε10 µ0 ≈ 3.00 × 108 m s−1 , which is the speed of light! Maxwell then concluded that light is electromagnetic waves!

69

13

Tensors and tensor fields

13 13.1

IA Vector Calculus

Tensors and tensor fields Definition

There are two ways we can think of a vector in R3 . We can either interpret it as a “point” in space, or we can view it simply as a list of three numbers. However, the list of three numbers is simply a representation of the vector with respect to some particular basis. When we change basis, in order to represent the same point, we will need to use a different list of three numbers. In particular, when we perform a rotation by Rip , the new components of the vector is given by vi0 = Rip vp . Similarly, we can imagine a matrix as either a linear transformation or an array of 9 numbers. Again, when we change basis, in order to represent the same transformation, we will need a different array of numbers. This time, the transformation is given by A0ij = Rip Rjq Apq . We can think about this from another angle. To define an arbitrary quantity Aij , we can always just write down 9 numbers and be done with it. Moreover, we can write down a different set of numbers in a different basis. For example, we can define Aij = δij in our favorite basis, but Aij = 0 in all other bases. We can do so because we have the power of the pen. However, for this Aij to represent something physically meaningful, i.e. an actual linear transformation, we have to make sure that the components of Aij transform sensibly under a basis transformation. By “sensibly”, we mean that it has to follow the transformation rule A0ij = Rip Rjq Apq . For example, the Aij we defined in the previous paragraph does not transform sensibly. While it is something we can define and write down, it does not correspond to anything meaningful. The things that transform sensibly are known as tensors. For example, vectors and matrices (that transform according to the usual change-of-basis rules) are tensors, but that Aij is not. In general, tensors are allowed to have an arbitrary number of indices. In order for a quantity Tij···k to be a tensor, we require it to transform according to 0 Tij···k = Rip Rjq · · · Rkr Tpq···r ,

which is an obvious generalization of the rules for vectors and matrices. Definition (Tensor). A tensor of rank n has components Tij···k (with n indices) with respect to each basis {ei } or coordinate system {xi }, and satisfies the following rule of change of basis: 0 Tij···k = Rip Rjq · · · Rkr Tpq···r .

Example. – A tensor T of rank 0 doesn’t transform under change of basis, and is a scalar.

70

13

Tensors and tensor fields

IA Vector Calculus

– A tensor T of rank 1 transforms under Ti0 = Rip Tp . This is a vector. – A tensor T of rank 2 transforms under Tij0 = Rip Rjq Tpq . This is a matrix. Example. (i) If u, v, · · · w are n vectors, then Tij···k = ui vj · · · wk defines a tensor of rank n. To check this, we check the tensor transformation rule. We do the case for n = 2 for simplicity of expression, and it should be clear that this can be trivially extended to arbitrary n: Tij0 = u0i vj0 = (Rip up )(Rjq vq ) = Rip Rjq (up vq ) = Rip Rjq Tpq Then linear combinations of such expressions are also tensors, e.g. Tij = ui vj + ai bj for any u, v, a, b. (ii) δij and εijk are tensors of rank 2 and 3 respectively — with the special property that their components are unchanged with respect to the basis coordinate: 0 δij = Rip Rjq δpq = Rip Rjp = δij , since Rip Rjp = (RRT )ij = Iij . Also ε0ijk = Rip Rjq Rkr εpqr = (det R)εijk = εijk , using results from Vectors and Matrices. (iii) (Physical example) In some substances, an applied electric field E gives rise to a current density j, according to the linear relation ji = εij Ej , where εij is the conductivity tensor. Note that this relation entails that the resulting current need not be in the same direction as the electric field. This might happen if the substance has special crystallographic directions that favours electric currents. However, if the substance is isotropic, we have εij = σδij for some σ. In this case, the current is parallel to the field.

13.2

Tensor algebra

Definition (Tensor addition). Tensors T and S of the same rank can be added ; T + S is also a tensor of the same rank, defined as (T + S)ij···k = Tij···k + Sij···k . in any coordinate system. To check that this is a tensor, we check the transformation rule. Again, we only show for n = 2: 0 (T + S)0ij = Tij0 + Sij = Rip Rjq Tpq + Rip Rjq Spq = (Rip Rjq )(Tpq + Spq ).

71

13

Tensors and tensor fields

IA Vector Calculus

Definition (Scalar multiplication). A tensor T of rank n can be multiplied by a scalar α. αT is a tensor of the same rank, defined by (αT )ij = αTij . It is trivial to check that the resulting object is indeed a tensor. Definition (Tensor product). Let T be a tensor of rank n and S be a tensor of rank m. The tensor product T ⊗ S is a tensor of rank n + m defined by (T ⊗ S)x1 x2 ···xn y1 y2 ···ym = Tx1 x2 ···xn Sy1 y2 ···yn . It is trivial to show that this is a tensor. We can similarly define tensor products for any (positive integer) number of tensors, e.g. for n vectors u, v · · · , w, we can define T = u ⊗ v ⊗ ··· ⊗ w by Tij···k = ui vj · · · wk , as defined in the example in the beginning of the chapter. Definition (Tensor contraction). For a tensor T of rank n with components Tijp···q , we can contract on the indices i, j to obtain a new tensor of rank n − 2: Sp···q = δij Tijp···q = Tiip···q Note that we don’t have to always contract on the first two indices. We can contract any pair we like. To check that contraction produces a tensor, we take the ranks 2 Tij example. Contracting, we get Tii ,a rank-0 scalar. We have Tii0 = Rip Riq Tpq = δpq Tpq = Tpp = Tii , since R is an orthogonal matrix. If we view Tij as a matrix, then the contraction is simply the trace of the matrix. So our result above says that the trace is invariant under basis transformations — as we already know in IA Vectors and Matrices. Note that our usual matrix product can be formed by first applying a tensor product to obtain Mij Npq , then contract with δjp to obtain Mij Njq .

13.3

Symmetric and antisymmetric tensors

Definition (Symmetric and anti-symmetric tensors). A tensor T of rank n is symmetric in the indices i, j if it obeys Tijp···q = Tjip···q . It is anti-symmetric if Tijp···q = −Tjip···q . Again, a tensor can be symmetric or anti-symmetric in any pair of indices, not just the first two.

72

13

Tensors and tensor fields

IA Vector Calculus

This is a property that holds in any coordinate systems, if it holds in one, since 0 0 Tk`r...s = Rki R`j Rrp · · · Rsq Tijp···q = ±Rki R`j Rrp · · · Rsq Tjip···q = ±T`kr···s

as required. Definition (Totally symmetric and anti-symmetric tensors). A tensor is totally (anti-)symmetric if it is (anti-)symmetric in every pair of indices. Example. δij = δji is totally symmetric, while εijk = −εjik is totally antisymmetric. There are totally symmetric tensors of arbitrary rank n. But in R3 , – Any totally antisymmetric tensor of rank 3 is λεijk for some scalar λ. – There are no totally antisymmetric tensors of rank greater than 3, except for the trivial tensor with all components 0. Proof: exercise (hint: pigeonhole principle)

13.4

Tensors, multi-linear maps and the quotient rule

Tensors as multi-linear maps In Vectors and Matrices, we know that matrices are linear maps. We will prove an analogous fact for tensors. Definition (Multilinear map). A map T that maps n vectors a, b, · · · , c to R is multi-linear if it is linear in each of the vectors a, b, · · · , c individually. We will show that a tensor T of rank n is a equivalent to a multi-linear map from n vectors a, b, · · · , c to R defined by T (a, b, · · · , c) = Tij···k ai bj · · · ck . To show that tensors are equivalent to multi-linear maps, we have to show the following: (i) Defining a map with a tensor makes sense, i.e. the expression Tij···k ai bj · · · ck is the same regardless of the basis chosen; (ii) While it is always possible to write a multi-linear map as Tij···k ai bj · · · ck , we have to show that Tij···k is indeed a tensor, i.e. transform according to the tensor transformation rules. To show the first property, just note that the Tij···k ai bj · · · ck is a tensor product (followed by contraction), which retains tensor-ness. So it is also a tensor. In particular, it is a rank 0 tensor, i.e. a scalar, which is independent of the basis. To show the second property, assuming that T is a multi-linear map, it must be independent of the basis, so 0 Tij···k ai bj · · · ck = Tij···k a0i b0j · · · c0k .

73

13

Tensors and tensor fields

IA Vector Calculus

Since vp0 = Rpi vi by tensor transformation rules, multiplying both sides by Rpi gives vi = Rpi vp0 . Substituting in gives 0 Tij···k (Rpi a0p )(Rqj b0q ) · · · (Rkr c0r ) = Tpq···r a0p b0q · · · c0r .

Since this is true for all a, b, · · · c, we must have 0 Tij···k Rpi Rqj · · · Rrk = Tpq···r

Hence Tij···k obeys the tensor transformation rule, and is a tensor. This shows that there is a one-to-one correspondence between tensors of rank n and multi-linear maps. This gives a way of thinking about tensors independent of any coordinate system or choice of basis, and the tensor transformation rule emerges naturally. Note that the above is exactly what we did with linear maps and matrices. The quotient rule If Ti · · · j p · · · q is a tensor of rank n + m, and up···q is a tensor of rank m then | {z } | {z } n

m

vi,···j = Ti···jp···q up···q is a tensor of rank n, since it is a tensor product of T and u, followed by contraction. The converse is also true: Proposition (Quotient rule). Suppose that Ti···jp···q is an array defined in each coordinate system, and that vi···j = Ti···jp···q up···q is also a tensor for any tensor up···q . Then Ti···jp···q is also a tensor. Note that we have previously seen the special case of n = m = 1, which says that linear maps are tensors. Proof. We can check the tensor transformation rule directly. However, we can reuse the result above to save some writing. Consider the special form up···q = cp · · · dq for any vectors c, · · · d. By assumption, vi···j = Ti···jp···q cp · · · dq is a tensor. Then vi···j ai · · · bj = Ti···jp···q ai · · · bj cp · · · dq is a scalar for any vectors a, · · · , b, c, · · · , d. Since Ti···jp···q ai · · · bj cp · · · dq is a scalar and hence gives the same result in every coordinate system, Ti···jp···q is a multi-linear map. So Ti···jp···q is a tensor.

13.5

Tensor calculus

Tensor fields and derivatives Just as with scalars or vectors, we can define tensor fields:

74

13

Tensors and tensor fields

IA Vector Calculus

Definition (Tensor field). A tensor field is a tensor at each point in space Tij···k (x), which can also be written as Tij···k (x` ). We assume that the fields are smooth so they can be differentiated any number of times ∂ ∂ ··· Tij···k , ∂xp ∂xq except for where things obviously fail, e.g. for where T is not defined. We now claim: Proposition. ∂ ∂ T · · · k, ··· ∂xp ∂xq ij } {z } | {z | n

(∗)

m

is a tensor of rank n + m. Proof. To show this, it suffices to show that ∂x∂ p satisfies the tensor transformation rules for rank 1 tensors (i.e. it is something like a rank 1 tensor). Then by the exact same argument we used to show that tensor products preserve tensorness, we can show that the (∗) is a tensor. (we cannot use the result of tensor products directly, since this is not exactly a product. But the exact same proof works!) Since x0i = Riq xq , we have ∂x0i = Rip . ∂xp (noting that

∂xp ∂xq

= δpq ). Similarly, ∂xq = Riq . ∂x0i

Note that Rip , Riq are constant matrices. Hence by the chain rule,   ∂ ∂xq ∂ ∂ = = Riq . ∂x0i ∂x0i ∂xq ∂xq So

∂ ∂xp

obeys the vector transformation rule. So done.

Integrals and the tensor divergence theorem It is also straightforward to do integrals. Since we can sum tensors and take limits, the definition R of a tensor-valued integral is straightforward. For example, V Tij···k (x) dV is a tensor of the same rank as Tij···k (think of the integral as the limit of a sum). For a physical example, recall our discussion of the flux of quantities for a fluid with velocity u(x) through a surface element — assume a uniform density ρ. The flux of volume is u · nδs = uj nj δS. So the flux of mass is ρuj nj δS. Then the flux of the ith component of momentum is ρui uj nj δS = Tij nj kδS

75

13

Tensors and tensor fields

IA Vector Calculus

(mass R times velocity), where Tij = ρui uj . Then the flux through the surface S is S Tij nj dS. It is easy to generalize the divergence theorem from vectors to tensors. We can then use it to discuss conservation laws for tensor quantities. Let V be a volume bounded by a surface S = ∂V and Tij···k` be a smooth tensor field. Then Theorem (Divergence theorem for tensors). Z Z ∂ Tij···k` n` dS = (Tij···k` ) dV, S V ∂x` with n being an outward pointing normal. The regular divergence theorem is the case where T has one index and is a vector field. Proof. Apply the usual divergence theorem to the vector field v defined by v` = ai bj · · · ck Tij···k` , where a, b, · · · , c are fixed constant vectors. Then ∂v` ∂ ∇·v = = ai bj · · · ck Tij···k` , ∂x` ∂x` and n · v = n` v` = ai bj · · · ck Tij···k` n` . Since a, b, · · · , c are arbitrary, therefore they can be eliminated, and the tensor divergence theorem follows.

76

14

Tensors of rank 2

14 14.1

IA Vector Calculus

Tensors of rank 2 Decomposition of a second-rank tensor

This decomposition might look arbitrary at first sight, but as time goes on, you will find that it is actually very useful in your future career (at least, the lecturer claims so). Any second rank tensor can be written as a sum of its symmetric and anti-symmetric parts Tij = Sij + Aij , where

1 1 (Tij + Tji ), Aij = (Tij − Tji ). 2 2 Here Tij has 9 independent components, whereas Sij and Aij have 6 and 3 independent components, since they must be of the form     a d e 0 a b (Sij ) = d b f  , (Aij ) = −a 0 c  . e f c −b −c 0 Sij =

The symmetric part can be be further reduced to a traceless part plus an isotropic (i.e. multiple of δij ) part: 1 Sij = Pij + δij Q, 3 where Q = Sii is the trace of Sij and Pij = Pji = Sij − 31 δij Q is traceless. Then Pij has 5 independent components while Q has 1. Since the antisymmetric part has 3 independent components, just like a usual vector, we should be able to write Ai in terms of a single vector. In fact, we can write the antisymmetric part as Aij = εijk Bk for some vector B. To figure out what this B is, we multiply by εij` on both sides and use some magic algebra to obtain Bk =

1 1 εijk Aij = εijk Tij , 2 2

where the last equality is from the fact that only antisymmetric parts contribute to the sum. Then   0 B3 −B2 0 B1  (Aij ) = −B3 B2 −B1 0 To summarize, 1 Tij = Pij + εijk Bk + δij Q, 3 where Bk = 21 εpqj Tpq , Q = Tkk and Pij = Pji =

77

Tij +Tji 2

− 13 δij Q.

14

Tensors of rank 2

IA Vector Calculus

∂Fi Example. The derivative of a vector field Fi (r) is a tensor Tij = ∂x , a tensor j field. Our decomposition given above has the symmetric traceless piece     1 ∂Fi ∂Fj 1 ∂Fk 1 ∂Fi ∂Fj 1 Pij = + − δij = + − δij ∇ · F, 2 ∂xj ∂xi 3 ∂xk 2 ∂xj ∂xi 3

an antisymmetric piece Aij = εijk Bk , where Bk =

1 ∂Fi 1 εijk = − (∇ × F)k . 2 ∂xj 2

and trace Q=

∂Fk = ∇ · F. ∂xk

Hence a complete description involves a scalar ∇ · F, a vector ∇ × F, and a symmetric traceless tensor Pij .

14.2

The inertia tensor

Consider masses mα with positions rα , all rotating with angular velocity ω about 0. So the velocities are vα = ω × rα . The total angular momentum is X L= rα × mα vα α

=

X

mα rα × (ω × rα )

α

=

X

mα (|rα |2 ω − (rα · ω)rα ).

α

by vector identities. In components, we have Li = Iij ωj , where Definition (Inertia tensor). The inertia tensor is X Iij = mα [|rα |2 δij − (rα )i (rα )j ]. α

For a rigid body occupying volume V with mass density ρ(r), we replace the sum with an integral to obtain Z Iij = ρ(r)(xk xk δij − xi xj ) dV. V

By inspection, I is a symmetric tensor. Example. Consider a rotating cylinder with uniform density ρ0 . The total mass is 2`πa2 ρ0 .

78

14

Tensors of rank 2

IA Vector Calculus

x3 a 2` x1

x2 Use cylindrical polar coordinates: x1 = r cos θ x2 = r sin θ x3 = x3 dV = r dr dθ dx3 We have Z I33 =

ρ0 (x21 + x22 ) dV

V

Z

a

Z



Z

`

= ρ0 0

0

 = ρ0 · 2π · 2`

r2 (r dr dθ dx2 )

−`  4 a

r 4

0

= ε0 π`a4 . Similarly, we have Z I11 =

ρ0 (x22 + x23 ) dV

V

Z

a

Z



Z

`

(r2 sin2 θ + x23 )r dr dθ dx3 0 0 −`  3 ` ! Z a Z 2π x ` 2 2 dθ dr = ρ0 r r sin θ [x3 ]−` + 3 3 −` 0 0  Z a Z 2π  2 = ρ0 r r2 sin2 θ2` + `3 dθ dr 3 0 0   Z a Z 2π 2 3 2 2 = ρ0 2πa · ` + 2` r dr sin θ 3 0 0  2  a 2 = ρ0 πa2 ` + `2 2 3 = ρ0

By symmetry, the result for I22 is the same.

79

14

Tensors of rank 2

IA Vector Calculus

How about the off-diagonal elements? Z I13 = − ρ0 x1 x3 dV V

Z

a

`

Z



Z

r2 cos θx3 dr dx3 dθ

= −ρ0 0

−`

0

=0 R 2π Since 0 dθ cos θ = 0. Similarly, the other off-diagonal elements are all 0. So the non-zero components are 1 M a2 2   `2 a2 + =M 4 3

I33 = I11 = I22 In the particular case where ` =

√ a 3 2 ,

we have Iij = 21 ma2 δij . So in this case,

L=

1 M a2 ω 2

for rotation about any axis.

14.3

Diagonalization of a symmetric second rank tensor

Recall that using matrix notation, T = (Tij ),

T 0 = (Tij0 ),

R = (Rij ),

and the tensor transformation rule Tij0 = Rip Rjq Tpq becomes T 0 = RT RT = RT R−1 . If T is symmetric, it can be diagonalized by such an orthogonal transformation. This means that there exists a basis of orthonormal eigenvectors e1 , e2 , e3 for T with real eigenvalues λ1 , λ2 , λ3 respectively. The directions defined by e1 , e2 , e3 are the principal axes for T , and the tensor is diagonal in Cartesian coordinates along these axes. This applies to any symmetric rank-2 tensor. For the special case of the inertia tensor, the eigenvalues are called the principal moments of inertia. As exemplified in the previous example, we can often guess the correct principal axes for Iij based on the symmetries of the body. With the axes we chose, Iij was found to be diagonal by direct calculation.

80

15

Invariant and isotropic tensors

15 15.1

IA Vector Calculus

Invariant and isotropic tensors Definitions and classification results

Definition (Invariant and isotropic tensor). A tensor T is invariant under a particular rotation R if 0 Tij···k = Rip Rjq · · · Rkr Tpq···r = Tij···k ,

i.e. every component is unchanged under the rotation. A tensor T which is invariant under every rotation is isotropic, i.e. the same in every direction. Example. The inertia tensor of a sphere is isotropic by symmetry. δij and εijk are also isotropic tensors. This ensures that the component definitions of the scalar and vector products a·b = ai bj δij and (a×b)i = εijk aj bk are independent of the Cartesian coordinate system. Isotropic tensors in R3 can be classified: Theorem. (i) There are no isotropic tensors of rank 1, except the zero tensor. (ii) The most general rank 2 isotropic tensor is Tij = αδij for some scalar α. (iii) The most general rank 3 isotropic tensor is Tijk = βεijk for some scalar β. (iv) All isotropic tensors of higher rank are obtained by combining δij and εijk using tensor products, contractions, and linear combinations. We will provide a sketch of the proof: Proof. We analyze conditions for invariance under specific rotations through π or π/2 about coordinate axes. (i) Suppose Ti is rank-1 isotropic. Consider a rotation about x3 through π:   −1 0 0 (Rij ) =  0 −1 0 . 0 0 1 We want T1 = Rip Tp = R11 T1 = −T1 . So T1 = 0. Similarly, T2 = 0. By consider a rotation about, say x1 , we have T3 = 0. (ii) Suppose Tij is rank-2 isotropic. Consider   0 1 0 (Rij ) = −1 0 0 , 0 0 1 which is a rotation through π/2 about the x3 axis. Then T13 = R1p R3q Tpq = R12 R33 T23 = T23

81

15

Invariant and isotropic tensors

IA Vector Calculus

and T23 = R2p R3q Tpq = R21 R33 T13 = −T13 So T13 = T23 = 0. Similarly, we have T31 = T32 = 0. We also have T11 = R1p R1q Tpq = R12 R12 T22 = T22 . So T11 = T22 . By picking a rotation about a different axis, we have T21 = T12 and T22 = T33 . Hence Tij = αδij . (iii) Suppose that Tijk is rank-3 isotropic. Using the rotation by π about the x3 axis, we have T133 = R1p R3q R3r Tpqr = −T133 . So T133 = 0. We also have T111 = R1p R1q R1r Tpqr = −T111 . So T111 = 0. We have similar results for π rotations about other axes and other choices of indices. Then we can show that Tijk = 0 unless all i, j, k are distinct. Now consider



0 (Rij ) = −1 0

 1 0 0 0 , 0 1

a rotation about x3 through π/2. Then T123 = R1p R2q R3r Tpqr = R12 R21 R33 T213 = −T213 . So T123 = −T213 . Along with similar results for other indices and axes of rotation, we find that Tijk is totally antisymmetric, and Tijk = βεijk for some β. Example. The most general isotropic tensor of rank 4 is Tijk` = αδij δk` + βδik δj` + γδi` δjk for some scalars α, β, γ. There are no other independent combinations. (we might think we can write a rank-4 isotropic tensor in terms of εijk , like εijp εk`p , but this is just δik δj` − δi` δjk . It turns out that anything you write with εijk can be written in terms of δij instead)

15.2

Application to invariant integrals

We have the following very useful theorem. It might seem a bit odd and arbitrary at first sight — if so, read the example below first (after reading the statement of the theorem), and things will make sense!

82

15

Invariant and isotropic tensors

Theorem. Let

IA Vector Calculus

Z f (x)xi xj · · · xk dV.

Tij···k = V

where f (x) is a scalar function and V is some volume. Given a rotation Rij , consider an active transformation: x = xi ei is mapped to x0 = x0i ei with x0i = Rij xi , i.e. we map the components but not the basis, and V is mapped to V 0 . Suppose that under this active transformation, (i) f (x) = f (x0 ), (ii) V 0 = V (e.g. if V is all of space or a sphere). Then Tij···k is invariant under the rotation. Proof. First note that the Jacobian of the transformation R is 1, since it is ∂x0 simply the determinant of R (x0i = Rip xp ⇒ ∂xpi = Rip ), which is by definition 1. So dV = dV 0 . Then we have Z Rip Rjq · · · Rkr Tpq···r = f (x)x0i x0j · · · x0k dV V Z = f (x0 )x0i x0j · · · x0k dV using (i) V Z = f (x0 )x0i x0j · · · x0k dV 0 using (ii) V0 Z = f (x)xi xj · · · xk dV since xi and x0i are dummy V

= Tij···k . The result is particularly useful if (i) and (ii) hold for any rotation R, in which case Tij···k is isotropic. Example. Let Z Tij =

xi xj dV, V

with V being a solid sphere of |r| < a. Our result applies with f = 1, which, being a constant, is clearly invariant under rotations. Also the solid sphere is invariant under any rotation. So T must be isotropic. But the only rank 2 isotropic tensor is αδij . Hence we must have Tij = αδij , and all we have to do is to determine the scalar α. Taking the trace, we have Z Z a 4 Tii = 3α = xi xi dV = 4π r2 · r2 dr = πa5 . 5 V 0 So Tij =

4 πa5 δij . 15 83

15

Invariant and isotropic tensors

IA Vector Calculus

Normally if we are only interested in the i 6= j case, we just claim that Tij = 0 by saying “by symmetry, it is 0”. But now we can do it (more) rigorously! There is a closely related result for the inertia tensor of a solid sphere of constant density ρ0 , or of mass M = 43 πa3 ρ0 . Recall that Z Iij = ρ0 (xk xk δij − xi xj ) dV. V

R We see that Iij is isotropic (since we have just shown that xi xj dV is isotropic, and xk xk δij is also isotropic). Let Iij = βδij . Then Z Iij = ρ0 (xk xk δij − xi xj ) dV V  Z  Z = ρ0 δij xk xk dV − xi xj dV V

V

= ρ0 (δij Tkk − Tij )   4 5 4 5 = ρ0 πa δij − πa δij 5 15 8 ρ0 πa5 δij = 15 2 = M a2 δij . 5

84