LectureNoteson Calculus3
LectureNoteson Calculus3
1. Partial derivatives.
2. Multiple integrals.
3. Line integrals.
4. Surface integrals.
2. Partial derivatives
Tangent plane
Linear approximation
Directional derivatives
To study functions of several variables and its behaviors, one has extended the
concepts of a function and particularly the differential calculus of one variable.
Definition
A function, f , of n variables is a rule that assigns to each incoming tuple of
numbers, (x1 , x2 , . . . , xn ), a uniquely defined outgoing number, z. In symbols we
write this as z = f (x1 , x2 , . . . , xn ).
Example
Graph of the equation x 2 + y 2 + z 2 = 1. In fact, we can write z as a
function in terms of x and y and hence D is a unit disk centered at (0, 0)
on the xy −plane.
Definition
Let f be a function defined in a neighborhood of a point a but not necessarily at
a. We say loosely that the limit of f when X goes to a is L, and write
limX →a f (X ) = L
Example
2 2
X = (x, y ) and f (x, y ) = xx 2−y
+y 2 is not defined when x = y = 0. What can we say
about the value of f as (x, y ) ≈ (0, 0)?
From the definition of limit, almost characteristics, such as limit laws of one
variable function, the squeeze theorem are valid in the case of several variables.
2. There are 2 sequences Mn1 = (xn1 , yn1 ) 6= Mn2 = (xn2 , yn2 ) converging to (x0 , y0 )
as n → ∞ but limn→∞ f (xn1 , yn1 ) 6= limn→∞ f (xn2 , yn2 )
So far we have two methods for visualizing functions: arrow diagrams and graphs.
A third method, borrowed from mapmakers, is a contour map on which points of
constant elevation are joined to form contour lines, or level curves.
Note that the level curves of a function are never intersecting to each other.
Recall that given a function of one variable, f 0 (x) represents the rate of
change of the function as x changes. For functions of several variables,
what do we do if we only want one of the variables to change, or if we
want more than one of them to change?
Only one variable to change:
Definition
First-order partial derivative w.r.t. x:
∂f f (x0 +∆x,y0 )−f (x0 ,y0 )
∂x (x0 , y0 ) ≡ fx (x0 , y0 ) = lim∆x→0 ∆x
∂f
Accordingly to compute for example ∂x , we need only to differentiate
mathematical expressions with respect to x and let all remaining letters in
the mathematical expressions constants in disguise. It is the same for
other variables.
University of Science VNU-HCM, Vietnam Aug 22, 2021 12 / 77
Chapter 1. Partial derivatives 2. Partial derivatives
Note that, in the scope of this course, we will consider functions satisfying
(fx )y = (fy )x .
df ∂f dx ∂f dy
= × + ×
dt ∂x dt ∂y dt
If x = x(s, t), y = y (s, t), then f is eventually a function in terms of
s and t and the partial derivatives of f can be calculated by
∂f ∂f ∂x ∂f ∂y
= × + ×
∂s ∂x ∂s ∂y ∂s
∂f ∂f ∂x ∂f ∂y
= × + ×
∂t ∂x ∂t ∂y ∂t
Example
Suppose that f is a differential function of x and y . Given
g (u, v ) = f (e u + sinv , e u + cos v ). Use the table below to calculate
gu (0, 0) and gv (0, 0).
Tangent plane.
Equation for the tangent plane to the surface at (x0 , y0 ) is
Intuitively, if the tangent plane is parallel to the xy −plane then the partial
derivatives fx (x0 , y0 ) = fy (x0 , y0 ) = 0.
Example
Find an equation of the tangent plane to the surface z = x 3 y + 12x 2 − 8y at
point (1, 1, 5).
University of Science VNU-HCM, Vietnam Aug 22, 2021 18 / 77
Chapter 1. Partial derivatives 3. Applications
Linear approximation.
Example
The wave heights in the open sea depend on the speed of the wind and the length
of time that the wind has been blowing at that speed. Values of the function
h = f (v , t) are recorded in feet in the following table.
Use the table to find a linear approximation to the wave height function when v is
near 40 knots and t is near 20 hours. Then estimate the wave heights when the
wind has been blowing for 24 hours at 43 knots.
Directional derivatives.
Gradient vector of f at (x0 , y0 )
Notice also that the gradient vectors are long where the level curves are
close to each other and short where the curves are farther apart.
That’s because the length of the gradient vector is the value of the
directional derivative of f and closely spaced level curves indicate a steep
graph.
Example
Near a buoy, the depth of a lake at the point with coordinates is
Is the water under the boat getting deeper or shallower when he departs?
Explain.
x0 is a local maximum (or minimum) if there is an ε > 0 such that f (x) ≤ f (x0 )
(f (x) ≥ f (x0 ), resp.) for all x in the vicinity centered at x0 with radius ε.
Furthermore, if f (x) ≥ f (x0 ) (or f (x) ≤ f (x0 )) for all x in the domain of f then
f (x0 ) is called the absolute minimum (maximum, resp.) value.
Unconstrained optimization.
Similarly optimization problem of real functions of several variables can be
extended from that of one variable. Let’s look at the three particular
surfaces:
Example
Graph of the function f (x, y ) = x 2 + y 2 has the shape of a paraboloid
opened upwards.
Example
Graph of the function f (x, y ) = −x 2 − y 2 has the shape of a paraboloid
opened downwards
Example
Graph of the function f (x, y ) = x 2 − y 2 has the shape of a hyperbolic
paraboloid
Example
Find the critical points and classify as local minimum, local maximum, or
saddle point.
a. f (x, y ) = x 3 y + 12x 2 − 8y
b. f (x, y ) = x 2 + y 2 − 2xy + 2x − 2y
The largest value of the values above is the maximum value and smallest
value of the values above is the minimum value of f .
Example
Find the absolute maximum and absolute minimum values of
f (x, y ) = x + y − xy over the closed triangle with vertices O(0, 0),
A(0, 2), and B(4, 0).
Constrained optimization.
Notice: This method is to find minimum, maximum points in the case they exist.
Example
a. A contour map of f and a curve with equation g (x, y ) = 8. Make use
of these level curves to estimate the maximum and minimum values
of f subject to g (x, y ) = 8.
m X
X n
V ≈ f (xij∗ , yij∗ ) × ∆Aij
i=1 j=1
where ∆Aij = ∆x × ∆y is the area of the small rectangle Rij .
Example
a. Estimate the volume of the solid that lies below the surface
z = x 2 + y 2 and above the rectangle R = [0, 1] × [−1, 1].
1 − 3x 2 − y 2 dA.
RR
b. Estimate the double integral [0,1]×[−1,1]
Intuitively, it is more likely that the more the number of rectangles, the better the
approximation. Furthermore, if f is continuous on R then the volume can be
calculated exactly by letting m, n → ∞. That is,
m=∞
X n=∞
X
V = f (xij∗ , yij∗ ) × ∆Aij .
i=1 j=1
The double sum in the latter occurs frequently, not just in finding volumes but in
a variety of other situations when f is not a non negative function. So we make
the following definition.
ZZ m=∞
X n=∞
X
f (x, y )dA = f (xij∗ , yij∗ ) × ∆Aij .
R i=1 j=1
Z b Z d
V = A(x)dx = A0 (y )dy
a c
RR RbRd Rd Rb
Accordingly, R f (x, y )dA = a c f (x, y )dydx = c a f (x, y )dxdy (the
Fubini formula), which are called iterated integrals.
Example
a. Evaluate the volume of the solid that lies below the surface
z = x 2 + y 2 and above the rectangle R = [0, 1] × [−1, 1],
f (x, y ) if (x, y ) ∈ D
F (x, y ) =
0 if (x, y ) ∈ IR\D
RR RR
Thus, we can obtain that D f (x, y )dA = R F (x, y )dA.
If D is not one of either type, we can divide D into a finite number of sub
regions so that each sub region is of either type 1 or type 2.
Theorem
ZZ ZZ ZZ ZZ
f (x, y )dA = f (x, y )dA + f (x, y )dA + · · · + f (x, y )dA
D D1 D2 Dk
Example
R4R2 1
b. Evaluate √
0 x y 3 +1 dydx.
Theorem
If f is continuous on a polar rectangle R given by
0 ≤ a ≤ r ≤ b, α ≤ θ ≤ β where 0 ≤ β − α ≤ 2π then
ZZ Z β Z b
f (x, y )dA = f (rcosθ, rsinθ)rdrdθ
R α a
Example
Sketch the region whose area is given by the integral and evaluate the
integral.
R π/4 R 3
a. −π/2 2 r 2 drdθ
R π/4 R 2cosθ
b. −π/4 0 rdrdθ.
ZZZ m=∞
X n=∞
X l=∞
X
∗ ∗ ∗
f (x, y , z)dV = f (xijk , yijk , zijk ) × ∆Vijk .
B i=1 j=1 k=1
Note that the formula is established when D is located on the xy −plane. We can
also construct a similar formula for triple integral over a solid whose base D is
located on either yz−plane or xz−plane.
ZZZ Z d Z β Z b
f (x, y , z)dV = f (ρ sin Φ cos θ, ρ sin Φ sin θ, ρ cos Φ)ρ2 sinΦdρdθdΦ
E c α a
Example
Prove that the volume of a sphere centered at (0, 0, 0) with radius R
3
is 4πR
3
Evaluate the volume of the solid that lies below the surface
p
z1 = x 2 + y 2 and above z2 = x 2 + y 2
Example
Sketch and identify the curve by parametric equation:
a. x = t 3 , y = t + 1, −1 ≤ t ≤ 1
b. x = cos t, y = sin t, 0 ≤ t ≤ 2π
n=∞
X n=∞
X
A= f (xi∗ (ti∗ ), yi (ti∗ ))∆si = f (xi∗ (ti∗ ), yi (ti∗ ))kr 0 (ti∗ )k∆ti .
i=0 i=0
University of Science VNU-HCM, Vietnam Aug 22, 2021 56 / 77
Chapter 3. Line integrals Line integral of type 1
The sum in the latter equation occurs frequently, not just in finding areas but in a
variety of other situations when f is not a positive function. So we make the
following definition of line integral of type 1 of a continuous scalar function
over a smooth curve:
in plane C = {(x(t), y (t))|a ≤ t ≤ b}
Z n=∞ Z b Z b q
∗ ∗ ∗ 0
X
f (x, y )ds ≡ f (xi (ti ), yi (ti ))∆si = f (x(t), y (t)) kr (t)kdt = f (x(t), y (t)) (x 0 (t))2 + (y 0 (t))2 dt
C i=0 a a
Z Z b Z b q
0
f (x, y , z)ds = f (x(t), y (t), z(t)) kr (t)kdt = f (x(t), y (t), z(t)) (x 0 (t))2 + (y 0 (t))2 + (z 0 (t))2 dt
C a a
Note that if C is not a smooth curve but smooth piece-wise curve then we have
R R R R
that c = C1 + C2 + · · · + Ck , where Ci are smooth curves and
C = C1 ∪ C2 ∪ · · · ∪ Ck .
Example
R
Evaluate the line integral C fds in the following cases:
a. f (x, y ) = x 2 − y 3 , r (t) = (t, 2t), 0 ≤ t ≤ 1.
Vector fields
A vector field is a function whose domain is a set of points in IR2 (or IR3 ) and
whose range is a set of vectors in V2 (or V3 ).
in plane: Let D be a set in R 2 (a plane region). A vector field on IR2 is a
function F that assigns to each point (x, y ) ∈ D a two dimensional vector
F (x, y ) and
F = P(x, y , z)i+Q(x, y , z)j+R(x, y , z)k = (P(x, y , z), Q(x, y , z), R(x, y , z))
Not all vector fields are conservative, but such fields do arise frequently in
physics. For example, the gravitational force field between two objects with
masses m and M is
−mMGx −mMGy −mMGz
F (x, y , z) = 2 i+ 2 j+ 2 k
(x + y 2 + z 2 )3/2 (x + y 2 + z 2 )3/2 (x + y 2 + z 2 )3/2
is conservative where G is the gravitational constant.
Work done by acting a constant force F that moves on object from a point P to
~
a point Q: W = F · D, where D = PQ.
in plane F = F (r (t)) = F (x(t), y (t))
n
X
W ≈ F (r (ti∗ )) · r 0 (ti∗ )∆ti
i=0
Z n=∞ Z b Z
∗ 0 ∗ 0
X
Fdr = F (r (ti )) · r (ti )∆ti = F (r (t)) · r (t)dt ≡ Pdx + Qdy
C i=0 a C
in space F (x, y , z) = P(x, y , z)i + Q(x, y , z)j + R(x, y , z)k and F (r (t)) = F (x(t), y (t), z(t))
Z n=∞ Z b Z
0 ∗ 0
X
Fdr = F (r (ti )) · r (ti )∆ti = F (r (t)) · r (t)dt ≡ Pdx + Qdy + Rdz
C i=0 a C
Note that if C is not a smooth curve but smooth piece-wise curve then we have
R R R R
that c = C1 + C2 + · · · + Ck , where Ci are smooth curves and
C = C1 ∪ C2 ∪ · · · ∪ Ck .
Example
R
Evaluate the line integral C F · dr in the following cases:
a. F (x, y ) = (x − y , x + y ), r (t) = (t, 2t), 0 ≤ t ≤ 1.
In other words, the line integral of a conservative vector field depends only on the
initial point and terminal point of a curve. As a result, if a conservative vector
H H
field F is continuous, C F · dr = 0. [ C denotes the integral over closed curve C .]
Divergence theorem.
Remember that the cross vector ru × rv is the normal vector of the plane
containing ru and rv .
Example
Evaluate the following integrals:
RR
a. S (x + y + z)dS, where S is the parallelogram with parametric
equations x = u + v , y = u − v , z = 1 + 2u + v , 0 ≤ u ≤ 2, 0 ≤ v ≤ 1.
2
+ y 2 )dS, where S is the surface with vector equation
RR
b. S (x
r (u, v ) = 2uv , u 2 − v 2 , u 2 + v 2 , u 2 + v 2 ≤ 1.
Suppose that the velocity of a fluid in space described by F (x, y , z). Let S be a
smooth surface in space. The flux across S is the volume of fluid crossing S per
unit time.
Note that for the formula to apply, the normal vector must be consistent with the
surface’s orientation.
University of Science VNU-HCM, Vietnam Aug 22, 2021 71 / 77
Chapter 4. Surface integrals Surface integrals of type 2
Orientation of surface
Example
F · d S~
RR
Evaluate the the integral S
a. where F (x, y , z) = xyi + yzj + xzk and S is the part of the paraboloid
z = 4 − x 2 − y 2 that lies above the square [0, 1] × [0, 1], and has
upward orientation.
where divF = Px + Qy + Rz .
Example
Evaluate the integral surface
a. C F · dr where F (x, y , z) = (x + y 2 )i + (y + z 2 )j + (z + x 2 )k
R
To be continued ...