For a function of a single variable, y=f(x), changing the independent variable x leads to a corresponding change in the dependent variable y. The rate of change of y with respect to x is given by the derivative, written df/dx. A similar situation occurs with functions of more than one variable.
For clarity we consider functions of just two variables. In the relation z=f(x,y) the independent variables are x and y and z is the dependent variable. Now both of the variables x and y may change simultaneously inducing a change in z. However, rather than consider this general situation, we shall, to begin with, hold one of the independent variables fixed. This is equivalent to moving along a curve obtained by intersecting the surface by one of the coordinate planes.
Let's start with the function f(x,y)=2x2y3 and let's determine the rate at which the function is changing at a point (a,b), if we hold y fixed and allow x to vary and if we hold x fixed and allow y to vary.
We'll start by looking at the case of holding y fixed and allowing x to vary. Since we are interested in the rate of change of the function at (a,b) and are holding y fixed this means that we are going to always have y=b. Doing this will give us a function involving only x's and we can define a new function as follow:
g(x)=f(x,b)=2x2b3
Now, this is a function of a single variable and at this point all that we are asking is to determine the rate of change of g(x) at x=a. In other words, we want to compute g′(a) and since this is a function of a single variable we already know how to do that. Here is the rate of change of the function at (a,b) if we hold y fixed and allow x to vary.
g′(a)=4ab3
We will call g′(a) the partial derivative of f(x,y) with respect to x at (a,b) and we will denote it in the following way
fx(a,b)=4ab3
Now, let's do it the other way. We will now hold x fixed and allow y to vary. We can do this in a similar way. Since we are holding x fixed it must be fixed at x=a and so we can define a new function of y and then differentiate this as we've always done with functions of one variable.
h(y)=f(a,y)=2a2y3⇒h′(b)=6a2b2
In this case we call h′(b) the partial derivative of f(x,y) with respect to y at (a,b) and we denote it as follow
fy(a,b)=6a2b2
Note as well that we usually don't use the (a,b) notation for partial derivatives. The more standard notation is to just continue to use (x,y). So, the partial derivatives from above will more commonly be written as,
fx(x,y)=4xy3andfy(x,y)=6x2y2
Now, as this quick example has shown taking derivatives of functions of more than one variable is done in pretty much the same manner as taking derivatives of a single variable. To compute fx(x,y) all we need to do is treat all the y's as constants (or numbers) and then differentiate the x's as we've always done. Likewise, to compute fy(x,y) we will treat all the x's as constants and then differentiate the y's as we are used to doing.
Here are the formal definitions of the two partial derivatives we looked at above.
Now let's take a quick look at some of the possible alternate notations for partial derivatives. Given the function z=f(x,y) the following are all equivalent notations,
fx(x,y)=fx=∂x∂f=∂x∂(f(x,y))=zx=∂x∂z=Dxf
fy(x,y)=fy=∂y∂f=∂y∂(f(x,y))=zy=∂y∂z=Dyf
For the fractional notation for the partial derivative notice the difference between the partial derivative and the ordinary derivative from single variable calculus.
f(x)→f′(x)=dxdf
f(x,y)→fx(x,y)=∂x∂fandfy(x,y)=∂y∂f
Key Point
The Partial Derivative of f with respect to x
For a function of two variables z=f(x,y) the partial derivative of f with respect to x is denoted by
∂x∂f
and is obtained by differentiating f(x,y) with respect to x in the usual way but treating the y-variable (temporarily) as if it were a constant.
Alternative notations are fx(x,y) and ∂x∂z.
Key Point
The Partial Derivative of f with respect to y
For a function of two variables z=f(x,y) the partial derivative of f with respect to y is denoted by
∂y∂f
and is obtained by differentiating f(x,y) with respect to y in the usual way but treating the x-variable (temporarily) as if it were a constant.
Alternative notations are fy(x,y) and ∂y∂z.
As we have seen, a function of two variables f(x,y) has two partial derivatives, ∂x∂f and ∂y∂f. In an exactly analogous way a function of three variables f(x,y,u) will have three partial derivatives ∂x∂f, ∂y∂f and ∂u∂f and so on for functions of more than three variables. Each partial derivative is obtained in the same way:
Key Point
The Partial Derivatives of f(x,y,u,v,w,…)
For a function of several variables z=f(x,y,u,v,w,…) the partial derivative of f with respect to v (say) is denoted by
∂v∂f
and is obtained by differentiating f(x,y,u,v,w,…) with respect to v in the usual way but treating all the other variables (temporarily) as if they were constants.
Alternative notations are fv(x,y,u,v,w,…) and ∂v∂f.
Just as we had higher order derivatives with functions of one variable, we will also have higher order derivatives of functions of more than one variable. However, this time we will have more options since we do have more than one variable.
Consider the case of a function of two variables, f(x,y). Since both of the first order partial derivatives are also functions of x and y we could in turn differentiate each with respect to x or y. This means that for the case of a function of two variables there will be a total of four possible second order derivatives. Here they are and the notations that we'll use to denote them.
(fx)x=fxx=∂x∂(∂x∂f)=∂x2∂2f
(fx)y=fxy=∂y∂(∂x∂f)=∂y∂x∂2f
(fy)x=fyx=∂x∂(∂y∂f)=∂x∂y∂2f
(fy)y=fyy=∂y∂(∂y∂f)=∂y2∂2f
The second and third second order partial derivatives are often called mixed partial derivatives since we are taking derivatives with respect to more than one variable. Note as well that the order that we take the derivatives in is given by the notation for each of these. If we are using the subscripting notation, e.g. fxy, then we will differentiate from left to right. In other words, in this case, we will differentiate first with respect to x and then with respect to y. With the fractional notation, e.g. ∂y∂x∂2f, it is the opposite. In these cases we differentiate moving along the denominator from right to left. So, again, in this case we differentiate with respect to x first and then y.
We prove that the mixed partial derivatives ∂y∂x∂2f and ∂x∂y∂2f are equal at points where both are continuous. This goes under several different names including "equality of mixed partials" and "Clairaut's theorem".
So far we have only looked at second order derivatives. There are, of course, higher order derivatives as well. Here are a couple of the third order partial derivatives of a function of two variables.
fxyx=(fxy)x=∂x∂(∂y∂x∂2f)=∂x∂y∂x∂3f
fyxx=(fyx)x=∂x∂(∂x∂y∂2f)=∂x2∂y∂3f
Notice as well that for both of these we differentiate once with respect to y and twice with respect to x. There is also another third order partial derivative in which we can do this, fxxy.
Composite function is a function where one function is inside of another function. We need to use chain rule to differentiate composite of functions.
Recall the chain rule for ordinary derivatives: if y=f(u) and u=g(x) then
dxdy=dudydxdu
In the above we call u the intermediate variable and x the independent variable.
For partial derivatives the chain rule is more complicated. It depends on how many intermediate variables and how many independent variables are present. Below three theorems are given which it is hoped indicate the general points. Essentially, every intermediate variable has to have a term corresponding to it in the right hand side of the chain rule formula. For example in the second theorem below there are three intermediate variables x, y and z and three terms in the RHS.
Theorem 1: Chain rule for functions of two independent variables
Theorem 2: Chain rule for functions of three independent variables
Theorem 3: Chain rule for two independent variables and three intermediate variables
∂s∂w=∂x∂w∂s∂x+∂y∂w∂s∂y+∂z∂w∂s∂z
To summarize,
Theorem 1.If w=f(x,y) has continuous partial derivatives and x and y are given as functions of t, then the derivative of the composite function w(t)=f(x(t),y(t)) is given by
dtdw=∂x∂fdtdx+∂y∂fdtdy
Theorem 2.If w=f(x,y,z) has continuous partial derivatives and x, y and z are given as functions of t, then the derivative of the composite function w(t)=f(x(t),y(t),z(t)) is given by
dtdw=∂x∂fdtdx+∂y∂fdtdy+∂z∂fdtdz
Theorem 3.If w=f(x,y,z), x=g(r,s), y=h(r,s) and z=k(r,s), then the partials of w with respect to r and s are given by
The chain rule can also be used to derive a simpler method for finding the derivative of an implicitly defined function.
Suppose that F(x,y)=0 defines y as an implicit function of x we will call y=f(x). We wish to find dy/dx. We do so by differentiating both sides of F(x,y)=0 with respect to x. To differentiate the left side with respect to x, F(x,y), we will use the chain rule, remembering that F(x,y)=F(x,f(x)). So, F is ultimately a function of x.
Example 2.5(ii) may be viewed as an example of transformation of coordinates. Consider the transformation or mapping from the (x,y) plane to the (u,v) plane defined by
u=u(x,y),v=v(x,y)
Then a function F=f(x,y) of x and y becomes a function F=T(u,v) of u and v under the transformation, and the partial derivatives are related by the chain rule:
The matrix itself is referred to as the Jacobian matrix. The Jacobian plays an important role in various applications of mathematics in engineering, particularly in implementing changes in variables in multiple integrals.
We can also have x=X(u,v) and y=Y(u,v) which represent a transformation of the (u,v) plane into the (x,y) plane. This is called the inverse transformation and we can relate the partial derivatives by
∂u∂F=∂x∂F∂u∂x+∂y∂F∂u∂y
∂v∂F=∂x∂F∂v∂x+∂y∂F∂v∂y
The Jacobian of this inverse transformation is
J1=∂(u,v)∂(x,y)=xuxvyuyv
And, provided J=0, it is always true that J1=J−1 or
∂(u,v)∂(x,y)∂(x,y)∂(u,v)=1
If J=0 then the variables u and v are functionally dependent; that is, a relationship of the form f(u,v)=0 exists. This implies a non-unique correspondence between points in the (x,y) and (u,v) planes.
Partial derivatives occur in the mathematical modelling of many engineering problems; this leads to the study of partial differential equations. Partial differentiation is also a tool for the analysis of many practical problems.
The total differential of the function of two variables (x,y) defined by F=f(x,y) is given by
dF=∂x∂fdx+∂y∂fdy
Differential dF is an approximation to change ΔF in F=f(x,y) resulting from small changes Δx and Δy in the independent variables x and y, i.e.
ΔF≈∂x∂fΔx+∂y∂fΔy
This extends to functions of as many variables as we please, provided that the partial derivatives exist. For example, for a function of three variables (x,y,z) defined by F=f(x,y,z), we have
dF=∂x∂fdx+∂y∂fdy+∂z∂fdz
And thus
ΔF≈∂x∂fΔx+∂y∂fΔy+∂z∂fΔz
The total differential therefore shows the variation of the function with respect to small changes in all the independent variables.
Compute the total differential for the function F=xy.
Solution
dF=yxy−1dx+xylnxdy
All physical measurements are subjected to error, and a calculated quantity usually depends on several measurements. It is very important to know the degree of accuracy that can be relied upon in a quantity that has been calculated. The total differential can be used to estimate error bounds for quantities calculated from experimental results or from data that is subject to errors. This is illustrated in example 2.7.
The volume of a circular cylinder of radius r and height h is given by V=πr2h. If r=3 cm subject to an error of 0.01 cm and h=5 cm subject to an error of 0.005 cm, find the greatest possible error in the calculation of V.
Solution
The total differential is
ΔV≈∂r∂Vdr+∂h∂Vdh=2πrhdr+πr2dh
ΔV≈πr(2hΔr+rΔh)
When r=3 and h=5, we are given that dr=0.01 and dh=0.005, so that
A balloon is in the form of right circular cylinder of radius 1.5 m and length 4 m and is surrounded by hemispherical ends. If the radius is increased by 0.01 m and the length by 0.05 m, find the percentage change in the volume of the balloon.
Solution
Volume of balloon = volume of cylinder + volume of 2 hemispheres
% change in volume =100×(1.013/V)=100×(1.013/42.411)=2.39%
2.7 Tangent Planes and Normal to Surfaces in Three Dimensions
The circle, ellipse, hyperbola and parabola of two dimensions generalize in three dimensions to give the sphere, ellipsoid, hyperboloid and paraboloid as illustrated. Equations of these surfaces are as follow:
(a) Sphere: x2+y2+z2=r2
(b) Ellipsoid: a2x2+b2y2+c2z2=1
(c) Elliptic paraboloid: a2x2+b2y2=cz
(d) Hyperbolic paraboloid: b2y2−a2x2=cz
(e) Hyperboloid of one sheet: a2x2+b2y2−c2z2=1
(f) Hyperboloid of two sheets: a2x2+b2y2−c2z2=−1
(g) Elliptic cone: a2x2+b2y2−c2z2=0
In general, let f(x,y,z)=0 be the equation of a surface in three dimensions:
df=∂x∂fdx+∂y∂fdy+∂z∂fdz=0
Interpreting this geometrically, we can say that if P is the point (x,y,z) and Q is the point (x+dx,y+dy,z+dz) then PQ is a tangent line to the surface. Since the equation before implies that the scalar product
(∂x∂f,∂y∂f,∂z∂f)⋅(dx,dy,dz)=0
we deduce that the vector (dx,dy,dz) is perpendicular to the vector (∂f/∂x,∂f/∂y,∂f/∂z). Therefore all the tangent lines to the surface at P are perpendicular to the vector (∂f/∂x,∂f/∂y,∂f/∂z). Hence, the equation of the tangent plane to the surface at the point (x0,y0,z0) on the surface is given by:
The dotted lines are the x, y, z tangent lines. They lie in the plane. All tangent lines lie in the tangent plane. These particular lines are tangent to the 'partial functions' – where z is fixed at z0=4, y is fixed at y0=2 and x is fixed at x0=1. The plane is balancing on the surface and touching at the tangent point.
The equation of normal line in parametric form:
x=x0+2t,y=y0+4t,z=z0+t
So, at (1,2,4),
x=1+2t,y=2+4t,z=4+t
Therefore, the symmetric equation of the normal at the point (1,2,4) is:
2x−1=4y−2=1z−4
The normal vector N has components 2, 4, 1. Starting from (1,2,4) the line goes out along N-perpendicular to the plane and the surface, as shown in the figure above.