1.2: Differential Calculus
1.2.1: "Ordinary" Derivatives
Suppose we have a function of one variable, . Question: what does the derivative do for us? Answer: It tells us how rapidly the function varies when we change the argument x by a tiny amount, In words: If we increment x by an infinitesimal amount , then changes by an amount ; the derivative is the proportionality factor. Foe example, in Fig. 1.17(a), the function varies slowly with x, and the derivative is correspondingly small. In Fig 1.17(b), f increases rapidly with x, and the derivative is large as you move away from . Geometrical interpretation: The derivative is the slope of the graph of f versus x.
1.2.2: Gradient
Suppose, now, that we have a function of three variables-say, the temperature T (x, y, z) in this room. (Start out in one comer, and set up a system of axes; then for each point (x, y, z) in the room, T gives the temperature at that spot.) We want to generalize the notion of "derivative" to functions like T, which depend not on one but on three variables.
A derivative is supposed to tell us how fast the function varies, if we move a little distance. But this time the situation is more complicated, because it depends on what direction we move: If we go straight up, then the temperature will prob- ably increase fairly rapidly, but if we move horizontally, it may not change much at all. In fact, the question "How fast does T vary?" has an infinite number of answers, one for each direction we might choose to explore.
Fortunately, the problem is not as bad as it looks. A theorem on partial derivatives states that
This tells us how T changes when we alter all three variables by the infinitesimal amounts dx, dy, dz. Notice that we do not require an infinite number of derivatives - three will suffice: the partial derivatives along each of the three coordinate directions. is reminiscent of a dot product: where is the gradient of T. Note that is a vector quantity, with three components; it is the generalized derivative we have been looking for. is the three-dimensional version of . Geometrical interpretation of the Gradient: Like any vector, the gradient has magnitude and direction. To determine its geometrical meaning, let's rewrite the dot product using Eq. 1.1 where is the angle between and . Now if we fix the magnitude and search around in various directions, the maximum change in T evidently occurs when (for then ). That is, for a fixed distance, dT is greatest when I move in the same direction as . Thus:
The gradient points in the direction of maximum increase of the function T.
Moreover:
The magnitude gives the slope (rate of increase) along this maximal direction
Imagine you are standing on a hillside. Look all around you, and find the direction of steepest ascent. That is the direction of the gradient. Now measure the slope in that direction (rise over run). That is the magnitude of the gradient. (Here the function we're talking about is the height of the hill, and the coordinates it depends on are positions-latitude and longitude, say. This function depends on only two variables, not three, but the geometrical meaning of the gradient is easier to grasp in two dimensions.) Notice from Eq. 1.37 that the direction of maximum descent is opposite to the direction of maximum ascent, while at right angles the slope is zero (the gradient is perpendicular to the contour lines). You can conceive of surfaces that do not have these properties, but they always have "kinks" in them, and correspond to non-differentiable functions.
What would it mean for the gradient to vanish? If at (x, y, z), then for small displacements about the point (x, y, z). This is, then, a stationary point of the function T(x, y, z). It could be a maximum (a summit), a minimum (a valley), a saddle point (a pass), or a "shoulder." This is analogous to the situation for functions of one variable, where a vanishing derivative signals a maximum, a minimum, or an inflection. In particular, if you want to locate the extrema of a function of three variables, set its gradient equal to zero.
Example 1.3
Find the gradient of (the magnitude of the position vector)
Solution Does this makes sense? Well, it says that the distance from the origin increases most rapidly in the radial direction, and that its rate of increase in that direction is 1... just what you'd expect.
1.2.3: The Del Operator
The gradient has the formal appearance of a vector, , "multiplying" a scalar T: (For once, I write the unit vectors to the left, just so no one will think that this means and so on, which would be zero since the coordinate directions are constant.) The term in parentheses is called del:
Of course, del is not a vector, in the usual sense. Indeed, it doesn't mean much until we provide it with a function to act upon. Furthermore, it does not "multiply" T; rather, it is an instruction to differentiate what follows. To be precise, then, we say that is a vector operator that acts upon T, not a vector that multiplies T.
With this qualification, though, mimics the behavior of an ordinary vector in virtually every way; almost anything that can be done with other vectors can also be done with , if we merely translate "multiply" by "act upon." So by all means take the vector appearance of seriously: it is a marvelous piece of notational simplification, as you will appreciate if you ever consult Maxwell's original work on electromagnetism, written without the benefit of .
Now, an ordinary vector can multiply in three ways:
- By a scalar a:
- By a vector , via the dot product:
- By a vector , via the cross product:
Correspondingly, there are three ways the operator can act:
- On a scalar function T: (the gradient)
- On a vector function , via the dot product: (the divergence)
- On a vector function , via the cross product: (the curl)
We have already discussed the gradient. In the following sections we examine the other two vector derivatives: divergence and curl.
1.2.4: The Divergence
From the definition of we construct the divergence: Observe that the divergence of a vector function is itself a scalar.
Geometrical interpretation: The name divergence is well chosen, for is a measure of how much the vector spreads out (diverges) from the point in question. For example, the vector function in Fig. 1.18a has a large (positive) divergence (if the arrows pointed in, it would be a negative divergence), the function in Fig. 1.18b has zero divergence, and the function in Fig. 1.18c again has a positive divergence. (Please understand that here is a function - there's a different vector associated with every point in space. In the diagrams, of course, I can only draw the arrows at a few representative locations.)
Imagine standing at the edge of a pond. Sprinkle some sawdust or pine needles on the surface. If the material spreads out, then you dropped it at a point of positive divergence; if it collects together, you dropped it at a point of negative divergence. (The vector function in this model is the velocity of the water at the surface - this is a two-dimensional example, but it helps give one a "feel" for what the divergence means. A point of positive divergence is a source, or "faucet"; a point of negative divergence is a sink, or "drain.")
Example 1.4
Suppose the functions in Fig 1.18 are , , and . Calculate their divergences.
Solution As anticipated, this function has a positive divergence. as expected.
1.2.5: The Curl
From the definition of we construct the curl:
Notice that the curl of a vector function is, like any cross product, a vector.
Geometrical Interpretation: The name curl is also well chosen, for is a measure of how much the vector swirls around the point in question. Thus the three functions in Fig. 1.18 all have zero curl (as you can easily check for yourself), whereas the functions in Fig. 1.19 have a substantial curl, pointing in the z direction, as the natural right-hand rule would suggest. Imagine (again) you are standing at the edge of a pond. Float a small paddlewheel (a cork with toothpicks pointing out radially would do); if it starts to rotate, then you placed it at a point of nonzero curl. A whirlpool would be a region of large curl.
Example 1.5
Suppose the function sketched in Fig 1.19a is , and that in Fig 1.19b is . Calculate their curls.
Solution and As expected, these curls point in the +z direction. (Incidentally, they both have zero divergence, as you might guess from the pictures: nothing is "spreading out"... it just "swirls around.")
1.2.6: Product Rules
The calculation of ordinary derivatives is facilitated by a number of rules, such as the sum rule the rule for multiplying a constant: the product rule: and the quotient rule Similar relations hold for the vector derivatives. Thus, and as you can check for yourself. The product rules are not quite so simple. There are two ways to construct a scalar as the product of two functions: and two ways to make a vector:
Accordingly, there are six product rules, two for gradients: two for divergences: and two for curls: If there's anything in this chapter that's worth memorizing, it is this set of identities. The proofs come straight from the product rule for ordinary derivatives. For instance, It is also possible to formulate three quotient rules: However, since these can be obtained quickly from the corresponding product rules, there is no point in listing them separately.
1.2.7: Second Derivatives
The gradient, the divergence, and the curl are the only first derivatives we can make with ; by applying twice, we can construct five species of second derivatives. The gradient is a vector, so we can take the divergence and curl of it:
- Divergence of gradient:
- Curl of gradient:
The divergence is a scalar - all we can do is take its gradient:
- Gradient of divergence:
The curl is a vector, so we can take its divergence and curl:
- Divergence of curl:
- Curl of curl:
This exhausts the possibilities, and in fact not all of them give anything new. Let's consider them one at a time:
This object, which we write as for short, is called the Laplacian of T; we shall be studying it in great detail later on. Notice that the Laplacian of a scalar T is a scalar. Occasionally we shall speak of the laplacian of a vector, . By this we mean a vector quantity whose x-component is the Laplacian of , and so in: This is nothing more than a convenient extension of the meaning of .
The curl of a gradient is always zero: This is an important fact, which we shall use repeatedly; you can easily prove it from the definition of , hinging on the equality of cross-derivatives:
seldom occurs in physical applications, and it has not been given any special name of its own - it's just the gradient of the divergence. Notice that is not the same as the Laplacian of a vector: .
The divergence of a curl, like the curl of a gradient, is always zero: You can prove this for yourself.
As you can check from the definition of : So curl-of-curl gives nothing new; the first term is just gradient of divergence, and the second is the Laplacian (of a vector). (In fact, this is often used to define the Laplacian of a vector, in preference to which makes explicit reference to Cartesian coordinates.)
Really, then, there are just two kinds of second derivatives: the Laplacian (which is of fundamental importance) and the gradient-of-divergence (which we seldom encounter). We could go through a similar ritual to work out third derivatives, but fortunately second derivatives suffice for practically all physical applications.
A final word on vector differential calculus: It all flows from the operator , and from taking seriously its vectorial character. Even if you remembered only the definition of , you could easily reconstruct all the rest.