Lesson 4: Gradient Vectors, Level Curves, Maximums/Minimums/Saddle Points

Similar documents
Daily WeBWorK, #1. This means the two planes normal vectors must be multiples of each other.

Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives. Directional Derivatives

3.3 Optimizing Functions of Several Variables 3.4 Lagrange Multipliers

What you will learn today

f for Directional Derivatives and Gradient The gradient vector is calculated using partial derivatives of the function f(x,y).

14.6 Directional Derivatives and the Gradient Vector

Worksheet 2.7: Critical Points, Local Extrema, and the Second Derivative Test

Section 4: Extreme Values & Lagrange Multipliers.

Solution 2. ((3)(1) (2)(1), (4 3), (4)(2) (3)(3)) = (1, 1, 1) D u (f) = (6x + 2yz, 2y + 2xz, 2xy) (0,1,1) = = 4 14

. Tutorial Class V 3-10/10/2012 First Order Partial Derivatives;...

t dt ds Then, in the last class, we showed that F(s) = <2s/3, 1 2s/3, s/3> is arclength parametrization. Therefore,

13.1. Functions of Several Variables. Introduction to Functions of Several Variables. Functions of Several Variables. Objectives. Example 1 Solution

LECTURE 18 - OPTIMIZATION

1. Gradient and Chain Rule. First a reminder about the gradient f of a smooth function f. In R n, the gradient operator or grad has the form

Outcomes List for Math Multivariable Calculus (9 th edition of text) Spring

Chapter 5 Partial Differentiation

Inverse and Implicit functions

(c) 0 (d) (a) 27 (b) (e) x 2 3x2

Practice problems from old exams for math 233 William H. Meeks III December 21, 2009

True/False. MATH 1C: SAMPLE EXAM 1 c Jeffrey A. Anderson ANSWER KEY

12.7 Tangent Planes and Normal Lines

Practice problems. 1. Given a = 3i 2j and b = 2i + j. Write c = i + j in terms of a and b.

302 CHAPTER 3. FUNCTIONS OF SEVERAL VARIABLES. 4. Function of several variables, their domain. 6. Limit of a function of several variables

Multivariate Calculus Review Problems for Examination Two

2 Second Derivatives. As we have seen, a function f (x, y) of two variables has four different partial derivatives: f xx. f yx. f x y.

An Introduction to the Directional Derivative and the Gradient Math Insight

Equation of tangent plane: for implicitly defined surfaces section 12.9

Math 21a Homework 22 Solutions Spring, 2014

Winter 2012 Math 255 Section 006. Problem Set 7

Lagrange multipliers October 2013

22. LECTURE 22. I can define critical points. I know the difference between local and absolute minimums/maximums.

Lagrange multipliers 14.8

Tangent Planes/Critical Points

Mat 241 Homework Set 7 Due Professor David Schultz

11/1/2017 Second Hourly Practice 11 Math 21a, Fall Name:

7/28/2011 SECOND HOURLY PRACTICE V Maths 21a, O.Knill, Summer 2011

14.5 Directional Derivatives and the Gradient Vector

Linear Transformations

Directional Derivatives and the Gradient Vector Part 2

Lagrange Multipliers

Math 213 Calculus III Practice Exam 2 Solutions Fall 2002

f xx (x, y) = 6 + 6x f xy (x, y) = 0 f yy (x, y) = y In general, the quantity that we re interested in is

. 1. Chain rules. Directional derivative. Gradient Vector Field. Most Rapid Increase. Implicit Function Theorem, Implicit Differentiation

Goals: Course Unit: Describing Moving Objects Different Ways of Representing Functions Vector-valued Functions, or Parametric Curves

13.2 LIMITS AND CONTINUITY

= w. w u. u ; u + w. x x. z z. y y. v + w. . Remark. The formula stated above is very important in the theory of. surface integral.

MATH 142 Business Mathematics II

Background for Surface Integration

MATH11007 NOTES 12: PARAMETRIC CURVES, ARCLENGTH ETC.

Visualizing Images. Lecture 2: Intensity Surfaces and Gradients. Images as Surfaces. Bridging the Gap. Examples. Examples

ENGI Parametric & Polar Curves Page 2-01

