Professional Documents
Culture Documents
2021-2022
Calculus 3 ITC 0 / 47
Contents
Calculus 3 ITC 1 / 47
Introduction to Functions of Several Variables
f : D −→ R
x 7−→ f (x)
Calculus 3 ITC 2 / 47
Introduction to Functions of Several Variables
Some Operations in Rn
Calculus 3 ITC 3 / 47
Introduction to Functions of Several Variables
Basic Topology in Rn
Let x0 ∈ Rn and let > 0. A neighbourhood or -neighbourhood
about x0 is denoted and defined by
N (x0 ) = {x ∈ Rn : kx − x0 k < }.
A point x0 in R is called an interior point of R if there exists an
-neighbourhood about x0 that lies entirely in R. That is,
x0 ∈ N (x0 ) ⊂ R.
◦
The interior of R, denoted by R or int(R), is the set of all interior
points of R.
A point x0 is a boundary point of R if every neighbourhood about x0
contains points inside R and points outside R.
∀ > 0 : N (x0 ) ∩ R 6= ∅ and N (x0 ) ∩ R c 6= ∅
The boundary of R, denoted by ∂R or b(R), is the set of all
boundary points of R.
Calculus 3 ITC 4 / 47
Introduction to Functions of Several Variables
◦
A region R is open if R ⊂ R.
A region R is closed if ∂R ⊂ R.
◦
The closure of R is denoted by R and defined by R = R ∪ ∂R.
Calculus 3 ITC 5 / 47
Introduction to Functions of Several Variables
Calculus 3 ITC 6 / 47
Introduction to Functions of Several Variables
Figure: Level curves show the lines of Figure: Level curves show the lines of
equal pressure (isobars) measured in equal temperature (isotherms) measured
millibars in degree Fahrenheit.
Calculus 3 ITC 7 / 47
Limits and Continuity
Definition 3
Let f : D ⊂ Rn → Rm and a ∈ D. Then we say that the limit of f (x)
equals L as x approaches a, written as
lim f (x) = L,
x→a
Theorem 1
If a limit exists, it is unique.
Calculus 3 ITC 8 / 47
Limits and Continuity
Theorem 2
Suppose that lim f (x) and lim g (x) both exist and that k is a scalar.
x→a x→a
Then
lim [f (x) ± g (x)] = [ lim f (x)] ± [ lim g (x)]
x→a x→a x→a
lim [kf (x)] = k[ lim f (x)]
x→a x→a
lim [f (x)g (x)] = [ lim f (x)][ lim g (x)]
x→a x→a x→a
lim [f (x)/g (x)] = [ lim f (x)]/[ lim g (x)] provided lim g (x) 6= 0 and
x→a x→a x→a x→a
both f and g are real-valued functions.
If f (x) ≤ g (x) for all x, then lim f (x) ≤ lim g (x), where f and g are
x→a x→a
real-valued functions.
If kf (x) − Lk ≤ g (x) for all x and if lim g (x) = 0, then lim f (x) = L.
x→a x→a
Calculus 3 ITC 9 / 47
Produced with a Trial Version of PDF Annotator - www.PDFAnno
Produced with a Trial Version of PDF Annotator - www.PDFAnno
Produced with a Trial Version of PDF Annotator - www.PDFAnno
Produced with a Trial Version of PDF Annotator - www.PDFAnno
Produced with a Trial Version of PDF Annotator - www.PDFAnno
Limits and Continuity
Note
To show that the limit does not exist, we need to show that the function
approaches different values as x approaches a along different paths in Rn .
Theorem 3
Let f : D ⊂ Rn → Rm be a vector-valued functions,f = (f1 , f2 , . . . , fm ) and
L = (L1 , L2 , . . . , Lm ). Then,
for i = 1, 2, . . . , m.
Calculus 3 ITC 10 / 47
Limits and Continuity
Continuity
Definition 4
Let f : D ⊂ Rn 7−→ Rm . We say that the function f is continuous at a
point a in D if
lim f (x) = f (a).
x→a
Partial Derivatives
Theorem 5
Let f , g be two scalar-valued functions of n variables and let
x = (x1 , . . . , xn ). If fxi (x) and gxi (x) exist, then
∂(f + λg )
(x) = fxi (x) + λgxi (x) where λ is some constant
∂xi
∂(fg )
(x) = fxi (x)g (x) + f (x)gxi (x)
∂xi
∂(f /g ) fx (x)g (x) − f (x)gxi (x)
(x) = i if g (x) 6= 0.
∂xi g 2 (x)
Calculus 3 ITC 13 / 47
Partial Derivatives
Definition 6
A function f : D ⊂ Rn → R is said to be of class C k if all its partial
derivatives of order ≤ k are continuous.
A function f : D ⊂ Rn → R is said to be of class C ∞ if f has
continuous partial derivatives of all orders.
A function f : D ⊂ Rn → Rm is said to be of class C k if each of
component functions is of class C k .
A function f : D ⊂ Rn → Rm is said to be of class C ∞ if each of
component functions is of class C ∞ .
Calculus 3 ITC 14 / 47
Produced with a Trial Version of PDF Annotator - www.PDFAnno
Produced with a Trial Version of PDF Annotator - www.PDFAnno
Produced with a Trial Version of PDF Annotator - www.PDFAnno
Partial Derivatives
Partial Derivatives
∂k f
, r1 + r2 + · · · + rn = k
∂x1r1 ∂x2r2. . . ∂xnrn
where j1 j2 . . . jr is a permutation of i1 i2 . . . ir .
Calculus 3 ITC 15 / 47
Differentials
Differentials
Definition 7
Let D ⊂ Rn be open and f : D → R. The function f is said to be
differentiable at a if there is a mapping La : Rn → R (called differential
of f at a denoted by dfa = La or df = L for short, that is df (h) = L(h)),
such that
1 f (a + h) = f (a) + La (h) + o(khk).
2 La (αx + y ) = αLa (x) + La (y ) for all x, y ∈ Rn and α ∈ R.
A function f is said to be differentiable on D if it is differentiable for all
elements in D.
Theorem 7
Let D ⊂ Rn be open and f : D → R be a function. If the function f is
differentiable at a ∈ D then there is only one mapping La defined in
Definition 7, and f is continuous at a.
Calculus 3 ITC 16 / 47
Differentials
Theorem 8
Let D ⊂ Rn be open and f : D → R. If the function f is differentiable at a
then all partial derivatives of function f exist at a and the differential of f
at a is
∂f ∂f ∂f
df = L(h) = (a)h1 + (a)h2 + · · · + (a)hn
∂x1 ∂x2 ∂xn
where h = (h1 , h2 , . . . , hn ).
hi = ∆xi = dxi , i = 1, 2, . . . , n
Differentials
∂f ∂f
∆f = (a)∆x1 + · · · + (a)∆xn + o (k∆xk) .
∂x1 ∂xn
If ∆xi = dxi , i = 1, 2, . . . , n are small enough tending to zero, then ∆f can
be approximated by df .
Theorem 9
Let D ⊂ Rn be open and f : D → R. If all first-order partial derivatives of
function f exist and are continuous at a, then the function f is
differentiable at a.
Theorem 10
If a function is differentiable at a, then it is continuous at a.
Calculus 3 ITC 18 / 47
Chain Rules for Functions of Several Variables
for j = 1, 2, . . . , m.
In particular, if xi , i = 1, 2, . . . , n is a function of a single variable t, then
we have
n
dy X ∂y dxi
= .
dt ∂xi dt
i=1
Calculus 3 ITC 19 / 47
Chain Rules for Functions of Several Variables
∂y Fx (x1 , x2 , . . . , xn , y )
=− i , Fy (x1 , x2 , . . . , xn , y ) 6= 0
∂xi Fy (x1 , x2 , . . . , xn , y )
for i = 1, 2, . . . , n.
Calculus 3 ITC 20 / 47
Directional Derivatives and Gradients
Directional Derivatives
Definition 8
Let f : D ⊂ Rn → R, a ∈ Rn and u ∈ Rn be any unit vector. The
directional derivative of f at a in the direction of u is defined by
f (a + tu) − f (a)
Du f (a) = lim , t ∈ R,
t→0 t
provided that the limit exists.
Theorem 13
Let f : D → R and a ∈ D ⊂ Rn . Let u = (u1 , u2 , . . . , un ) be a unit vector.
Suppose that the first partial derivatives of f exist and continue at a. Then
n
X ∂f
Du f (a) = ui (a).
∂xi
i=1
Calculus 3 ITC 21 / 47
Directional Derivatives and Gradients
Gradient
Definition 9
For a real-valued function f (x1 , x2 , . . . , xn ), the gradient of f at a point
a, denoted by ∇f (a), is the vector
∂f ∂f ∂f
∇f (a) = (a), (a), . . . , (a) .
∂x1 ∂x2 ∂xn
Theorem 14
Let D ⊂ Rn be open, and suppose f : D → R is differentiable at a ∈ D.
Then the directional derivative of f at a exists for all directions (unit
vectors) u and, moreover, we have
Du f (a) = ∇f (a) · u
Calculus 3 ITC 22 / 47
Directional Derivatives and Gradients
Gradient
Theorem 15
Let f be a continuously differentiable
real-valued function, with ∇f 6= 0.
Then:
The value of f (x) increases the
fastest in the direction of ∇f .
The maximum value of Du f is
k∇f k.
The value of f (x) decreases the
fastest in the direction of −∇f .
The minimum value of Du f is
−k∇f k. Figure: The maximum increase of f in
the direction of ∇f (x, y ) in the xy -plane
Calculus 3 ITC 23 / 47
Directional Derivatives and Gradients
Gradient
Theorem 16
Let D ⊂ Rn be open, and f : D → R be a function of class C 1 . If a is a
point on the level hypersurface S = {x ∈ D : f (x) = c}, then the vector
∇f (a) is perpendicular to S.
Calculus 3 ITC 24 / 47
Directional Derivatives and Gradients
Definition 10
Let D ⊂ Rn be open and f : D → Rm be a vector-valued function of n
variables. Then f is said to be differentiable at a if there is a mapping
La : Rn → Rm (called the differential of f at a denoted by dfa = La or
df = L for short, that is df (h) = L(h)) such that
1 f (a + h) = f (a) + La (h) + o (khk).
2 La (αx + y ) = αLa (x) + La (y ) for all x, y ∈ Rn and α ∈ R.
A function f is said to be differentiable on D if it is differentiable for all
elements in D.
Theorem 17
If the function f : D ⊂ Rn → Rm is differentiable at a then there is only
one mapping La defined in Definition 10 and f is continuous at a.
Calculus 3 ITC 25 / 47
Directional Derivatives and Gradients
Definition 11
Let f : D ⊂ Rn → Rm be a vector-valued function of n variables. Let
x = (x1 , . . . , xn ) denote a point of Rn and f = (f1 , . . . , fm ). We define the
matrix of partial derivatives of f , denoted Df , to be the m × n matrix
∂fi ∂fi
whose (i, j) entry is . That is, Df = .
∂xj ∂xj m×n
The matrix
∂fi
Df (a) = (a)
∂xj m×n
is also called Jacobian matrix of f at a.
Calculus 3 ITC 26 / 47
Directional Derivatives and Gradients
Theorem 18
Let D ⊂ Rn be open and f : D → Rm be a vector-valued function of
x = (x1 , . . . , xn ). If f = (f1 , . . . , fm ) is differentiable at a then the
first-order partial derivatives of f exist at a and the differential of f at a is
∂f1 ∂f1
(a) · · · (a)
dx1
∂x1 ∂xn
df (dx) = Df (a)(dx) =
.. .. .. .
..
. . .
∂fm ∂fm dx
(a) · · · (a) n
∂x1 ∂xn
For short,
∂f1 ∂f1
(a) · · · (a)
dx1
∂x1 ∂xn
df = .. .. .. .
.. .
. . .
∂fm ∂fm dx
n
(a) · · · (a)
∂x1 ∂xn
Calculus 3 ITC 27 / 47
Directional Derivatives and Gradients
Theorem 19
If f , g : D → Rm are differentiable at a then
where α is a constant.
Theorem 20
Let D ⊂ Rn be open and f : D → Rm be a function. If all first-order
partial derivatives of f exist at a and are continuous at a, then the
function f is differentiable at a.
Calculus 3 ITC 28 / 47
Directional Derivatives and Gradients
Calculus 3 ITC 29 / 47
Directional Derivatives and Gradients
Hessian Matrix
Definition 12 (Principal Minor)
Let A = (aij )n×n be a square matrix. The determinant
Ak = det (aij )k×k , 1 ≤ k ≤ n, is called the kth principal minor of
matrix A.
∂2f
Hf (a) = (a) .
∂xj ∂xi n×n
∂2f
We denote Hk = det the kth principal minor of Hf for
∂xj ∂xi k×k
k = 1, 2, . . . , n.
Calculus 3 ITC 30 / 47
Directional Derivatives and Gradients
where h = (h1 , . . . , hn ).
Calculus 3 ITC 31 / 47
Directional Derivatives and Gradients
1
where d (1) fa (h) = dfa (h); d (2) fa (h) = ht Hf (a)h
2
n n jf
X X ∂
d (j) fa (h) = ··· (a)hi1 . . . hij ,
∂xi1 . . . ∂xij
i1 =1 ij =1
n n
X X ∂j f
d (k) fc (h) = ··· (c)hi1 . . . hik and
∂xi1 . . . ∂xik
i1 =1 ik =1
h = (h1 , . . . , hn ) = x − a.
Calculus 3 ITC 32 / 47
Tangent Planes and Normal Lines
F (x, y , z) = f (x, y ) − z.
Calculus 3 ITC 33 / 47
Tangent Planes and Normal Lines
F 0 (t) = Fx (x, y , z)x 0 (t)+Fy (x, y , z)y 0 (t)+Fz (x, y , z)z 0 (t) = 0
Calculus 3 ITC 34 / 47
Tangent Planes and Normal Lines
Calculus 3 ITC 35 / 47
Tangent Planes and Normal Lines
Theorem 24
If the surface given by equation z = f (x, y ), then an equation of tangent
line to the the surface at the point (x0 , y0 , z0 ) is
Calculus 3 ITC 36 / 47
Extrema of Functions of Several Variables
Theorem 25
If D ⊂ Rn is closed and bounded and f : D → R is a continuous function,
then f must have both a global maximum and a global minimum
somewhere on D.
Theorem 26
Let D ⊂ Rn be open and f : D → R be a function. If the first-order partial
derivatives of f exist at a ∈ D and f (a) is a local extremum of f , then
∇f (a) = 0.
Calculus 3 ITC 38 / 47
Extrema of Functions of Several Variables
Definition 17
Let f be defined on an open region D containing a. The point a is a
critical point of f if one of the following is true.
1 fxi (a) = 0, for all i = 1, 2, . . . , n.
2 fxi (a) does not exist for some i ∈ {1, 2, . . . , n}.
Definition 18
Let D ⊂ Rn be open and f : D → R be differentiable at a ∈ D. Then a is
called a saddle point of f if ∇f (a) = 0 and there is an r0 > 0 such that
given any 0 < ρ < r0 there are points x, y ∈ Bρ (a) which satisfy
f (x) < f (a) < f (y ).
Calculus 3 ITC 39 / 47
Extrema of Functions of Several Variables
Calculus 3 ITC 40 / 47
Extrema of Functions of Several Variables
Definition 20
The quadratic form Q(h) = ht Bh (equivalentelly a symmetric matrix B) is
said to be positive definite if Q(h) > 0 for all h 6= 0 and negative
definite if Q(h) < 0 for all h 6= 0.
Theorem 28
Let A = (aij )n×n be a symmetric matrix.
A is positive definite if and only if all kth principal minors Ak > 0
for all k = 1, 2, . . . , n.
A is negative definite if and only if all kth principal minors
(−1)k Ak > 0 for all k = 1, 2, . . . , n.
Calculus 3 ITC 41 / 47
Extrema of Functions of Several Variables
Calculus 3 ITC 42 / 47
Extrema of Functions of Several Variables
Definition 21
Let D ⊂ Rn and f : D → R be a function.
The set D is said to be convex if every two points x, y ∈ D, the line
segment L(x, y ) ⊂ D.
The function f is said to be convex on a convex set D if for any
x, y ∈ D and for any
t ∈ [0, 1], f ((1 − t)x + ty ) ≤ (1 − t)f (x) + tf (y ).
The function f is said to be concave on a convex set D if for any
x, y ∈ D and for any
t ∈ [0, 1], f ((1 − t)x + ty ) ≥ (1 − t)f (x) + tf (y ).
Calculus 3 ITC 43 / 47
Extrema of Functions of Several Variables
Theorem 30
Let D ⊂ Rn be a convex set and f : D → R be a C 2 function. The
function f is a convex function on D if and only if for any x ∈ D, for any
k = 1, 2, . . . , n, the kth principal minor of the Hessian Hk (x) ≥ 0.
Theorem 31
If f : D → R is a convex function on a convex set D and f (a) is a local
minimum then f (a) is the global minimum on D.
If f : D → R is a concave function on a convex set D and f (a) is a local
maximum then f (a) is the global maximum on D.
Calculus 3 ITC 44 / 47
Lagrange Multipliers
Theorem 32
Let f , g1 , . . . , gk : D → R be C 1 functions where D ⊂ Rn is open and
k < n. Suppose there is an a ∈ D such that
∂g1 ∂g1
(a) . . . (a)
∂x1 ∂xk
det .
. . . .
.
6= 0. (1)
. . .
∂gk ∂gk
(a) . . . (a)
∂x1 ∂xk
Calculus 3 ITC 45 / 47
Lagrange Multipliers
k
∂2f X ∂ 2 gm
where O = (0)k ; H = (hij )n×n ; hij = (a) − λm (a).
∂xj ∂xi ∂xj ∂xi
m=1
Calculus 3 ITC 46 / 47
Lagrange Multipliers
Calculus 3 ITC 47 / 47