17 review linear approximation f f x x f y y tangent
play

17. Review Linear approximation: f f x x + f y y. Tangent plane: - PDF document

17. Review Linear approximation: f f x x + f y y. Tangent plane: to z = f ( x, y ) at ( x 0 , y 0 , z 0 ) z z 0 = f x ( x x 0 ) + f y ( y y 0 ) . Let w = f ( x, y, z ). Chain rule: d w = f x d x + f y d y + f z d z. So


  1. 17. Review Linear approximation: ∆ f ≈ f x ∆ x + f y ∆ y. Tangent plane: to z = f ( x, y ) at ( x 0 , y 0 , z 0 ) z − z 0 = f x ( x − x 0 ) + f y ( y − y 0 ) . Let w = f ( x, y, z ). Chain rule: d w = f x d x + f y d y + f z d z. So dw dx dy dz dt = f x dt + f y dt + f z dt We can encode this efficiently using the gradient:  + f z ˆ ∇ f = � f x , f y , f z � = f x ˆ ı + f y ˆ k, Then dw dt = ∇ f · � v ( t ) . The most important property of the gradient is that it is normal to the level curves, or to the level surfaces. Example 17.1. What is the tangent plane to the ellipsoid 3 x 2 + 5 y 2 + 3 z 2 = 11 , at the point ( x 0 , y 0 , z 0 ) = (1 , 1 , 1) ? Well, this is a level surface of the function f ( x, y, z ) = 3 x 2 +5 y 2 +3 z 2 . ∇ f = � 6 x, 10 y, 6 z � . At the point (1 , 1 , 1), we have ∇ f = � 6 , 10 , 6 � . So � n = � 3 , 5 , 3 � is a normal vector the tangent plane. So the equation of the tangent plane is � x − 1 , y − 1 , z − 1 �·� 3 , 5 , 3 � = 0 so that 3( x − 1)+5( y − 1)+3( z − 1) = 0 . Rearranging, we get 3 x + 5 y + 3 z = 11. Directional derivative: Let w = f ( x, y ) be a function of two variables. Let ˆ u = � a, b � be a direction in the plane. The directional derivative, in the direction of ˆ u , � f ( x 0 + sa, y 0 + sb ) − f ( x 0 , y 0 ) dw � = lim . � ds s s → 0 � ˆ u If ˆ u = ˆ ı , we get f x ( x 0 , y 0 ) and if ˆ u = ˆ  , we get f y ( x 0 , y 0 ). 1

  2. To compute, use the gradient: � dw � = ∇ f · ˆ u. � ds � ˆ u So the gradient points in the direction of maximum increase of w and the magnitude of the gradient is the rate of change in this direction. The direction of maximum decrease of f is given by −∇ f . Example 17.2. What is the closest point to p = (1 , − 1) on the curve x 3 − x + 2 y 2 = 1 . 9 ? At (1 , − 1) we have f (1 , − 1) = 2, so we want ∆ f = − 0 . 1. From p we should go in the direction to decrease f the most: ∇ f = � 3 x 2 − 1 , 4 y � so that ∇ f (1 , − 1) = � 2 , − 4 � . We want go in the direction of −∇ f (1 , − 1) = �− 2 , 4 � . The magnitude is √ 2 5, so want to go in the direction u = 1 √ ˆ 5 �− 1 , 2 � . √ If we go in this direction f decreases by 2 5. So we want to go a distance of 1 √ 5 . 20 That is we want a displacement of 1 100 �− 1 , 2 � . So we want the point 1 � 1 , − 1 � + 100 �− 1 , 2 � = � 0 . 99 , − 0 . 98 � To find the maximum and the minimum of a function w = f ( x, y ), first find the critical points, the solutions to f x = 0 and f y = 0. To analyse the type of the critical points (local minimum, local maximum or saddle point), use the 2nd derivative test. Let A = f xx ( x 0 , y 0 ), If AC − B 2 > 0 we have a B = f xy ( x 0 , y 0 ) and C = f yy ( x 0 , y 0 ). maximum or minimum. A > 0 is a minimum and A < 0 is a maximum. If AC − B 2 < 0 we have a saddle point. Next check what happens at the boundary, including infinity. Example 17.3. x 2 y 3 z 5 = 2 2 3 3 5 5 , maximise and minimise x + y + z subject to where x , y and z ≥ 0 . 2

  3. Use equation to eliminate x , � 2 2 3 3 5 5 x = y 3 z 5 . So we want to maximise � 2 2 3 3 5 5 h ( y, z ) = y 3 z 5 + y + z. Find the critical points: � � h y = − 3 2 2 3 3 5 5 h z = − 5 2 2 3 3 5 5 y 5 z 5 + 1 and y 3 z 7 + 1 . 2 2 So we want � � 2 2 3 3 5 5 2 2 3 3 5 5 0 = − 3 0 = − 5 y 5 z 5 + 1 and y 3 z 7 + 1 . 2 2 Rearranging, we get � � 2 2 3 3 5 5 2 2 3 3 5 5 = 2 = 2 and 5 . y 5 z 5 3 y 3 z 7 Squaring, we get 2 2 3 3 5 5 = 2 2 2 2 3 3 5 5 = 2 2 and 5 2 . y 5 z 5 3 2 y 5 z 7 Taking the reciprocal 2 2 3 3 5 5 = 3 2 y 5 z 5 2 2 3 3 5 5 = 5 2 y 5 z 7 and 2 2 . 2 2 Simplifying y 5 z 5 = 3 5 5 5 y 3 z 7 = 3 3 5 7 . and We guess y = 3 and z = 5. This works and it is clear the solution is unique. x = 2 is the other value. Let’s try the 2nd derivative test. � � � 2 2 3 3 5 5 2 2 3 3 5 5 2 2 3 3 5 5 h yy = 15 h yz = 15 h zz = 35 and y 3 z 9 . y 7 z 5 y 5 z 7 4 4 4 We have � � � 2 2 3 3 5 5 2 2 3 3 5 5 2 2 3 3 5 5 A = 15 B = 15 C = 35 and 3 3 5 9 . 4 3 7 5 5 4 3 5 5 7 4 We have AC − B 2 > 0. A > 0, so have a local minimum. There are no other critical points, so this is a global minimum. Minimum value is 10. 3

  4. At the boundary, one of the variables goes to ∞ and the sum goes to ∞ . No maximum. Let’s use Lagrange multipliers insead. We add a variable λ and solve f x = λg x f y = λg y f z = λg z g = c. In our case f ( x, y, z ) = x + y + z and g ( x, y, z ) = x 2 y 3 z 5 . We get 1 = λ 2 xy 3 z 5 1 = λ 3 x 2 y 2 z 5 1 = λ 5 x 2 y 3 z 4 x 2 y 3 z 5 = 2 2 3 3 5 5 . Multiply the first three equations by x , y and z : x = λ 2 x 2 y 3 z 5 y = λ 3 x 2 y 3 z 5 z = λ 5 x 2 y 3 z 5 . So 3 x = 2 y , 5 x = 2 z . Multiply constraint by 2 3 , 3 3 x 5 z 5 = 2 5 3 3 5 5 . Cancelling, we get x 5 z 5 = 2 5 5 5 . Multiply both sides by 2 5 , 2 5 x 5 z 5 = 2 10 5 5 . We get 5 5 x 10 = 2 10 5 5 . Hence x = 2. Thus y = 3 and z = 5. 4

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend