Lecture 01
Lecture 01
Learning Outcomes: After the successful completion of this course students should be able to
• Understand the basic theories on several variable calculus and its applications.
References:
• Advanced Calculus – David V. Widder
• Mathematical Analysis - Tom M.Apostol,
Assessment Criteria:
Final Exam: 70%
In Class Tests Assignments: 30%
Chapter I
Definition 1.0.1 (A real valued function with n–variables) Let D be a subset of Rn . A function F of n
variables, also called a function F of several variables, with domain D, is a relation that assigns to every ordered
n−tuple in D a unique real number in R. We denote this by each of the following types of notation.
F :D→R
x→y
(x1 , x2 , ..., xn ) → y
F : R2 → R
(x, y) → x2 + y 2
Moreover, If the output of a function consists of multiple numbers, it can also be called multivariable, but
these ones are also commonly called vector-valued functions. i.e. Multivariable Function of m–variables is a
function F : D → Rn , where the domain D ⊂ Rm . So: for each (x1 , x2 , ..., xm ) ∈ D, the value of F is a vector
F (x1 , x2 , ..., xm ) ∈ Rn .
Example 1.0.2 An object rotating around the origin t distance 5 from the origin) in the xy-plane will have its
position described by the function f (t) = (cos t, sin t). This is a function from R to R2 .
1.0.1 Surfaces
Definition 1.0.2 If f is a function of two variables with domain D, then the graph of f is the set of all points
(x, y, z) in R3 such that z = f (x, y) and (x, y) is in D.
Just as the graph of a function f of one variable is a curve with equation y = f (x) so the graph of a function f
of two variables is a surface with equation z = f (x, y). We can visualize the graph of as lying directly above or
below its domain in the xy-plane.
2
3
Solution 1.0.1 The graph of has the equation z = 6 − 3x − 3y, or3x + 2y + z = 0, which represents a plane. To
graph the plane we first find the intercepts. Putting z = 0 and y = 0 in the equation, we get as the x-intercept.
Similarly, the y-intercept is 3 and the z-intercept is 6. This helps us sketch the portion of the graph that lies in
the first octant.
z = ax + by + c or ax + by − z + c = 0
so it is a plane. In much the same way that linear functions of one variable are important in single-variable
calculus.
Notice that the equation of the graph, z = x2 , doesn’t involve y. This means that any vertical plane with equation
y = k (parallel to the xz-plane) intersects the graph in a curve with equation z = x2 . So these vertical traces
are parabolas.
The graph is a surface, called a parabolic cylinder, made up of infinitely many shifted copies of the same parabola.
Here the rulings of the cylinder are parallel to the y-axis.
Example 1.0.5 Use traces to sketch the quadric surface with equation
y2 z2
x2 + + = 1.
9 4
y2
By substituting z = 0, we find that the trace in the xy-plane is x2 + 9 = 1, which we recognize as an equation
of an ellipse. In general, the horizontal trace in the plane z = k is
y2 k2
x2 + =1− , z=k
9 4
4 CHAPTER I. FUNCTIONS OF SEVERAL VARIABLES
if −3 < k < 3,
z2 k2
x2 + =1− , y=k
4 9
if −1 < k < 1,
y2 z2
+ = 1 − k2 , x=k
9 4
It’s called an ellipsoid because all of its traces are ellipses
Following table shows graphs of the six basic types of quadric surfaces in standard form. All surfaces are
symmetric with respect to the z- axis. If a quadric surface is symmetric about a different axis, its equation
changes accordingly.
5
□
Example 1.0.7 Find the domain of f if
f (x, y, z) = ln(z − y) + xy sin z
Solution 1.0.2 The expression for is defined as long as z − y > 0, so the domain of f is
D = {(x, y, z) ∈ R3 |z > y}
This is a half-space consisting of all points that lie above the plane z = y.
It is very difficult to visualize a function f of three variables by its graph, since that would lie in a four-
dimensional space. However, we do gain some insight into f by examining its level surfaces, which are the
surfaces with equations f (x, y, z) = k, where k is a constant.
Example 1.0.8 Find the level surfaces of the function
f (x, y, z) = x2 + y 2 + z 2 .
The level surfaces are x2 + y 2 + z 2 = k, where k ≥ 0 . These form a family of concentric spheres with radius
√
k.
□
6 CHAPTER I. FUNCTIONS OF SEVERAL VARIABLES
• (a, b) ∈ D is an isolated point of D iff (a, b) is the only point of D that is contained in some ϵ-disk
around (a, b).
• (a, b) is a boundary point of D iff every ϵ-disk around (a, b) contains points from D and points not from
D.
• R is an open subset of R2 iff all points of D are its interior points and D is a closed subset of R2 iff it
contains all its boundary points.
• D̄ = D ∪ {thesetof boundarypointsof D}; It is the closure of D. D is a bounded subset of R2 iff D is
contained in some ϵ -disk (around some point).
Neighbourhoods
• Circular Neighbourhoods: Let D be the domain of a two variable function f . The set
p
{(x, y)| (x − a)2 + (y − b)2 < ∆}
is called a δ− neighbourhood of the point (a, b), where (a, b) ∈ D and δ > 0.
• Square Neighbourhoods: Let D be the domain of a two variable function f . The set
is called square neighbourhood of the point (a, b), where (a, b) ∈ D and δ > 0.
1.1. LIMIT 7
1.1 Limit
Definition 1.1.1 (Limit) Let f : D → R be a function, where D is a region in the plane. Let (a, b) ∈ D.
4xy 2
Example 1.1.1 Determine if lim exists.
(x,y)→(0,0) x2 + y 2
Observe that the region D of f is R2 \{(0, 0)}. And f (0, y) = 0 for y ̸= 0; f (x, 0) = 0 for x ̸= 0. We guess that
if the limit exists, it would be 0. To see that it is the case, we start with any ϵ > 0. We want to choose a δ > 0
such that the following sentence becomes true: If
p 4xy 2
0< x2 + y 2 < δ then 2 < ϵ,
x + y2
Hence
4xy 2
lim = 0.
(x,y)→(0,0) x2 + y 2
p
Example 1.1.2 Determine if lim 1 − x2 − y 2 exists.
(x,y)→(0,0)
p
Consider f (x, y) = 1 − x2 − y 2 where D = {(x, y) : x2 + y 2 ≤ 1}, We guess that limit f (x, y) is 1 as
(x, y) → (0, 0). To show that our guess is right,plet ϵ > 0. Observe that 0 ≤ f (x, y) ≤ 1 on D. Using our
observation, assume that 0 < ϵ < 1. Choose δ = 1 − (1 − ϵ)2 . Let |(x, y) − (0, 0)| < δ. Then 0 < x2 + y 2 <
1 − (1 − ϵ)2 =⇒ 1 − x2 − y 2 > (1 − ϵ)2 =⇒ f (x, y) > 1 − ϵ. That is, |f (x, y) − 1| = 1 − f (x, y) < ϵ. Therefore,
f (x, y) → 1 as (x, y) → (0, 0).
8 CHAPTER I. FUNCTIONS OF SEVERAL VARIABLES
Theorem 1.1.1 (Uniqueness of limit) Let f (x, y) be a real valued function defined on a region D ⊆ R2 . Let
(a, b) ∈ D. If limit of f (x, y) as (x, y) approaches (a, b) exists, then it is unique.
Proof 1.1.1 Suppose f (x, y) → l and also f (x, y) → m as (x, y) → (a, b). Let ϵ > 0. For ϵ/2, we have
δ1 > 0, δ2 > 0 such that
0 < (x − a)2 + (y − b)2 < δ12 =⇒ |f (x, y) − l| < ϵ/2, 0 < (x − a)2 + (y − b)2 < δ22 =⇒ |f (x, y) − m| < ϵ/2.
Choose a point (α, β) so that both 0 < (α − a)2 + (β − b)2 < δ12 , 0 < (α − a)2 + (β − b)2 < δ22 hold.
Then
|f (α, β) − l| < ϵ/2and f (α, β) − l| < ϵ/2.
Now, |l − m| ≤ |l − f (α, β)| + |f (α, β) − m| < ϵ/2 + ϵ/2 = ϵ. That is, for each ϵ > 0, we have
|l − m| < ϵ. Hence l = m. □
For a function of one variable, there are only two directions for approaching a point; from left and from right.
Whereas for a function of two variables, there are infinitely many directions, and infinite number of paths on
which one can approach a point
The limit definition (1.1.1) says that the distance between f (x, y) and L can be made arbitrarily small by
making the distance from (x, y) to (a, b) sufficiently small (but not 0). The definition refers only to the distance
between (x, y) and (a, b). It does not refer to the direction of approach. Therefore, if the limit exists, then
f (x, y) must approach the same limit no matter how (x, y) approaches (a, b). Thus if we can find two different
paths of approach along which the function f (x, y) has different limits, then it follows that lim f (x, y)
(x,y)→(a,b)
does not exist.
Theorem 1.1.2 Suppose that f (x, y) → L1 as (x, y) → (a, b) along a path C1 and f (x, y) → L2 as (x, y) →
(a, b) along a path C2 . If L1 ̸= L2 , then the limit of f (x, y) as (x, y) → (a, b) does not exist.
x2 − y 2
Example 1.1.3 Consider f (x, y) = for (x, y) ̸= (0, 0). What is its limit at (0, 0)?
x2 + y 2
xy
Example 1.1.4 Consider f (x, y) = for (x, y) ̸= (0, 0). What is its limit at (0, 0)?
x2 + y2
xy 2
Example 1.1.5 Consider f (x, y) = for (x, y) ̸= (0, 0). What is its limit at (0, 0)?
x2 + y 4
(y − x)(1 + x)
Example 1.1.6 Consider f (x, y) = for x + y ̸= 0, −1 < x, y < 1.What is its limit at (0, 0)?
(y + x)(1 + y)
1 1
Example 1.1.7 Let f (x, y) = x sin + y sin for x ̸= 0, y ̸= 0. What is its limit at (0, 0)?
y x
This is called the repeated limit/ iterated limit of f (x, y) as x → a first and then y → b.
Similarly the other possible repeated limit is
Theorem 1.1.3 If the double limit lim f (x, y) exist and the lim f (x, y) exists for each fixed y in a
(x,y)→(a,b) x→a
neighbourhood of (a, b) then the repeated limit lim lim f (x, y) exist and
y→b x→a
Note:
• The two repeated limits may or may not exist and when exist these may or may not be equal.
• The existence of the double limit does not imply the existence of either of the two repeated limits
• If a repeated limit exists, along with the double limit, these two would be equal
• If the repeated limit exists and they are not equal, then the double limit cannot exist.
• The existence of double limit is not simply governed by the existence of repeated limits.
The usual operations of addition, multiplication etc (the algebra of limits) have the expected effects as the
following theorem shows. Its proof is analogous to the single variable limits.
f (x, y)
4. Quotient: If M ̸= 0 and g(x, y) ̸= 0 in an open disk around the point (a, b), then lim = L/M.
(x,y)→(a,b) g(x, y)
1.2 Continuity
Let f (x, y) be a real valued function defined on a subsets D of R2 . We say that f (x, y)pis continuous at a point
(a, b) ∈ D iff for each ϵ > 0, there exists δ > 0 such that for all points (x, y) ∈ D with (x − a)2 + (y − b)2 < δ
we have
|f (x, y) − f (a, b)| < ϵ.
Observe that if (a, b) is an isolated point of D, then f is continuous at (a, b). When D is a region, (a, b) is not
an isolated point of D; and then f is continuous at (a, b) ∈ D iff the following are satisfied:
The function f (x, y) is said to be continuous on a subset of D iff f (x, y) is continuous at all points in the subset.
Note:
Constant multiples, sum, difference, product, quotient, and rational powers of continuous functions are contin-
uous whenever they are well defined.
Polynomials in two variables are continuous functions.
Rational functions, i.e., ratios of polynomials, are continuous functions provided they are well defined.
2
3x y if (x, y) ̸= (0, 0)
Example 1.2.1 f (x, y) = x + y 2
2 is continuous on R2 .
0 if (x, y) = (0, 0)
10 CHAPTER I. FUNCTIONS OF SEVERAL VARIABLES
At any point other than the origin, f (x, y) is a rational function; therefore,p
it is continuous. To see that f (x, y)
is continuous at the origin, let ϵ > 0 be given. Take δ = ϵ/3. Assume that x2 + y 2 < δ. Then
3x2 y 3(x2 + y 2 )y p
− f (0, 0) ≤ ≤ 3|y| ≤ 3 x2 + y 2 < 3δ = ϵ.
2 2 2 2
x +y x +y
(
xy ln x2 + y 2
if x2 + y 2 ̸= (0, 0)
Example 1.2.2 f (x, y) = is continuous at (0,0).
0 if (x, y) = (0, 0)
Let ϵ > 0 be given. Take δ = (ϵ/2)(1/4) . Assume that |x|, |y| < δ. Then
1
|f (x, y) − f (0, 0)| = |xy ln x2 + y 2 − 0| ≤ |x||y| ln
|
(x2 + y 2 )
3 3
x − y if x ̸= y ̸= 0
Example 1.2.3 f (x, y) = x+y discuss the continuity at (0,0).
0 if (x, y) = (0, 0)
Hint: y = −x + mx3
xy
p if x2 + y 2 ̸= 0
Example 1.2.4 f (x, y) = x2 + y 2 discuss the continuity at (0,0).
0 if x2 + y 2 = (0, 0)
p
Let ϵ > 0 be given. Take δ = ϵ. Assume that x2 + y 2 < δ. Then
xy p |y|
|f (x, y) − f (0, 0)| = p − 0 ≤ |x||y| x2 + y 2 | ≤ |x| p ≤ |x| < ϵ
2 2
(x + y ) x2 + y 2
(
(x + y) sin(x + y) if (x, y) ̸= (0, 0)
Example 1.2.5 f (x, y) = discuss the continuity at (0, 0).
0 if (x, y) = (0, 0)
1.3. PARTIAL DERIVATIVES 11
Similarly,
∂f ∂f (x, y)
fy , fy (x, y), ,
∂y ∂y
(x,y)
Definition 1.3.1 The partial derivative of f (x, y) with respect to x at the point (a, b) is
∂f df (x, b) f (a + h, b) − f (a, b)
fx (a, b) = = = lim ,
∂x dx h
h→0
(a,b) x=a
provided this limit exists. Notice that f (x, b) must be continuous at x = a. The partial derivative of f (x, y) with
respect to y at the point (a, b) is
∂f df (a, y) f (a, b + k) − f (a, b)
fy (a, b) = = = lim ,
∂y dx k
k→0
(a,b) y=b
∂2f
∂ ∂f
= = fxx
∂x2 ∂x ∂x
∂2f
∂ ∂f
= = fyy
∂y 2 ∂y ∂y
∂2f
∂ ∂f
= = fxy
∂y∂x ∂y ∂x
∂2f
∂ ∂f
= = fyx
∂x∂y ∂x ∂y
Higher order partial derivatives are defined similarly:
∂3f
∂ ∂ ∂f
= = fxyx .
∂x∂y∂x ∂x ∂y ∂x
Example 1.4.1 Find all the second partial derivatives of
f (x, y) = x3 e−2y + y −2 cos(x)
Example 1.4.2 Find fx and fy , where f (x, y) = y sin(xy).
3 3
x − y if x + y ̸= 0
Example 1.4.3 f (x, y) = x+y
0 if x + y = 0
f (0, 0 + k) − f (0, 0)
fy (0, 0) = lim
k→0 k
f (0, k) − f (0, 0)
= lim
k→0 k
k3
− k −0
= lim
k→0 k
= lim −k
k→0
fy (0, 0) = 0
1.4. HIGHER PARTIAL DERIVATIVES 13
xy(x2 − y 2 )
Example 1.4.4 Consider f (x, y) = for (x, y) ̸= (0, 0), and f (0, 0) = 0.
x2 + y 2
Now by MVT
f (a + ∆x, b) − f (a, b) = ∆xfx (a + θ∆x, b)
where 0 < θ < 1
Theorem 1.4.2 (Clairaut) Let D be a region in R2 . Let the function f : D → R have continuous first and
second order partial derivatives on D. Then fxy = fyx .
Proof 1.4.2 Let (a, b) ∈ D. Let h ̸= 0. Write g(x) = f (x, b + h) − f (x, b). Then
Again, by MVT (on fx with the second variable), we have d between b and b + h such that
ϕ(f )
lim = lim fxy (c, d) = fxy (a, b).
h→0 h2 (c,d)→(a,b)
Similarly, write
ϕ(f ) = [f (a + h, b + h) − f (a, b + h)] − [f (a + h, b) − f (a, b)]
ϕ(f ) ϕ(f )
and apply MVT twice as above to get fyx (a, b) = limh→0 h2 . But the two limits with h2 are equal.
So, fxy (a, b) = fyx (a, b).
14 CHAPTER I. FUNCTIONS OF SEVERAL VARIABLES
y − y0 = f ′ (x0 )(x − x0 ).
The change in f near x0 is well approximated by a linear function:
Definition 1.4.1 If z = f (x, y), then f is differentiable at (a, b) if ∆z can be expressed in the form
In otherwards: A function f (x, y) is differentiable at (a, b) if the change in f near (a, b) is well approximated
by a linear function:
∆z = fx (a, b)∆x + fy (a, b)∆y
∂f (x0 , y0 ) ∂f (x0 , y0 )
z − z0 = ∆x + ∆y.
∂x ∂y
Example 1.4.5 Find the cartesian equation of the tangent plane to the surface
z = 1 − x2 − y 2
Hence f is continuous.
∂f f (0 + h, 0) − f (0.0)
Solution 1.4.1 = fx (0, 0) = lim =1
∂x h
h→0
(0,0)
∂f f (0, 0 + k) − f (0.0)
= fy (0, 0) = lim =1
∂y k
k→0
(0,0)
If f is differentiable at (0, 0), then we must have
ϵ1 rcos(θ) + ϵ2 r sin(θ)
cos3 (θ) + sin3 (θ) = cos(θ) + sin(θ) +
r
when r → 0
if the function is differentiable at (0, 0) then the equation must be true for all θ. But this is not true for all θ.
Therefor this is not differentiable at (0, 0)
(
x sin(1/x) + y sin(1/y) if (x, y) ̸= 0
Example 1.4.7 f (x, y) =
0 if (x, y) = 0.
Discuss the differentiability of f at (0, 0).
Theorem 1.4.4 If the partial derivatives fx and fy exist near (a, b) and are continuous at (a, b), then f is
differentiable at (a, b). .
where ∆x = x − x0 , ∆y = y − y0 . The right hand side of this equation is called the linear approximation to f
near (x0 , y0 ). This equation may also be written as
∆f ≈ fx ∆x + fy ∆y
Example 1.4.9
√
• Estimate the value of f (x, y) = 1 − x + 2y when x = 0.01, y = 0.02.
• Show that f (x, y) = xexy is differentiable at (1, 0). Then use it to approximate f (1.1, 0.1)
1.4.3 Differentials
For a differentiable function of one variable, we define the differential dx to be an independent variable; that is,
dx can be given the value of any real number. The differential of is then defined as
dy = f ′ (x)dx
For a differentiable function of two variables,z = f (x, y) , we define the differentials dx and dy to be independent
variables; that is, they can be given any values. Then the differential dz, also called the total differential, is
defined by
∂z ∂z
dz = fx (x, y)dx + fy (x, y)dy = dx + dy
∂x ∂y
Also,
∆z = dz + ϵ1 ∆x + ϵ2 ∆y
where ϵ1 , ϵ2 → 0 as ∆x, ∆y → 0