<<

Partial

First-Order Partial Derivatives

Given a multivariable , we can treat all of the variables except one as a constant and then differentiate with respect to that one variable. This is known as a partial of the function

For a function of two variables z = f(x, y), the partial derivative with respect to x is written:

∂f ∂ ∂z f , f (x, y), , (f(x, y)) , , or D f x x ∂x ∂x ∂x x The partial derivative with respect to y is written: ∂f ∂ ∂z f , f (x, y), , (f(x, y)) , , or D f y y ∂y ∂y ∂y y

(The notation for functions of more than two variables is similar.)

∂f Graphically, ∂x tells us the instantaneous rate of change of the function if we hold y fixed and move parallel to ∂f the x-axis in the positive direction, while ∂y tells us the instantaneous rate of change of the function if we hold x fixed and move parallel to the y-axis in the positive direction. See Figure 1 below.

∂f 3  ∂f 3  (a) As we move in the +x-direction from (−1, 1), ∂x (−1, 1) is (b) As we move in the +y-direction from 2, 2 , ∂x 2, 2 is positive, so f is increasing in that direction. negative, so f is decreasing in that direction.

Figure 1

1 Definition

As with derivatives in I, there is a limit definition for partial derivatives:

∂f f(x + h, y) − f(x, y = lim ∂x h→0 h ∂f f(x, y + h) − f(x, y = lim ∂y h→0 h We won’t be using the limit definition to find partial derivatives in this class, but we would need it if we wanted to go through a later example.

Example 1. Find all first partial derivatives of the following functions:

∂f ∂f 1. f(x, y) = x2y2 + y2 + 2x3y = 2xy2 + 6x2y, = 2x2y + 2y + 2x3, ∂x ∂y ∂2f ∂2f ∂2f ∂2f = 12xy + 2y2, = 6x2 + 4xy, = 2 + 2x2, = 6x2 + 4xy, ∂x2 ∂y ∂x ∂y2 ∂x ∂y ∂3f ∂3f ∂3f ∂3f ∂3f ∂3f ∂3f ∂3f = 12y, = 12x + 4y = = , = 0, = 4x = = ∂x3 ∂y ∂x2 ∂x2 ∂y ∂x ∂y ∂x ∂y3 ∂x ∂y2 ∂y2 ∂x ∂y ∂x ∂y

2 ∂f 2 ∂f 2 2. f(x, y) = ex y = 2xyex y, = x2ex y, ∂x ∂y 2 2 2 2 ∂ f 2 2 ∂ f 2 2 ∂ f 2 ∂ f 2 2 = 4x2y2ex y + 2yex y, = 2xex y + 2x3yex y, = x4ex y, = 2xex y + 2x3yex y ∂x2 ∂y ∂x ∂y2 ∂x ∂y

2 ∂f 2 2 ∂f 2 3. f(x, y) = xex y = ex y + 2x2yex y, = x3ex y, ∂x ∂y 2 2 2 2 ∂ f 2 2 ∂ f 2 2 ∂ f 2 ∂ f 2 2 = 6xyex y + 4x3y2ex y, = 3x2ex y + 2x4yex y, = x5ex y, = 3x2ex y + 2x4yex y ∂x2 ∂y ∂x ∂y2 ∂x ∂y yzex ∂h yzexx2 sin(y) − yzex2x sin(y) yzex(x − 1) 4. h(x, y, z) = = = ... = , x2 sin(y) ∂x (x2 sin(y))2 x3 sin(y) ∂h zexx2 sin(y) − yzexx2 cos(y) zex (sin(y) − y cos(y)) ∂h yex = = , = ∂y (x2 sin(y))2 x4 sin2(y) ∂z x2 sin(y)

Some additional examples we’ll look at if time permits:

√ √ ∂f z ∂f ∂f ln(x) 5. f(x, y, z) = 2x2y + eyz + z ln(x) = 4xy + , = 2x2 + eyz, = ey + √ ∂x x ∂y ∂z 2 z

2 ∂f 2 ∂f 2 ∂f 2 6. f(x, y, z) = zex +xy = z(2x + y)ex +xy, = xzex +xy, = ex +xy ∂x ∂y ∂z x ∂f xy + z ∂f 2x2 ∂f 2x 7. f(x, y, z) = = − , = − , = (xy − z)2 ∂x (xy − z)3 ∂y (xy − z)3 ∂z (xy − z)3

Higher Order Derivatives

We can find second order derivatives by simply differentiating the first order partial derivatives again. We can find third or higher order derivatives in a similar manner.

2 The notation for second order derivatives is: ∂ ∂f  ∂2f ∂2z (f ) = f = = = = D f x x xx ∂x ∂x ∂x2 ∂x2 xx ∂ ∂f  ∂2f ∂2z (f ) = f = = = = D f y y yy ∂y ∂y ∂y2 ∂y2 yy ∂ ∂f  ∂2f ∂2z (f ) = f = = = = D f x y xy ∂y ∂x ∂y ∂x ∂y ∂x xy ∂ ∂f  ∂2f ∂2z (f ) = f = = = = D f y x yx ∂x ∂y ∂x ∂y ∂x ∂y yx

For third order derivatives, we have

fxxx, fyyx, fyxy, etc. ∂3f ∂3f ∂3f , , , etc. ∂x3 ∂x ∂y2 ∂y ∂x ∂y

There are 23 = 8 possible third order partial derivatives. In general there are

(number of indep variables)n nth-order partial derivatives.

Note that order in which we read off which variable to differentiate with respect to changes between the subscript notation and the ∂ notation. In the subscript notation we read from left to right, in the ∂ notation we read from ∂3f right to left. So, for example, fyyx is equivalent to ∂y2 ∂x (in both, we differentiate with respect to y twice and then with respect to x).

Example 2. Find all of the second order partial derivatives of the functions in Example 1. Find all of the third order partial derivatives for Example 1.1. [Partial solutions on previous page.]

Clairaut’s Theorem

Theorem 1 (Clairout’s Theorem). Suppose f is defined on a disk D that contains the point (a, b). If the functions fxy and fyx are both continuous on D, the fxy(a, b) = fyx(a, b)

This essentially says that for “nice” functions the mixed partial derivatives are equal, which means that the order in which we differentiate won’t matter in most/all of the problems you’ll see here.

One example of a function whose mixed partials are different (so, it does not satisfy the hypotheses of Clairout’s Theorem) is xy(x2 − y2)  , if (x, y) 6= (0, 0) f(x, y) = x2 + y2 0, if (x, y) 6= (0, 0)

One can use the limit definition of the derivatives to show that fxy(0, 0) = 1 but fyx(0, 0) = −1

Implicit Differentiation

We can do implicit differentiation in a manner very similar to what we would have done back in calculus I.

3 For example, if z is defined implicitly as a function of x and y by the

z2 − x2y + z3x + zy = 3 and we differentiate implicitly with respect to x, then ∂z ∂z ∂z 2z − 2xy + 3z2 x + z3 + y = 0 ∂x ∂x ∂x ∂z 2z + 3z2x + z3 + y = 2xy ∂x ∂z 2xy − z3 = ∂x 2z + 3z2x + y Example 3. Find each of the following for the problem above:

x2 − z 1. ∂z = ∂y 2z + 3z2x + y

∂2z 2. ∂x ∂y

∂2z x2 − ∂z  2z + 3z2x + y − x2 − z 2 ∂z + 6z ∂z x + 3z2 = ∂x ∂x ∂x ∂x ∂y (2z + 3z2x + y)2  2 x2−z  2  2   x2−z x2−z 2 x − 2z+3z2x+y 2z + 3z x + y − x − z 2 2z+3z2x+y + 6xz 2z+3z2x+y + 3z = (2z + 3z2x + y)2

This would be sufficient for an answer on a test. If you were to continue to simplify (and fully expanded the numerator) you would get: 5 4 4 4 3 2 3 4 3 3 3 2 2 2 2 2 2 2 2 3 2 2 2 5 3 3 4 = −6x z+9x z −2x +6x yz −9x z +12x z +9x z +x y −3x yz +4x yz−x y−6x z +4x z +2x z+9xz −3xz +3yz +yz+6z (3xz2+y+2z)3

4