partial derivatives

96
PARTIAL DERIVATIVES PARTIAL DERIVATIVES 11

Upload: raja-pena

Post on 02-Jan-2016

69 views

Category:

Documents


1 download

DESCRIPTION

11. PARTIAL DERIVATIVES. PARTIAL DERIVATIVES. 11.3 Partial Derivatives. In this section, we will learn about: Various aspects of partial derivatives. INTRODUCTION. On a hot day, extreme humidity makes us think the temperature is higher than it really is. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: PARTIAL DERIVATIVES

PARTIAL DERIVATIVESPARTIAL DERIVATIVES

11

Page 2: PARTIAL DERIVATIVES

11.3Partial Derivatives

In this section, we will learn about:

Various aspects of partial derivatives.

PARTIAL DERIVATIVES

Page 3: PARTIAL DERIVATIVES

INTRODUCTION

On a hot day, extreme humidity makes us

think the temperature is higher than it really is.

In very dry air, though, we perceive

the temperature to be lower than

the thermometer indicates.

Page 4: PARTIAL DERIVATIVES

The National Weather Service (NWS) has

devised the heat index to describe the

combined effects of temperature and humidity.

This is also called the temperature-humidity index, or humidex, in some countries.

HEAT INDEX

Page 5: PARTIAL DERIVATIVES

The heat index I is the perceived air

temperature when the actual temperature

is T and the relative humidity is H.

So, I is a function of T and H.

We can write I = f(T, H).

HEAT INDEX

Page 6: PARTIAL DERIVATIVES

HEAT INDEX

This table of values of I is an excerpt

from a table compiled by the NWS.

Page 7: PARTIAL DERIVATIVES

HEAT INDEX

Let’s concentrate on the highlighted column. It corresponds to a relative humidity of H = 70%. Then, we are considering the heat index as a function

of the single variable T for a fixed value of H.

Page 8: PARTIAL DERIVATIVES

Let’s write g(T) = f(T, 70).

Then, g(T) describes:

How the heat index I increases as the actual temperature T increases when the relative humidity is 70%.

HEAT INDEX

Page 9: PARTIAL DERIVATIVES

The derivative of g when T = 96°F is

the rate of change of I with respect to T

when T = 96°F:

0

0

(96 ) (96)'(96) lim

(96 ,70) (96,70)lim

h

h

g h gg

hf h f

h

HEAT INDEX

Page 10: PARTIAL DERIVATIVES

We can approximate g’(96) using the values

in the table by taking h = 2 and –2.

(98) (96) (98,70) (96,70)'(96)

2 2133 125

42

g g f fg

HEAT INDEX

(94) (96) (94,70) (96,70)'(96)

2 2118 125

3.52

g g f fg

Page 11: PARTIAL DERIVATIVES

Averaging those values, we can say that

the derivative g’(96) is approximately 3.75

This means that:

When the actual temperature is 96°F and the relative humidity is 70%, the apparent temperature (heat index) rises by about 3.75°F for every degree that the actual temperature rises!

HEAT INDEX

Page 12: PARTIAL DERIVATIVES

HEAT INDEX

Now, let’s look at the highlighted row.

It corresponds to a fixed temperature of T = 96°F.

Page 13: PARTIAL DERIVATIVES

The numbers in the row are values

of the function G(H) = f(96, H).

This describes how the heat index increases as the relative humidity H increases when the actual temperature is T = 96°F.

HEAT INDEX

Page 14: PARTIAL DERIVATIVES

The derivative of this function when H = 70%

is the rate of change of I with respect to H

when H = 70%:

0

0

(70 ) (70)'(70) lim

(96,70 ) (96,70)lim

h

h

G h GG

hf h f

h

HEAT INDEX

Page 15: PARTIAL DERIVATIVES

By taking h = 5 and –5, we approximate

G’(70) using the tabular values:

(75) (70) (96,75) (96,70)'(70)

5 5130 125

15

G G f fG

HEAT INDEX

(65) (70) (96,65) (96,70)'(70)

5 5121 125

0.85

G G f fG

Page 16: PARTIAL DERIVATIVES

By averaging those values, we get

the estimate G’(70) ≈ 0.9

This says that:

When the temperature is 96°F and the relative humidity is 70%, the heat index rises about 0.9°F for every percent that the relative humidity rises.

