]>
Previous topic: page 2 Partial Derivatives
Next topic: page 4 Change of Variables
A partial derivative of a function with respect to one of its variables, represents by itself a function of many variables. As such, it can be differentiated again with respect to the same or to a different variable, obtaining a second derivative.
If the original function is of n variables, there are n possible first derivatives. Each one of these first derivatives, can be in principle differentiated by n different variables, yielding n² derivatives of the second order. One can continue and differentiate the second order derivatives, and obtain n³ third order derivatives. Obviously the number of derivatives rises exponentially with the order of differentiation. In fact, as we'll see, the situation is not so catastrophic.
Let's have a closer look at the function of two variables
(3.1.3.1) |
The second derivatives with respect to x should be:
(3.1.3.2) |
Similarly the second derivatives with respect to y should be:
(3.1.3.3) |
By definition we have
(3.1.3.4) |
By assuming that one can change the order of the limit, one obtains finally
(3.1.3.5) |
It can be proven that if both
(3.1.3.6) |
are continuous, then the order of differentiation is immaterial. The same rule applies for any derivatives with respect to any number of mixed variables. As an example for the derivatives of the third order:
(3.1.3.7) |
This rule reduces drastically the number of derivatives, e.g. in the case of two variables, the number of derivatives of order k is (k+1) instead of 2k.
The example of a function of three variables (3.1.2.3) was used for obtaining the first derivatives. It is reproduced here:
(3.1.3.8) |
and will be used for obtaining the derivatives of the second order:
(3.1.3.9) |
The results of the calculations are, as expected, in agreement with the rule of the order of differentiation.
The main law of thermodinamics (3.1.2.12/14) will be used as a physical example. As a reminder, from the definition of the total differential, we obtained:
(3.1.3.10) |
Since the order of differentiation of the function U(S,V) is immaterial, we obtain from (3.1.3.10):
(3.1.3.11) |
which is one of the four Maxwell equations of thermodynamics.
If the function and the variables have physical dimensions, then the notation presented here of a partial derivative of any order, which is inherited by the notation of the regular derivatives, exhibits its physical dimensions. As an example let's look at the dimensions of the expression (3.1.3.7):
(3.1.3.12) |
where the square brackets mean the physical dimension (of what is inside the brackets).
Another notation of partial derivatives, which is commonly used, is to write the variables with respect to whom the function is differentiated, as indices of the function. For example
(3.1.3.13) |
and so are
(3.1.3.14) |
Although this notation is a legitimate shorthand, in the case of a change of variables, it could become ambiguous. For that reason it will be used here only in limited cases.
We already know (3.1.2.30-32) to calculate the first approximation of a function of many variables around a point. As in the case of a function of a single variable, one can add to this first approximation a term formed by the second derivatives, in order to obtain a second approximation. For simplicity we'll study the case of a function of two variables, and expand it afterwards for the more general case.
For a function of two variables (3.1.3.1), the first approximation around the point (x, y)0 can be written as:
(3.1.3.15) |
The second approximation includes an additional term of a squared expression containing symbolic operators. Its meaning could be understood by the following:
(3.1.3.16) |
Simple calculation shows that this is indeed the second approximation, since the second derivatives of the approximation and the function are identical
(3.1.3.17) |
without affecting the contributions of the first approximation.
For a quadratic function, the second approximation is identical to the function itself. The following examples of quadratic functions, studied previously, are shown here as a reminder.
1. A hyperbolic paraboloid (3.1.1.11):
(3.1.3.18) |
2. An elliptic paraboloid (3.1.2.40):
(3.1.3.19) |
On the other hand, the example of an ellipsoid written in a implicit form as
(3.1.3.20) |
contains only squared terms of the variables, but the function z is not a quadratic function:
(3.1.3.21) |
Its second approximation (for z≥0), around the point (x, y)0 = (0, 0), yields the elliptic paraboloid:
(3.1.3.22) |
Its proof is given as a task for the student in exercise 3 below. The second approximation (3.1.3.22) is compared graphically to the ellipsoid (3.1.3.20) in Fig. Approximated ellipsoid, showing overlapping shapes, in the vicinity of (x, y)0 = (0, 0).
For a function of n variables
(3.1.3.23) |
The second approximation, around the point
(3.1.3.24) |
will be written in the following symbolic form, which we already know how to handle
(3.1.3.25) |
The use of higher order of approximations for a function of many variables is rarely used, but for sake of completeness, the appropriate expressions are given here. The order of approximation can be extended to any order j by the use of the following expression:
(3.1.3.26) |
Finally in the case of convergence for the limit of , the Taylor series for a function of n variables is obtained.
The following integral is a function of x
(3.1.3.27) |
With respect to the integration, x is just a parameter, and the function f1 can be moved outside of the integral. By the same argument, the derivative of I with respect to x can be written as
(3.1.3.28) |
This was a trivial case of a differentiation under the integral sign. What will be the derivative with respect to x of the following integral?
(3.1.3.29) |
It can be proven that if and are continuous in both x and u at (3.1.3.29), then
(3.1.3.30) |
The combination of this rule, together with the result that we obtained from the exercise 1 on the previous page, yield the Euler's rule:
(3.1.3.31) |
Exercise 1. Continue the example from the previous page (3.1.2.27) and
Exercise 2. The function z represents a hyperbolic paraboloid.
Exercise 3. The following function z represents the half of an ellipsoid
where a, b and c are positive constants.
Exercise 4. Any electrostatic potential φ in vacuum fulfills the Laplace equation
where are the Cartesian coordinates in three dimensions. What is the most general form of an electrostatic potential depending only of the distance from the origin r ? r is expressed by the coordinates as
Solve this exercise by the following steps:
Exercise 5. Prove that
is a solution of the differential equation
where k is a constant!
Previous topic: page 2 Partial Derivatives
Next topic: page 4 Change of Variables