PURE MATHEMATICS 212 Multivariable Calculus CONTENTS. Page. 1. Assignment Summary... i 2. Summary Assignments...2

Surfaces and Partial Derivatives

16. LECTURE 16. I understand how to find the rate of change in any direction. I understand in what direction the maximum rate of change happens.

Minima, Maxima, Saddle points

Directional Derivatives and the Gradient Vector Part 2

Robert Collins CSE486, Penn State. Lecture 2: Intensity Surfaces and Gradients

6. Find the equation of the plane that passes through the point (-1,2,1) and contains the line x = y = z.

Calculus III Meets the Final

Lecture 15. Lecturer: Prof. Sergei Fedotov Calculus and Vectors. Length of a Curve and Parametric Equations

Multivariate Calculus: Review Problems for Examination Two

Answer sheet: Second Midterm for Math 2339

Math 241, Final Exam. 12/11/12.

UNIVERSIDAD CARLOS III DE MADRID MATHEMATICS II EXERCISES (SOLUTIONS ) CHAPTER 3: Partial derivatives and differentiation

8/5/2010 FINAL EXAM PRACTICE IV Maths 21a, O. Knill, Summer 2010

MATH11007 NOTES 15: PARAMETRIC CURVES, ARCLENGTH ETC.

(1) Given the following system of linear equations, which depends on a parameter a R, 3x y + 5z = 2 4x + y + (a 2 14)z = a + 2

MATH2111 Higher Several Variable Calculus Lagrange Multipliers

Kevin James. MTHSC 206 Section 15.6 Directional Derivatives and the Gra

Surfaces and Partial Derivatives

Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers. Lagrange Multipliers

Section 4.3: How Derivatives Affect the Shape of the Graph

ID: Find all the local maxima, local minima, and saddle points of the function.

Partial Derivatives. Partial Derivatives. Partial Derivatives. Partial Derivatives. Partial Derivatives. Partial Derivatives

Functions of Two variables.

Unit #20 : Functions of Many Variables, and Vectors in R 2 and R 3

WW Prob Lib1 Math course-section, semester year

Derivatives and Graphs of Functions

Math 113 Calculus III Final Exam Practice Problems Spring 2003

MATH. 2153, Spring 16, MWF 12:40 p.m. QUIZ 1 January 25, 2016 PRINT NAME A. Derdzinski Show all work. No calculators. The problem is worth 10 points.

Continuity and Tangent Lines for functions of two variables

NAME: Section # SSN: X X X X