HEAT INDEX

Page 17: PARTIAL DERIVATIVES

PARTIAL DERIVATIVES

In general, if f is a function of two variables

x and y, suppose we let only x vary while

keeping y fixed, say y = b, where b is

a constant.

Then, we are really considering a function of a single variable x:

g(x) = f(x, b)

Page 18: PARTIAL DERIVATIVES

If g has a derivative at a, we call it the partial

derivative of f with respect to x at (a, b).

We denote it by:

fx(a, b)

PARTIAL DERIVATIVE

Page 19: PARTIAL DERIVATIVES

Thus,

fx(a, b) = g’(a)

where g(x) = f(a, b)

Equation 1 PARTIAL DERIVATIVE

Page 20: PARTIAL DERIVATIVES

By the definition of a derivative,

we have:

0

( ) ( )'( ) lim

h

g a h g ag a

h

PARTIAL DERIVATIVE

Page 21: PARTIAL DERIVATIVES

So, Equation 1 becomes:

PARTIAL DERIVATIVE

0

( , ) ( , )( , ) limx

h

f a h b f a bf a b

h

Equation 2

Page 22: PARTIAL DERIVATIVES

Similarly, the partial derivative of f with

respect to y at (a, b), denoted by fy(a, b),

is obtained by:

Keeping x fixed (x = a)

Finding the ordinary derivative at b of the function G(y) = f(a, y)

PARTIAL DERIVATIVE

Page 23: PARTIAL DERIVATIVES

0

( , ) ( , )( , ) limy

h

f a b h f a bf a b

h

Equation 3 PARTIAL DERIVATIVE

Thus,

Page 24: PARTIAL DERIVATIVES

With that notation for partial derivatives,

we can write the rates of change of the heat

index I with respect to the actual temperature

T and relative humidity H when T = 96°F

and H = 70% as:

fT(96, 70) ≈ 3.75 fH(96, 70) ≈ 0.9

PARTIAL DERIVATIVES

Page 25: PARTIAL DERIVATIVES

If we now let the point (a, b) vary

in Equations 2 and 3, fx and fy become

functions of two variables.

PARTIAL DERIVATIVES

Page 26: PARTIAL DERIVATIVES

If f is a function of two variables, its

partial derivatives are the functions fx and fy

defined by:

0

0

( , ) ( , )( , ) lim

( , ) ( , )( , ) lim

xh

yh

f x h y f x yf x y

hf x y h f x y

f x yh

Equations 4 PARTIAL DERIVATIVES

Page 27: PARTIAL DERIVATIVES

There are many alternative notations

for partial derivatives.

For instance, instead of fx, we can write f1 or D1f (to indicate differentiation with respect to the first variable) or ∂f/∂x.

However, here, ∂f/∂x can’t be interpreted as a ratio of differentials.

NOTATIONS

Page 28: PARTIAL DERIVATIVES

If z = f(x, y), we write:

1 1

2 2

( , ) ( , )

( , ) ( , )

x x

x

y y

y

f zf x y f f x y

x x xf D f D f

f zf x y f f x y

y y y

f D f D f

NOTATIONS FOR PARTIAL DERIVATIVES

Page 29: PARTIAL DERIVATIVES

PARTIAL DERIVATIVES

To compute partial derivatives, all we

have to do is:

Remember from Equation 1 that the partial derivative with respect to x is just the ordinary derivative of the function g of a single variable that we get by keeping y fixed.

Page 30: PARTIAL DERIVATIVES

RULE TO FIND PARTIAL DERIVATIVES OF z = f(x, y)

Thus, we have this rule.

1. To find fx, regard y as a constant and

differentiate f(x, y) with respect to x.

2. To find fy, regard x as a constant and

differentiate f(x, y) with respect to y.

Page 31: PARTIAL DERIVATIVES

If

f(x, y) = x3 + x2y3 – 2y2

find

fx(2, 1) and fy(2, 1)

Example 1 PARTIAL DERIVATIVES

Page 32: PARTIAL DERIVATIVES

Holding y constant and differentiating with

respect to x, we get:

fx(x, y) = 3x2 + 2xy3

Thus, fx(2, 1) = 3 . 22 + 2 . 2 . 13

= 16

