Module 19 - Further Calculus 1

  • June 2020
  • PDF

This document was uploaded by user and they confirmed that they have the permission to share it. If you are author or own the copyright of this book, please report to us by using this DMCA report form. Report DMCA


Overview

Download & View Module 19 - Further Calculus 1 as PDF for free.

More details

  • Words: 3,116
  • Pages: 7
FACULTY OF MATHEMATICAL STUDIES MATHEMATICS FOR PART I ENGINEERING Lectures FURTHER CALCULUS I

MODULE 19 1. 2. 3. 4. 5.

Revision Directional derivatives Chain rule for partial derivatives Higher partial derivatives Total differential and small errors

1. Revision The idea of partial differentiation was introduced at the end of module 3, and we first recall the basic ideas. For functions of a single variable f (x) then differentiation gives ordinary derivatives e.g. (i) f (x) = x2 + cos x + ex (ii) f (x) = sin(x2 )





df = 2x − sin x + ex dx

df = 2x cos(x2 ). dx

For the differentiations in this module it can be helpful to introduce “diagrams” indicating the functional relationships. For instance, in example (i) above write f − x , which shows that to differentiate with respect to x there is only one route. df du df For case (ii) you may want to introduce the substitution u = x2 and use the chain rule = = dx du dx (cos u) (2x). In this case the corresponding diagram is f − u − x , so to differentiate with respect to x there is again only one route – first differentiate f with respect to u and then u with respect to x. For functions of more than 2 variables then you obtain partial derivatives by differentiating with respect to one variable keeping the other variable fixed. Hence (iii) f (x, y) = x2 + cos y + ex (iv) f (x, y) = sin(x2 y)





∂f = 2x + ex , ∂x

∂f = cos(x2 y) 2xy, ∂x

∂f = − sin y; ∂y ∂f = cos(x2 y) x2 . ∂y

∂f = For example (iv) above you could introduce the substitution u = x2 y and then use the chain rules ∂x ∂f df ∂u df ∂u and = . du ∂x ∂y du ∂y  nx  nx respectively. Helpful diagrams for (iii) and (iv) are f − y and f − u − y If the given function depends on more than two variables then it is easy to generalise the above results. To obtain the partial differential with respect to one variable then you differentiate with respect to that variable keeping ALL the other variables fixed. This is illustrated below (v)

f (x, y, z) = sin(x2 yz) ∂f = cos(x2 yz) 2xyz, → ∂x

∂f = cos(x2 yz) x2 z, ∂y 1

∂f = cos(x2 yz) x2 y. ∂z

