Professional Documents
Culture Documents
is continuous everywhere.
Example 2
Is the function
(
xy
x2 +y 2
, (x, y) 6= (0, 0)
f (x) =
0, (x, y) = (0, 0)
to exist, f (x, y) must approach f (x0 , y0 ) for each and every mode of
approach of (x, y) to (x0 , y0 ).
2x 3y
1. Let f (x, y) = x+y , where x + y 6= 0. Show that
lim f (x, y)
(x,y)!(0,0)
Definition
For a function w = f (x) and a point x in D, if
f (x + x) f (x) w
f 0 (x) = lim = lim
x!0 x x!0 x
exist, we say f (x) is di↵erentiable at point x. We also use the notations
dw
f 0 (x) and to denote derivatives of w = f (x) at x.
dx
Definition
For a function w = f (x, y) and a point (x0 , y0 ) in D, we define the partial
derivatives of f (x, y) at (x0 , y0 ) with respect to x by
f (x0 + x, y0 ) f (x0 , y0 ) w
fx (x0 , y0 ) = lim = lim
x!0 x x!0 x
✓ ◆
@w
We also use the notations to denote partial derivatives of
@x (x0 ,y0 )
w = f (x, y) at (x0 , y0 ) with respect to x in D. If every point in D is
partial di↵erentiable with respect to x, then we have the partial derivative
@w @f
function fx (x, y) (or , , fx ).
@x @x
✓ ◆
@w
Similarly, we can define and fy (x, y).
@y (x0 ,y0 )
Example 3
Let f (x, y) = x4 + 2x2 y + y 4 . Find fx (x, y), fy (x, y), fx (0, 1), fy (0, 1)
Example 4
Evaluate the partial derivatives of the function u = ln(x + y 2 + z 3 ).
Example 5
Let z = xy (x > 0, x 6= 1). Prove
x @z 1 @z
+ = 2z.
y @x ln x @y
In-class exercise
Evaluate the partial derivatives of the following:
1. w = x ln(x2 2y 3 )
p
2. w = x2 3y + z 3
Notation
✓ ◆
@2f @ @f @2f
fxx = , fxy = (fx )y = =
@x2 @y ✓ @x ◆ @y@x
@2f @ @f @2f
fyy = , fyx = (fy )x = =
@y 2 @x @y @x@y
Question
@2f ? @2f
=
@y@x @x@y
Definition: C k function
A function f is said to be a C k function if all the k th order partial
derivatives of f exist and are continuous in D.
Theorom
@2f @2f
If f is a C 2 function, then = .
@y@x @x@y
Example 6
x+y
Calculate all the second order partial derivatives of z = arctan .
1 xy
Recall
1
(sin x)0 = cos x (arcsin x)0 = p
1 x2
1
(cos x)0 = sin x (arccos x)0 = p
1 x2
0 1
(tan x) = 1 + tan2 x (arctan x)0 =
1 + x2
Example 7
2y @2w @2w
Let w = . Prove = .
cos x + y @y@x @x@y
ZHANG Haiyu Doris (HKU) Math2014 17 / 51
Tutorial Exercise 1.2
Example 8
x2 @z @z
If z = y and x = u 2v, y = 2u + v. Calculate @u , @v .
Example 9
@z @z
If z = (2x + y)x+2y , calculate @x , @y .
In-class exercise
@w @w
1. If w = xy + cos(x 2y), x = s2 t and y = set , compute @s and @t .
⇣ ⌘
x z
1. Suppose that w = g y, y , where g is a di↵erentiable function. Show
that
@w @w @w
x +y +z = 0.
@x @y @z
w = f (x0 + x, y0 + y) f (x0 , y0 ).
Example 10
If w = x3 y 3 + 3xy, calculate w.
Example 11
Calculate the total di↵erential of the function z = exy at the point (2, 1).
Example 12
Calculate the total di↵erential of the function u = x cos y2 + arctan yz .
Example 13
p
Use the linear approximation formula to approximate 3.92 + 3.22 .
Example 14
The volume V = ⇡r2 h of a right circular cylinder is to be calculated from
measured values of base radius r and height h. Assume that r is measured
with a relative error of no more than 1.5% and h with a relative error of
no more than 0.5%. Estimate the resulting possible percentage error in the
calculation of V , using the linear approximation formula.
In-class exercise
p
1. Use total di↵erential to approximate 9(1.95)2 + (8.1)2
2. The mass of a fluid passing through a pipe of radius R and length L per
R4
unit time satisfies the equation Q = ⇡P
5V L , where V is the viscosity of the
liquid and P is the pressure di↵erence between the two ends of the pipe. It
is known that P , R, V and L are measured with relative error not
exceeding 0.5%, 0.25%, 0.15% and 0.3% respectively. Using total
di↵erential ,find the maximum relative error in the calculated value of Q.
Tutorial exercise
1
Use total di↵erential to approximate p
3
(1.9)2 +(2.04)2
Approximate w by dw at the point (1, 1, 0) for the function
w = x2 ye3z . Hence find the approximation value of w at x = 1.01,
y = 1.03 and z = 0.02.
This formula is known as the second order Taylor’s formula for functions of
one variable. It is one of the most useful formulas in mathematics, and
may be established by the fundamental theorem of calculus and
integration by parts.
Example 15
Use Taylor’s formula to expand f (x) = ex near the point x = 0.
1
+ [(x x0 )2 fxx (x0 , y0 ) + 2(x x0 )(y y0 )fxy (x0 , y0 )
2!
2
+(y y0 ) fyy (x0 , y0 )] + Remainder
This is the second order Taylor’s formula for functions of two variables
Example 16
1
Use Taylor’s formula to expand f (x, y) = 1 2x+y near the point (0, 0).
Example 17
Use Taylor’s formula to approximate (1.08)3.96 .
In-class Exercise
1
Find six terms of the Taylor’s expansion for f (x, y) = 1 x+y at (0, 1).
Tutorial Exercise
Use Taylor’s formula to approximate (8.96)2.03 .
Theorem
Let (x0 , y0 ) is a relative extreme value of f (x, y), then fx (x0 , y0 ) = 0 and
fy (x0 , y0 ) = 0.
Critical Point
A point (x0 , y0 ) satisfying fx (x0 , y0 ) = 0 and fy (x0 , y0 ) = 0 is called a
critical point of f (x, y).
Example 18
Find the critical points of the function f (x, y) = xy(a x y)(a 6= 0) and
determine their nature.
Example 19
Find the critical points of the function f (x, y) = x2 2xy 2 + y 4 y 5 and
determine their nature.
Example 20
Find the critical points of the function f (x, y) = x3 + y 3 3xy and
determine their nature.
In-class exercise
Find the critical points of the following functions and determine their
nature.
1. f (x, y) = x4 + y 4 4xy
2. f (x, y) = 6x2 2x3 + 3y 2 + 6xy
3. f (x, y) = x2 3y 2 + 2y 3 + 4x 12y + 2
Tutorial exercise
Find the critical points of the following functions and determine their
nature.
1. f (x, y) = 9x3 4xy + 13 y 3
2. f (x, y) = x3 + y3 12x 3y + 20
Problem
To Maximize or minimize a function f (x, y, z) subject to the constraint
g(x, y, z) = 0.
fx = gx , fy = gy , fz = gz , g = 0.
Example 21
p
Minimize the function f (x, y, z) = x2 + y 2 + z 2 subject to the
constraint g(x, y, z) = 2x 3y + 5z 19 = 0
Example 22
Find the maximum and minimum values of the function
f (x, y, z) = x 2y + 5z on the sphere x2 + y 2 + z 2 = 36.
Example 23
A standard oil drum has a capacity of 10m3 . Use the method of Lagrange
Multiplier to find the dimensions of the drum that requires the minimal
amount of material to construct.
Example 24
Let f (x, y) = xy + x2 + y 2 2x 2y. Find the absolute minimum values
of f on the region x2 + y 2 4
Tutorial exercise
1. Find the rectangle with largest area that can be inscribed in the
ellipse 9x2 + 4y 2 = 36.
2. Using the Lagrange Multiplier method, find the shortest distance from
the point (1, 1, 2) to the plane x 2y + 5z = 5
f (xn ) f (xn )
f 0 (xn ) = ) xn+1 = xn
xn xn+1 f 0 (xn )
Example 26
p
Estimate 2 using Newton-Raphson method.
Example 27
Find the real roots of the cubic equation, arising from an optimization
problem
2x3 + x 1 = 0.
where f (x, y), g(x, y) are given functions of x and y. Let (a, b) be a root
of the above system of equations. Suppose that x0 , y0 is an initial
approximation to a, b. Putting
x0 + h = a, y0 + k = b.
0 = g(a, b) = g(x0 +h, y0 +k) = g(x0 , y0 )+gx (x0 , y0 )h+gy (x0 , y0 )k+· · · ,
i.e. (
fx (x0 , y0 )h + fy (x0 , y0 )k = f (x0 , y0 )
gx (x0 , y0 )h + gy (x0 , y0 )k = g(x0 , y0 ).
We improve our initial approximation by puttingx1 = x0 + h, y1 = y0 + k
and we can repeat the process again.
Example 28
Use Newton-Raphson Method with initial point (1, 1) and perform two
iterations to find an approximation root for the system of equations
(
4x3 4xy + 2x + 2y 1 = 0
2x2 + 4y + 2x 1 = 0.
In-class exercise
Use Newton-Raphson Method with initial point (1, 2) to find an
approximation to the critical point of (x, y) = x4 + xy + y 2 + 2y
(perform two iterations).
Tutorial exercise
Solve the system of equations
(
x2 + x y 2 1 = 0
y sin x2 = 0