Example 1 PARTIAL DERIVATIVES

Page 33: PARTIAL DERIVATIVES

Holding x constant and differentiating with

respect to y, we get:

fy(x, y) = 3x2y2 – 4y

Thus, fy(2, 1) = 3 . 22 . 12 – 4 . 1

= 8

Example 1 PARTIAL DERIVATIVES

Page 34: PARTIAL DERIVATIVES

GEOMETRIC INTERPRETATION

To give a geometric interpretation of partial

derivatives, we recall that the equation

z = f(x, y) represents a surface S (the graph

of f).

If f(a, b) = c, then the point P(a, b, c) lies on S.

Page 35: PARTIAL DERIVATIVES

GEOMETRIC INTERPRETATION

By fixing y = b, we are restricting our attention

to the curve C1 in which the vertical plane

y = b intersects S.

That is, C1 is the trace of S in the plane y = b.

Page 36: PARTIAL DERIVATIVES

Likewise, the vertical plane x = a intersects S

in a curve C2.

Both the curves

C1 and C2 pass

through P.

GEOMETRIC INTERPRETATION

Page 37: PARTIAL DERIVATIVES

Notice that the curve C1 is the graph of

the function g(x) = f(x, b).

So, the slope of its tangent T1 at P is: g’(a) = fx(a, b)

GEOMETRIC INTERPRETATION

Page 38: PARTIAL DERIVATIVES

The curve C2 is the graph of the function

G(y) = f(a, y).

So, the slope of its tangent T2 at P is: G’(b) = fy(a, b)

GEOMETRIC INTERPRETATION

Page 39: PARTIAL DERIVATIVES

Thus, the partial derivatives fx(a, b) and fy(a, b)

can be interpreted geometrically as:

The slopes of the tangent lines at P(a, b, c) to the traces C1 and C2 of S in the planes y = b and x = a.

GEOMETRIC INTERPRETATION

Page 40: PARTIAL DERIVATIVES

INTERPRETATION AS RATE OF CHANGE

As seen in the case of the heat index function,

partial derivatives can also be interpreted as

rates of change.

If z = f(x, y), then ∂z/∂x represents the rate of change of z with respect to x when y is fixed.

Similarly, ∂z/∂y represents the rate of change of z with respect to y when x is fixed.

Page 41: PARTIAL DERIVATIVES

If

f(x, y) = 4 – x2 – 2y2

find fx(1, 1) and fy(1, 1) and

interpret these numbers as slopes.

Example 2 GEOMETRIC INTERPRETATION

Page 42: PARTIAL DERIVATIVES

We have:

fx(x, y) = -2x fy(x, y) = -4y

fx(1, 1) = -2 fy(1, 1) = -4

Example 2 GEOMETRIC INTERPRETATION

Page 43: PARTIAL DERIVATIVES

GEOMETRIC INTERPRETATION

The graph of f is the

paraboloid

z = 4 – x2 – 2y2

The vertical plane

y = 1 intersects it in

the parabola

z = 2 – x2, y = 1. As discussed,

we label it C1.

Example 2

Page 44: PARTIAL DERIVATIVES

GEOMETRIC INTERPRETATION

The slope of the tangent

line to this parabola at

the point (1, 1, 1) is:

fx(1, 1) = -2

Example 2

Page 45: PARTIAL DERIVATIVES

GEOMETRIC INTERPRETATION

Similarly, the curve C2 in

which the plane

x = 1 intersects the

paraboloid is the

parabola z = 3 – 2y2, x =

1.

The slope of the tangent line at (1, 1, 1) is:

fy(1, 1) = – 4

Example 2

Page 46: PARTIAL DERIVATIVES

GEOMETRIC INTERPRETATION

This is a computer-drawn counterpart to

the first figure in Example 2. The first part shows the plane y = 1 intersecting

the surface to form the curve C1.

The second part shows C1 and T1.

Page 47: PARTIAL DERIVATIVES

We have used the vector equations:

r(t) = <t, 1, 2 – t2> for C1

r(t) = <1 + t, 1, 1 – 2t> for T1

GEOMETRIC INTERPRETATION

Page 48: PARTIAL DERIVATIVES

GEOMETRIC INTERPRETATION

Similarly, this figure

corresponds to

the second figure in