To obtain the partial derivatives in (v) you can differentiate directly or with the substitution u = x2 yz (x df ∂u ∂f = etc. After introducing the substitutions the associated diagram is f − u − y , so so that ∂x du ∂x z differentiating with respect to x means you first differentiate with respect to u , then u with respect to x. df is an ordinary derivative, whereas u depends on the three variables Note that f depends only on u so du ∂u is a partial derivative. x, y and z so ∂x Ex 1.

Verify that f (x, y, z) = x +

x−y satisfies the partial differential equation y−z ∂f ∂f ∂f + + = 1. ∂x ∂y ∂z

The three partial derivatives must be calculated in turn ∂ 1 1 ∂ ∂f = (x) + (x − y) = 1 + , ∂x ∂x y − z ∂x y−z   ∂ ∂ x−y (y − z)(−1) − (x − y)1 ∂f −y + z − x + y z−x = (x) + =0+ = = , ∂y ∂y ∂y y − z (y − z)2 (y − z)2 (y − z)2   ∂ ∂ ∂ 1 ∂f = (x) + (x − y) = 0 + (x − y) (y − z)−1 ∂z ∂z ∂z y − z ∂z ∂f x−y = (x − y) (−1)(y − z)−2 (−1) = i.e. . ∂z (y − z)2 Hence combining the results ∂f ∂f 1 z−x ∂f x−y y−z+z−x+x−y + + =1+ + + =1+ = 1. ∂x ∂y ∂z y−z (y − z)2 (y − z)2 (y − z)2

2. Directional derivatives

(non-examinable)

For a function of a single variable it is easy to draw, using the usual x − y axes, the graph of y = f (x) . dy The slope of the curved line is then the ordinary derivative . dx For a function of two variables the situation becomes more complicated. Introducing the usual threedimensional xyz-axes, the function z = f (x, y) represents a surface in space. You can easily draw a tangent plane at any point on the surface, but any vector lying in this plane is a tangent to the surface, and so there is no unique slope at a point on the surface unless a direction is specified. Consider a plane which contains the z-axis and makes an angle α with the x-axis. This plane intersects the surface z = f (x, y) in a curve and it can be shown that the slope of this curve (called the directional derivative) equals ∂f ∂f cos α + sin α . ∂x ∂y For the particular cases α = 0 and α = π/2 the stated result reduces to the expected answers ∂f /∂x and ∂f /∂y respectively. 3. Chain rule for partial derivatives A simple case of the chain rule was considered in section 1. Consider now a function z= f (x, n y) where both x and y depend on the variables s and t . In this case x − s nt the diagram becomes z − y − s t 2

This diagram shows that there are two ways to differentiate with respect to s , via the variables x and y . In a similar way, to differentiate with respect to t you must again go through the variables x and y. The chain rule formulae are ∂z ∂x ∂z ∂y ∂z ∂z ∂x ∂z ∂y ∂z = + , = + . ∂s ∂x ∂s ∂y ∂s ∂t ∂x ∂t ∂y ∂t Note that there are two pairs of variables (x, y) and (s, t) . Hence, partial differentiation with respect to x means differentiating with respect to x keeping the other variable in that pair (i.e. y) fixed. In a similar way the derivative ∂/∂t means differentiating with respect to t with s kept fixed. Ex 2. Here

Find

∂T ∂T and when T (x, y) = x4 + y 4 and x = r cos θ , y = r sin θ. ∂r ∂θ

∂T = 4x3 , ∂x

∂T = 4y 3 , ∂y

The diagram for this example is

∂x = cos θ, ∂r n  x− r nθ T− y − r θ

∂x = −r sin θ, ∂θ

∂y = sin θ, ∂r

∂y = r cos θ. ∂θ

hence

∂T ∂x ∂T ∂y ∂T = + = 4x3 cos θ + 4y 3 sin θ = 4r3 cos4 θ + 4r3 sin4 θ ∂r ∂x ∂r ∂y ∂r ∂T ∂x ∂T ∂y ∂T = + = 4x3 (−r sin θ) + 4y 3 (r cos θ) ∂θ ∂x ∂θ ∂y ∂θ = −4r4 cos3 θ sin θ + 4r4 sin3 θ cos θ Note that the last expression can be simplified to ∂T = 4r4 sin θ cos θ(sin2 θ − cos2 θ) = 4r4 sin θ cos θ(− cos 2θ) ∂θ = r4 (2 sin 2θ)(− cos 2θ) = −r4 sin(4θ) . [The results above were calculated using the chain rule. Clearly the same answers could have been obtained by substituting x = r cos θ and y = r sin θ into the original expression for T , and performing the partial differentiation directly.] When z = f (x, y) but x = x(t) and y = y(t) the chain rule simplifies to ∂z dx ∂z dy dz = + dt ∂x dt ∂y dt  and the corresponding diagram is z −

x−t . y−t

Ex 3. The base radius, r, of a cylinder increases at 1 cms−1 and its height, h, at 2cms−1 . Find the rate of increase of its volume when r = 5cm and h = 10cm. For a cylinder, volume V = πr2 h, therefore ∂V dr ∂V dh dr dh dV = + = (2πrh) + (πr2 ) = 2π(5)10(1) + π(52 )2 = 150π cm3 sec−1 . dt ∂r dt ∂h dt dt dt

3

4. Higher partial derivatives Higher order partial derivatives were considered briefly in module 11 – they are “easy” to calculate from the general formulae ∂f e.g. f (x, y) = exy → = y exy , (using if you wish u = xy), ∂x   ∂ ∂ ∂f ∂ xy ∂2f = (yexy ) = y (e ) = y (yexy ) = y 2 exy , = then 2 ∂x ∂x ∂x ∂x ∂x   ∂ ∂f ∂ ∂2f = = (yexy ) = 1 exy + y (x exy ) = (1 + xy)exy . and ∂y∂x ∂y ∂x ∂y Calculating higher derivatives can be tricky when transforming variables (see Ex 4). Ex 4. and

In the function f (x, y) the variables are transformed by s = x2 − y 2 and t = xy . Determine

∂2f ∂f ∂f ∂ 2 f ∂ 2 f ∂2f , , , and show that in terms of s, t, , and ∂y 2 ∂s ∂t ∂s2 ∂t2 ∂s∂t p ∂2f ∂2f + = (s2 + 4t2 ) 2 2 ∂x ∂y

nx  s− ny The diagram here is f − t − x y

∂2f ∂x2

  2 ∂ f ∂2f 4 2 + 2 . ∂s ∂t

and the chain rule gives

∂f ∂f ∂s ∂f ∂t ∂f ∂f = + = (2x) + (y) ∂x ∂s ∂x ∂t ∂x ∂s ∂t         ∂ ∂f ∂f ∂ ∂f ∂ ∂f ∂2f ∂ ∂f = 2x +y = 2x + y = ∂x2 ∂x ∂x ∂x ∂s ∂t ∂x ∂s ∂x ∂t     ∂ ∂f ∂ ∂f ∂f + 2x +y . =2 ∂s ∂x ∂s ∂x ∂t In this example s and t form one pair of variables whilst x and y form another pair and particular care must be taken when differentiating the two “mixed” derivatives in the expression above. The diagrams associated with ∂f n x ∂f /∂t are nx /∂s and    s − s − ∂f ∂f ny n y . Thus one can use the chain rule, as for differentiating f , except − and − ∂s  t − x ∂t  t − x y y that f is replaced by ∂f /∂s and ∂f /∂t, in turn. Hence ∂ ∂x ∂ ∂x

 

∂f ∂s ∂f ∂t



∂ = ∂s

 =

∂ ∂s

 

∂f ∂s ∂f ∂t

 

∂ ∂s + ∂x ∂t ∂ ∂s + ∂x ∂t

 

∂f ∂s ∂f ∂t

 

∂2f ∂2f ∂t = y 2x + ∂x ∂s2 ∂t∂s ∂2f ∂ 2f ∂t = 2x + 2 y ∂x ∂s∂t ∂t

Substituting the above derivatives back into the general expression yields  2   2  ∂2f ∂f ∂2f ∂ f ∂ f ∂2f + 2x y +y 2x + 2 y =2 2x + ∂x2 ∂s ∂s2 ∂t∂s ∂s∂t ∂t   2 2 2 ∂2f ∂ f ∂2f ∂f 2 ∂ f 2 ∂ f + 4x +y = + 4xy , using =2 ∂s ∂s2 ∂s∂t ∂t2 ∂s∂t ∂t∂s 4

The corresponding second derivative

∂2f must now be calculated in a similar way ∂y 2

∂f ∂s ∂f ∂t ∂f ∂f ∂f = + = (−2y) + (x) ∂y ∂s ∂y ∂t ∂y ∂s ∂t         ∂ ∂f ∂f ∂ ∂f ∂ ∂f ∂ ∂f ∂2f = −2y + x = −2 y + x = ∂y 2 ∂y ∂y ∂y ∂s ∂t ∂y ∂s ∂y ∂t     ∂ ∂f ∂ ∂f ∂f − 2y +x . = −2 ∂s ∂y ∂s ∂y ∂t Again using the diagrams and the chain rule it follows that       ∂ ∂f ∂s ∂ ∂f ∂t ∂2f ∂2f ∂ ∂f = + = x (−2y) + 2 ∂y ∂s ∂s ∂s ∂y ∂t ∂s ∂y ∂s ∂t∂s ∂ ∂y



∂f ∂t

 =

∂ ∂s



∂f ∂t



∂ ∂s + ∂y ∂t



∂f ∂t



∂2f ∂2f ∂t = (−2y) + 2 x ∂y ∂s∂t ∂t

Hence the general expression becomes  2   2  ∂2f ∂f ∂2f ∂2f ∂ f ∂ f − 2y x + x (−2y) + = −2 (−2y) + x ∂y 2 ∂s ∂s2 ∂t∂s ∂s∂t ∂t2 ∂2f ∂f ∂2f ∂2f + 4y 2 2 − 4xy + x2 2 = −2 ∂s ∂s ∂s∂t ∂t Adding the results 2 2 ∂2f ∂2f 2 2 ∂ f 2 2 ∂ f + = 4(x + y ) + (x + y ) = (x2 + y 2 ) ∂x2 ∂y 2 ∂s2 ∂t2

  2 ∂ f ∂2f 4 2 + 2 ∂s ∂t

From the original definitions of the variables s2 + 4t2 = (x2 − y 2 )2 + 4(xy)2 = x4 − 2x2 y 2 + y 4 + 4x2 y 2 = x4 + 2x2 y 2 + y 4 = (x2 + y 2 )2 p Thus x2 + y 2 = (s2 + 4t2 ) and the final result is p ∂2f ∂2f + 2 = (s2 + 4t2 ) 2 ∂x ∂y

  2 ∂ f ∂2f 4 2 + 2 , ∂s ∂t

(as required).

5. Total differential and small errors Consider a function u = f (x, y) and let ∆x and ∆y be increments in x and y . When x → x + ∆x and y → y + ∆y then we have u → u + ∆u . ∂f ∂f The book James defines the total differential du by du = ∆x + ∆y . But du and ∆u are ∂x ∂y approximately the same so ∂f ∂f ∆u ∼ ∆x + ∆y . ∂x ∂y The latter is good for estimating small errors. The result can be generalised to functions of more than two variables – for example, suppose u = f (x, y, z) then ∆u ∼

∂f ∂f ∂f ∆x + ∆y + ∆z . ∂x ∂y ∂z 5

All measurements are subject to error, and a calculated quantity usually depends on the values of several measured variables. The total differential can be used to estimate error bounds for quantities calculated from experimental results, or from data subject to errors – as shown below. Ex 5. The volume V of a right-circular cone is given by V = 13 πr2 h , where h is the height and r is the radius. If h is decreased by 2% and r is increased by 2% calculate the approximate percentage change in V. First it is important to convert the decrease/increase in the parameters into changes in ∆h etc. Hence ∆h ∆h h decreased by 2% means × 100 = −2, or = −0.02 ; h h ∆r ∆r × 100 = +2, or = +0.02 . r increased by 2% means r r 1 2 ∂V 1 ∂V Given V = πr2 h , = πrh , = πr2 , → so 3 ∂r 3 ∂h 3 ∆V ∼

∂V 2 1 ∂V ∆r + ∆h = πrh ∆r + πr2 ∆h . ∂r ∂h 3 3

To calculate percentage change in V need

i.e. →

∆V , so divide above equation by V V

2 1 πrh πr2 ∆V ∼ 3 ∆r + 3 ∆h V V V 2 1 πrh πr2 ∆h ∆V ∆r ∼ 13 2 ∆r + 13 2 ∆h = 2 + V r h πr h πr h 3 3 ∆V ∼ 2(0.02) + (−0.02) = 0.02 V

Hence the approximate change in V is a 2% increase In Ex 5 ∆h is negative and ∆r is positive. The maximum value of ∆V would clearly be obtained in this example when both terms are positive. Similarly, the minimum value would arise when both increments are negative. To obtain the formula for these limiting values proceed as follows: in above

∆r ∆h ∆V =2 + then using the triangle inequality ( |a + b| ≤ |a| + |b| ) it follows that V r h ∆V ∆r ∆h ≤ 2 + = 2 ∆r + ∆h . V r h r h

The result is illustrated in the following example. 1 Ex 6. The volume of a right-circular cone is V = πr2 h . If r = 3 ± 0.01 and h = 5 ± 0.005 then, using 3 the total differential, find the estimated change in V , and compare it with the greatest possible error. As in Ex 5,

∆r ∆V =2 V r ∆V V ∆V → V →

∆h and therefore h ∆r ∆h ≤ 2 + approximately r h ,     ≤ 2 0.01 + 0.005 = 0.023 3 5 3    0.023 0.023 1 2 V = π3 5 = 0.115π, |∆V | ≤ 3 3 3 +

6

approximately

The above result can be written in the alternative form −0.115π ≤ ∆V ≤ 0.115π . 1 For the second part of the question we know V = πr2 h , and so its maximum value clearly occurs when r 3 and h both have their maximum values. Hence 1 π(3.01)2 (5.005) = 15.115267π 3 1 → V = π32 5 = 15π 3 max. change in V = Vmax − V = 0.11527π Vmax =

→ In a similar way

1 π(2.99)2 (4.995) = 14.88527π 3 so min. change in V = Vmin − V = −0.11473π Vmin =

Thus the approximate error calculated using partial derivatives gives a good guide to the maximum and minimum errors. For the relatively simple situations considered here direct calculation of the maximum and minimum errors is possible, and the partial differentiation approach appears less useful. When more variables are present and the function being considered is more complicated then the method involving partial differentiation can be extremely useful in providing good estimates of maximum and minimum errors, using a relatively straightforward approach.

rec/02lfc1

7

Related Documents