MA2104 Notes PDF
MA2104 Notes PDF
MA2104 Notes PDF
Ma Hongqiang
November 3, 2017
Contents
1 Vectors, Lines and Planes 2
7 Line Integrals 25
1
1 Vectors, Lines and Planes
1.1 Distance between two points
The distance, d, between two points (x1 , y1 ) and (x2 , y2 ) on the same plane is
p
d = (x2 − x1 )2 + (y2 − y1 )2
Similarly, the distance, d, between two points (x1 , y1 , z1 ) and (x2 , y2 , z2 ) in xyz-space is
p
d = (x2 − x1 )2 + (y2 − y1 )2 + (z2 − z1 )2
• Length
• Direction
Two vectors are equal if they have the same length and the same direction.
a + b = ha1 + b1 , a2 + b2 , a3 + b3 i
The zero vector denoted by 0, has length 0. It is the only vector with no specific direction.
If c = 0 or u = 0, then cu = 0.
Clearly, If c ∈ R and u = hu1 , u2 , u3 i, then
2
1.3 Length of Vector
Definition 1.4 (Standard Basis Vector).
The standard basis vectors are
ha, b, ci = ai + bj + ck
a · b = a1 b1 + a2 b2 + a3 b3
3
Clearly, 0 ≤ θ ≤ π.
Some special cases:
Theorem 1.5. Two nonzero vectors a and b are orthogonal if and only if a · b = 0.
1.5 Projections
Definition 1.8 (Projection).
−→ −→
Let S be the foot of perpendicular line from R to the line containing P Q. The vector P S is
proja b
The scalar projection of b onto a is defined to be the signed magnitude of the vector
projection:
a·b
compa b = kbk cos θ =
kak
Therefore,
a a·b
proja b = compa b × = a
kak a·a
4
1.6 Cross Product
Definition 1.9 (Cross Product).
For two vectors a = ha1 , a2 , a3 i and b = hb1 , b2 , b3 i, define the cross product of a and b to
be
i j k
a × b = a1 a2 a3
b 1 b2 b3
The vector a × b points in a direction perpendicular to a and b. The direction can be given
by the right-hand rule.
• a × b = −b × a
• a × (b + c) = a × b + a × c
• (a + b) × c = a × c + b × c
Theorem 1.9.
Suppose two adjacent sides of a parallelogram is a and b, then the height is ka × bk.
Suppose Q is a point and P R a line. The distance from Q to P R is
−→ −→
P Q × P R
−→
P Q
sin θ =
−→
P R
r = r0 + tv, t∈R
is called a vector equation of line, where r0 is coordinate vector of a point of the line and
v a direction vector of the line.
x = x0 + at, y = y0 + bt, z = z0 + ct
5
1.8 Equation of a Plane
Theorem 1.11 (Vector Equation of Plane).
n · r = n · r0
is a vector equation of plane, where n is the normal vector orthogonal to the plane and r0 a
point on the plane.
ax + by + cz = d
is the linear equation of plane, where ha, b, ci is the normal vector.
The vector function r(t) traces out the curve C. Therefore, r(t) is a parametrization of
C.
6
Theorem 1.14 (Derivative Rules).
Suppose r(t) and s(t) are differentiable vector-valued functions, f (t) a differentiable scalar
function and c is a scalar constant. Then
• d
dt
(r(t) + s(t)) = r0 (t) + s0 (t)
• d
dt
(cr(t)) = cr0 (t)
• d
dt
f (t)r(t) = f 0 (t)r(t) + f (t)r0 (t)
• d
dt
r(t) · s(t) = r0 (t) · s(t) + r · s0 (t)
• d
dt
r(t) × s(t) = r0 (t) × s(t) + r × s0 (t)
7
2 Functions of Two Variables, Quadric Surfaces, Limit
and Continuity
2.1 Two-variable function f (x, y)
Definition 2.1 (Two-variable function).
A function f of two variables is a rule that assigns, to each ordered pair of real numbers
(x, y) in a set D ⊆ R2 , a unique real number denoted by f (x, y).
In fact, any equation in x, y and z where one of the variable is missing is a cylinder.
8
By translation and rotation, a quadric surface can be brought into one of the two standard
forms:
Ax2 + By 2 + Cz 2 + J = 0 or Ax2 + By 2 + Iz = 0
Excluding cylinders where one of the variable is missing, there are 6 basic quadric surfaces:
Standard form
Equation
(symmetric about z-axis)
x2 y2
a2
+ b2
= zc Elliptic paraboloid
x2 y2
a2
− b2
= zc Hyperbolic paraboloid
x2 y2 2
a2
+ b2
+ zc2 =1 Ellipsoid
x2 y2 2
a2
+ b2
− zc2 =0 Elliptic cone
x2 y2 2
a2
+ b2
− zc2 =1 Hyperboloid of one sheet
x2 y2 2
a2
+ b2
− zc2 = −1 Hyperboloid of two sheets
x2 y 2 z
2
+ 2 =
a b c
Horizontal traces: Ellipses
Vertical traces: Parabolas
The point (0, 0, 0) is called the vertex of the elliptic paraboloid above.
The vertex will e shifted to (x0 , y0 , z0 ) if the elliptic paraboloid is given by
(x − x0 )2 (y − y0 )2 (z − z0 )
2
+ 2
=
a b c
9
Definition 2.9 (Hyperbolic paraboloid – symmetric about the z-axis).
x2 y 2 z
2
− 2 =
a b c
Horizontal traces: Hyperbolas
Vertical traces: Parabolas
x2 y 2 z 2
+ 2 + 2 =1
a2 b c
Horizontal traces: Ellipses
Vertical traces: Ellipses
10
Definition 2.11 (Elliptic cone – symmetric about the z-axis).
x2 y 2 z 2
+ 2 − 2 =0
a2 b c
Horizontal traces: Ellipses
Vertical traces: Hyperbolas
x2 y 2 z 2
+ 2 − 2 =1
a2 b c
Horizontal traces: Ellipses
Vertical traces: Hyperbolas
11
Definition 2.13 (Hyperboloid of two sheets – symmetric about the z-axis).
x2 y 2 z 2
+ 2 − 2 = −1
a2 b c
Horizontal traces: Ellipses
Vertical traces: Hyperbolas
if forpany number ε > 0 there exists a number δ > 0 such that |f (x, y) − L| < ε whenever
0 < (x − a)2 + (y − b)2 < δ.
Remark: f is not required to be defined at (a, b).
It can be proven from the definition that if lim(x,y)→(a,b) f (x, y) = L, then
• its value L is unique, and
• L is independent of the choice of path approaching (a, b).
12
2.7 How to show limit does not exist
Theorem 2.1.
If f (x, y) approaches L1 as (x, y) approaches (a, b) along a path P1 and approaches L2 as
(x, y) approaches (a, b) along a path P2 , and L1 6= L2 , then
lim f (x, y)
(x,y)→(a,b)
13
2.9 Continuity of f (x, y)
Definition 2.17 (Continuity).
We say f is continuous at (a, b) if
• Polynomial in x and y.
14
3 Partial Derivatives, Chain Rule, Directional Deriva-
tives
3.1 Partial Derivative
Definition 3.1 (Partial Derivative).
If f is a function of two variables, its partial derivatives are the functions fx and fy defined
by:
f (x + h, y) − f (x, y)
fx (x, y) = lim
h=0 h
f (x, y + h) − f (x, y)
fy (x, y) = lim
h=0 h
Other notations for partial derivatives:
∂f ∂f
fx = fy =
∂x ∂y
∂ 2f
(fx )x = fxx =
∂x2
∂ 2f
(fx )y = fxy =
∂y∂x
∂ 2f
(fy )x = fyx =
∂x∂y
∂ 2f
(fy )y = fyy =
∂y 2
Thus, the notation fxy means that we first differentiate with respect to x and then with
respect to y.
In fact, so long as the number of the same variable occurring in the subscript are the same,
the coresponding partial derivatives are the same.
15
3.3 Tangent Plane Equation
Definition 3.3 (Tangent Plane).
The tangent plane to the surface S at the point P (a, b, c) is defined to be the plane that
contains both tangent lines T1 and T2 , where T1 and T2 are the tangent lines to the curves
of intersections of the surface S and the vertical planes y = b and x = a respectively.
From the definition, we note that two vectors on the tangent plane are h1, 0, fx (a, b)i and
h0, 1, fy (a, b)i. Thus, a normal vector to the plane is
Equivalently,
z = f (a, b) + fx (a, b)(x − a) + fy (a, b)(y − b)
16
Definition 3.4 (Increment).
Let z = f (x, y). Suppose ∆x and ∆y are increments in the independent variable x and y
respectively from a fixed point (a, b). Then the increment in z at (a, b), ∆z, is defined by
where 1 and 2 are functions of ∆x and ∆y which vanish (i.e. 1 , 2 → 0 as (∆x, ∆y) →
(0, 0)).1
17
• s and t are independent variables.
• x and y are called intermediate variables.
• z is the dependent variable.
Theorem 3.6 (Chain Rule - General Version).
Suppose that u is a differentiable function of n variables x1 , . . . , xn , and each xj is a diffe-
rentiable function of m variables t1 , . . . , tm . Then u is a function of t1 , . . . , tm and
∂u ∂u ∂x1 ∂u ∂xn
= + ··· +
∂ti ∂x1 ∂ti ∂xn ∂ti
18
4 Gradient Vector, Extrema, Langrange Multiplier
4.1 Gradient Vector and Level Curve
Theorem 4.1 (Level Curve vs ∇f ).
Suppose f (x, y) is differentiable function of x and y at (x0 , y0 ). Suppose ∇f (x0 , y0 ) 6= 0
Then ∇f (x0 , y0 ) is normal to the level curve f (x, y) = k that contains the point (x0 , y0 ).
∇F (x0 , y0 , z0 ) · hx − x0 , y − y0 , z − z0 i = 0
Du f = ∇f · u
= k∇f k kuk cos θ
= k∇k cos θ
19
Definition 4.2 (Local Minimum).
Let f (x, y) : D → R. Then f has a local minimum at (a, b) if
2. every neighbourhood at (a, b) contains points (x, y) ∈ D for which f (x, y) < f (a, b)
and points (x, y) ∈ D for which f (x, y) > f (a, b).
20
• an absolute minimum value f (x2 , y2 )
Step 3 The largest(resp. smallest) of the values from Step 1 and Step 2 is the absolute
maximum(resp. absolute minimum).
∇f (x, y) = λ∇g(x, y)
and
g(x, y) = k
21
5 Double Integral over region on the xy–plane
Definition 5.1 (Double Integral over Rectangle).
The double integral of f over the rectangle R is
ZZ m X
X n
f (x, y)dA = lim f (x∗ij , yij∗ )∆A
R m,n→∞
i=1 j=1
provided that the limit exists and is the same for any choice of the sample points (x∗ij , yij∗ )
in Rij := [xi−1 , xi ] × [yj−1 , yj ] whose region is ∆A = ∆x × ∆y, for 1 ≤ i ≤ m, 1 ≤ j ≤ n.
where (
f (x, y) if (x, y) ∈ D
F (x, y) =
0 if (x, y) ∈ R \ D
The iterated double integral of f on the rectangle R = [a, b] × [c, d] in the order dxdy is
defined to be Z d Z b
f (x, y)dx dy
c a
22
Definition 5.5 (Type II Region).
A plane region D is said to be of Type II if it lies between the graphs of two continuous
functions of y, that is
then Z bZ
ZZ g2 (x)
f (x, y)dA = f (x, y)dydx
D a g1 (x)
then ZZ Z d Z h2 (y)
f (x, y)dA = f (x, y)dxdy
D c h1 (y)
The theorem above allows us to decompose the domain into finitely many domains of Type
I or II.
23
6 Double Integral over Polar Regions and Triple Inte-
grals
Theorem 6.1 (Relationship between polar coordinates (r, θ) and cartesian coordinates
(x, y)).
x = r cos θ y = r sin θ
p y
r = x2 + y 2 θ = tan−1 , provided x 6= 0
x
Definition 6.1 (Polar Rectangle).
A polar rectangle is a region
R = {(r, θ) : a ≤ r ≤ b, α ≤ θ ≤ β}
Theorem 6.2 (Change to Polar Coordinates in Double Integrals).
If f is continuous on a polar rectangle R given by
R = {(r, θ) : 0 ≤ a ≤ r ≤ b, α ≤ θ ≤ β}
where 0 ≤ β − α ≤ 2π, then
ZZ Z β Z b
f (x, y)dA = f (r cos θ, r sin θ)rdrdθ
R α a
24
7 Line Integrals
7.1 Line Integral of Scalar Field
Definition 7.1 (Line Integrals of Scalar Field).
If f is defined on a smooth curve C given by r(t) = hx(t), y(t)i, a ≤ t ≤ b. Then the line
integral of f along C is
Z n
X
f (x, y)ds = lim f (x∗i , yi∗ )∆si
C n→∞
i=1
provided this limit exists and is the same for every choice of (x∗i , yi∗ ).
Similarly, suppose that C is smooth space curve given by r(t) = hx(t), y(t), z(t)i, a ≤ t ≤ b.
Then
Z Z b
f (x, y, z)ds = f (x(t), y(t), z(t)) kr0 (t)k dt
C a
s
Z 2 2 2
dx dy dz
= f (x(t), y(t), z(t)) + + dt
C dt dt dt
25
7.2 Vector Field
Definition 7.2 (Vector field). Let D ⊆ R2 . A vector field on D is a function F that
assigns to each point (x, y) ∈ D a 2D vector F(x, y).
Let D ⊆ R3 . A vector field on D is a function F that assigns to each point (x, y, z) ∈ D a
3D vector F(x, y, z).
Theorem 7.4 (Vector Field in Component Form).
For vector field F on R2 ,
or for short
F = hP, Qi
Similarly, for vector field on F on R3 ,
F = hP, Q, Ri
Theorem 7.5.
We have Z Z
F · dr = − F · dr
−C C
F = ∇f
26
The function f is called the potential function of F.
∂
fy = j(x, y) + h0 (y)
∂y
and by comparing the above expression with Q, we have
∂
g 0 (y) = Q − j(x, y)
∂y
• Integrating g 0 (y) with respect to y, we will have g(y), which we substitute back to
obtain f (x, y).
27
7.4 Fundamental Theorem for Line Integral
The fundamental theorem for line integrals says that we can evaluate the line integral
of a conservative vector field by only knowing the potential function at the endpoint.
The fundamental theorem of line integral says that the line integral of conservative field is
independent of the paths with the same initial point and terminal point.
28
8 Green’s Theorem and Surface Integral of Scalar Field
8.1 Green’s Theorem
There are three methods of computing surface integral, each of different applicability.
Method 1: Parametrize C by r(t) = hx(t), y(t), z(t)i, a ≤ t ≤ b, then
Z Z b
F · dr = F(x(t), y(t), z(t)) · r0 (t)dt
C a
where F = ∇f , for some scalar function f , B is the terminal point of C and A the initial
point. Method 3: Green’s theorem.
Theorem 8.1 (Green’s Theorem).
Let C be a positively oriented2 , piecewise-smooth, simply closed curve in the plane and let
D be the region bounded by C.
Let F(x, y) = P (x, y)i + Q(x, y)j.
If P (x, y) and Q(x, y) have continuous partial derivatives on an open region that contains
D, then Z Z ZZ
∂Q ∂P
F · dr = P dx + Qdy = − dA
C C D ∂x ∂y
Green’s theorem can be considered as the Fundamental Theorem of Calculus for double
integrals.
29
There are usually more than one ways to parametrize the surface. One special case is the
parametrization of the sphere of radius rho centered at origin:
x = ρ sin φ cos θ
y = ρ sin φ sin θ
zρ cos φ
provided the limit exists and is the same for all choices of the evaluation points Pij∗ .
We also require the parametrix surface to be smooth.
Definition 8.3 (Smooth surface).
A surface S is smooth if it has a parametrization r(u, v), u, v ∈ D, such that ru and rv are
continuous and ru × rv 6= 0 for all (u, v) ∈ D.
Theorem 8.2 (Two important properties of ru and rv ).
If S is instead a union of finitely many smooth surfaces S1 , . . . , Sn that intersect only along
their boundaries, then the surface integral of f over S is the sum of the surface integrals
over each Si .
Theorem 8.5.
ZZ n ZZ
X
f (x, y, z)dS = f (x, y, z)dS
S i=1 Si
30
8.5 Surface Area
A special case of parametrization is that the surface is given by z = g(x, y), (x, y) ∈ D. Then
we can take x, y as parameters
Theorem 8.6.
v !
ZZ ZZ u 2 2
u ∂g ∂g
f (x, y, z)dS = f (x, y, g(x, y))t + + 1 dA
S D ∂x ∂y
On a irrelevant note, surface area of any parametricx surface D traced by r(u, v) can be
evaluated as
31
9 Surface Integral of Vector Field
9.1 Surface with Orientation
Definition 9.1 (Oriented Surface).
A surface S is orientable (or two sided) if it is possible to define a unit normal vector n at
each point (x, y, z) (excluding boundary) of the surface such that n is a continuous function
of (x, y, z).
There are two possible orientations for any orientable surfaces, as S will have two identifiable
sides:
32
9.2 Surface Integral of Vector Field
Definition 9.3 (Surface Integral of Vector Field).
If F is a continuous vector field defined on an oriented surface S with a unit normal vector
n, then the surface integral of F over S is
ZZ ZZ
F · dS := F · ndS
S S
ru × rv
ZZ ZZ
F · dS = F· dS
S S kru × rv k
ru × rv
ZZ
= F· kru × rv k dA
D kru × rv k
ZZ
= F · (ru × rv )dA
D
Theorem 9.4.
Let F = hP (x, y, z), Q(x, y, z), R(x, y, z)i. Suppose S is given by
33
10 Divergence and Curl
10.1 Divergence
Divergence can be regarded as a measurement of the net outward flux of vector field.
Definition 10.1 (Divergence).
Let F(x, y, z) = P (x, y, z)i + Q(x, y, z)j + R(x, y, z)k be a vector field in space, where P, Q, R
have first order derivatives in some region D. The divergence of F is the scalar function
defined by
∂P ∂Q ∂R
div F = + +
∂x ∂y ∂z
Definition 10.2 (Del Operator).
The vector differential operator ∇ is defined by
∂ ∂ ∂
∇=h , , i
∂x ∂y ∂z
Divergence can be expressed in terms of the del operator:
div F = ∇ · F
10.3 Curl
Curl is the measure of microscopic circulation of the underlying vector field.
Definition 10.3 (Curl).
i j k
∂ ∂ ∂
curl F = ∂x ∂y ∂z =∇×F
P Q R
34
Theorem 10.2 (Stoke’s Theorem).
Let C be the boundary curve(simple closed curve) of a surface S with unit normal n. Suppose
that C is positively oriented with respect to n.
Let F be a vector field whose components have continuous partial derivatives on an open
region in R3 that contains S. Then,
Z ZZ
F · dr = curl F · dS
C S
35