Example 2.

Page 49: PARTIAL DERIVATIVES

If

calculate

( , ) sin1

and

xf x y

y

f f

x y

Example 3 PARTIAL DERIVATIVES

Page 50: PARTIAL DERIVATIVES

Using the Chain Rule for functions of one

variable, we have:

2

1cos cos

1 1 1 1

cos cos1 1 1 1

f x x x

x y x y y y

f x x x x

y y y y y y

Example 3 PARTIAL DERIVATIVES

Page 51: PARTIAL DERIVATIVES

Find ∂z/∂x and ∂z/∂y if z is defined implicitly

as a function of x and y by the equation

x3 + y3 + z3 + 6xyz = 1

Example 4 PARTIAL DERIVATIVES

Page 52: PARTIAL DERIVATIVES

To find ∂z/∂x, we differentiate implicitly

with respect to x, being careful to treat y

as a constant:

Solving for ∂z/∂x, we obtain:

2 23 3 6 6 0z z

x z yz xyx x

Example 4 PARTIAL DERIVATIVES

2

2

2

2

z x yz

x z xy

Page 53: PARTIAL DERIVATIVES

Similarly, implicit differentiation with

respect to y gives:

2

2

2

2

z y xz

y z xy

Example 4 PARTIAL DERIVATIVES

Page 54: PARTIAL DERIVATIVES

PARTIAL DERIVATIVES

Some computer algebra systems can plot

surfaces defined by implicit equations in

three variables.

The figure shows such a plot of the surface defined by the equation in Example 4.

Page 55: PARTIAL DERIVATIVES

FUNCTIONS OF MORE THAN TWO VARIABLES

Partial derivatives can also be defined

for functions of three or more variables.

For example, if f is a function of three variables x, y, and z, then its partial derivative with respect to x is defined as:

0

( , , ) ( , , )( , , ) limx

h

f x h y z f x y zf x y z

h

Page 56: PARTIAL DERIVATIVES

It is found by:

Regarding y and z as constants.

Differentiating f(x, y, z) with respect to x.

FUNCTIONS OF MORE THAN TWO VARIABLES

Page 57: PARTIAL DERIVATIVES

If w = f(x, y, z), then fx = ∂w/∂x can be

interpreted as the rate of change of w with

respect to x when y and z are held fixed.

However, we can’t interpret it geometrically since the graph of f lies in four-dimensional space.

FUNCTIONS OF MORE THAN TWO VARIABLES

Page 58: PARTIAL DERIVATIVES

In general, if u is a function of n variables,

u = f(x1, x2, . . ., xn), its partial derivative with

respect to the i th variable xi is:

1 1 1 1

0

( ,..., , , ,..., ) ( ,..., ,..., )lim

i

i i i n i n

h

u

x

f x x x h x x f x x x

h

FUNCTIONS OF MORE THAN TWO VARIABLES

Page 59: PARTIAL DERIVATIVES

Then, we also write:

ix i ii i

u ff f D f

x x

FUNCTIONS OF MORE THAN TWO VARIABLES

Page 60: PARTIAL DERIVATIVES

MULTIPLE VARIABLE FUNCTIONS

Find fx, fy, and fz if f(x, y, z) = exy ln z

Holding y and z constant and differentiating with respect to x, we have:

fx = yexy ln z

Similarly, fy = xexy ln z fz = exy/z

Example 5

Page 61: PARTIAL DERIVATIVES

If f is a function of two variables, then

its partial derivatives fx and fy are also

functions of two variables.

HIGHER DERIVATIVES

Page 62: PARTIAL DERIVATIVES

So, we can consider their partial derivatives

(fx)x , (fx)y , (fy)x , (fy)y

These are called the second

partial derivatives of f.

SECOND PARTIAL DERIVATIVES

Page 63: PARTIAL DERIVATIVES

If z = f(x, y), we use the following notation:2 2

11 2 2

2 2

12

2 2

21

2 2

22 2 2

( )

( )

( )

( )

x x xx

x y xy

y x yx

y y yy

f f zf f f

x x x x

f f zf f f

y x y x y x

f f zf f f

x y x y x y

f f zf f f

y y y y

NOTATION

Page 64: PARTIAL DERIVATIVES

Thus, the notation fxy (or ∂2f/∂y∂x) means