d f(g(t), h(t)) = x dt + f ( y dt = 0. Notice that we can rewrite the relationship on the left hand side of the equality using the dot product: ( f

Grad operator, triple and line integrals. Notice: this material must not be used as a substitute for attending the lectures

the straight line in the xy plane from the point (0, 4) to the point (2,0)

x 6 + λ 2 x 6 = for the curve y = 1 2 x3 gives f(1, 1 2 ) = λ actually has another solution besides λ = 1 2 = However, the equation λ

Euler s Method for Approximating Solution Curves

Unconstrained Optimization

Directional Derivatives as Vectors

Week 5: Geometry and Applications

Chapter 3 Numerical Methods

ds dt ds 1 dt 1 dt v v v dt ds and the normal vector is given by N

INTRODUCTION TO LINE INTEGRALS

11/6/2012 SECOND HOURLY Math 21a, Fall Name:

Functions of Several Variables

Section 7.6 Graphs of the Sine and Cosine Functions

5 Day 5: Maxima and minima for n variables.

4.3 Finding Local Extreme Values: First and Second Derivatives

MATH Harrell. Which way is up? Lecture 9. Copyright 2008 by Evans M. Harrell II.

Optimization problems with constraints - the method of Lagrange multipliers

Transcription:

Lesson 4: Gradient Vectors, Level Curves, Maximums/Minimums/Saddle Points

Example 1: The Gradient Vector 2 df Let f(x) x. Then 2x. This can be thought of as a vector that dx tells you the direction of greatest initial increase on the curve. The magnitude of the vector tells you how steep the increase. Let's try a few df x-values in : dx

Example 1: The Gradient Vector We can put the tails of our vectors on the curve itself to get picture that's a little easier to work with: What do you notice about the magnitude of the gradient vector at x=0?

Example 2: The Gradient Vector We can try again with f(x) sin(x) : What do you notice about the magnitude of the gradient vector at x and x 3? 2 2 That's right! The places where we have horizontal tangent lines are where the gradient vector is the zero vector. So the places where the gradient vector is the zero vector are candidates for local extrema.

Definition: The Gradient Vector Let f(x,x,...,x ) be a function of n variables. Then the 1 2 n gradient vector is defined as follows: f f f f,,..., x x x 1 2 n The gradient vector is designed to point in the direction of the greatest INITIAL increase on your curve/surface/etc. Notice that the gradient vector always lives in one dimension lower than function does. Surface in 3D space? 2D gradient vector. Curve in 2D space? 1D gradient vector. Hypersurface in 4D? 3D gradient vector.

Definition: The Gradient Vector Let f(x,x,...,x ) be a function of n variables and let 1 2 n f f f f,,..., x x x 1 2 n Ex. Find f given f(x) sin(x). 3 3 Ex. If f(x, y) x y 3x 3y, find f. f(x) cos(x) f(x, y) 3x 2 3,3y 2 3 Theorem: If f(x, x,..., x ) is a function of n variables, then the 1 2 n candidates for local maxima/minima are where f 0,0,...,0 or where f is undefined. NOTE : These are just CANDIDATES, Created by Christopher Grattoni. All rights not reserved. necessarily extrema!!

Example 3: A Surface and Gradient Field 2 2 2 Let f(x, y) (cos (x) cos (y)). Then we can use Mathematica f f to find f(x, y),. x y This is the surface plotted together with a projected gradient field below it. The surface is like a mountain and the gradient vector is like a magic compass that, no matter where you are standing on the mountain, points in the immediate direction that is the steepest uphill. 3 2 f(x, y) 4cos (x)sin(x) 4cos(x)sin(x)cos(y),2cos (x)sin(y) 2cos(y)sin(y)

Example 3: A Surface and Gradient Field 2 2 2 f f Let f(x, y) (cos (x) cos (y)) and f(x, y), : x y One of the main reasons we like to plot the gradient vectors (called a gradient vector field) is that we can figure out quite a bit about a 3D surface without the hard work of a 3D plot: The vectors tell you the direction of greatest initial increase on the surface at a given point, and their magnitude tells you how steep it is! 3 2 f(x, y) 4cos (x)sin(x) 4cos(x)sin(x)cos(y),2cos (x)sin(y) 2cos(y)sin(y)

Example 4: A Surface and Contour Plot 2 2 2 f f Let f(x, y) (cos (x) cos (y)) and f(x, y), : x y We can also generate a "contour plot" of our surface. This is also called a set of level curves. These are merely slices of the surface projected onto the xy-plane:

Example 4: Contour Plots in Real Life This is merely just a technique for representing 3D data in 2D.

Example 4: A Surface and Contour Plot 2 2 2 f f Let f(x, y) (cos (x) cos (y)) and f(x, y), : x y We can put our contour plot and gradient field together: Recall that the gradient always points in the direction of greatest initial increase, so it must get you from one level curve to the next as efficiently as possible. That is, the gradient vector is perpendicular to the level curve passing through its tail.

Example 4: A Surface and Contour Plot 2 2 2 f f Let f(x, y) (cos (x) cos (y)) and f(x, y), : x y Theorem: The gradient is always perpendicular to the level curve through its tail. Proof: Later in the notes. Note : The gradient is not necessarily perpendicular to the surface itself, just its 2D level curves!

Example 5: The Gradient Points in the Direction of Greatest Initial Increase 2 2 2 f f Let f(x, y) (cos (x) cos (y)) and f(x, y),. Show that if we are at point x y (1,1,f(1,1)) and move in the direction of the gradient f(1,1), we must go up before we go down: Here is a plot of f(x(t),y(t)) versus t where (x(t),y(t)) (1,1) tf(1,1) for 0 t 1 :

Example 6: A Path Along our Surface Let f(x,y) 2 2 2 (cos (x) cos 2 (y)) and let (x(t), y(t)) cos (1 t),sin(2t). Finally, plot (x( t),y(t),f(x(t),y( t)),a path on the surface. (x, y, f(x, y) ) : the surface (a mountain) (x( t), y(t) ) : a parametric path (map of a hiking trail) (x(t), y(t),f(x( t), y( t)) : path on the surface (the actual hiking trail on that mountain)

Example 6: A Path Along our Surface Let f(x, y) (cos 2 (x) cos 2 ( y)) 2 and let (x(t), y(t)) cos 2 (1 t),sin(2t). Plot (x(t), y(t),f(x(t), y(t)),a path on the surface. Now,add inthe gradient vectors on the path: The surface is a like a mountain and the path is a hiking trail on that mountain, but the gradient vectors are basically a magic compass telling you the steepest direction from where you are standing. You can use this to figure out how steep the road ahead is.

Example 6: Tangent Vectors and Gradient Vectors on Our Path Let f(x, y) (cos (x) cos 2 2 (y)) 2 ( x(t), y(t)) cos (1 t),sin(2t).the gradient 2 and let vectors along the path are blue and tangent vectors are orange. Let's go point by point and describe what's happening on the hiking trail:

Example 6: Tangent Vectors and Gradient Vectors on Our Path 2 2 2 Let f(x,y) (cos (x) cos (y)) and let ( x(t),y(t)) cos 2 (1 t),sin(2t). The gradient vectors along the path are blue and tangent vectors are orange. We saw the angle between the gradient, f f,, and the tangent vector, (x'(t),y'(t)), x y is the key here! Recall that V W V W cos( ) : f f If the angle between, and (x'(t),y'(t)) is acute, x y f f, (x'(t),y'(t))>0 and we are walking uphill. x y f f If the angle between, and (x'(t),y'(t)) is obtuse, x y f f, (x'(t),y'(t))<0 and we are walking downhill. x y

The Derivative of f(x(t),y(t)) With Respect to t f f If the angle between, and (x'(t),y'(t)) is acute, x y f f, (x'(t),y'(t))>0 and we are walking uphill. x y f f If the angle between, and (x'(t),y'(t)) is obtuse, x y f f, (x'(t),y'(t))<0 and we are walking downhill. x y Walking uphill is like saying f(x(t),y(t)) is increasing at t. Walking downhill is like saying f(x(t),y(t)) is decreasing at t. The 2D Chain Rule: df(x(t), y(t)) f f, (x'(t),y'(t)) dt x y

The Chain Rule in n-dimensions df(x(t), y(t)) f f The 2D Chain Rule:, (x'(t),y'(t)) dt x y Chain Rules in Other Dimensions: 1D : df(x(t)) f'(x(t))x'(t) dt 3D : df(x(t), y(t), z(t)) f f f,, (x'(t),y'(t),z'(t)) dt x y z df(x (t),..., x (t)) f f 1 n n-d:,..., (x '(t),...,x '(t)) 1 n dt x x 1 n "The derivative of the outside times the derivative of the inside." (Gradient) (Dot Product) (Tangent Vector)

Chain Rule Proves the Gradient is Perpendicular to the Level Curve Theorem: The gradient is always perpendicular to the level curve through its tail. Proof: We will only show this for a surface z level curve c f(x,y) whose f(x,y) can be parameterized by (x(t), y(t)). Then a tangent vector on the level curve can be described by (x'(t),y'(t)). f f Next, the gradient is f(x,y),. x y For them to be perpendicular, we want their dot product to be 0: f f, (x'(t),y'(t)) x y So the gradient is to the level curve. df(x(t),y(t)) dt By Chain Rule... 0 But c f(x,y), and the derivative of a constant is 0... Another way to think of this is a level curve is defined as a path df(x(t),y(t)) on the surface where your height stays constant. So 0... dt

Example 7: Using the Chain Rule Let f(x, y) x 2 xy and let (x(t), y(t)) cos(t),sin(t). Find df : dt f f f(x, y), 2x y, x x y (x'(t),y'(t)) ( sin(t),cos(t)) 2cos(t) sin(t),cos(t) df(x(t), y(t) ) dt f f, (x'(t),y'(t)) x y 2cos(t) sin(t),cos( t) ( sin(t),co st ( )) 2 2 2sin(t)cos(t) sin (t) cos (t) cos(2t) sin(2t)

Example 8: Another Visit to Our Surface 3 3 Let f(x, y) x y 3x 3y and suppose you are standing on the surface at the point 2,3,20. If you decide to walk in the direction of or downhill on f(x,y) when you take your first step? 2 2 f(x, y) 3x 3,3y 3 f(2,3) 9,24 7, 9, 24 2 15 Since this dot product is negative, we know our first step will be downhill. ( 7,2), do you go uphill This negative tells us the angle between the gradient at (2,3) and our direction vector is obtuse. We are walking against the direction advised by our Gradient Compass: downhill!

Example 9: Identifying Local Extrema from the Gradient 3 3 2 2 Let f(x, y) x y 3x 3y. We previously found f(x, y) 3x 3,3y 3. Find all local maxima/minima on this surface. Theorem: The candidates for local extrema are where f 0,0, or where it is undefined. 2 2 f(x, y) 3x 3,3y 3 (0, 0) x 1,y 1 Critical Points: 1,1, 1, 1, 1,1, 1, 1 Why are the points where f (0,0) candidates for local extrema? Well, points where we have f (0,0) 0 indicates that the surface is perfectly flat here. That is, the tangent planes to the surface at those points are horizontal. So these are locations where we could have a local maximum or minimum.

Example 9: Identifying Local Extrema from the Gradient 3 3 2 2 Let f(x, y) x y 3x 3y. We previously found f(x, y) 3x 3,3y 3. Find all local maxima/minima on this surface. Critical Points: 1,1, 1, 1, 1,1, 1, 1 (1, 1) and ( 1,1) are called saddle points: They bring you up in one direction down in the other. These are not extrema. Task: Look at the surface in Mathematica and convince yourself these are not extrema.

Example 9: Identifying Local Extrema from the Gradient 3 3 2 2 Let f(x, y) x y 3x 3y. We previously found f(x, y) 3x 3,3y 3. Find all local maxima/minima on this surface. Saddle point analogy: A Saddle Point is to 3D as a Non-Max/Min Horizontal Tangent is to 2D.

Example 9: Identifying Local Extrema from the Gradient 3 3 2 2 Let f(x, y) x y 3x 3y. We previously found f(x, y) 3x 3,3y 3. Find all local maxima/minima on this surface. Remaining Candidates: 1,1 and 1, 1 The gradient vectors show that ( 1, 1) is a local max (the surrounding vectors all point to ( 1, 1)). The gradient vectors show that (1,1) is a local min (the surrounding vectors all point away from ( 1,1)). Saddle points have gradient vectors both flowing in and out.

Example 9: Identifying Local Extrema from the Gradient 3 3 2 2 Let f(x, y) x y 3x 3y. We previously found f(x, y) 3x 3,3y 3. Find all local maxima/minima on this surface. Summary: Local Maximum: ( 1, 1) Local Minimum: (1,1) Saddle Poi nts: (1, 1) a nd ( 1,1)

Example 10: The Second Partial Derivative Test to Identify Maximums and Minimums You might wonder how to identify maxima, minima, and saddle points without having to use Mathematica to plot the gradient field. For this, we generalize the second derivative test.

Example 10: The Second Partial Derivative Test to Identify Maximums and Minimums Recall: The second derivative states that if f'(a) 0, then: If f''(a) 0, then we have a local maximum at x = a If f''(a) 0, then we have a local minimum at x = a If f''(a) 0, then the test is inconclusive. 5 3 x 4x Example: Let f(x) : 5 3 f'( 2) 0 & f''( 2) 0 : local maximum at x 2. f'(2) 0 & f''(2) 0 : local minimum at x 2. f'(0) 0 & f''(0) 0 : test inconclusive at x 0.

Example 10: The Second Partial Derivative Test to Identify Maximums and Minimums Now for a maximum, we need to be concave down in the x-direction AND y-direction. Likewise, for a minimum, we need to be concave up in the x-direction AND y-direction. If we mix between the two, we have a saddle point. The tool that lets us analyze this is the Hessian Matrix: Hf(x, y) f 2 x f yx 2 2 2 2 f xy f 2 y

Example 10: The Second Partial Derivative Test to Identify Maximums and Minimums f 2 2 2 x xy Hessian Determinant: D(x, y) Hf(x, y) 2 2 f f yx D(a,b) f (a,b) Conclusion xx (a,b, f(a,b)) is a local maximum. n / a y (a,b, f(a,b)) is a local minimum. (a,b,f(a,b)) is a saddle point. 0 n / a The test is inconclusive. f 2

Example 10: The Second Partial Derivative Test to Identify Maximums and Minimums D(a,b) f (a,b) Conclusion xx (a,b,f(a,b)) is a local maximum. n / a (a,b,f(a,b)) is a local minimum. (a,b,f(a,b)) is a saddle point. 0 n / a The test is inconclusive. How does this work? Well, if D(a,b) is positive, it is telling us that the "second derivatives in the x-direction and y-direction" are pointing the same way. So if D(a,b) is positive and f (a,b) is negative, then we are "concave down" in xx both directions which is a local maximum. If D(a,b) is positive and f (a,b) is positive, then we are "concave up" in both directions, which is a local minimum. If D(a,b) is negative, then the x-direction and y-direction second derivatives are "pointing in different directions," or a saddle point. If D(a,b) is zero, we can't tell. xx

Example 10: The Second Partial Derivative Test to Identify Maximums and Minimums 3 3 2 2 Let f(x, y) x y 3x 3y. We previously found f 3x 3,3y 3 with critical points at ( 1, 1), (1,1), (1, 1), and ( 1,1). Use the Hessian determinant to identify maxima, minima, and saddle points: 2 2 f f 2 x xy D(x, y) Hf(x, y) 2 2 f f 2 yx y 3 3 3 3 x y 3x 3y x y 3x 3y x x x y 3 3 3 3 x y 3x 3y x y 3x 3y y x y y 2 2 3x 3 3y 3 x x y y 6x 0 0 6y 36xy 2 2 3x 3 3y 3

Example 10: The Second Partial Derivative Test to Identify Maximums and Minimums 3 3 2 2 Let f(x, y) x y 3x 3y. We previously found f 3x 3,3y 3 with critical points at ( 1, 1), (1,1), (1, 1), and ( 1,1). Use the Hessian determinant to identify maxima, minima, and saddle points: f 2 2 2 x xy 6x 0 D(x, y) Hf(x, y) 36xy 2 2 f f 0 6y Test (1,1) : D(1,1) 36 0 f (1,1) 6x 6 0 xx (1,1) yx y f 2 D(a,b) f (a,b) Conclusion xx (a,b,f(a,b)) is a local maximum. n / a (a,b,f(a,b)) is a local minimum. (a,b,f(a,b)) is a saddle point. 0 n / a The test is inconclusive. Hence, (1,1,f(1,1)) is a local minimum!

Example 10: The Second Partial Derivative Test to Identify Maximums and Minimums 3 3 2 2 Let f(x, y) x y 3x 3y. We previously found f 3x 3,3y 3 with critical points at ( 1, 1), (1,1), (1, 1), and ( 1,1). Use the Hessian determinant to identify maxima, minima, and saddle points: f 2 x xy 6x 0 D(x, y) Hf(x, y) 36xy 2 2 f f 0 6y 2 yx y Test ( 1, 1) : D( 1, 1) 36 0 f ( 1, 1) 6x 6 0 xx ( 1, 1) 2 2 f D(a,b) f (a,b) Conclusion xx (a,b,f(a,b)) is a local maximum. n / a (a,b,f(a,b)) is a local minimum. (a,b,f(a,b)) is a saddle point. 0 n / a The test is inconclusive. Hence, ( 1, 1,f( Created by 1, Christopher Grattoni. 1)) All rights is reserved. a local maximum!

Example 10: The Second Partial Derivative Test to Identify Maximums and Minimums 3 3 2 2 Let f(x, y) x y 3x 3y. We previously found f 3x 3,3y 3 with critical points at ( 1, 1), (1,1), (1, 1), and ( 1,1). Use the Hessian determinant to identify maxima, minima, and saddle points: f 2 x xy 6x 0 D(x, y) Hf(x, y) 36xy 2 2 f f 0 6y 2 yx y Test (1, 1) : D(1, 1) 36 0 2 2 f D(a,b) f (a,b) Conclusion xx (a,b,f(a,b)) is a local maximum. n / a (a,b,f(a,b)) is a local minimum. (a,b,f(a,b)) is a saddle point. 0 n / a The test is inconclusive. Hence, (1, 1,f(1, Created by Christopher Grattoni. 1)) All rights is reserved. a saddle point!

Example 10: The Second Partial Derivative Test to Identify Maximums and Minimums 3 3 2 2 Let f(x, y) x y 3x 3y. We previously found f 3x 3,3y 3 with critical points at ( 1, 1), (1,1), (1, 1), and ( 1,1). Use the Hessian determinant to identify maxima, minima, and saddle points: f 2 x xy 6x 0 D(x, y) Hf(x, y) 36xy 2 2 f f 0 6y 2 yx y Test ( 1,1) : D( 1,1) 36 0 2 2 f D(a,b) f (a,b) Conclusion xx (a,b,f(a,b)) is a local maximum. n / a (a,b,f(a,b)) is a local minimum. (a,b,f(a,b)) is a saddle point. 0 n / a The test is inconclusive. Hence, ( 1,1,f( Created by Christopher 1,1)) Grattoni. All rights is reserved. a saddle point!

Example 10: The Second Partial Derivative Test to Identify Maximums and Minimums 3 3 2 2 Let f(x, y) x y 3x 3y. We previously found f 3x 3,3y 3. Find all local maxima/minima on this surface. Summary: Local Maximum: ( 1, 1) Local Minimum: (1,1) Saddle Poi nts: (1, 1) a nd ( 1,1)

Example 11: Level Surfaces and Entering the Fourth Dimension 3 3 2 2 Let f(x, y) x y 3x 3y. We previously found f 3x 3,3y 3 with a local maximum at ( 1, 1) and a local maximum at (1,1). One Pretend idea: if your had friend a 2-dimensional likes to swim, friend you (Pac-Man?) could ask who him/her had to never swim visited on the contour third dimension. plot. TheHow local would max you would explain be where it to him? the water is hottest and the minimum would be the coldest. You've helped your friend experience the third dimension as temperature rather than a spatial dimension. Swimming to the level curves towards the max leads you to the greatest initial temperature increase.

Example 11: Level Surfaces and Entering the Fourth Dimension 2 2 2 Let f(x,y,z) (x 1) (y 2) z. We can plot level surfaces of this 2 2 2 4D-surface by letting k (x 1) (y 2) z for various values of k. Task: Look at the level surfaces in Mathematica by clicking the slider (don't drag it though) We could experience 4D like the swimmer experienced 3D. We could swim in 3D space and experience the fourth dimension as temperature. The gradient vectors tell us the path to the greatest initial temperature increase from a given point in space.

Example 11: A Different Analogy for the Fourth Dimension? 4 2 4 2 Let T(x,y,z) 8(x x y y ) z 2. We can plot level surfaces of this 4 4 2 4 2 D-surface by letting k 8 z 2 for various values of k This time, treat T(x,y,z) as a function that takes a position in space (x,y,z) and outputs the temperature at that point. So our swimmer can experience an extra dimension as the temperature at that particular point. Level surfaces can be found by graphing various T(x, y,z) k. Task: Look at this surface in Mathematica. Click (don't drag) around the slider and think about how a 3D swimmer would experience this diving tank. (x x y y ).

Example 12: A Different Analogy for the Fourth Dimension? 4 2 4 2 Let T(x,y,z) 8(x x y y ) z 2. We can plot level surfaces of this 4 4 2 4 2 D-surface by letting k 8 z 2 for various values of k Discussion Questions: 1) Where should the swimmer go for the coolest locations? 2) The hottest? 3) What does a level surface mean in the context of this scenario? 4) Given the particular level surface the swimmer is on, in what direction does he swim for the greatest initial temperature increase? (x x y y ).

Final Thoughts: f(x,y) versus f(x,y,z) z = f(x,y) w = f(x,y,z) Graph Surface in 3-D (Hyper)Surface in 4-D Can t truly graph it! Level Sets Level Curve k = f(x,y) Level Surface k = f(x,y,z) Gradient Vectors 2D Vectors f f f, x y (2D vectors that are to the level curves, NOT the 3D surface itself) 3D Vectors f f f f,, x y z (3D vectors that are to the level surface, NOT the 4D surface itself)

Up Next Read about LaGrange multipliers!