Chapter 7 Functions of Several Variables
Chapter 7 Functions of Several Variables
Chapter 7 Functions of Several Variables
Supranee Lisawadi 1
There are familiar formulas in which a given variable depends on two or more other variables.
For example,
1
• Area A of a triangle depends on the base length b and height h by the formula 𝐴𝐴 = 2 𝑏𝑏ℎ.
• The volume V of a rectangular box depends on the length l, the width w, and the height h
by the formula 𝑉𝑉 = 𝑙𝑙𝑙𝑙ℎ.
• The arithmetic average 𝑥𝑥̅ of n real numbers, x1 , x2 ,..., xn , depends on those numbers by
1
the formula =
x ( x1 + x2 + ... + xn ) .
n
We say that
The terminology and notation for functions of two or more variables is similar to that for
functions of one variable. For example,
z = f ( x, y )
means that z is a function of x and y in the sense that unique value of the dependent variable z is
determined by specifying values for the independent variables x and y.
Example 1: Let f ( x, y )= ( )
y + 1 + ln x 2 − y . Find f ( e, 0 ) and sketch the natural domain of f.
1 1
Example 2: Let f ( x, y, z ) = 1 − x 2 − y 2 − z 2 . Find f 0, , − .
2 2
MA 216 Functions of Several Variables Asst.Prof. Dr. Supranee Lisawadi 3
d
f x ( x0 , y0 ) = f ( x, y0 )
dx x = x0
Similarly, the partial derivative of f with respect to y at ( x0 , y0 ) [ also called the partial
derivative of z with respect to y at ( x0 , y0 ) ] is the derivative at y0 of the function that results
when x = x0 is held fixed and y is allowed to vary. This partial derivative is denoted by
f y ( x0 , y0 ) and is given by
d
f y ( x0 , y0 ) = f ( x0 , y )
dy y = y0
If z = f ( x, y ) , we write
∂f ∂ ∂z
f x ( x, y=
) f=x = f ( x, y=
) = Dx f
∂x ∂x ∂x
∂f ∂ ∂z
f y ( x, y=
) f=y = f ( x, y=
) = Dy f
∂y ∂y ∂y
Recall that if y = f ( x ) , then the value of f ′ ( x0 ) can be interpreted either as the rate of change
of y with respect to x at x0 or as the slope of the tangent line to the graph of f at x0 . Partial
derivatives have analogous interpretations.
Compute the partial derivative of W with respect to v at the point (T , v ) = ( 25,10 ) and interpret
this partial derivative as a rate of change.
MA 216 Functions of Several Variables Asst.Prof. Dr. Supranee Lisawadi 6
x3 + y 3 + z 3 + 6 xyz =
1
MA 216 Functions of Several Variables Asst.Prof. Dr. Supranee Lisawadi 8
f x ( x, y , z ) , f y ( x, y , z ) , f z ( x, y , z )
If a dependent variable
w = f ( x, y , z )
∂w ∂w ∂w
, ,
∂x ∂y ∂z
Example 11: If f ( x, y, z=
) x3 y 2 z 4 + 2 xy + z . Find f x ( x, y, z ) , f y ( x, y, z ) , f z ( x, y, z ) , and
f z ( −1,1, 2 ) .
Suppose that f is a function of two variable x and y . Since the partial derivatives ∂f / ∂x and
∂f / ∂y are also functions of x and y , these functions may themselves have partial derivatives.
This gives rise to four possible second-order partial derivatives of f , which are defined by
∂2 f ∂ ∂f ∂2 f ∂ ∂f
= = f xx = = f yy
∂x 2
∂x ∂x ∂y 2
∂y ∂y
∂2 f ∂ ∂f ∂2 f ∂ ∂f
= = f xy = = f yx
∂y∂x ∂y ∂x ∂x∂y ∂x ∂y
The last two cases are called the mixed second-order partial derivatives or the mixed second
partials.
∂3 f
Example 13: Let f ( x=
, y ) y 2 e x + y . Find .
∂y 2 ∂x
MA 216 Functions of Several Variables Asst.Prof. Dr. Supranee Lisawadi 10
f ( x, y ) =x3 + x 2 y 3 − 2 y 2
Notice that f xy = f yx in Example 14. This is not just a coincidence. It turns out that the mixed
partial derivatives f xy and f yx are equal for most functions that one meets in practices.
MA 216 Functions of Several Variables Asst.Prof. Dr. Supranee Lisawadi 11
dz ∂z dx ∂z dy
= +
dt ∂x dt ∂y dt
where the ordinary derivatives are evaluated at t and the partial derivatives are evaluated at
( x, y ) .
w = f ( x ( t ) , y ( t ) , z ( t ) ) is differentiable at t and
dw ∂w dx ∂w dy ∂w dz
= + +
dt ∂x dt ∂y dt ∂z dt
where the ordinary derivatives are evaluated at t and the partial derivatives are evaluated at
( x, y , z ) .
MA 216 Functions of Several Variables Asst.Prof. Dr. Supranee Lisawadi 12
=z x2 =
y, x t =
2
, y t3
Use the chain rule to find dz / dt , and check the result by expressing z as a function of t and
differentiating directly.
Example 2: If
z=
x 2 y + 3 xy 4 where x =
sin 2t , y =
cos t
Find dz / dt when t = 0 .
MA 216 Functions of Several Variables Asst.Prof. Dr. Supranee Lisawadi 13
∂z ∂z ∂x ∂z ∂y ∂z ∂z ∂x ∂z ∂y
= + and= +
∂u ∂x ∂u ∂y ∂u ∂v ∂x ∂v ∂y ∂v
∂w ∂w ∂x ∂w ∂y ∂w ∂z ∂w ∂w ∂x ∂w ∂y ∂w ∂z
= + + and = + +
∂u ∂x ∂u ∂y ∂u ∂z ∂u ∂v ∂x ∂v ∂y ∂v ∂z ∂v
MA 216 Functions of Several Variables Asst.Prof. Dr. Supranee Lisawadi 15
z=
e xy , x =
2u + v, y=
u/v
w=
e xyz , x =
3u + v, y=
3u − v, z =
u 2v
=x ρ=
sin φ cos θ , y ρ=
sin φ sin θ , z ρ cos φ
w=
xy + yz , y=
sin x, z =
ex
dz ∂f dx ∂f dy ∂f ∂f dy
= + =+ (∗)
dx ∂x dx ∂y dx ∂x ∂y dx
This result can be used to find derivatives of functions that are defined implicitly. For example,
suppose that the equation
f ( x, y ) c ( ∗∗)
∂f ∂f dy
+ =
0
∂x ∂y dx
Thus, if ∂f / ∂y ≠ 0 , we obtain
dy ∂f / ∂x
= −
dx ∂f / ∂y
dy ∂f ∂x
= −
dx ∂f ∂y
MA 216 Functions of Several Variables Asst.Prof. Dr. Supranee Lisawadi 19
The chain rule also applies to implicit partial differentiation. Consider the case where
w = f ( x, y, z ) is a function of x, y, and z and z is a differentiable function of x and y . It
follows from Theorem that
∂w ∂f ∂f ∂z
= + (∗)
∂x ∂x ∂z ∂x
If the equation
=f ( x, y , z ) c ( ∗∗)
∂f ∂f ∂z
+ =
0
∂x ∂z ∂x
If ∂f / ∂z ≠ 0 , then
∂z ∂f / ∂x
= −
∂x ∂f / ∂z
∂z ∂f ∂x ∂z ∂f ∂y
= − and = −
∂x ∂f ∂z ∂y ∂f ∂z
dy = f ′ ( x ) dx
The figure above shows the relationship between the increment ∆y and the differential dy: ∆y
represents the change in height of the curve y = f ( x) and dy represents the change in height of
the tangent line when x changes by an amount dx = ∆x .
∂z ∂z
f x ( x, y ) dx + f y ( x, y ) dy =
dz = dx + dy (*)
∂x ∂y
=dz f x ( a, b )( x − a ) + f y ( a, b )( y − b )
f ( x, y ) ≈ f ( a, b ) + f x ( a, b )( x − a ) + f y ( a, b )( y − b )
can be written as
f ( x, y ) ≈ f ( a, b ) + dz
, y ) f ( a, b ) + f x ( a, b )( x − a ) + f y ( a, b )( y − b )
L ( x=
Example 1:
Example 2: Show that f ( x, y ) = xe xy is differentiable at (1, 0 ) and find its linearization there.
Then use it to approximate f (1.1, −0.1) .