SMC Notes On Unit-I
SMC Notes On Unit-I
Multi-Variate
Department of Mathematics
School of Engineering
Dayananda Sagar University
Bangalore, Karnataka
India
Contents
1 Differential Calculus 1
1.1 Function of Several Variable (Two or more variables) . . . . . . . . . . . . . . 1
1.2 Limit of Higher Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.2.1 Properties of limits of function of two variables . . . . . . . . . . . . . 8
1.3 Continuity of Higher Dimensions . . . . . . . . . . . . . . . . . . . . . . . . . 12
1.4 Partial Derivatives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
1.4.1 Second order partial derivatives . . . . . . . . . . . . . . . . . . . . . . 17
1.4.2 Differentiability of a function of two variables . . . . . . . . . . . . . . 18
1.4.3 The Chain Rule . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
1.5 Extreme Values and Saddle Points . . . . . . . . . . . . . . . . . . . . . . . . . 22
1.6 Lagrange Multipliers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
Bibliography 25
i
Chapter 1
Differential Calculus
w = f ( x1 , x2 , x3 , ..., xn )
to each element in D. The set D is the function’s domain. The set of w-values taken on by
f is the function’s range. The symbol w is the dependent variable of f , and f is said to be
a function of the n independent variables x1 to xn . Here, x ′j s are called the function’s input
variables and w is called the function’s output variable.
Functions of two variables
Let D be a set of ordered pairs of real numbers ( x, y). A real-valued function f on D is a
rule that assigns a unique (single) real number
z = f ( x, y)
to each element in D. The set D is the function’s domain as a region in the xy-plane and z
is the set of all corresponding values of f called range of f .
1
1.1. Function of Several Variable (Two or more variables) 2
Example 1:- The volume of a right circular cylinder (V ) is a function of its radius (r ) and
its height (h) and is written as V = f (r, h) or V = πr2 h
Domain and Range of function of several variables
For defining a real-valued function of more than one variable, we generally avoid the in-
puts values that lead the function to a complex number or make the denominator of the
function to be zero.
Examples 2:- p
a). If f ( x, y) = y − x2 , y cannot be less then x2 for the purpose of making the function
real valued.
b). If f ( x, y) = 1/xy, x, y can not be zero, otherwise the function leads to an indeterminate
value.
The domain of the function is assumed to be the largest set for which the defining rule
generates real numbers, unless the domain is otherwise specified explicitly.
The range consists of the set of output values for the dependent variables.
Example 3:-
a). For function of two variables
f ( x, y) = 3x + 5y + 2
Solution:- The given function is linear in two variables. This function is defined for all
ordered pairs of real number (x,y). so the domain of f is the Cartesian xy-plane or R2 .
Range:- Let 3x + 5y + 2 = z or f ( x, y) = z
To find the solution of f ( x, y) = z, we put y = 0.
∴ x = (z − 2)/3 which is defined for all value of z.
Hence, the range of the function is all real number.
Region in a Plane
Regions in a plane can have interior points and boundary points just like intervals on the
1.1. Function of Several Variable (Two or more variables) 3
real line. Closed intervals [a, b] include their boundary points, open intervals (a, b) don’t
include their boundary points, and intervals such as [a, b) or (a, b] are neither open nor
closed.
Definitions
A point ( x0 , y0 ) in a region (set) R in the xy-plane is an interior point of R if it is the center
of a disk of positive radius that lies entirely in R.
A point ( x0 , y0 ) is a boundary point of R if every disk centered at ( x0 , y0 ) contains points
that lie outside of R as well as points that lie in R. (The boundary point itself need not
belong to R.)
The interior points of a region, as a set, make up the interior of the region. The region’s
boundary points make up its boundary. A region is open if it consists entirely of interior
points. A region is closed if it contains all its boundary points.
Figure 1.3: Interior points and boundary points of the unit disk in the plane.
1.1. Function of Several Variable (Two or more variables) 4
Note Like a half-open interval of real numbers [a, b), regions in the plane may be half-open
,i.e., neither open nor closed.
Bounded and Unbounded regions:-
A region in the plane is bounded if it lies inside a disk of finite radius. A region is
unbounded if it is not bounded.
Examples 4:-
a). Bounded regions (sets) in the plane:- line segments, triangles, interiors of triangles,
rectangles, circles, and disks.
b). Unbounded regions (sets) in the plane:- lines, coordinate axes, the graphs of functions
defined on infinite intervals, quadrants, half-planes, and the p
plane itself.
Problem 2:- Describe the domain of the function f ( x, y) = y − x2 .
Solution:- Since f is defined only where y − x2 ≥ 0, the domain is the closed, unbounded
region as shown in Figure. The parabola y = x2 is the boundary of the domain. The points
above the parabola make up the domain’s interior.
Figure 1.4: The domain of f ( x, y) consists of the shaded region and its bounding parabola.
than or equal to zero. The graph is the paraboloid z = 100 − x2 − y2 , the positive portion
of which is shown in the figure. The level curve f ( x, y) = 0 is the set of points in the
xy=plane at which f ( x, y) = 100 − x2 − y2 = 0, or x2 + y2 = 100, which is the circle of
radius 10 centered at the origin. Similarly, the level curves f ( x, y) = 51 and f ( x, y) = 75
are the circles x2 + y2 = 49 and x2 + y2 = 25, respectively.
The level curve f ( x, y) = 100 consists of the origin alone. (It is still a level curve).
If x2 + y2 > 100, then the values of f(x,y) are negative. For example, the circle x2 + y2 =
144, which is the circle centered at the origin with radius 12, gives the constant value
f ( x, y) = −44 and is a level curve of f .
Note:- Sometime, a level curve is called synonymously as contour curve.
Figure 1.5: The graph and selected level curves of the function f(x, y)
Level Surface:-
The set of points in space where a function of three independent variables has a constant
value f ( x, y, z) = 0 is called a level surface of f .
Problem 4:- Describe the level surface of the function
q
f ( x, y, z) = x2 + y2 + z2 .
Solution:-
p value of f is the distance from the origin to the point ( x, y, z). Each level surface
The
2 2 2
p x + y + z = c, c > 0, is the surface radius c centred at the origin. The level surface
x + y + z2 = 0 consists of the origin alone.
2 2
1.1. Function of Several Variable (Two or more variables) 6
Figure 1.6: The graph and selected level surface of the function f(x, y,z)
Region in a Space
Regions in a space can have interior and boundary points.
Definition:- A point ( x0 , y0 , z0 ) in a region R in space is an interior point of R if it is the
center of a solid ball that lies entirely in R.
A Point ( x0 , y0 , z0 ) is a boundary point of R if every solid ball centered at ( x0 , y0 , z0 )
contains points that lie outside of R. The boundary of R is the set of boundary points of R.
1.2. Limit of Higher Dimensions 7
if, for every number ϵ > 0, there exist a corresponding number δ > 0 such that for all
( x, y) in the domain of f ,
q
| f ( x, y) − l | < ϵ, whenever, 0 < ( x − x0 )2 + (y − y0 )2 < δ.
Note:- i) In the limit definition, δ is the radius of the disk centered at ( x0 , y0 ). For all
points ( x, y) within this disk, the function values f ( x, y) lie inside the corresponding in-
terval (l − ϵ, l + ϵ).
Figure 1.7: In the limit definition δ is the radius of a disk centered at ( x0 .y0 ). For all points ( x, y)
within this disk, the function values f ( x, y) lie inside the corresponding interval l
ii) If
lim f ( x, y)
( x,y)→( x0 ,y0 )
exists, then this limit is independent of the path along which we approach the point
( x0 , y0 ). If the limit is dependent on the path, then the limit does not exit.
1.2. Limit of Higher Dimensions 8
lim f ( x, y)
f ( x, y) ( x,y)→( x0 ,y0 ) l
lim = = , m ̸= 0
( x,y)→( x0 ,y0 ) g( x, y) lim g( x, y) m
( x,y)→( x0 ,y0 )
x − xy + 3 0 − (0).(1) + 3
i) lim = = −3
( x,y)→(0,1) x2 y + 5xy − y3 (0)2 .(1) + 5.(0).(1) − (1)3
q q
ii ) lim x + y = (3)2 + (−4)2 = 5
2 2
( x,y)→(3,−4)
1.2. Limit of Higher Dimensions 9
y 0
lim = lim = lim 0 = 0
( x,y)→(1,0) x+y−1 ( x,y)→(1,0) x + 0 − 1 ( x,y)→(1,0)
along y = 0 along y= 0
y y
∵ lim ̸= lim
( x,y)→(1,0) x+y−1 ( x,y)→(1,0) x + y − 1
along y = 0 along x = 1
y
∴ lim x + y −1 does not exists.
( x,y)→(1,0)
Problem 8: Let f : R2 → R be defined by
xy
(
x 2 + y2
, ( x, y) ̸= (0, 0)
f ( x, y) =
0, ( x, y) = (0, 0)
1.2. Limit of Higher Dimensions 10
xy mx2 m
lim 2 2
= lim 2 2 2
= lim
( x,y)→(1,0) x +y x →0 x + m x x →0 1 + m 2
along y = mx
xy m
lim =
( x,y)→(1,0) x2 +y 2 1 + m2
along y = mx
Solution: By approaching the point (0, 0) through different path line y = mx, we can find
the existence of limit.
Limit along the path y = mx
4xy2 4m2 x
lim = lim = 0, ∀ m ∈ R.
( x,y)→(0,0) x 2 + y2 x →0 1 + m 2
along y = mx
4xy2
q
−0 < ϵ whenever 0< x 2 + y2 < δ
x 2 + y2
or
4| x | y2
q
<ϵ whenever 0< x 2 + y2 < δ
x 2 + y2
1.2. Limit of Higher Dimensions 11
4| x | y2 √ q
y2
≤ 4 | x | = 4 x 2 ≤ 4 x 2 + y2 , [∵ ≤ 1]
x 2 + y2 x 2 + y2
p
So if we choose δ = ϵ/4 and let 0 < x2 + y2 < δ, we get
4xy2
q
−0 ≤ 4 = 4 x2 + y2 < 48(ϵ/4) = ϵ
x 2 + y2
(i) f is defined at ( x0 , y0 ),
(iii) lim f ( x, y) = f ( x0 , y0 )
( x,y)→( x0 ,y0 )
Note: The algebraic combinations (sums, differences, constant multiples, Products, quo-
tients and powers) of continuous functions are continuous at every point at which all
functions involved are defined. In particular, polynomials and rational functions of two
variables are continuous at every point at which they are defined.
Problem 10:- Show that
( 2xy
2 2 , ( x, y ) ̸ = (0, 0)
f ( x, y) = x +y
0, ( x, y) = (0, 0)
2m 2m
= lim =
( x →0) 1 + m 2 1 + m2
This limit changes with each value of the slope m. There is therefore no single number
we may call the limit of f as ( x, y) approaches the origin. The limit fails to exist, and the
function is not continuous at the origin.
Problem 11:- Test the function
( x 3 − y3
2 2 , when x ̸ = 0, y ̸ = 0
f ( x, y) = x +y
0, when x = 0, y = 0
1.3. Continuity of Higher Dimensions 13
for continuity.
Solution: The function is well defined at (0, 0).
x 3 − y3
lim f ( x, y) = lim
( x,y)→(0,0) ( x,y)→(0,0) x 2 + y2
x 3 − y3
= lim lim 2
x →0 y→mx x + y2
x (1 − m3 )
= lim =0
x →0 1 + m2
Thus, limit exist at (0, 0).
The limit of f ( x, y) at the origin = The value of the function at origin.
,i.e.,
lim f ( x, y) = f (0, 0) = 0
( x,y)→(0,0)
2x2 y
lim f ( x, y) = lim lim 2
( x,y)→(0,0) x →0 y → x 2 x + y 2
2k
= lim
x →0 1 + k 2
2k
=
1 + k2
This limit varies with the path of approach. If ( x, y) approaches (0, 0) along the parabola
y = x2 , for instance k = 1 and the limit is 1. If ( x, y) approaches (0, 0) along the x-axis,
k = 0 and the limit is 0. By the two-path test, f has no limit as ( x, y) approaches (0, 0).
Two path test for non-existence of a limit:
If a function f ( x, y) has different limits along two different paths in the domain of f as
( x, y) approaches ( x0 , y0 ), then lim f ( x, y) does not exists.
( x,y)→( x0 ,y0 )
Note: In the above example, it can be shown that the function has limit 0 along every path
y = mx. But the function is not continuous. Hence, it is concluded that having the same
limit along all straight lines approaching ( x0 , y0 ) does not imply a limit exists at ( x0 , y0 ).
1.4. Partial Derivatives 14
∂ f ( x0 , y0 ) ∂ f ( x, y) f ( x0 + h, y0 ) − f ( x0 , y0 )
= = lim
∂x ∂x ( x0 ,y0 ) h →0 h
∂ f ( x0 , y0 ) ∂ f ( x, y) f ( x0 , y0 + k ) − f ( x0 , y0 )
= = lim
∂y ∂y ( x0 ,y0 ) k →0 k
Figure 1.8: The intersection of the plane y = y0 with the surface z = f ( x, y), viewed from above
the first quadrant of the xy-plane.
1.4. Partial Derivatives 15
ii). The slope of the curve z = f ( x0 , y) at the point P( x0 , y0 , f ( x0 , y0 )) in the vertical plane
x = x0 is the value of the partial derivative of f w.r.to y at ( x0 , y0 ). [Fig. 1.9]
Figure 1.9: The intersection of the plane x = x0 with the surface z = f ( x, y), viewed from above
the first quadrant of the xy-plane.
∂f ∂f
Problem 13: Find the value of ∂x and ∂y at the point (4, −5) if f ( x, y) = x2 + 3xy + y − 1.
∂f
Solution: To find ∂x , we treat y as a constant and differentiate w.r.to. x, we have,
∂f ∂ 2
= ( x + 3xy + y − 1) = 2x + 3y
∂x ∂x
∂f
The value of ∂x at (4, −5) is 2(4) + 3(−5) = −7.
∂f
Again, to find ∂y , we treat x as a constant and differentiate w.r.to. y, we have,
∂f ∂
= ( x2 + 3xy + y − 1) = 3x + 1
∂y ∂y
∂f
The value of ∂y at (4, −5) is 3(4) + 1 = 13.
∂f
Problem 14: Find ∂y as a function if f ( x, y) = y sin xy.
∂f
Solution: Treating x as constant, the partial derivative ∂y is obtained as
∂f ∂ ∂ ∂
= (y sin xy) = y (sin xy) + sin xy (y) = xy cos xy + sin xy.
∂y ∂y ∂y ∂y
Problem 15: The plane x = 1 intersects the paraboloid z = x2 + y2 in a parabola. Find
the slope of the tangent to the parabola at (1, 2, 5)
∂z
Solution: The slope is the value of the partial derivative ∂y at (1, 2). [Fig. 1.10]
∂z ∂ 2
= ( x + y2 ) = 2y|(1,2) = 2(2) = 4
∂y 1,2 ∂y 1,2
1.4. Partial Derivatives 16
Figure 1.10: The tangent to the curve of intersection of the plane x = 1 and surface z = x2 + y2 at
the point (1, 2, 5).
∂ 1 ∂ 1 1 1
∴ = + +
∂R2 R ∂R2 R1 R2 R3
1 ∂R 1
=⇒ − 2 = 0− 2 +0
R ∂R2 R2
1.4. Partial Derivatives 17
2
∂R R
=⇒ = (1.1)
∂R2 R2
when R1 = 30, R2 = 45 and R3 = 90, then
1 1 1 1 1 1 1 1
= + + = + + =
R R1 R2 R3 30 45 90 15
R = 15
eq. 1.1 =⇒
2 2
∂R R 15 1
= = =
∂R2 R2 45 9
Thus, at the given values, a small change in the resistance R2 leads to change in R about
(1/9)th as large.
Note:-
∂2 f ∂2 f
= .
∂y∂x ∂x∂y
But this can not be equal when derivatives f x , f y , f x,y , f yx and the function f are not
continuous.
The Mixed Derivative Theorem (Clairaut’s Theorem)
Statement:- If f ( x, y) and its partial derivatives f x , f y , f x,y and f yx are defined throughout
an open region containing a point ( a, b) and are all continuous at ( a, b), then
∂2 ∂2
f ( a, b) = f ( a, b)
∂x∂y ∂y∂x
Example 5: If
x 2 − y2
(
xy x2 +y2 , i f ( x, y) ̸= (0, 0),
f ( x, y) =
0, i f ( x, y) ̸= (0, 0).
then,
∂2 ∂2
( f (0, 0)) = ( f (0, 0))
∂x∂y ∂y∂x
Note:-
∂2 f ∂f ∂f
̸= .
∂x∂y ∂x ∂y
∆z = f x ( x0 , y0 )∆x + f y ( x0 , y0 )∆y + ϵ1 ∆x + ϵ2 ∆y
dw ∂ f dx ∂ f dy
= +
dt ∂x dt ∂y dt
Problem 18:- Use the Chain Rule to find the derivative of w = xy with respect to t along
the path x = cos t, y = sin t. What is the derivative’s value at x = π/2 ?
Solution: from the chain rule, we have
dw ∂w dx ∂w dy
= +
dt ∂x dt ∂y dt
∂ d ∂ d
= ( xy). (cos t) + ( xy). (sin t)
∂x dt ∂y dt
dw
= y.(− sin t) + cos t. cos t
dt
= cos2 t − sin2 t = cos 2t
Also,
dw
= cos 2(π/2) = −1
dt t=π/2
dw ∂w dx ∂w dy ∂w dz
= + +
dt ∂x dt ∂y dt ∂z dt
dw dw
Problem 19:- Find dt if w = xy + z, x = cos t, y = sin t, z = t. Also, find dt at t = 0.
Solution:
dw ∂w dx ∂w dy ∂w dz
= + +
dt ∂x dt ∂y dt ∂z dt
= y.(sin t) + x. cos t + 1
= − sin2 t + cos2 t + 1 = 1 + cos 2t.
Also,
dw
=2
dt t =0
1.4. Partial Derivatives 20
Theorem:- Chain rule for two independent variables and three independent variables
Let w = f ( x, y, z), x = g(r, s), y = h(r, s) and z = k (r, s) all are differentiable, then
∂w ∂w ∂x ∂w ∂y ∂w ∂z
= + +
∂r ∂x ∂r ∂y ∂r ∂z ∂r
∂w ∂w ∂x ∂w ∂y ∂w ∂z
= + +
∂s ∂x ∂s ∂y ∂s ∂z ∂s
2 r 2
Problem 20:- Express ∂w ∂w
∂r and ∂s in terms of r and s if w = x + 2y + z , x = s , y = r + ln s,
z = 2r.
Solution: From the chain rule, we have
∂w ∂w ∂x ∂w ∂y ∂w ∂z
= + +
∂r ∂x ∂r ∂y ∂r ∂z ∂r
1
= 1. + 2.(2r ) + 2z.(2)
s
1 1
= + 4r + 8r = + 12r
s s
Similarly, we can obtained
∂w 2 r
= − 2.
∂s s s
1.4. Partial Derivatives 21
Similarly, for f = f ( x, y, z)
∂f ∂f ∂f
df = dx + dy + dz
∂x ∂y ∂z
1.5. Extreme Values and Saddle Points 22
f ( x, y) = x2 + y2 − 4x + 9.
Solution: The domain of f is the entire plane (so there are no boundary points) and the
partial derivatives f x = 2x and f y = 2y − 4 exist everywhere. Therefore, local extreme
values can occur only where
f x = 2x = 0 and f y = 2y − 4
=⇒ x = 0 and y=2
The only possibility is the point (0, 2), where the value of f is 5. Since f ( x, y) = x2 + (y −
2)2 + 5 is never less than 5. Hence, 5 is the local minima at the critical point (0, 2).
Second derivative test for local extreme values:
Suppose that f ( x, y) and its first and second partial derivatives are continuous throughout
a disk centered at ( a, b) and that f x ( a, b) = f y ( a, b) = 0, then
2 > 0 at ( a, b ).
i). f has a local maximum at ( a, b) if f xx < 0 and f xx f yy − f xy
1.5. Extreme Values and Saddle Points 23
2 > 0 at ( a, b ).
ii). f has a local minimum at ( a, b) if f xx > 0 and f xx f yy − f xy
2 < 0 at (a,b).
iii). f has a saddle point at ( a, b) if f xx f yy − f xy
2 = 0 at (0, 0).
iv). the test is inconclusive at ( a, b) if f xx f yy − f xy
In this case, we must find some other way to determine the behavior of f at ( a, b).
Problem 22:- Find the local extreme values of the function
f ( x, y) = xy − x2 − y2 − 2x − 2y + 4.
Solution: The function is defined and differentiable for x and y and its domain has no
boundary points. The function therefore has extreme value only at the points where f x
and f y are similarly zero. This leads to
y=-2
f x = y − 2x − 2 = 0, f y = x − 2y − 2 = 0,
or x = y = −2.
Therefore, the point (−2, −2) is the only point where f may take on an extreme value. To
see if it does so, we calculate, f xx = −2, f yy = −2, f xy = 1.
The discriminant of f at ( a, b) = (−2, −2) is
2
f xx f yy − f xy = (−2)(−2) − (−1)2 = 3
2 > 0 tells us that f has a local maximum at
The combination f xx < 0 and f xx f yy − f xy
(−2, −2). The value of f at this point is f (−2, −2) = 8.
Absolute Maxima and Minima on Closed Bounded Regions
The absolute extrema of a continuous function f ( x, y) on a closed and bounded region R
into three steps.
a). List the interior points of R where f may have local maxima and minima and evalu-
ate f at these points. These are the critical points of f .
b). List the boundary points oƒ R where f has local maxima and minima and evaluate
f at these points.
c). Look through the lists for the maximum and minimum values of f . These will be
the absolute maximum and minimum values of f on R. Since absolute maxima and
minima are also local maxima and minima, the absolute maximum and minimum
values of f appear somewhere in the lists made in Steps 1 and 2.
Problem 23:- Find the absolute maximum and minimum values of
f ( x, y) = 2 + 2x + 2y − x2 − y2
on the triangular region in the first quadrant bounded by the lines x = 0, y = 0, y =
9 − x.
Solution:
1.6. Lagrange Multipliers 24
ϕ( x, y, z) = 0 (1.2)
∂f ∂f ∂f
= 0, = 0, = 0.
∂x ∂y ∂z
∂f ∂f ∂f
∴ dx + dy + dz = 0 (1.3)
∂x ∂y ∂z
Also, differentiating the given relation ϕ( x, y, z) = 0, we have
∂ϕ ∂ϕ ∂ϕ
dx + dy + dz = 0 (1.4)
∂x ∂y ∂z
Now multiplying eq.(1.4) by the parameter λ (called Lagrange Multiplier) and addition to
eq.(1.3), we get
∂f ∂ϕ ∂f ∂ϕ ∂f ∂ϕ
−λ dx + −λ dy + −λ dz = 0 (1.5)
∂x ∂x ∂y ∂x ∂z ∂x
This equation will be identically satisfied if coefficients of dx, dy, dz are separately zero.
,i.e.,
∂f ∂ϕ
−λ = 0 (1.6)
∂x ∂x
∂f ∂ϕ
−λ = 0 (1.7)
∂x ∂x
∂f ∂ϕ
−λ = 0 (1.8)
∂x ∂x
The four equations (1.2), (1.6), (1.7), (1.8) will determine the value of x, y, z (and λ) for
f ( x, y, z) is stationary.
Problem 24:- Find the greatest and smallest values that the function f ( x, y) = xy takes
on the ellipse
x2 y2
+ =1
8 2
Solution:
Here is a cite,[1]
Bibliography
25