Partial Derivatives and Continuity
Partial Derivatives and Continuity
Calculus II
Partial derivatives
Overview
3 Partial derivatives
7 Lagrange’s method
➬ f is an assignment to associate
(x, y ) in a set D a unique number
f (x, y ).
➬ D is called a domain.
➬ A range of f is
{f (x, y ) | (x, y ) ∈ D}.
➬ x, y are independent variables.
Figure 1: Pictorial illustration of a two-variables
➬ z = f (x, y ) is a dependent
function.
variable
Figure 2:
D = {(x, y ) | x + y + 1 ≥ 0, x ̸= 1}. Figure 3: D = {(x, y ) | x ≥ y 2 }.
Graphs
Graph of a function f with a domain D is the set of three-numbers (x, y , z) ∈ R3 with
z = f (x, y ) and (x, y ) ∈ D.
Level curves
Level curves
Limit’s laws
Suppose lim(x,y )→(a,b) f (a, y ) = L and lim(x,y )→(a,b) g (a, y ) = M, then the following
assertions hold
➬ First, we have the obvious limits
➬ Sum and difference rules: lim(x,y )→(a,b) f (a, y ) ± lim(x,y )→(a,b) g (a, y ) = L ± M.
➬ Constant multiple rule: lim(x,y )→(a,b) (kf (x, y )) = kL.
➬ Product rule: lim(x,y )→(a,b) f (x, y )g (a, y ) = LM.
f (x,y ) L
➬ Quotient rule: lim(x,y ) g (x,y ) = M provided M ̸= 0.
➬ If f is a function of x only i.e., f (x, y ) = f (x), then
lim(x,y )→(a,b) f (x, y ) = limx→a f (x)
= 12 ∗ 2 + 2 ∗ 1 ∗ 2 = 6.
xy
➬ Find lim(x,y )→(1,1) x+y .
Combining the rules mentioned above allows us to do the following
xy lim(x,y )→(1,1) xy
lim =
(x,y )→(1,1) x + y lim(x,y )→(1,1) (x + y )
lim(x,y )→(1,1) x lim(x,y )→(1,1) y 1.1 1
= = = .
lim(x,y )→(1,1) x + lim(x,y →(1,1) y ) 1+1 2
2
➬ Find lim(x,y )→(0,0) √x −xy
√ .
x− y
We cannot plug in the point as we get 00 an indeterminate form. Since this is a fraction
that involves a radical, we multiply by the conjugate
√ √
x 2 − xy (x 2 − xy )( x − y )
lim √ √ = lim √ √ √ √
(x,y )→(0,0) x − y (x,y )→(0,0) ( x − y )( x + y )
√ √
x(x − y )( x − y )
= lim
(x,y )→(0,0) x −y
√ √
x( x − y )
= lim
(x,y )→(0,0) 1
=0.
−y 3 3
➬ Find lim(x,y )→(0,0) x 2x+xy +y 2
We cannot plug in the point as we get 0 in the denominator. We try to rewrite the
fraction to see if we can simplify
x3 − y3 (x − y )(x 2 + xy + y 2 )
lim = lim
(x,y )→(0,0) x 2 + xy + y 2 (x,y )→(0,0) x 2 + xy + y 2
(x − y )
= lim
(x,y )→(0,0) 1
=0.
x2 − y2
Show that lim(x,y )→(0,0) does not exist.
x2 + y2
x2 − y2
Let f (x, y ) = .
x2 + y2
➬ First let’s approach (0, 0) along the x−axis. Then, y = 0 and hence f (x, 0) =
x 2 /x 2 = 1 for all x ̸= 0, so
Since has two different limits along two different lines, the given limit does not exist.
xy
Show that lim(x,y )→(0,0) does not exist.
x2 + y2
➬ If we approach (0, 0) along
x−axis i.e., y = 0, we ob-
xy
tain lim(x,y )→(0,0) 2 =
x + y2
0
lim(x,y )→(0,0) 2 = 0.
x + 02
➬ If we approach there along a line
y = x, then
xy xx 1
lim = lim = .
(x,y )→(0,0) x 2 + y 2 (x,x)→(0,0) x 2 + x 2 1
Continuity
Continuity’s laws
The following results are true for multivariable functions:
1. The sum, difference and product of continuous functions is a continuous function.
2. The quotient of two continuous functions is continuous as long as the
denominator is not 0.
3. Polynomial functions are continuous, for instance,
f (x, y ) = x 3 + x 2 y + 4xy 2 + y 3 + 1.
Partial derivatives
Indeed, if f is a function of two variables, its partial derivatives are the functions fx and
fy defined by
∂f ∂ ∂z
fx (x, y ) = fx = = f (x, y ) = = f1 = D1 f = Dx f (5)
∂x ∂x ∂x
∂f ∂ ∂z
fy (x, y ) = fx = = f (x, y ) = = f2 = D 2 f = D y f . (6)
∂y ∂y ∂y
➬ They represent the rate of change of f w.r.t x (resp. y when y (resp. x) is fixed.
fx = 2x fy = −4y .
Then,
∂2u 2
2∂ u
∂2u ∂2u ∂2u
= a . (7) + + 2 = 0. (8)
∂t 2 ∂x 2 ∂x 2 ∂y 2 ∂z
Suppose f has continuous partial derivatives. An equation of the tangent plane to the
surface z = f (x, y ) at the point P(x0 , y0 , z0 ) is
z − z0 = fx (x0 , y0 )(x − x0 ) + fy (x0 , y0 )(y − y0 ). (9)
Nguyen Van Hoi University of Information Technology 31 / 44
Function of two variables Limits and continuity Partial derivatives Tangent planes and linear approximations Differentiable and directional derivatives Maximum a
Find the tangent plane to the elliptic paraboloid z = 2x 2 + y 2 at the point P(1, 1, 3)?
Remember that the tangent plane to the elliptic paraboloid z = 2x 2 + y 2 at the point
P(1, 1, 3)
L(x, y ) = 4x + 2y − 3.
Therefore, in view of the visual evidence in the above figures, L is a good approximation
t0 f near P. For instance,
In general, the tangent plane to the surface z = f (x, y ) at (a, b, f (a, b))
Differentiable
If z = f (x, y ) and suppose x changes from a to a + ∆x and y changes from b to b + ∆y ,
then the corresponding incremant of z is
Directional derivatives
Theorem
If f is a differentiable function of x and y , then f has a directional derivative in the
direction of any unit vector u =< a, b > and
➬ Use the weather map in Figure 1 to estimate the value of the directional derivative
of the temperature function at Reno in the southeasterly direction.
➬ Find the directional derivative Du f (x, y ) and the gradient ∇f (x, y ) if
π π
1. f (x, y ) = x 3 − 3xy + 4y 2 and u =< cos , sin > and u =< 1, −1 >
6 6
2. f (x, y ) = sin x + e xy
3. f (x, y ) = xx 2 y 3 − 4y and u =< 2, −1 >.
Sufficient condition: Suppose the second partial derivatives of f are continuous around
(a, b), and suppose that ∇f (a, b) = 0 (i.e., a, b) is a critical point of f ). Let
fxx fxy
D= = fxx fyy − fxy2 . (15)
fxy fyy
f (x, y ) = x 4 + y 4 − 4xy + 1.
(2) Find the shortest distance from (1, 0, −2) to the plane x + 2y + 4 = 4.
Find the absolute maximum and minimum values of the function f (x, y ) = x 2 −2xy +2y
on the rectangle D = {(x, y ) | 0 ≤ x ≤ 3, 0 ≤ y ≤ 2} .
Step 1: finds critical points and value of f at these points
fx = 2x − 2y = 0, fy = −2x + 2 = 0.
Then the critical point is (1, 1) and f (1, 1) = 1.
Step 2 -3: find the extreme values of f on D and compare the values from 1 and 2.
Lagrange’s method
for some λ.
➬ Similarly, if (x0 , y0 , z0 ) is a extreme of f (x, y , z) subject to g (x, y , z) = k and suppose
∇g (x0 , yy , z0 ) ̸= 0 then
∇f (x0 , y0 , z0 ) = λ∇g (x0 , y0 , z0 ) (17)
for some
Nguyenλ.
Van Hoi University of Information Technology 43 / 44
Function of two variables Limits and continuity Partial derivatives Tangent planes and linear approximations Differentiable and directional derivatives Maximum a
Example: Find the extreme values of the function f (x, y ) = x 2 + 2y 2 on the circle
x 2 + y 2 = 1.
➬ step 1: solve
for x, y , λ
➬ step 1: evaluate f at these
points. The largest one is
maximum; the smallest is
minimum.