DIFFERENTIATION
DIFFERENTIATION
Hoang Hai Ha
HCMC — 2020.
E XAMPLE 1.1
Find the first partial derivatives f x0 , f y0 for function
z = f (x, y) = x 3 + y 3 − 2x 2 y
E XAMPLE 1.1
Find the first partial derivatives f x0 , f y0 for function
z = f (x, y) = x 3 + y 3 − 2x 2 y
E XAMPLE 1.2
∂z ¯¯
2 ∂z ¯¯
For function z = y ln(y − x ), find and
∂x (1,4) ∂y (1,4)
¯ ¯
E XAMPLE 1.1
Find the first partial derivatives f x0 , f y0 for function
z = f (x, y) = x 3 + y 3 − 2x 2 y
E XAMPLE 1.2
∂z ¯¯
2 ∂z ¯¯
For function z = y ln(y − x ), find and
∂x (1,4) ∂y (1,4)
¯ ¯
E XAMPLE 1.3
x
For function z = arctan , find z x0 (1, 1) and z 0y (1, 1)
y
E XAMPLE 1.4
If f (x, y) = 4 − x 2 − 2y 2 , find f x0 (1, 1), f y0 (1, 1) and interpret
these numbers as slopes.
E XAMPLE 1.4
If f (x, y) = 4 − x 2 − 2y 2 , find f x0 (1, 1), f y0 (1, 1) and interpret
these numbers as slopes.
SOLUTION. We have
E XAMPLE 1.4
If f (x, y) = 4 − x 2 − 2y 2 , find f x0 (1, 1), f y0 (1, 1) and interpret
these numbers as slopes.
SOLUTION. We have
E XAMPLE 1.5
Let f (x, y) = e x − x 2 y + 1. Determine whether f (x, y) is
decreasing or increasing when M (x, y) goes through
M 0 (1, 1) in the direction of ~ v (1, 0).
E XAMPLE 1.6
Given the function by its graph below
S ECOND ORDER
For function z = f (x, y), second order derivatives (2nd
order) are
∂ ∂f ∂2 f
µ ¶
¡ 0 ¢0 00
fx x = = 2 = f xx
∂x ∂x ∂x
S ECOND ORDER
For function z = f (x, y), second order derivatives (2nd
order) are
∂ ∂f ∂2 f
µ ¶
¡ 0 ¢0 00
fx x = = 2 = f xx
∂x ∂x ∂x
∂ ∂f ∂2 f
µ ¶
¡ 0 ¢0
fx y = = = f x00y
∂y ∂x ∂x∂y
S ECOND ORDER
For function z = f (x, y), second order derivatives (2nd
order) are
∂ ∂f ∂2 f
µ ¶
¡ 0 ¢0 00
fx x = = 2 = f xx
∂x ∂x ∂x
∂ ∂f ∂2 f
µ ¶
¡ 0 ¢0
fx y = = = f x00y
∂y ∂x ∂x∂y
∂ ∂f ∂2 f
³ ´0 µ ¶
0
fy = = = f y00x
x ∂x ∂y ∂y∂x
S ECOND ORDER
For function z = f (x, y), second order derivatives (2nd
order) are
∂ ∂f ∂2 f
µ ¶
¡ 0 ¢0 00
fx x = = 2 = f xx
∂x ∂x ∂x
∂ ∂f ∂2 f
µ ¶
¡ 0 ¢0
fx y = = = f x00y
∂y ∂x ∂x∂y
∂ ∂f ∂2 f
³ ´0 µ ¶
0
fy = = = f y00x
x ∂x ∂y ∂y∂x
∂ ∂f ∂2 f
³ ´0 µ ¶
0
fy = = 2 = f y00y
y ∂y ∂y ∂y
Hoang Hai Ha DERIVATIVE AND DIFFERENTIATION HCMC — 2020. 9 / 27
Partial derivative Derivative higher order
N OTE
In this course, we only consider functions with properties
f x00y = f y00x
E XAMPLE 1.7
For function f (x, y, z) = ye x + x ln z. Find f xz
00
, f y00z
N OTE
In this course, we only consider functions with properties
f x00y = f y00x
E XAMPLE 1.7
For function f (x, y, z) = ye x + x ln z. Find f xz
00
, f y00z
∂2 u 2∂ u
2
=a
∂t 2 ∂x 2
Verify that the function u(x, t ) = sin(x − at ) satisfies the
wave equation.
D EFINITION 1.2
Consider function z = f (x, y), and suppose x changes from x 0 to
x 0 + ∆x, and y changes from y 0 to y 0 + ∆y. Then the corresponding
increment of z is
∆z = f (x 0 + ∆x, y 0 + ∆y) − f (x 0 , y 0 ).
D EFINITION 1.2
Consider function z = f (x, y), and suppose x changes from x 0 to
x 0 + ∆x, and y changes from y 0 to y 0 + ∆y. Then the corresponding
increment of z is
∆z = f (x 0 + ∆x, y 0 + ∆y) − f (x 0 , y 0 ).
D EFINITION 1.3
We say that z = f (x, y) is differentiable at (x 0 , y 0 ) if
∆z = f (x 0 + ∆x, y 0 + ∆y) − f (x 0 , y 0 ) can be expressed in the form
∆z = f (x 0 + ∆x, y 0 + ∆y) − f (x 0 , y 0 )
= f x0 (x 0 , y 0 )∆x + f y0 (x 0 , y 0 )∆y + ε1 ∆x + ε2 ∆y
P ROPERTY OF DIFFERENTIATION
If f is differentiable at (x 0 , y 0 ), then when (x, y) is near
(x 0 , y 0 ) we have a linear approximation
P ROPERTY OF DIFFERENTIATION
If f is differentiable at (x 0 , y 0 ), then when (x, y) is near
(x 0 , y 0 ) we have a linear approximation
E XAMPLE 1.9
Find the tangent plane to the elliptic paraboloid
z = 2x 2 + y 2 at P (1, 1)
E XAMPLE 1.10
If f (x, y) = xe x y , find a linear approximation when (x, y)
is near (1, 0). Then use it to approximate f (1.1, −0.1).
Solution
E XAMPLE 1.11
The pressure, volume, and temperature of a mole of an
ideal gas are related by the equation PV = 8.31T , where P
is measured in kilopascals, V in liters, and T in kelvins.
Use differentials to find the approximate change in the
pressure if the volume increases from 12L to 12.3L and the
temperature decreases from 310 K to 305 K
D EFINITION 1.4
Second Order Differential of f (x, y) at (x 0 , y 0 ) is
d 2 f (x 0 , y 0 ) = f xx
00
(x 0 , y 0 )d x 2 + 2 f x00y (x 0 , y 0 )d xd y
+ f y00y (x 0 , y 0 )d y 2
E XAMPLE 1.12
Compute second order differential for function
f (x, y) = e y ln(x + y) at (1, 0)
∂z ∂z ∂u ∂z ∂v ∂z ∂z ∂u ∂z ∂v
= + , = + (1)
∂x ∂u ∂x ∂v ∂x ∂y ∂u ∂y ∂v ∂y
D IAGRAM
E XAMPLE 2.1
∂z ∂z
If z = f (x 2 − y 2 , y 2 − x 2 ). Compute y +x .
∂x ∂y
E XAMPLE 2.1
∂z ∂z
If z = f (x 2 − y 2 , y 2 − x 2 ). Compute y +x .
∂x ∂y
E XAMPLE 2.2
If z = arctan(x 2 + y 2 ), x = s ln t , y = t e s . Compute z s0 and z t0
at (s, t ) = (0, 1)
S PECIAL CASE
C ASE 2
Suppose that z = f (x, y) is differentiable function of x
and y, where x = x(t ), y = y(t ) are both differentiable
funtions of t . Then z is a differentiable function of t and
d z ∂z d x ∂z d y
= + (2)
d t ∂x d t ∂y d t
S PECIAL CASE
C ASE 2
Suppose that z = f (x, y) is differentiable function of x
and y, where x = x(t ), y = y(t ) are both differentiable
funtions of t . Then z is a differentiable function of t and
d z ∂z d x ∂z d y
= + (2)
d t ∂x d t ∂y d t
E XAMPLE 2.3
If z = f (x, y) = x 2 y + 3x y 4 , where x = sin 2t and y = cos t ,
dz
find when t = 0.
dt
Hoang Hai Ha DERIVATIVE AND DIFFERENTIATION HCMC — 2020. 22 / 27
Chain rule for function of several variables
E XAMPLE 2.4
The temperature at a point (x, y) is T (x, y), measured in
degree Celsius. A bug crawl so that its position after t
p
seconds is given by x = 1 + t , y = 2+ t /3. The temperature
function satisfies T x0 (2, 3) = 4, T y0 (2, 3) = 3. How fast the
temperature is rising on the bug’s path after 3 seconds?
D EFINITION 2.1
Given a surface S by equation F (x, y, z) = 0, then vector
gradient of S at a point M on S is denoted by ∇F and
∇F = (F x , F y , F z ) at M
D EFINITION 2.1
Given a surface S by equation F (x, y, z) = 0, then vector
gradient of S at a point M on S is denoted by ∇F and
∇F = (F x , F y , F z ) at M
E XAMPLE 2.5
Find vector gradient of the sphere x 2 + y 2 + z 2 = 4 at
p
M (1, 1, 2) ∈ S
I NTERPRETATION OF GRADIENT
I NTERPRETATION OF GRADIENT
I NTERPRETATION OF GRADIENT
E XAMPLE 2.6
Sketch sphere x 2 + y 2 + z 2 = 4 and normal vector of it at
p
M (1, 1, 2).