that we first differentiate with respect to x

and then with respect to y.

In computing fyx , the order is reversed.

SECOND PARTIAL DERIVATIVES

Page 65: PARTIAL DERIVATIVES

Find the second partial derivatives

of

f(x, y) = x3 + x2y3 – 2y2

In Example 1, we found that:

fx(x, y) = 3x2 + 2xy3 fy(x, y) = 3x2y2 – 4y

Example 6 SECOND PARTIAL DERIVATIVES

Page 66: PARTIAL DERIVATIVES

Hence,

2 3 3

2 3 2

2 2 2

2 2 2

3 2 6 2

3 2 6

3 4 6

3 4 6 4

xx

xy

yx

yy

f x xy x yx

f x xy xyy

f x y y xyx

f x y y x yy

Example 6 SECOND PARTIAL DERIVATIVES

Page 67: PARTIAL DERIVATIVES

The figure shows the graph of the function f

in Example 6 for:

–2 ≤ x ≤ 2, – 2 ≤ y ≤ 2

SECOND PARTIAL DERIVATIVES

Page 68: PARTIAL DERIVATIVES

These show the graphs of its first-order

partial derivatives.

SECOND PARTIAL DERIVATIVES

Page 69: PARTIAL DERIVATIVES

These show the graphs

of its second-order

partial derivatives.

SECOND PARTIAL DERIVATIVES

Page 70: PARTIAL DERIVATIVES

Notice that fxy = fyx in Example 6.

This is not just a coincidence.

It turns out that the mixed partial derivatives fxy and fyx are equal for most functions that one meets in practice.

SECOND PARTIAL DERIVATIVES

Page 71: PARTIAL DERIVATIVES

The following theorem, discovered by

the French mathematician Alexis Clairaut

(1713–1765), gives conditions under which

we can assert that fxy = fyx .

The proof is given in Appendix F.

SECOND PARTIAL DERIVATIVES

Page 72: PARTIAL DERIVATIVES

CLAIRAUT’S THEOREM

Suppose f is defined on a disk D that

contains the point (a, b).

If the functions fxy and fyx are both

continuous on D, then

fxy(a, b) = fyx(a, b)

Page 73: PARTIAL DERIVATIVES

Partial derivatives of order 3 or higher

can also be defined.

For instance,

Using Clairaut’s Theorem, it can be shown that

fxyy = fyxy = fyyx

if these functions are continuous.

2 3

2xyy xy y

f ff f

y y x y x

HIGHER DERIVATIVES

Page 74: PARTIAL DERIVATIVES

Calculate fxxyz if f(x, y, z) = sin(3x + yz)

fx = 3 cos(3x + yz)

fxx = –9 sin(3x + yz)

fxxy = –9z cos(3x + yz)

fxxyz = –9 cos(3x + yz) + 9yz sin(3x + yz)

Example 7 HIGHER DERIVATIVES

Page 75: PARTIAL DERIVATIVES

PARTIAL DIFFERENTIAL EQUATIONS

Partial derivatives occur in

partial differential equations that

express certain physical laws.

Page 76: PARTIAL DERIVATIVES

LAPLACE’S EQUATION

For instance, the partial differential equation

is called Laplace’s equation after

Pierre Laplace (1749–1827).

2 2

2 20

u u

x y

Page 77: PARTIAL DERIVATIVES

Solutions of this equation are called

harmonic functions.

They play a role in problems of heat conduction, fluid flow, and electric potential.

HARMONIC FUNCTIONS

Page 78: PARTIAL DERIVATIVES

Show that the function u(x, y) = ex sin y

is a solution of Laplace’s equation.

ux = ex sin y

uy = ex cos y

uxx = ex sin y

uyy = –ex sin y

uxx + uyy = ex sin y – ex sin y = 0

Thus, u satisfies Laplace’s equation.

Example 8 LAPLACE’S EQUATION

Page 79: PARTIAL DERIVATIVES

WAVE EQUATION

The wave equation

describes the motion of a waveform.

This could be an ocean wave, a sound wave, a light wave, or a wave traveling along a vibrating string.

2 22

2 2

u ua

t x

Page 80: PARTIAL DERIVATIVES

WAVE EQUATION

For instance, if u(x, t) represents

