




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































These notes are meant to be a support for the vector calculus module (MA2VC/MA3VC) taking place at the University of Reading in the Autumn term 2016. The present document does not substitute the notes taken in class, where more examples and proofs are provided and where the content is discussed in greater detail. These notes are self-contained and cover the material needed for the exam. The suggested textbook is [ 1 ] by R.A. Adams and C. Essex, which you may already have from the first year; several copies are available in the University library. We will cover only a part of the content of Chapters 10–16, more precise references to single sections will be given in the text and in the table in Appendix G. This book also contains numerous exercises (useful to prepare the exam) and applications of the theory to physical and engineering problems. Note that there exists another book by the same authors containing the worked solutions of the exercises in the textbook (however, you should better try hard to solve the exercises and, if unsuccessful, discuss them with your classmates). Several other good books on vector calculus and vector analysis are available and you are encouraged to find the book that suits you best. In particular, Serge Lang’s book [ 5 ] is extremely clear. [ 7 ] is a collection of exercises, many of which with a worked solution (and it costs less than 10£). You can find other useful books on shelf 515.63 (and those nearby) in the University library. The lecture notes [ 2 ], the book [ 3 ] and the “Vector Calculus Primer” [ 6 ] are available online; on the web page [ 4 ] of O. Knill you can find plenty of exercises, lecture notes and graphs. Note that different books inevitably use different notation and conventions. In this notes we will take for granted what you learned in the previous classes, so the first year notes might be useful from time to time (in particular those for calculus, linear algebra and analysis). Some of the figures in the text have been made with Matlab. The scripts used for generating these plots are available on Blackboard and on the web page^1 of the course; most of them can be run in Octave as well. You can use and modify them: playing with the different graphical representations of scalar and vector fields is a great way to familiarise with these concepts. On the same page you can find the file VCplotter.m, which you can use to visualise fields, curves and changes of variables in Matlab or Octave.
to deepen the subject and learn about some closely related topics. Some of these remarks try to relate the topic presented here to the content of other courses (e.g., analysis or physics); some others try to explain some important details that were glossed over in the text. These parts are not requested for the exam and can safely be skipped by students with modest ambitions.
Warning 2: These notes are not entirely mathematically rigorous, for example we usually assume (sometimes tacitly) that fields and domains are “smooth enough” without specifying in detail what we mean with this assumption; multidimensional analysis is treated in a rigorous fashion in other modules, e.g. “analysis in several variables”. On the other hand, the (formal) proofs of vector identities and of some theorems are a fundamental part of the lectures, and at the exam you will be asked to prove some simple results. The purpose of this course is not only to learn how to compute integrals and divergences!
Suggestion: The content of this module can be seen as the extension to multiple variables and vector quantities of the calculus you learned in the first year. Hence, many results you will encounter in this course correspond to simpler similar facts, holding for real functions, you already know well from previous classes. Comparing the vector results and formulas you will learn here with the scalar ones you already know will greatly simplify the study and the understanding of the content of this course. (This also means that you need to know and remember well what you learned in the first year.)
If you find typos or errors of any kind in these notes, please let me know at [email protected] or in person during the office hours, before or after the lectures.
(^1) http://www.personal.reading.ac.uk/~st904897/VC2016/VC2016.html
For simplicity, in these notes we only consider the 3-dimensional Euclidean space R^3 , and, from time to time, the plane R^2. However, all the results not involving neither the vector product nor the curl operator can be generalised to Euclidean spaces RN^ of any dimensions N ∈ N.
We quickly recall some notions about vectors and vector operations known from previous modules; see Sections 10.2–10.3 of [ 1 ] and the first year calculus and linear algebra notes. We use the word “scalar” simply to denote any real number x ∈ R. We denote by R^3 the three-dimensional Euclidean vector space. A vector is an element of R^3.
Notation. In order to distinguish scalar from vector quantities, we denote vectors with boldface and a little arrow: ~u ∈ R^3. Note that several books use underlined (u) symbols. We use the hat symbol (ˆ) to denote unit vectors, i.e. vectors of length 1.
You are probably used to write a vector ~u ∈ R^3 in “matrix notation” as a “column vector”
~u =
u 1 u 2 u 3
where the scalars u 1 , u 2 and u 3 ∈ R are the components, or coordinates, of ~u. We will always use the equivalent notation
~u = u 1 ˆı + u 2 ˆ + u 3 ˆk,
where ˆı, ˆ and kˆ are three fixed vectors that constitute the canonical basis of R^3. When we draw vectors, we always assume that the canonical basis has a right-handed orientation, i.e. it is ordered according to the right-hand rule: closing the fingers of the right hand from the ˆı direction to the ˆ direction, the thumb points towards the ˆk direction. You can think at ˆı, ˆ and ˆk as the vectors ˆı =
0 0
1 0
and kˆ =
0 1
so that the two notations above are consistent: ~u = u 1 ˆı + u 2 ˆ + u 3 ˆk = u 1
0 0
1 0
0 1
( u 1 u 2 u 3
~u
u 1
u 2
u 3
ˆı (^) ˆ
ˆk
Figure 1: The basis vectors ˆı, ˆ, ˆk and the components of the vector ~u.
Definition 1.1. The magnitude, or length, or norm, of the vector ~u is the scalar defined as 2
u := |~u| :=
u^21 + u^22 + u^23.
The direction of a (non-zero) vector ~u is the unit vector defined as
u ˆ :=
~u |~u|
Note that often the magnitude of a vector ~u is written as ‖~u‖ (e.g. in your Linear Algebra lecture notes). We use the same notation |~u| for the magnitude of a vector and |x| for the absolute value of a
(^2) The notation “A := B” means “the object A is defined to be equal to the object B”. A and B may be scalars, vectors, matrices, sets...
where θ is the angle between ~u and w~, as in Figure 2. The scalar product is commutative (i.e. ~u· w~ = w~·~u), is distributive with respect to the addition (i.e. ~u · (~v + w~) = ~u · ~v + ~u · w~) and can be used to compute the magnitude of a vector: |~u| =
~u · ~u.
The scalar product can be used to evaluate the length of the projection of ~u in the direction of w~:
projection = |~u| cos θ = ~u · w~ |w~|
= ~u · wˆ,
and the angle between two (non-zero) vectors:
θ = arccos
~u · ~w |~u||w~|
= arccos
ˆu · wˆ
The vector components can be computed as scalar products:
u 1 = ~u · ˆı, u 2 = ~u · ˆ, u 3 = ~u · ˆk.
Two vectors ~u and w~ are orthogonal or perpendicular if their scalar product is zero: ~u · w~ = 0; they are parallel (or collinear) if ~u = α~w for some scalar α 6 = 0 (in physics, if α < 0 they are sometimes called “antiparallel”).
θ ~u
w ~
|~u| cos θ
Figure 2: The projection of ~u in the direction of w~.
Exercise 1.6. ◮ Compute the scalar product between the elements of the canonical basis: ˆı · ˆı, ˆı · ˆ, ˆı · ˆk...
Exercise 1.7 (Orthogonal decomposition). ◮ Given two non-zero vectors ~u and w~, prove that there exists a unique pair of vectors ~u⊥ and ~u||, such that: (a) ~u⊥ is perpendicular to w~, (b) ~u|| is parallel to w~ and (c) ~u = ~u⊥ + ~u||. Hint: in order to show the existence of ~u⊥ and ~u|| you can proceed in two ways. (i) You can use the condition “~u|| is parallel to w~” to represent ~u⊥ and ~u|| in dependence of a parameter α, and use the condition “~u|| is perpendicular to w~” to find an equation for α itself. (ii) You can use your geometric intuition to guess the expression of the two desired vectors and then verify that they satisfy all the required conditions. (Do not forget to prove uniqueness.)
1.1.2 Vector product
Given two vectors ~u and w~, the vector product (or cross product) gives in output a vector denoted by ~u × w~ (sometimes written ~u ∧ w~ to avoid confusion with the letter x on the board):
~u × w~ : =
ˆı ˆ ˆk u 1 u 2 u 3 w 1 w 2 w 3
= ˆı
u 2 u 3 w 2 w 3
u 1 u 3 w 1 w 3
ˆk
u 1 u 2 w 1 w 2
= (u 2 w 3 − u 3 w 2 )ˆı + (u 3 w 1 − u 1 w 3 )ˆ + (u 1 w 2 − u 2 w 1 )kˆ,
where | : : | denotes the matrix determinant. Note that the 3 × 3 determinant is a “formal determinant”, as the matrix contains three vectors and six scalars: it is only a short form for the next expression containing three “true” 2 × 2 determinants. The magnitude of the vector product
|~u × w~| = |~u||w~| sin θ
~u
w ~
~u × w~
θ
Figure 3: The vector product ~u × w~ has magnitude equal to the area of the grey parallelogram and is orthogonal to the plane that contains it.
is equal to the area of the parallelogram defined by ~u and ~w. Its direction is orthogonal to both ~u and w ~ and the triad ~u, ~w, ~u × w~ is right-handed. The vector product is distributive with respect to the sum (i.e. ~u × (~v + w~) = ~u × ~v + ~u × w~ and (~v + ~w) × ~u = ~v × ~u + w~ × ~u) but is not associative: in general ~u × (~v × w~) 6 = (~u × ~v) × w~.
Exercise 1.8. ◮ Prove what was claimed above: given ~u and w~ ∈ R^3 , their vector product ~u× w~ is orthogonal to both of them.
Exercise 1.9. ◮ Show that the elements of the standard basis satisfy the following identities:
ˆı × ˆ = ˆk, ˆ × ˆk = ˆı, kˆ × ˆı = ˆ, ˆ × ˆı = −ˆk, kˆ × ˆ = −ˆı, ˆı × ˆk = −ˆ, ˆı × ˆı = ˆ × ˆ = kˆ × ˆk = ~ 0.
Exercise 1.10. ◮ Show that the vector product is anticommutative, i.e.
w ~ × ~u = −~u × w~ (3)
for all ~u and w~ in R^3 , and satisfies ~u × ~u = ~ 0.
Exercise 1.11. ◮ Prove that the vector product is not associative by showing that (ˆı × ˆ) × ˆ 6 = ˆı × (ˆ × ˆ).
Exercise 1.12. ◮ Show that the following identity holds true:
~u × (~v × w~) = ~v(~u · w~) − w~(~u · ~v) ∀~u, ~v, ~w ∈ R^3. (4)
(Sometimes ~u × (~v × w~) is called “triple vector product”.)
Exercise 1.13. ◮ Show that the following identities hold true for all ~u, ~v, ~w, ~p ∈ R^3 :
~u × (~v × w~) + ~v × (w~ × ~u) + w~ × (~u × ~v) = ~ 0 (Jacobi identity), (~u × ~v) · (w~ × ~p) = (~u · w~)(~v · ~p) − (~u · ~p)(~v · w~) (Binet–Cauchy identity), |~u × ~v|^2 + (~u · ~v)^2 = |~u|^2 |~v|^2 (Lagrange identity).
Hint: to prove the first one you can either proceed componentwise (long and boring!) or use identity ( 4 ). For the second identity you can expand both sides and collect some terms appropriately. The last identity will follow easily from the previous one.
the torque of a force, the Lorentz force acting on a charge moving in a magnetic field.
Given three vectors ~u and ~v and w~, their triple product is the scalar
~u · (~v × w~).
Its absolute value is the volume of the parallelepiped P defined by the three vectors as in Figure 4. To see this, we define the unit vector orthogonal to the plane containing ~v and w~ as nˆ := (^) |~v~v××^ w w~~|. Then
Volume (P ) : = (area of base) × height = |~v × w~| |~u · ˆn| = |~v × w~|
∣~u^ ·^
~v × w~ |~v × w~|
∣ =^ |~u^ ·^ (~v^ ×^ w~)|^.
Exercise 1.18. ◮ (i) Given a sequence of vectors {~uj }j∈N ⊂ R^3 and ~u ∈ R^3 , prove that limj→∞ ~uj = ~u ∈ R^3 if and only if each of the three real sequences of the three components of ~uj converges to the corresponding component of ~u. In formulas, you have to prove that
lim j→∞ ~uj = ~u ⇐⇒ lim j→∞ (~uj ) 1 = u 1 , lim j→∞ (~uj ) 2 = u 2 , lim j→∞ (~uj ) 3 = u 3.
(ii) Find a sequence of vectors {~uj }j∈N ⊂ R^3 and a vector ~u ∈ R^3 such that limj→∞ |~uj | − |~u| = 0 but ~uj does not converge to ~u.
A set D ⊂ R^3 is called an open set if for every point ~p ∈ D, there exists ǫ > 0 (depending on ~p) such that all points ~q at distance smaller than ǫ from ~p belong to D. In formulas:
D is open if ∀~p ∈ D, ∃ǫ > 0 s.t. {~q ∈ R^3 , |~q − ~p| < ǫ} ⊂ D.
The word domain is used as a synonym of open set (because the domain of definition of scalar and vector fields, described in the following, is usually chosen to be an open set). A set C ⊂ R^3 is called a closed set if for all sequences contained in C and converging to a limit in R^3 , the limit belongs to C. In formulas:
C is closed if ∀{~pj }j∈N ⊂ C s.t. lim j→∞ ~pj = ~p ∈ R^3 , we have ~p ∈ C.
Examples of open sets are the open unit ball {~r ∈ R^3 , |~r| < 1 }, the open unit cube {~r ∈ R^3 , 0 < x, y, z < 1 }, the open half space {~r ∈ R^3 , x > 0 }. Examples of closed sets are the closed unit ball {~r ∈ R^3 , |~r| ≤ 1 }, the closed unit cube {~r ∈ R^3 , 0 ≤ x, y, z ≤ 1 }, the closed half space {~r ∈ R^3 , x ≥ 0 }, all the planes e.g. {~r ∈ R^3 , x = 0}, the lines e.g. {~r ∈ R^3 , x = y = 0}, the sets made by a single points e.g. {~ 0 }. Typically, the sets defined using strict inequalities (i.e. > and <) are open, while those defined with non-strict inequalities or equalities (i.e. ≥, ≤ and =) are closed. Closed sets may be “thin”, like planes and lines, while open sets are always “fat”, as they contain little balls around each point. The empty set and R^3 are the only two sets that are simultaneously open and closed. Analogous definitions can be given for two dimensional sets, i.e. subsets of R^2. Two-dimensional domains are also called regions.
Exercise 1.19. ◮ Prove that the complement of an open set is closed and vice versa. (This is not easy!)
Notation. In the following we will use the letters D, E,... to denote three-dimensional open sets, and the letters P, Q, R, S,... to denote two-dimensional open sets. S will also be used to name surfaces.
The fundamental objects of first-year (scalar) calculus are “functions”, in particular real functions of a real variable, i.e. rules that associate to every number t ∈ R a second number f (t) ∈ R. In this section we begin the study of three different extensions of this concept to the vector case, i.e. we consider functions whose domains, or codomains, or both, are the three-dimensional Euclidean space R^3 (or the plane R^2 ), as opposed to the real line R. Fields^3 are functions of position, described by the position vector ~r = xˆı + yˆ + zˆk, so their domain is R^3 (or a subset of it). Depending on the kind of output, they are called either scalar fields or vector fields. Curves are vector-valued functions of a real variable. In Remark 1.27 we summarise the mapping properties of all these objects. Scalar fields, vector fields and curves are described in [ 1 ] in Sections 12.1, 15.1 and 11.1 respectively.
1.2.1 Scalar fields
A scalar field is a function f : D → R, where the domain D is an open subset of R^3. The value of f at the point ~r may be written as f (~r) or f (x, y, z). (This is because a scalar field can equivalently be interpreted as a function of one vector variable or as a function of three scalar variables.) Scalar field may also be called “multivariate functions” or “functions of several variables” (as in the first-year calculus modulus, see handout 5). Some examples of scalar fields are
f (~r) = x^2 − y^2 , g(~r) = xyez^ , h(~r) = |~r|^4.
We will often consider two-dimensional scalar fields, namely functions f : R → R, where now R is a domain in R^2 , i.e. a region of the plane. Two-dimensional fields may also be thought as three-dimensional fields that do not depend on the third variable z (i.e. f (x, y, z) = f (x, y) for all z ∈ R).
(^3) Note that the fields that are object of this section have nothing to do with the algebraic definition of fields as abstract sets provided with addition and multiplication (like R, Q or C). The word “field” is commonly used for both meaning and can be a source of confusion; the use of “scalar field” and “vector field” is unambiguous.
Smooth scalar fields can be graphically represented using level sets, i.e. sets defined by the equations {f (~r)=constant}; see the left plot in Figure 5 for an example. The level sets of a two-dimensional field are (planar) level curves and can be easily drawn, while the level sets of a three-dimensional vector field are the level surfaces, which are harder to visualise. Level curves are also called contour lines or isolines, and level surfaces are called isosurfaces. Note that two level surfaces (or curves) never intersect each other, since at every point ~r the field f takes only one value, but they might “self-intersect”.
−3 −
−3 −
−
−
−
−
−
−
− −
−
−
−
−
(^0)
0
0
0
0
0
(^0)
0
1
1
1
1
1
1
2
2
2
2
3
3
3
3
−2 −2 −1.5 −1 −0.5 0 0.5 1 1.5 2
−1.
−
−0.
0
1
2
x
y
−
−
0
1
2
−
−
0
1
2
−
−
−
−
0
1
2
3
4
x
y
z
Figure 5: Left: the level set representation of the scalar field f (~r) = x^2 − y^2. Since f does not depend on the z-component of the position, we can think at it as a two-dimensional field and represent it with the level curves corresponding to a section in the xy-plane. Each colour represents the set of points ~r such that f (~r) is equal to a certain constant, e.g. f (~r) = 0 along the green lines and f (~r) = 2 along the red curves (see the .pdf file of these notes for the coloured version). This plot is obtained with Matlab’s command contour. Right: the same field f = x^2 − y^2 represented as the surface Sf = {~r ∈ R^3 s.t. z = f (x, y)}; see Remark 1.21. Surfaces can be drawn in Matlab with the commands mesh and surf.
Example 1.20 (Different fields with the same level sets). Consider the level surfaces of the scalar field f (~r) = |~r|^2. Every surface corresponds to the set of points that are solutions of the quadratic equation f (~r) = |~r|^2 = x^2 + y^2 + z^2 = C for some C ∈ R (C ≥ 0 ), thus they are the spheres centred at the origin. Now consider the level surfaces of the scalar field g(~r) = e−|~r| 2
. They correspond to the solutions of the equation e−x (^2) −y (^2) −z 2 = C, or (x^2 + y^2 + z^2 ) = − log C, for some 0 < C ≤ 1. Therefore also in this case they are the spheres centred at the origin (indeed the two fields are related by the identity g(~r) = e−f^ (~r)). We conclude that two different scalar fields may have the same level surfaces, associated with different field values (see Figure 6 ).
Comparison with scalar calculus 1.21 (Graph surfaces). A real function of one variable g : R → R is usually represented with its graph Gg = {(x, y) ∈ R^2 s.t. y = g(x)}, which is a subset of the plane. Exactly in the same way, a two-dimensional scalar field f : R^2 → R can be visualised using its graph
Sf =
~r = xˆı + yˆ + zˆk ∈ R^3 , z = f (x, y)
which is a surface, i.e. a two-dimensional set lying in R^3 ; see the example in the right plot of Figure 6. (We study surfaces more in detail in Section 2.2.4.) The graph of a general three-dimensional scalar field is a hypersurface and we cannot easily visualise as it is a three-dimensional set living in a four-dimensional space. Exercise: represent the graphs of the two fields defined in Example 1.20 (or their planar section at z = 0). Despite having the same level sets the surfaces representing their graphs are very different from each other.
there exists δ > 0 such that for all ~r ∈ D with |~r − ~r 0 | < δ then |f (~r) − f (~r 0 )| < ǫ. The field f is continuous in D if it is continuous at each point of D. Equivalently, f is continuous at ~r 0 ∈ D if for all sequences of points {~rj }j∈N ⊂ D with limj→∞ ~rj = ~r 0 , it follows that limj→∞ f (~rj ) = f (~r 0 ). A continuous field is often called “of class C^0 ”.
−2 −2.5 −2 −1.5 −1 −0.5 0 0.5 1 1.5 2 2.
−1.
−
−0.
0
1
2
x
y
−2 −2 −1.5 −1 −0.5 0 0.5 1 1.5 2
−1.
−
−0.
0
1
2
x
y
Figure 7: Two visualisations of the two-dimensional vector field F~(~r) = 2xˆı − 2 yˆ. In the left plot, the direction of the arrow positioned in ~r indicated the direction of the field in that point and its length is proportional to the magnitude of ~F(~r). In the right plot the lines are tangent to the field ~F(~r) in every point; these curves are called field lines or streamlines. Note that the streamline representation does not give any information about the magnitude of the vector field. These plots are obtained with Matlab’s commands quiver and streamslice (unfortunately the latter command is not available in Octave).
where a 1 , a 2 and a 3 : I → R (the components of ~a) are real functions. We say that ~a is continuous if its three components are continuous real functions. If the interval I is closed and bounded, namely I = [tI , tF ] ⊂ R, and ~a : I → R^3 is a curve satisfying ~a(tI ) = ~a(tF ) (i.e. it starts and ends in the same point), then ~a is called loop. We denote by Γ := {~r ∈ R^3 , s.t. ~r = ~a(t), for some t ∈ I} ⊂ R^3 the image of the curve ~a, i.e. the set of the points covered by ~a for the various values of t ∈ I; we call Γ the path (or trace, or support) of ~a. We say that the path Γ is parametrised by the curve ~a, or vice versa that ~a parametrises Γ (i.e. it associates to every “parameter” t ∈ I a point on the path Γ). Some examples of paths of curves are shown in Figure 8.
−1 −1 −0.5 0 0.5 1
−0.
−0.
−0.
−0.
0
1
x
y
− −0.
0
1
−
−0.
0
10
1
2
x y
z
−1 −1 −0.5 0 0.5 1
−0.
−0.
−0.
−0.
0
1
x
y
Figure 8: Three examples of paths defined by curves. In the left plot the cubic ~a(t) = tˆı + t^3 ˆ, plotted for the interval [− 1 , 1]. In the centre plot the helix ~b(t) = cos t ˆı + sin t ˆ + 0. 1 tkˆ, for t ∈ [0, 6 π]. In the right plot the “clover” ~c(t) = (cos 3t)(cos t)ˆı + (cos 3t)(sin t)ˆ for t ∈ [0, π]. Note that ~c is not injective as it intersects itself in the origin (~c(π/6) = ~c(π/2) = ~c(5π/6) = ~ 0 ). As ~c(0) = ~c(π), the curve ~c is a loop. The curves are drawn with the Matlab commands plot (planar curves) and plot3 (three-dimensional curves).
If we interpret the variable t as time, a curve may represent the trajectory of a point moving in space. Following this interpretation, curves are “oriented”, i.e. they possess a preferred direction of travelling, while paths are not. We stress that, as opposed to the common non-mathematical meaning, the word “curve” indicates a function ~a, whose image (its path) is a subset of R^3 , and not the image itself. Indeed, different curves may define the same path. For example ~a(t) = cos t ˆı + sin t ˆ t ∈ [0, 2 π) and ~b(τ ) = cos 2τ ˆı + sin 2τ ˆ τ ∈ [0, π)
are two different curves which have the same path: the unit circle in the xy-plane. In the textbook [ 1 ] and in several other books, the general curves and their components are denoted ~r(t) = x(t)ˆı + y(t)ˆ + z(t)ˆk.
Remark 1.24 (How to parametrise a path). Given a path (or a curve), how can we find its curve (or its path)? In one direction the procedure is straightforward. If we have the analytic expression of a curve ~a : I → R^3 , its path can be drawn (approximately) simply by evaluating ~a(tj ) for many tj ∈ I and “connecting the points”. This is exactly what is done automatically by Matlab or Octave to make e.g. Figure 8. The opposite operation is sometimes very difficult: since every path corresponds to infinitely many curves, there is no universal procedure to construct ~a from Γ. Here we only consider a few simple, but very important, examples. Try to draw all the paths by computing some points via the parametrisation.
~a(t) = ~p + t(~q − ~p) = (1 − t)~p + t~q, for t ∈ [0, 1].
(The components are a 1 (t) = (1 − t)p 1 + tq 1 , a 2 (t) = (1 − t)p 2 + tq 2 and a 3 (t) = (1 − t)p 3 + tq 3 .)
Try to understand well these simple examples (segments, graphs, circumferences): they will be used very often during the course and the solution of many exercises will require their use.
Remark 1.25 (How to change parametrisation). Sometimes we have a curve ~a : I → R^3 , and we want to
find a different curve ~b : J → R^3 with the same path Γ, but defined on a different interval J ⊂ R. To this purpose, it is enough to find a function g : J → I that is bijective and continuous and define ~b(τ ) := ~a(g(τ )) for τ ∈ J. Two parametrisations ~a and ~b of the same path are always related one another by a function g of this kind. If g is increasing, then the two parametrisations have the same orientation (they run the path in the same direction); if g is decreasing, then the two parametrisations have the opposite orientation (they run the path in opposite directions). We see a few examples.
~a : [0, π] → R^3 , ~a(t) = cos tˆı + sin tˆ, ~b : [− 1 , 1] → R^3 , ~b(τ ) = τˆı +
1 − τ 2 ˆ.
Here we use g = arccos : [− 1 , 1] → [0, π] (which is decreasing: ~a runs anti-clockwise, ~b clockwise).
quantities. For example, consider a domain D that models a portion of Earth’s atmosphere. One can associate to every point ~r ∈ D several numerical quantities representing temperature, density, air pressure, concentration of water vapour or some pollutant (at a given instant): each of these physical quantities can be mathematically represented by a scalar field (a scalar quantity is associated to each point in space). Other physical quantities involve magnitude and direction (which can both vary in different points in space), thus they can be represented as vector fields: for example the gravitational force, the wind velocity, the magnetic field (pointing to the magnetic north pole). The plots you commonly see in weather forecast are representations of some of these fields (e.g. level sets of pressure at a given altitude). (Note that all these fields may vary in time, so they are actually functions of four scalar variables: three spacial and one temporal.) Also curves are used in physics, for instance to describe trajectories of electrons, bullets, aircraft, planets and any other kind of body.
Since partial derivative are nothing else than usual derivatives for the functions obtained by freezing all variables except one, the usual rules for derivatives apply. For f and g scalar fields, λ and μ ∈ R, and a real function G : R → R, we have the following identities: linearity
∂(λf + μg) ∂x
= λ
∂f ∂x
∂g ∂x
∂(λf + μg) ∂y
= λ
∂f ∂y
∂g ∂y
∂(λf + μg) ∂z
= λ
∂f ∂z
∂g ∂z
the product rule (extending the well-known formula (F G)′^ = F ′G + F G′^ for real functions)
∂(f g) ∂x
= g
∂f ∂x
∂g ∂x
∂(f g) ∂y
= g
∂f ∂y
∂g ∂y
∂(f g) ∂z
= g
∂f ∂z
∂g ∂z
and the chain rule
∂
G(f )
∂x
= G′(f )
∂f ∂x
G(f )
∂y
= G′(f )
∂f ∂y
G(f )
∂z
= G′(f )
∂f ∂z
Note that the product rule ( 8 ) must be used when we compute a partial derivative of a product; the chain rule ( 9 ) when we compute a partial derivative of a composition.^4 In other words, in ( 8 ) the two scalar fields f and g are multiplied to each other, in ( 9 ) the function G is evaluated in f (~r), which is a scalar: ∂(G(f )) ∂x (~r) =^ G
′(f (~r)) ∂f ∂x (~r).
able to take the limits in ( 6 ), so to evaluate f “nearby” ~r. This is possible if f is defined in a open set D, as defined in Section 1.1.3, which ensures that all its points are completely surrounded by points of the same set. For example, the “open half space” D = {x > 0 } is open, while the “closed half space” E = {x ≥ 0 } is not.
If a field f is defined in E, we can not evaluate f (h, y, z) for negative h, so the limit limh→ 0 f^ (h,y,z)− hf^ (0,y,z) in ( 6 ) is not defined and we cannot compute ∂f ∂x in all the points yˆ + zˆk ∈ E (those with x = 0).
continuous (see Remark 1.22) and all its first-order partial derivatives exist and are continuous. A vector field is differentiable (of class C^1 ) if its three components are differentiable.
1.3.2 The gradient
Let f be a scalar field. The vector field whose three components are the three partial derivatives of f (in the usual order) is called gradient of f and denoted by
∇^ ~f (~r) := grad f (~r) := ˆı ∂f ∂x
(~r) + ˆ
∂f ∂y
(~r) + ˆk
∂f ∂z
(~r). (10)
The symbol
∇^ ~ := ˆı ∂ ∂x
∂y
∂z
is called “nabla” operator, or “del”, and is usually denoted simply by ∇. Given a smooth scalar field f and a unit vector uˆ, the directional derivative of f in direction uˆ is defined as the scalar product ∂f ∂ uˆ (~r) := ˆu · ∇~f (~r). If ˆn is the unit vector orthogonal to a surface, ∂f ∂n := ∂f ∂ nˆ is called normal derivative.
Example 1.32. The gradient of f (~r) = x^2 − y^2 is
∇^ ~f (~r) = ˆı ∂ ∂x
(x^2 − y^2 ) + ˆ
∂y
(x^2 − y^2 ) + ˆk
∂z
(x^2 − y^2 ) = 2xˆı − 2 yˆ;
thus the vector field in Figure 7 is the gradient of the scalar field depicted in Figure 5.
(^4) We recall the notion of composition of functions: for any three sets A, B, C, and two functions F : A → B and G : B → C, the composition of G with F is the function (G ◦ F ) : A → C obtained by applying F and then G to the obtained output. In formulas: (G ◦ F )(x) := G(F (x)) for all x ∈ A. If A = B = C = R (or they are appropriate subsets of R) and F and G are differentiable, then from basic calculus we know the derivative of the composition: (G ◦ F )′(x) = G′(F (x))F ′(x) (this is the most basic example of chain rule).
Proposition 1.33 (Properties of the gradient). Given two smooth scalar fields f, g : D → R, their gradients satisfy the following properties:
∇^ ~(λf + μg) = λ∇~f + μ∇~g; (12)
∇^ ~(f g) = g ∇~f + f ∇~g; (13)
∇^ ~(G ◦ f )(~r) = ∇~G(f (~r))^ = G′(f (~r))∇~f (~r), (14)
where G′(f (~r)) is the derivative of G evaluated in f (~r) and G ◦ f denotes the composition of G with f ;
Proof of 1., 2. and 3. We use the definition of the gradient ( 10 ), the linearity ( 7 ), the product rule ( 8 ) and the chain rule for partial derivatives ( 9 ):
∇^ ~(λf + μg) = ˆı ∂(λf^ +^ μg) ∂x
∂(λf + μg) ∂y
∂(λf + μg) ∂z ( 7 ) = ˆıλ
∂f ∂x
∂g ∂x
∂f ∂y
∂g ∂y
∂f ∂z
∂g ∂z
= λ~∇f + μ∇~g;
∇^ ~(f g) = ˆı ∂(f g) ∂x
∂(f g) ∂y
∂(f g) ∂z ( 8 ) = ˆı
g
∂f ∂x
∂g ∂x
g
∂f ∂y
∂g ∂y
g
∂f ∂z
∂g ∂z
= g ∇~f + f ∇~g,
∇~(G ◦ f )(~r) = ˆı ∂(G^ ◦^ f^ ) ∂x
(~r) + ˆ
∂(G ◦ f ) ∂y
(~r) + ˆk
∂(G ◦ f ) ∂z
(~r)
( 9 ) = ˆıG′
f (~r)
) (^) ∂f ∂x
(~r) + ˆG′
f (~r)
) (^) ∂f ∂y
(~r) + ˆkG′
f (~r)
) (^) ∂f ∂z
(~r) = G′
f (~r)
∇~f (~r).
Parts 4. and 5. will be proved in Remarks 1.88 and 1.89.
Exercise 1.34. ◮ Write the gradients of the scalar fields in Exercise 1.29.
Exercise 1.35. ◮ Verify that the gradients of the “magnitude scalar field” m(~r) = |~r| and of its square s(~r) = |~r|^2 satisfy the identities
∇^ ~s(~r) = ∇~(|~r|^2 ) = 2~r, ∇~m(~r) = ∇~(|~r|) = ~r |~r|
∀~r ∈ R, ~r 6 = ~ 0. (15)
Represent the two gradients as in Figure 7. Can you compute ∇~(|~r|α) for a general α ∈ R?
Comparison with scalar calculus 1.36. We know from first year calculus that we can infer information on a function of real variable from its derivative. Many of the relations between functions and their derivatives carry over to scalar fields and their gradients, we summarise some of them in the following table. (Recall that “affine” is equivalent to “polynomial of degree at most one”.)
F : R → R is a function of real variable: f : R^3 → R is a scalar field:
F ′^ = 0 ⇐⇒ F is constant (F (t) = λ, ∀t ∈ R), ∇~f = ~ 0 ⇐⇒ f is constant (f (~r) = λ, ∀~r ∈ R^3 ), F ′^ = λ ⇐⇒ F is affine (F (t) = tλ + μ), ∇~f = ~u ⇐⇒ f is affine (f (~r) = ~r · ~u + μ), F ′^ is a polynomial of degree p the components of ∇~f are polynomials of degree p ⇐⇒ F is a polynomial of degree p + 1, ⇐⇒ f is a polynomial of degree p + 1 in x, y, z, F ′^ > 0 nˆ · ∇~f > 0 ⇐⇒ f is increasing in direction nˆ ⇐⇒ F is increasing (F (s) < F (t), s < t), (f (~r + hnˆ) > f (~r), h > 0 , here nˆ is a unit vector), t 0 is a local maximum/minumum for F ~r 0 is a local maximum/minumum for f ⇒ F ′(t 0 ) = 0, ⇒ ∇~f (~r 0 ) = ~ 0.
y =
1 + x^2
x
y
n ˆ
n ˆ
ˆn
0
1
2
3
4
5
6
7
8
(^0) -1 - 2 1 0 2
Figure 10: Left: The section in the xy-plane (z = 0) of the surface S of Example 1.38 and its unit normal vectors. Right: The surface graph of the planar scalar field f = x^2 +y^2 and its tangent plane at ~r 0 +f (~r 0 )ˆk = ˆ+ ˆk for ~r 0 = ˆ. The tangent plane has equation z = f (~r 0 ) + ~∇f (~r 0 ) · (~r −~r 0 ) = 1 + (2ˆ) · (xˆı + yˆ − ˆ) = 2y − 1.
approximation of f near ~r 0. More precisely, for a differentiable scalar field f : D → R and a point ~r 0 ∈ D, the gradient ∇~f (~r 0 ) is the unique vector ~L such that
f (~r) = f (~r 0 ) + ~L · (~r − ~r 0 ) + |~r − ~r 0 |g(~r) where lim ~r→~r 0 g(~r) = 0 and ~r ∈ D.
We know from first-year calculus that, given a differentiable real function F : R → R, the tangent line to its graph at a point (t 0 , F (t 0 )) is t 7 → F (t 0 ) + F ′(t 0 )(t − t 0 ) and the derivative F ′(t 0 ) represents its slope. The tangent line can be defined as the line that best approximates F near t 0. Similarly, the affine (i.e. “flat”)
field that best approximates f near ~r 0 is ~r 7 → f (~r 0 ) + ∇~f (~r 0 ) · (~r − ~r 0 ). If the field f is two-dimensional, {z = f (~r 0 ) + ∇~f (~r 0 ) · (~r −~r 0 )} is the tangent plane to the surface graph of f (see Remark 1.21), an example is in the right plot in Figure 10. If the field is three-dimensional, this is the tangent space to the graph of f , which now lives in a four-dimensional space, so it is hard to visualise.
1.3.3 The Jacobian matrix
We have seen that a scalar field has three first-order partial derivatives that can be collected in a vector field (the gradient). A vector field has nine partial derivatives, three for each component (which is a scalar field). To represent them compactly we collect them in a matrix. Consider a smooth vector field F~, the Jacobian matrix J ~F (or simply the Jacobian, named after Carl Gustav Jacob Jacobi 1804–1851) of ~F is
∂x
∂y
∂z ∂F 2 ∂x
∂y
∂z ∂F 3 ∂x
∂y
∂z
This is a field whose values at each point are 3 × 3 matrices. Note that sometimes the noun “Jacobian” is used to indicate the determinant of the Jacobian matrix.
Exercise 1.41. ◮ Compute the Jacobian of the following vector fields
~F(~r) = 2xˆı − 2 yˆ, G~(~r) = yzˆı + xzˆ + xyˆk, H~(~r) = |~r|^2 ˆı + cos ykˆ.
1.3.4 Second-order partial derivatives, the Laplacian and the Hessian
The second-order partial derivatives of a scalar field f are the partial derivatives of the partial derivatives of f. When partial derivatives are taken twice with respect to the same component of the position, they
are denoted by ∂^2 f ∂x^2
∂x
∂f ∂x
∂^2 f ∂y^2
∂y
∂f ∂y and
∂^2 f ∂z^2
∂z
∂f ∂z
When they are taken with respect to two different components, they are called “mixed derivatives” and denoted by
∂^2 f ∂x∂y
∂x
∂f ∂y
∂^2 f ∂x∂z
∂x
∂f ∂z
∂^2 f ∂y∂x
∂y
∂f ∂x
∂^2 f ∂y∂z
∂y
∂f ∂z
∂^2 f ∂z∂x
∂z
∂f ∂x , and
∂^2 f ∂z∂y
∂z
∂f ∂y
If f is smooth, the order of differentiation is not relevant (Clairault’s or Schwarz theorem):
∂^2 f ∂x∂y
∂^2 f ∂y∂x
∂^2 f ∂x∂z
∂^2 f ∂z∂x
and
∂^2 f ∂y∂z
∂^2 f ∂z∂y
(^3) f ∂x^2 ∂y =^
∂ ∂x
∂ ∂x
∂f ∂y. A scalar field f : D → R is called “differentiable of class Ck” with k ∈ N, if it is continuous (see Remark 1.22), all its partial derivatives of order up to k exist and are continuous. It is called “differentiable of class C∞” if all its partial derivatives of any order exist and are continuous.
The Laplacian ∆f (or Laplace operator, sometimes denoted by ∇^2 f , named after Pierre-Simon Laplace 1749–1827)^5 of a smooth scalar field f is the scalar field obtained as sum of the pure second partial derivatives of f :
∆f := ∇^2 f :=
∂^2 f ∂x^2
∂^2 f ∂y^2
∂^2 f ∂z^2
A scalar field whose Laplacian vanishes everywhere is called harmonic function.
differential equations (PDEs) such as the Poisson equation ∆u = f and the Helmholtz equation −∆u−k^2 u = f. Therefore, it is ubiquitous and extremely important in physics and engineering, e.g. in the models of diffusion of heat or fluids, electromagnetism, acoustics, wave propagation, quantum mechanics. In the words of T. Tao^6 : “The Laplacian of a function u at a point x measures the average extent to which the value of u at x deviates from the value of u at nearby points to x (cf. the mean value theorem for harmonic functions). As such, it naturally occurs in any system in which some quantity at a point is influenced by the value of the same quantity at nearby points.”
The Hessian Hf (or Hessian matrix, named after Ludwig Otto Hesse 1811–1874) is the 3 × 3 matrix field of the second derivatives of the scalar field f :
Hf := J(∇~f ) =
∂^2 f ∂x^2
∂^2 f ∂y∂x
∂^2 f ∂z∂x ∂^2 f ∂x∂y
∂^2 f ∂y^2
∂^2 f ∂z∂y ∂^2 f ∂x∂z
∂^2 f ∂y∂z
∂^2 f ∂z^2
Note that, thanks to Clairault’s theorem ( 17 ), (if the field f is smooth enough) the Hessian is a symmetric matrix in every point. The Laplacian equals the trace of the Hessian, i.e. the sum of its diagonal terms:
∆f = Tr(Hf ). (20)
The vector Laplacian ∆~ is the Laplace operator applied componentwise to vector fields:
∆^ ~F~ := (∆F 1 )ˆı + (∆F 2 )ˆ + (∆F 3 )ˆk (21)
∂x^2
∂y^2
∂z^2
ˆı +
∂x^2
∂y^2
∂z^2
∂x^2
∂y^2
∂z^2
ˆk.
(^5) The reason for the use of the notation ∇ (^2) will be slightly more clear after equation ( 24 ); this symbol is mainly used by physicists and engineers. (^6) http://mathoverflow.net/questions/
−0.5 0 0.5 1 1.
−0.
−0.
0
1
Figure 12: The field ~F = (x^2 − x)ˆı + (y^2 − y)ˆ has divergence ∇ ·~ ~F = 2(x + y − 1) which is positive above the straight line x + y = 1 and negative below. If ~F represents the velocity of a fluid, the upper part of the space acts like a source and the lower part as a sink.
Warning: frequent error 1.49. Since strictly speaking ∇~ is not a vector ( 11 ), the symbol ~∇ · ~F does not represent a scalar product and^7 ∇ ·^ ~ F~ 6 = ~F · ∇~.
Recall: you can not move around the nabla symbol ∇~ in a mathematical expression!
1.3.6 The curl operator
The last differential operator we define is the curl operator ∇×~ (often denoted “curl” and more rarely “rot” and called rotor or rotational), which maps vector fields to vector fields:
∇ ×^ ~ ~F := curl F~ : =
ˆı ˆ ˆk ∂ ∂x
∂ ∂y
∂ ∂z F 1 F 2 F 3
∂y
∂z
ˆı +
∂z
∂x
∂x
∂y
ˆk. (23)
As in the definition of the vector product ( 2 ), the matrix determinant is purely formal, since it contains vectors, differential operators and scalar fields. Again, ∇ ×~ F~ 6 = −~F × ∇~, as the left-hand side is a vector field while the right-hand side is a differential operator. Among all the differential operators introduced so far, the curl operator is the only one which can be defined only in three dimensions, since it is related to the vector product.
Exercise 1.50. ◮ Compute the curl of the following vector fields:
~F(~r) = 2xˆı − 2 yˆ, G~(~r) = yzˆı + xzˆ + xyˆk, H~(~r) = |~r|^2 ˆı + cos ykˆ.
How can we interpret the curl of a field? The curl is in some way a measure of the “rotation” of the field. If we imagine to place a microscopic paddle-wheel at a point ~r in a fluid moving with velocity F~, it will rotate with angular velocity proportional to |∇ ×~ ~F(~r)| and rotation axis parallel to ∇ ×~ ~F(~r). If the fluid motion is planar, i.e. F 3 = 0, and anti-clockwise, the curl will point out of page, if the motion is clockwise it will point into the page (as the motion of a usual screw). See also Figure 13.
(^7) Indeed ∇ ·~ ~F and F~ · ∇~ are two very different mathematical objects: ∇ ·~ F~ is a scalar field, while F~ · ∇~ is an operator that maps scalar fields to scalar fields
(F~ · ∇~)f =
( F 1 ∂ ∂x
) f = F 1 ∂f ∂x
For example if G~ = yzˆı + xzˆ + xyˆk and g = xyez^ , then
( G~ · ∇~)g =
( yz ∂ ∂x
) g = yz yez^ + xz xez^ + xy xyez^ = (x^2 z + y^2 z + x^2 y^2 )ez^.
The operator ~F · ∇~ can also be applied componentwise to a vector field (and in this case it returns a vector field, see ( 35 )). F^ ~ · ~∇ is often called advection operator; when |F~| = 1, then it corresponds to the directional derivative we have already encountered in Section 1.3.2. We will use the advection operator only in Remark 1.56; in any other situation in this module you should not use the symbol (F~ · ∇~).
−2.5 −2 −1.5 −1 −0.5 0 0.5 1 1.5 2 2.
−
−1.
−
−0.
0
1
2
−2 −2.5 −2 −1.5 −1 −0.5 0 0.5 1 1.5 2 2.
−1.
−
−0.
0
1
2
Figure 13: The planar field ~F = 2yˆı − xˆ depicted in the left plot has curl equal to ∇ ×~ F~ = − 3 ˆk which “points into the page”, in agreement with the clockwise rotation of F~. The planar field G~ = x^2 ˆ depicted in the right plot has curl equal to ∇ ×~ G~ = 2xkˆ which points “into the page” for x < 0 and “out of the page” for x > 0. Indeed, if we imagine to immerse some paddle-wheels in the field, due to the differences in the magnitude of the field on their two sides, they will rotate clockwise in the negative-x half-plane and anti-clockwise in the positive-x half-plane.
gradient, Jacobian, Laplacian, Hessian, divergence, curl) are linear operators. This means that, denoting D any of these operators, for all λ, μ ∈ R and for any two suitable fields F and G (either both scalar or both vector fields, depending on which operator is considered), we have the identity D(λF + μG) = λD(F ) + μD(G).
In the following two propositions we prove several identities involving scalar and vector fields and the differential operators defined so far. It is fundamental to apply each operator to a field of the appropriate kind, for example we can not compute the divergence of a scalar field because we have not given any meaning to this object. For this reason, we summarise in Table 1 which types of fields are taken as input and returned as output by the various operators.
Operator name symbol field taken as input field returned as output order Partial derivative (^) ∂x∂ , (^) ∂y∂ or (^) ∂z∂ scalar scalar 1 st Gradient ∇~ scalar vector 1 st Jacobian J vector matrix 1 st Laplacian ∆ scalar scalar 2 nd Hessian H scalar matrix 2 nd Vector Laplacian ∆~ vector vector 2 nd Divergence ∇·~ (or div) vector scalar 1 st Curl (only 3D) ∇×~ (or curl) vector vector 1 st
Table 1: A summary of the differential operators defined in Section 1.3. The last column shows the order of the partial derivatives involved in each operator.
1.4.1 Second-order vector differential identities
Next proposition shows the result of taking the divergence or the curl of gradients and curls.
Proposition 1.52 (Vector differential identities for a single field). Let f be a scalar field and ~F be a vector field, both defined in a domain D ⊂ R^3. Then the following identities hold true:
∇ ·^ ~ (∇~f ) = ∆f, (24) ∇ ·^ ~ (∇ ×~ ~F) = 0, (25) ~∇ × (∇~f ) = ~ 0 , (26)
∇ ×^ ~ (∇ ×~ ~F) = ∇~(~∇ · ~F) − ∆~~F. (27)