Tutorial 4 Solution
Tutorial 4 Solution
Tutorial 4
Department of Mathematics
Indian Institute of Technology Delhi
(c) x y
0 xy = 0.
sin (xy )
(d) , (x, y ) ∈ R2 \ {(0, 0)}.
x2 + y2
If lim f (x, y ) has different values along two different paths then the
(x,y )→(a,b)
limit does not exist. (Why?)
Solution: 3 3
x + y x 6= y
Let f (x, y ) = x 2 − y 2
0 x = y.
x 3 + m3 x 3 x 3 (1 + m3 ) x(1 + m3 )
f (x, mx) = = = .
x 2 − m2 x 2 x 2 (1 − m2 ) (1 − m2 )
Therefore, the limit along this path is
x(1 + m3 )
lim f (x, mx) = lim = 0.
x→0 x→0 (1 − m2 )
x 3 + x 3 (1 + x)3 x 3 (1 + (1 + x)3 )
f (x, x(x + 1)) = 2 2 2
= 2
x − x (1 + x) x (1 − (1 + x)2 )
(1 + (1 + x)3 )
= .
−x − 2
Then
(1 + (1 + x)3 )
lim f (x, x(1 + x)) = lim = −1.
x→0 x→0 −x − 2
We get two different paths y = mx and y = x(1 + x) such that limits
are different. Hence at (0, 0) limit of the function does not exist.
Solution:
x2 − y2
Let f (x, y ) = xy .
x2 + y2
x 2 −x 2
Take the path y = x. Clearly, lim f (x, x) = lim x 2 x 2 +x 2
= 0.
x→0 x→0
Hence if the limit of this function at (0, 0) exists then it should be 0.
Now we will prove the limit to be 0 with the help of definition.
Solution:
We have
1 1 p
x sin + y sin − 0 ≤ |x| + |y | ≤ 2 x 2 + y 2 .
y x
Let > 0 be arbitrary and δ = .
2
Clearly,
p 1 1
x 2 + y 2 < δ =⇒ x sin + y sin < 2 · = .
y x 2
Solution:
sin (xy )
Let f (x, y ) = and take the path y = mx; m ∈ R.
x2 + y2
Along this path we have,
sin mx 2 sin mx 2
f (x, mx) = = .
x 2 + mx 2 x 2 (1 + m2 )
sin mx 2 sin mx 2 m m
lim = lim . = .
x→0 x 2 (1 + m ) x→0 mx 2 1 + m2
2 1 + m2
0 otherwise.
Solution:
First let us examine the continuity of the given function for all points
(x, y ) 6= (0, 0).
It is known that the multi-variable polynomials are continuous at
every point. Further, As x 2 + y 6 6= 0 for every (x, y ) 6= (0, 0), we
xy 3
have that 2 is continuous at all (x, y ) 6= (0, 0).
x + y6
Remark: Note that the existence of lim f (x, y ) implies that along
(x,y )→(a,b)
all possible paths approaching (a, b), the limit exists and its value is same
along all paths and equal to its functional value.
my 6 m
= lim 2 6 6
= 2 .
y →0 m y + y m +1
Solution:
Note that for all the points (a, b) satisfying a2 + b 2 < 1 (i.e. inside
the unit disc), f (x, y ) = x 2 + y 2 is a polynomial in two variables and
so is continuous.
Note that for all the points (a, b) satisfying a2 + b 2 > 1 (i.e. outside
the unit disc), f (x, y ) = x 2 + y 2 is a constant function and hence
continuous.
Now let us examine the continuity of the function at the points (a, b)
with a2 + b 2 = 1.
There exists some φ ∈ [0, 2π) such that a = cos φ and b = sin φ.
Take the path x = r cos θ and y = r sin θ, where θ ∈ [0, 2π) and
r < 1.
= lim r 2 = 1.
r →1−
Now take the path x = r cos θ and y = r sin θ, where θ ∈ [0, 2π) and
r > 1.
Solution:
Clearly, the function is continuous at all (x, y ) 6= (0, 0) ∈ R2 .
Now to check its continuity at (0, 0), fix any real number > 0. Then
sin2 (x − y )
|f (x, y ) − f (0, 0)| = −0
|x| + |y |
|x − y |2
≤ (∵ | sin z| ≤ |z|)
|x| + |y |
≤ |x| + |y | (∵ |x − y | ≤ |x| + |y |)
p
≤ 2 x 2 + y 2 < .
p
Hence |f (x, y ) − f (0, 0)| < whenever x 2 + y 2 < δ, where δ = .
2
So by the definition of limit,
Solution:
As multi-variable polynomial functions are continuous, f is clearly
continuous at every (x, y ) ∈ R2 except (0, 0).
Consider the limit approaching to (0, 0) along two different paths.
First along the straight line y = x,
x 2y 2 x4
lim = lim 4 = 1.
(x,y )→(0,0) x 2 y 2 + (x − y ) 2 x→0 x
x 2y 2 4x 4
lim = lim = 0.
(x,y )→(0,0) x 2 y 2 + (x − y )2 x→0 4x 4 + x 2
(a) f (x, y ) = x y
0 if xy = 0.
xy
p if x 2 + y 2 6= 0
(b) f (x, y ) = x + y2
2
0 if x = y = 0.
6 4
x − 2y if x 2 + y 2 6= 0
(c) f (x, y ) = x2 + y2
0 if x = y = 0.
∆f − df p
lim = 0, where ρ = h2 + k 2 .
ρ→0 ρ
(Maths Dept., IIT Delhi) MTL100 - Calculus, Tutorial-4 Semester-I, 2020-21 21 / 46
Question 3 (a)
Solution:
The partial derivative of f with respect to x is
f (0 + h, 0) − f (0, 0) 0−0
fx (0, 0) = lim = lim = 0.
h→0 h h→0 h
The partial derivative of f with respect to y is
f (0, 0 + k) − f (0, 0) 0−0
fy (0, 0) = lim = lim = 0.
k→0 k k→0 k
1 1
Note that ∆f = f (0 + h, 0 + k) − f (0, 0) = f (h, k) = h sin + k sin
h k
and df = hfx (0, 0) + kfy (0, 0) = 0.
(Maths Dept., IIT Delhi) MTL100 - Calculus, Tutorial-4 Semester-I, 2020-21 22 / 46
3 (a) Contd..
Therefore,
∆f − df h sin h1 + k sin k1
lim = lim √ .
ρ→0 ρ (h,k)→(0,0) h2 + k 2
1 √
Along the path k = h, the above limit reduces to lim 2 sin .
h→0 h
√ 1 ∆f − df
Since lim 2 sin does not exist (see Tutorial 3), lim does
h→0 h ρ→0 ρ
not exist.
Hence, f is not differentiable at (0, 0).
Solution:
The partial derivative of f with respect to x is
f (0 + h, 0) − f (0, 0) 0−0
fx (0, 0) = lim = lim = 0.
h→0 h h→0 h
The partial derivative of f with respect to y is
f (0, 0 + k) − f (0, 0) 0−0
fy (0, 0) = lim = lim = 0.
k→0 k k→0 k
hk hk
Here, ∆f = f (0 + h, 0 + k) − f (0, 0) = √ −0= √
2
h +k 2 h + k2
2
and df = hfx (0, 0) + kfy (0, 0) = 0.
(Maths Dept., IIT Delhi) MTL100 - Calculus, Tutorial-4 Semester-I, 2020-21 24 / 46
3 (b) Contd..
Therefore,
∆f − df hk
lim = lim √ √ .
ρ→0 ρ (h,k)→(0,0) h + k 2 h2 + k 2
2
h2 1
Along the path k = h, the above limit reduces to lim = .
h→0 2h2 2
2h 2 2
Along the path k = 2h, the above limit reduces to lim 2 = .
h→0 5h 5
Thus,
∆f − df
lim does not exist.
ρ→0 ρ
Solution:
The partial derivative of f with respect to x is
f (0 + h, 0) − f (0, 0) h6
fx (0, 0) = lim = lim 3 = 0.
h→0 h h→0 h
The partial derivative of f with respect to y is
f (0, 0 + k) − f (0, 0) −2k 4
fy (0, 0) = lim = lim = 0.
k→0 k k→0 k 3
h6 − 2k 4 h6 − 2k 4
Here, ∆f = f (0 + h, 0 + k) − f (0, 0) = − 0 = and
h2 + k 2 h2 + k 2
df = hfx (0, 0) + kfy (0, 0) = 0.
(Maths Dept., IIT Delhi) MTL100 - Calculus, Tutorial-4 Semester-I, 2020-21 26 / 46
3 (c) Contd..
Therefore,
∆f − df h6 − 2k 4 h6 − 2k 4
= √ = 3 .
ρ (h2 + k 2 ) h2 + k 2 (h2 + k 2 ) 2
∆f − df r 6 cos6 θ − 2r 4 sin4 θ
lim = lim = 0.
ρ→0 ρ r →0 r3
Solution:
Let p̂ = (p1 , p2 ) be any unit vector.
Then, by the definition, the directional derivative in the direction p̂ at
(0, 0) is
Assume p2 6= 0.
Then we get
p
sp2 s 2 p1 2 + s 2 p2 2 − 0
Dp̂ f (0, 0) = lim
s→0 |sp2 |s
p
p2 p1 2 + p2 2
=
|p2 |
p2
= .
|p2 |
Note that,
f (0 + h, 0) − f (0, 0) 0−0
fx (0, 0) = lim = lim = 0.
h→0 h h→0 h
and
f (0, 0 + k) − f (0, 0) 1−0
fy (0, 0) = lim = lim = 1.
k→0 k k→0 k
Now
k √ 2
h + k 2 − 0 − 0h − 1k
∆f − df |k|
lim = lim
ρ→0 ρ ρ→0 ρ
k √ 2
h + k2 − k
|k|
= lim √ .
(h,k)→(0,0) h2 + k 2
√
( 2 − 1)k
Along h = k the above limit is lim , which does not exist.
k→0 |k|
Therefore, f is not differentiable at (0, 0).
We have
Let > 0 and choose δ = . Then
4
p
x 2 + y 2 < δ =⇒ |f (x, y ) − 0| < .
Therefore,
lim f (x, y ) = f (0, 0) = 0.
(x,y )→(0,0)
a|h| a|h|
lim+ = a 6= −a = lim .
h→0 h h→0 − h
Therefore,
f (hp1 , hp2 ) − f (0, 0)
lim exists
h→0 h
|h|
⇔ lim (||p1 | − |p2 || − |p1 | − |p2 |) exists
h→0 h
⇔ ||p1 | − |p2 || − |p1 | − |p2 | = 0
⇔ |p1 | + |p2 | = ||p1 | − |p2 ||
⇔ either |p1 | + |p2 | = |p1 | − |p2 | or |p1 | + |p2 | = −|p1 | + |p2 |
⇔ either |p2 | = 0 or |p1 | = 0.
So, the directional derivatives exist only in the direction of (1, 0),
(−1, 0), (0, 1) and (0, −1).
f (0 + h, 0) − f (0, 0) 0−0
fx (0, 0) = lim = lim = 0.
h→0 h h→0 h
The partial derivative of f with respect to y is
Therefore,
∆f − df ||h| − |k|| − |h| − |k|
= √ .
ρ h2 + k 2
∆f − df √
Along h = k, → − 2 as h → 0.
ρ
Hence, f is not differentiable at (0, 0).
1 2
∇f (x, y ) (1,3) = (fx (1, 3), fy (1, 3)) = − , .
5 5
f (x, y ) is increasing the fastest at P = (1, 3) in the direction of the
∇f (1, 3) 1 2
gradient, = −√ , √ .
k∇f (1, 3)k 5 5
1 2
The derivative at P = (1, 3) in the direction − √ , √ is
5 5
∇f (1, 3) 1 2 1 2 1
· ∇f (x, y ) (1,3) = − √ , √ · − , =√ .
k∇f (1, 3)k 5 5 5 5 5
(Maths Dept., IIT Delhi) MTL100 - Calculus, Tutorial-4 Semester-I, 2020-21 38 / 46
Question 7
A heat-seeking bug is a bug that always moves in the direction of the
greatest increase in heat. Discuss the behavior of a heat seeking bug
placed at a point (2, 1) on a metal plate heated so that the temperature at
1 2 2
(x, y ) is given by T (x, y ) = 50y 2 e − 5 (x +y ) .
Solution:
Since the direction of greatest increase of temperature is in the
direction of gradient. We first compute the gradient of temperature
function T .
We have
2
−(x 2 +y 2 ) −2x
Tx (x, y ) = 50y e 5
5
−(x 2 +y 2 )
=⇒ Tx (x, y ) = −20xy 2 e 5
40
=⇒ Tx (2, 1) = − .
e
(Maths Dept., IIT Delhi) MTL100 - Calculus, Tutorial-4 Semester-I, 2020-21 39 / 46
7 Contd..
Now
2y 3 −(x 2 +y 2 )
−(x 2 +y 2 )
Ty (x, y ) = 50 2ye 5 − e 5
5
80
=⇒ Ty (2, 1) = .
e
40 80
∇T (x, y ) (2,1) = (Tx (2, 1), Ty (2, 1)) = − , .
e e
So the direction of the heat seeking bug is
∇T (2, 1) 1 2
= −√ , √ .
k∇T (2, 1)k 5 5
Solution:
Let the linear function be z = f (x, y ) = ax + by + c.
∂z ∂z
We are given that ∇z = , = (5, −12).
∂x ∂y
∂z ∂z
Hence, a = = 5 and b = = −12.
∂x ∂y
Since f (9, 15) = 17, we have that
and so c = 152.
Thus f (11, 11) = 5 × 11 − 12 × 11 + 152 = 75.
and
Theorem
Let R be an open rectangular region centered at a point (a, b). Suppose
f (x, y ) and its partial derivatives upto order n + 1 are continuous
throughout R. Then, for all (c, d) ∈ R,
∂ 1
1 ∂
f (c, d) = f (a, b) + (c − a) + (d − b) f + ···
1! ∂x ∂y (a,b)
∂ n
1 ∂
+ (c − a) + (d − b) f +
n! ∂x ∂y (a,b)
∂ n+1
1 ∂
(c − a) + (d − b) f ,
(n + 1)! ∂x ∂y (u,v )
where (u, v ) is a point on the line segment joining (a, b) and (c, d).