the displacement of a vibrating violin string

at time t and at a distance x from one end

of the string, then u(x, t) satisfies the wave equation.

Page 81: PARTIAL DERIVATIVES

WAVE EQUATION

Here, the constant a

depends on:

Density of the string

Tension in the string

Page 82: PARTIAL DERIVATIVES

Verify that the function u(x, t) = sin(x – at)

satisfies the wave equation.

ux = cos(x – at)

uxx = –sin(x – at)

ut = –a cos(x – at)

utt = –a2 sin(x – at) = a2uxx

So, u satisfies the wave equation.

Example 9 WAVE EQUATION

Page 83: PARTIAL DERIVATIVES

COBB-DOUGLAS PRODUCTION FUNCTION

In Example 3 in Section 10.1, we described

the work of Cobb and Douglas in modeling

the total production P of an economic system

as a function of:

Amount of labor L

Capital investment K

Page 84: PARTIAL DERIVATIVES

Here, we use partial derivatives to

show how:

The particular form of their model follows from certain assumptions they made about the economy.

COBB-DOUGLAS PRODUCTION FUNCTION

Page 85: PARTIAL DERIVATIVES

If the production function is denoted by

P = P(L, K), then the partial derivative ∂P/∂L

is the rate at which production changes

with respect to the amount of labor.

Economists call it the marginal production with respect to labor or the marginal productivity of labor.

MARGINAL PRODUCTIVITY OF LABOR

Page 86: PARTIAL DERIVATIVES

Likewise, the partial derivative ∂P/∂K

is the rate of change of production with

respect to capital.

It is called the marginal productivity of capital.

MARGINAL PRODUCTIVITY OF CAPITAL

Page 87: PARTIAL DERIVATIVES

In these terms, the assumptions made by

Cobb and Douglas can be stated as follows.

i. If either labor or capital vanishes, so will production.

ii. The marginal productivity of labor is proportional to the amount of production per unit of labor.

iii. The marginal productivity of capital is proportional to the amount of production per unit of capital.

COBB-DOUGLAS ASSUMPTIONS

Page 88: PARTIAL DERIVATIVES

Since the production per unit of labor is P/L,

assumption ii says that:

for some constant α.

P P

L L

COBB-DOUGLAS ASSUMPTION ii

Page 89: PARTIAL DERIVATIVES

If we keep K constant (K = K0), this partial

differential equation becomes an ordinary

differential equation:

dP P

dL L

Equation 5 COBB-DOUGLAS ASSUMPTION ii

Page 90: PARTIAL DERIVATIVES

If we solve this separable differential equation

by the methods of Section 9.3, we get:

P(L, K0) = C1(K0)Lα

Notice that we have written the constant C1

as a function of K0 since it could depend on the value of K0.

Equation 6 COBB-DOUGLAS ASSUMPTION ii

Page 91: PARTIAL DERIVATIVES

Similarly, assumption iii says

that:

P P

K K

COBB-DOUGLAS ASSUMPTION iii

Page 92: PARTIAL DERIVATIVES

We can solve that differential equation

to get:

P(L0, K) = C2(L0)Kβ

Equation 7 COBB-DOUGLAS ASSUMPTION iii

Page 93: PARTIAL DERIVATIVES

Comparing Equations 6 and 7,

we have:

P(L, K) = bLαKβ

where b is a constant that is

independent of both L and K.

Assumption i shows that α > 0 and β > 0

Equation 8 COBB-DOUGLAS ASSUMPTIONS

Page 94: PARTIAL DERIVATIVES

Notice from Equation 8 that, if labor and

capital are both increased by a factor m,

then

P(mL, mK) = b(mL)α(mK)β

= mα+βbLαKβ

= mα+βP(L, K)

COBB-DOUGLAS ASSUMPTIONS

Page 95: PARTIAL DERIVATIVES

If α + β = 1, then

P(mL, mK) = mP(L, K)

This means that production is also increased by a factor of m.

COBB-DOUGLAS ASSUMPTIONS

Page 96: PARTIAL DERIVATIVES

That is why Cobb and Douglas assumed

that α + β = 1 and therefore

P(L, K)= bLαK1 – α

This is the Cobb-Douglas production function we discussed in Section 10.1

COBB-DOUGLAS ASSUMPTIONS