In Figs. 4.5 and 4.6 we show an example of functions of more than one variable. Clearly it is very easy to pick out the minima and maxima, since we can make a very visual representation of such a function as a surface by the identification of the “height” z with the output of the function. In more than two dimensions, i.e., when we have a function that takes three or more arguments, and returns one value, we can’t use the visual analogy. So how do we deal with that? We need to generalise derivatives to more than one dimension.
Let us study the situation in two dimensions, and generalise to three and more dimensions later. We shall look at a very small part of the surface, as in Fig. 4.7. The change in the function due to taking small steps in both variables simultaneously (the most general one possible), is
f(x + δx,y + δy) − f(x,y) = δx{f(x + δx,y) − f(x,y)\over
δx} + δy{f(x + δx,y + δy) − f(x + δx,y)\over
δy} + ...,
| (4.2) |
where, just as in one dimension, the three dots denote terms of higher power in the small numbers δx and δy. The expression is not symmetric under the interchange of x and y, and we need to take one more step. The second term can be transformed back to refer to x rather than x + δx by making an error proportional to δx. But that corresponds to a term δxδy which is much smaller than the two terms already there if δx and δy are small. Thus
f(x + δx,y + δy) − f(x,y) = δx{f(x + δx,y) − f(x,y)\over
δx} + δy{f(x,y + δy) − f(x,y)\over
δy} + ...,
| (4.3) |
This show that a general change in the function can be expanded into a change in the individual variables, keeping the other fixed. In the limit of δx and δy going to zero this gives rise to the partial derivatives, denoted by a curly ∂. In mathematical notation
Example 4.16:
Given u(x,y) = {x}^{3} + {x}^{2}y + xy + {y}^{3}, find {∂u\over ∂x} and {∂u\over ∂y}.
Solution:
where the terms are the partial derivatives of each of the four terms in the function.
From f(x + δx,y + δy) − f(x,y) ≈ {∂f\over ∂x}δx + {∂f\over ∂y}δy we obtain that when both partial derivatives are zero we have an extremum (minimum or maximum or ...), where the function is “flat” in first approximation. We thus need to solve a simultaneous set of equations for such a thing to occur.
Example 4.17:
Calculate the minimum surface area for a cuboid of size a × b × c, Fig. 4.8, for fixed volume V .
Solution:
The volume V is simply abc. The surface is the area of the six rectangular sides, S = 2ab + 2ac + 2bc. The only problem is the constraint of constant volume. We can use that to eliminate one of the three variables from the problem, we choose c: c = V∕(ab). Thus
S = 2ab + {2V \over
b} + {2V \over
a} .
| (4.6) |
Now differentiate this with respect to a and b, and find
These must both equal zero, and we get the equations
Substitute the first equation into the l.h.s. of the second equation, and find
a = −V {a}^{4},
| (4.9) |
which can be rewritten as a(1 − V {a}^{3}) = 0. Clearly the solution a = 0 is nonsensical (since b must be infinite), and we find
\class{boxed}{a = b = c = {V }^{1∕3}, }
|
and the minimum surface is found for a cube.
Multiple partial derivatives are defined straightforwardly as the partial derivative of the partial derivative,
Slightly more complicated are the mixed ones,
Even though this looks complicated, it can be shown that the order of differentiation actually doesn’t matter!
Example 4.18:
Find all first and second derivatives of f(x,y) = x\mathop{sin}\nolimits y +\mathop{ cos}\nolimits (x − y).
Solution:
where the last two terms have been calculated in the order indicated in the denominator, and we see the equality alluded to above.