Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Higher derivatives
Note that, in Example 1, fyx = fxy . This is true for all well-behaved
functions. In particular, if fxy and fyx are both continuous on R2
(or an open subset U of R2 ) then fyx = fxy on R2 (U ).
Advanced Calculus Chapter 3 Applications of partial differentiation 38
xe2x
Example 3 Let z = . Find all the possible values of n given
yn
that
∂ 2z 2
2∂ z
3x − xy = 12z.
∂x2 ∂y 2
xe2x
For z = we have
yn
∂z e2x + 2xe2x
= ,
∂x yn
e2x (1 + 2x)
= ,
yn
∂z nxe2x
= − n+1 ,
∂y y
2
∂ z 2e (1 + 2x) + e2x × 2
2x
= ,
∂x2 yn
4e2x (x + 1)
= ,
yn
∂ 2z n(n + 1)xe2x
= .
∂y 2 y n+2
Thus
∂ 2z 2
2∂ z 12xe2x (x + 1) n(n + 1)x2 e2x xe2x
3x −xy = − = (12(x + 1) − n(n + 1)x) ,
∂x2 ∂y 2 yn yn yn
Advanced Calculus Chapter 3 Applications of partial differentiation 39
and so
∂ 2z 2
2∂ z xe2x 12xe2x
3x − xy = 12z ⇔ (12(x + 1) − n(n + 1)x) = ,
∂x2 ∂y 2 yn yn
⇔ 12(x + 1) − n(n + 1)x = 12,
(Since the result is true for all x and y.)
⇔ 12x + 12 − n(n + 1)x = 12,
⇔ 12 − n(n + 1) = 0,
(Since the result is true for all x.)
⇔ n2 + n − 12 = 0,
⇔ (n + 4)(n − 3) = 0,
⇔ n = −4 or n = 3.
Stationary points
z = f (a, b).
The last equation is true for all x and y. Putting x = a and y any
value other than b into this equation gives fy (a, b) = 0. Similarly,
putting y = b and x any value other than a into this equation
gives fx (a, b) = 0. Hence, if (a, b) is a stationary point of f then
fx (a, b) = 0 and fy (a, b) = 0. It is straightforward to establish the
converse of this result. Thus, to find the stationary points of f , we
have to find the solutions of the equations
fx (a, b) = 0,
fy (a, b) = 0.
1
4
3
0 y
2 -2 -1 0 1
x
-2
1
-1 -1
00 y
2 1 0 -1 -2
1
x
2
-2
A local maximum
-2 -2
-1 xy -1
00 1
0
1 1
2 -1 2
x
-2 -2 -1 0 1
0 y
-3
-4
-5
-1
-2
Advanced Calculus Chapter 3 Applications of partial differentiation 41
A saddle point
1.5
-2 1 -2
0.5
-10.5 -1
x y
00 0 y 0
-1.5 -1 -0.5 0 0.5 1 1.5
1 -0.5 1
x
2 -1 2 -0.5
-1
-1.5
Examples when ∆ = 0
∂f ∂f
Putting = = 0 gives
∂x ∂y
∂ 2f
= −2y 2 + 12x2 ,
∂x2
∂ 2f
= 2y − 4xy,
∂x∂y
∂ 2f
2
= 2x − 2x2 .
∂y
At the stationary point (0, 0), each of the second derivatives is zero.
Thus ∆ = 0 at (0, 0), and so the Hessian gives no information about
the nature of this stationary point. However, for (x, y) 6= (0, 0),
note that
f (x, y) − f (0, 0) = xy 2 − x2 y 2 + x4 .
In particular, for x = y we get
f (x, x) − f (0, 0) = x3 − x4 + x4 = x3 .
2 −y 2
Example 9 Find the stationary points of z = (x2 + y 2 )e−x ,
and determine their nature.
The partial derivatives of z are
∂z 2 2 2 2 2 2
= 2xe−x −y + (x2 + y 2 )(−2x)e−x −y = 2xe−x −y (1 − x2 − y 2 ),
∂x
∂z 2 2
= 2ye−x −y (1 − x2 − y 2 ).
∂y
(Since z is symmetrical in x and y.)
∂z ∂z 2 2
Putting = = 0, and using the fact that e−x −y 6= 0 gives
∂x ∂y
x(1 − x2 − y 2 ) = 0, (7)
y(1 − x2 − y 2 ) = 0. (8)
Advanced Calculus Chapter 3 Applications of partial differentiation 45
∂ 2z 2 2 2 2 2 2
2
= (2e−x −y + 2x(−2x)e−x −y )(1 − x2 − y 2 ) + 2xe−x −y (−2x),
∂x
2 2 ¡ ¢
= 2e−x −y (1 − 2x2 )(1 − x2 − y 2 ) − 2x2 ,
2 2 ¡ ¢
= 2e−x −y 1 − x2 − y 2 − 2x2 + 2x4 + 2x2 y 2 − 2x2 ,
2 2 ¡ ¢
= 2e−x −y 1 − 5x2 − y 2 + 2x4 + 2x2 y 2 ,
2 2 ¡ ¢
= 2e−x −y 1 − 5x2 − y 2 + 2x4 + 2x2 y 2 ,
2 2 ¡ ¢
= 2e−x −y 1 − 4x2 − (x2 + y 2 ) + 2x2 (x2 + y 2 ) ,
∂ 2z 2 2 2 2
= (−2y)2xe−x −y (1 − x2 − y 2 ) + 2xe−x −y (−2y),
∂x∂y
2 2
= −4xye−x −y (2 − x2 − y 2 ),
∂2z −x2 −y 2
¡ 2 2 2 2 2 2
¢
= 2e 1 − 4y − (x + y ) + 2y (x + y ) ,
∂y 2
(Since z is symmetrical in x and y.)
If x2 + y 2 = 1 then
∂2z 2 −y 2 ¡ ¢
= 2e−x 1 − 4x2 − (x2 + y 2 ) + 2x2 (x2 + y 2 ) ,
∂x2 ¡ ¢
= 2e−1 1 − 4x2 − 1 + 2x2 ,
= −4x2 e−1 ,
2
∂ z 2 −y 2
= −4xye−x (2 − x2 − y 2 ),
∂x∂y
= −4xye−1 ,
2 ¡ ¢
2
∂ z 2
= 2e−x −y 1 − 4y 2 − (x2 + y 2 ) + 2y 2 (x2 + y 2 ) ,
∂y 2
¡ ¢
= 2e−1 1 − 4y 2 − 1 + 2y 2 ,
= −4y 2 e−1 .
Advanced Calculus Chapter 3 Applications of partial differentiation 46
From these observations we can deduce that g(x) takes its minimum
value at x = 0. The value of g(x) then increases as we move away
from x = 0 until g reaches a maximum; the value then decreases
and approaches 0 as x approaches ±∞. The following diagram
shows g for a typical value of a.
0.35
0.3
0.25
0.2
0.15
0.1
-2
0.05
-1
00 y -2
-1
0 1
1
2 x 2
x + y + z = 3yz, (9)
x + y + z = 3xz, (10)
x + y + z = 3xy. (11)
3yz = 3xz.
Advanced Calculus Chapter 3 Applications of partial differentiation 48
Thus either z = 0 or x = y.
If z = 0 then equations (9)–(11) reduce to x+y = 0 and x+y = 3xy.
From this we get x = y = 0, and so (0, 0, 0) is a stationary point
of f .
If x = y then equations (9)–(11) reduce to 2x + z = 3xz and
2x + z = 3x2 . From this we get xz = x2 , and so either x = 0 or
x = z. If x = 0 we get x = y = z = 0, giving the stationary point
found earlier. If x = z and x 6= 0 then 2x+z = 3xz and 2x+z = 3x2
reduce to x = x2 , and so x = 1. This gives x = y = z = 1, and so
(1, 1, 1) is a stationary point of f .
Thus the stationary points of f are (0, 0, 0) and (1, 1, 1).
Exercises 3.1
∂2f
1. Let f (x, y) = 3x3 y 2 − 5xy 3 + 3x2 y 4 − y 5 . Find ∂x∂y
.
f (x, y, z) = x3 − 3x + y 3 − 3yz + 2z 2 .
Now
∂L
= 3x2 + 3y 2 + 2y − λ,
∂x
∂L
= 6xy + 2x − λ,
∂y
∂L
= −(x + y − 4).
∂λ
Advanced Calculus Chapter 3 Applications of partial differentiation 50
∂L ∂L ∂L
Putting ∂x
= ∂y
= ∂λ
= 0 gives
3x2 + 3y 2 + 2y = λ, (12)
6xy + 2x = λ, (13)
x + y − 4 = 0. (14)
12x2 − 52x + 56 = 0
∂L ∂L ∂L
Putting ∂x
= ∂y
= ∂λ
= 0 gives
y 3 − 2λx = 0, (15)
3xy 2 − 2λy = 0, (16)
x2 + y 2 = a 2 . (17)
y 4 − 2λxy = 0, (18)
3x2 y 2 − 2λxy = 0, (19)
Advanced Calculus Chapter 3 Applications of partial differentiation 51
y 4 − 3x2 y 2 = 0.
Thus
y 2 (y 2 − 3x2 ) = 0,
and so either y = 0 or y 2 = 3x2 .
If y = 0 then equation (17) gives x2 = a2 , and so x = ±a.
If y 2 = 3x2 then equation √(17) gives 4x2 = a2 . Thus x = ± a2 , and
for each value of x, y = ± 23a .
From the preceding calculations, the stationary points of L have
³ √ ´ ³ √ ´ ³ √ ´ ³ √ ´
(x, y) = (a, 0), (−a, 0), 2 , 2 , 2 , − 2 , − 2 , 2 or − 2 , − 23a .
a 3a a 3a a 3a a
³ √ ´ ³ √ ´ √ 4
Now f (a, 0) = f (−a, 0) = 0, f a2 , 23a = f − a2 , − 23a = 16
3
3a ,
³ √ ´ ³ √ ´ √
and f a2 , − 23a = f − a2 , 23a = − 16 3
3a4 .
3
Thus the maximum and √ minimum values
√ of4 f (x, y) = xy on the
2 2 2 3 4 3
circle x + y = a are 16 3a and − 16 3a , respectively.
∂L
= 2(x − 3) + 3λ,
∂x
∂L
= 2(y − 1) + 2λ,
∂y
∂L
= −3x − 2y + 5.
∂λ
∂L ∂L ∂L
Putting ∂x
= ∂y
= ∂λ
= 0 gives
2(x − 3) + 3λ = 0, (20)
2(y − 1) + 2λ = 0, (21)
3x + 2y = 5. (22)
Advanced Calculus Chapter 3 Applications of partial differentiation 52
Then
∂L
= 1 − 4λ − 2µx,
∂x
∂L
= −λ − 2µy,
∂y
∂L
= 1 − λ,
∂z
∂L
= −(4x + y + z − 34),
∂λ
∂L
= −(x2 + y 2 − 40).
∂µ
∂L ∂L ∂L ∂L ∂L
Putting ∂x
= ∂y
= ∂z
= ∂λ
= ∂µ
= 0 gives
4λ + 2µx = 1, (24)
λ + 2µy = 0, (25)
λ = 1, (26)
4x + y + z = 34, (27)
x2 + y 2 = 40. (28)
z = 34 − 4x − y.
Then
∂L
= y − λ − 2µx,
∂x
∂L
= x − λ − 2µy,
∂y
∂L
= 4 − λ − 2µz,
∂z
∂L
= −(x + y + z),
∂λ
∂L
= −(x2 + y 2 + z 2 − 24).
∂µ
∂L ∂L ∂L ∂L ∂L
Putting ∂x
= ∂y
= ∂z
= ∂λ
= ∂µ
= 0 gives
y − 2µx = λ, (29)
x − 2µy = λ, (30)
4 − 2µz = λ, (31)
x+y+z = 0, (32)
x + y2 + z2
2
= 24. (33)
y − 2µx = λ = x − 2µy.
Thus
y − x = 2µ(x − y),
and so either x = y or µ = − 12 . We now consider these two possi-
bilities separately.
If x = y then equation (32) gives 2x + z = 0, and so z = −2x.
Then equation (33) gives x2 + x2 + 4x2 = 24, and so x2 = 4. Hence
x = ±2, and so
x = ±2, y = ±2, z = ∓4.
x + y − z = 4. (34)
Advanced Calculus Chapter 3 Applications of partial differentiation 55
Exercises 3.2
Multivariable functions
In this section we consider three simple cases of the chain rule, and
illustrate them with an example.
Hence
∂z df ∂z
y = 2xy =x .
∂x dg ∂y
dG ∂g du ∂g dv ∂g dw
= + + ,
dt ∂u dt ∂v dt ∂w dt
³v´ ³u´ 1 1 ³ uv ´ µ 1 ¶
−2
= (2t) + ( t )+ − 2 − 2 ,
w w 2 w t
√ 1 5 √
= 2t2 t + t 2 + t2 t,
2
7 5
= t2 .
2
uv
√
t2 t
√ 7
Note that in Example 27, G(t) = w
= 1 = t3 t = t 2 , and so
t
dG 5
dt
= 72 t 2 . Thus, in this example, it is easier to find G as a function
of t and then differentiate it with respect to t, rather than use the
chain rule.
Similarly,
∂h ∂h ∂u ∂h ∂v ∂h ∂w
= + + ,
∂y ∂u ∂y ∂v ∂y ∂w ∂y
= (v + w)(2y) + (u + w)(2x) + (u + v)(−2x),
= (2x2 )(2y) + (x2 − 2xy + y 2 )(2x) + (x2 + 2xy + y 2 )(−2x),
= 4x2 y + 2x(x − y)2 − 2x(x + y)2 ,
¡ ¢
= 4x2 y + 2x (x − y)2 − (x + y)2 , Here we have used the identity:
= 4x2 y + 2x ((2x)(−2y)) , A2 − B 2 = (A + B)(A − B).
= 4x2 y − 8x2 y,
= −4x2 y.
u = λx and v = λy.
By the chain rule
dG ∂g du ∂g dv
= + ,
dλ ∂u dλ ∂v dλ
∂g ∂g
= x +y .
∂u ∂v
However, since g is homogeneous of degree n, G(λ) = λn g(x, y).
Thus
dG
= nλn−1 g(x, y).
dλ
Comparing the two expressions for dG
dλ
gives
∂g ∂g
nλn−1 g(x, y) = x +y . (39)
∂u ∂v
Equation (39) is true for all λ. If we put λ = 1 then u = x, v = y,
and equation (39) gives
∂g ∂g
ng(x, y) = x +y .
∂x ∂y
This result is known as Euler’s Theorem on homogeneous functions.
Exercises 3.3
Let U ⊆ R, and let f : U → R such that the derivative, and all the
higher derivatives, of f exist on U . For h ∈ U ,
x2 00 xn
f (x + h) = f (h) + xf 0 (h) + f (h) + · · · + f (n) (h) + · · · .
2! n!
The following are the Taylor series of some standard functions. The
first three are centred at 0, and are valid for all x ∈ R; the other
two are centred at 1, and are valid for x ∈ R with |x| < 1.
x x2 x3 xn
e = 1+x+ + + ··· + + ...,
2! 3! n!
x3 x5 x7 x2n+1
sin x = x− + − + · · · + (−1)n + ...,
3! 5! 7! (2n + 1)!
x2 x4 x6 x2n
cos x = 1− + − · · · + (−1)n + ...,
2! 4! 6! (2n)!
x2 x3 x4 xn
ln(x + 1) = x− + − + · · · + (−1)n+1 + · · · ,
2 3 4 n
2
α(α − 1)x α(α − 1)(α − 2)x3
(1 + x)α = 1 + αx + + + ···
2! 3!
α(α − 1) . . . (α − n + 1)xn
··· + + ··· .
n!
Advanced Calculus Chapter 3 Applications of partial differentiation 63
fx (x, y) = 2xy,
fy (x, y) = x2 + 3,
fxx (x, y) = 2y,
fxy (x, y) = 2x,
fyy (x, y) = 0,
fxxx (x, y) = 0,
fxxy (x, y) = 2,
fxyy (x, y) = 0,
fyyy (x, y) = 0,
Advanced Calculus Chapter 3 Applications of partial differentiation 64
f (x, y) = f (1 + h, −2 + k),
= f (1, −2) + hfx (1, −2) + kfy (1, −2)
1 ¡ 2 ¢
+ h fxx (1, −2) + 2hkfxy (1, −2) + k 2 fyy (1, −2)
2!
1 ¡ 2 ¢
+ 3h kfxxy (1 − 2) ,
3!
1¡ ¢ 1
= −10 − 4h + 4k + −4h2 + 4hk + 0k 2 + (6h2 k),
2 6
2 2
= −10 − 4h + 4k − 2h + 2hk + h k,
= −10 − 4(x − 1) + 4(y + 2) − 2(x − 1)2 + 2(x − 1)(y + 2) + (x − 1)2 (y + 2),
since h = x − 1 and k = y + 2.