Recitation 3: More Applications of the Derivative

Similar documents
Recitation 3: Applications of the Derivative. 1 Higher-Order Derivatives and their Applications

A REVIEW OF CALCULUS CONCEPTS FOR JDEP 384H. Thomas Shores Department of Mathematics University of Nebraska Spring 2007

Unit #9 : Definite Integral Properties; Fundamental Theorem of Calculus

Properties of Integrals, Indefinite Integrals. Goals: Definition of the Definite Integral Integral Calculations using Antiderivatives

n f(x i ) x. i=1 In section 4.2, we defined the definite integral of f from x = a to x = b as n f(x i ) x; f(x) dx = lim i=1

Quadratic Forms. Quadratic Forms

7.2 The Definite Integral

Overview of Calculus I

Line and Surface Integrals: An Intuitive Understanding

The Regulated and Riemann Integrals

Riemann Sums and Riemann Integrals

Riemann Sums and Riemann Integrals

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

Main topics for the First Midterm

First midterm topics Second midterm topics End of quarter topics. Math 3B Review. Steve. 18 March 2009

Abstract inner product spaces

UNIFORM CONVERGENCE. Contents 1. Uniform Convergence 1 2. Properties of uniform convergence 3

Chapter 0. What is the Lebesgue integral about?

Improper Integrals. Type I Improper Integrals How do we evaluate an integral such as

Chapters 4 & 5 Integrals & Applications

Math 8 Winter 2015 Applications of Integration

The First Fundamental Theorem of Calculus. If f(x) is continuous on [a, b] and F (x) is any antiderivative. f(x) dx = F (b) F (a).

a < a+ x < a+2 x < < a+n x = b, n A i n f(x i ) x. i=1 i=1

Lecture 1. Functional series. Pointwise and uniform convergence.

Lecture 3. Limits of Functions and Continuity

f(x) dx, If one of these two conditions is not met, we call the integral improper. Our usual definition for the value for the definite integral

Riemann is the Mann! (But Lebesgue may besgue to differ.)

Definition of Continuity: The function f(x) is continuous at x = a if f(a) exists and lim

Lecture 2: Fields, Formally

Definite integral. Mathematics FRDIS MENDELU

Review of Calculus, cont d

Partial Derivatives. Limits. For a single variable function f (x), the limit lim

ODE: Existence and Uniqueness of a Solution

Infinite Geometric Series

Definite integral. Mathematics FRDIS MENDELU. Simona Fišnarová (Mendel University) Definite integral MENDELU 1 / 30

Improper Integrals, and Differential Equations

ACCESS TO SCIENCE, ENGINEERING AND AGRICULTURE: MATHEMATICS 1 MATH00030 SEMESTER /2019

Math 1B, lecture 4: Error bounds for numerical methods

MAA 4212 Improper Integrals

Goals: Determine how to calculate the area described by a function. Define the definite integral. Explore the relationship between the definite

Stuff You Need to Know From Calculus

Lecture 3: Equivalence Relations

Section 14.3 Arc Length and Curvature

New Expansion and Infinite Series

Riemann Integrals and the Fundamental Theorem of Calculus

4.4 Areas, Integrals and Antiderivatives

1 Probability Density Functions

AP Calculus Multiple Choice: BC Edition Solutions

Physics 116C Solution of inhomogeneous ordinary differential equations using Green s functions

Math 520 Final Exam Topic Outline Sections 1 3 (Xiao/Dumas/Liaw) Spring 2008

MORE FUNCTION GRAPHING; OPTIMIZATION. (Last edited October 28, 2013 at 11:09pm.)

Review of basic calculus

MATH 144: Business Calculus Final Review

W. We shall do so one by one, starting with I 1, and we shall do it greedily, trying

Math 231E, Lecture 33. Parametric Calculus

Week 10: Line Integrals

20 MATHEMATICS POLYNOMIALS

Integrals - Motivation

Section 17.2 Line Integrals

CS667 Lecture 6: Monte Carlo Integration 02/10/05

Lecture 1: Introduction to integration theory and bounded variation

MATH , Calculus 2, Fall 2018

and that at t = 0 the object is at position 5. Find the position of the object at t = 2.

Calculus I-II Review Sheet

x = b a n x 2 e x dx. cdx = c(b a), where c is any constant. a b

Section 6.1 INTRO to LAPLACE TRANSFORMS

Advanced Calculus: MATH 410 Notes on Integrals and Integrability Professor David Levermore 17 October 2004

CS 188 Introduction to Artificial Intelligence Fall 2018 Note 7

Chapter 14. Matrix Representations of Linear Transformations

Best Approximation. Chapter The General Case

SYDE 112, LECTURES 3 & 4: The Fundamental Theorem of Calculus

Best Approximation in the 2-norm

The final exam will take place on Friday May 11th from 8am 11am in Evans room 60.

Interpreting Integrals and the Fundamental Theorem

7.2 Riemann Integrable Functions

different methods (left endpoint, right endpoint, midpoint, trapezoid, Simpson s).

Calculus II: Integrations and Series

We partition C into n small arcs by forming a partition of [a, b] by picking s i as follows: a = s 0 < s 1 < < s n = b.

Numerical Analysis: Trapezoidal and Simpson s Rule

Objectives. Materials

P 3 (x) = f(0) + f (0)x + f (0) 2. x 2 + f (0) . In the problem set, you are asked to show, in general, the n th order term is a n = f (n) (0)

MA123, Chapter 10: Formulas for integrals: integrals, antiderivatives, and the Fundamental Theorem of Calculus (pp.

1 The fundamental theorems of calculus.

Chapter 6 Notes, Larson/Hostetler 3e

How can we approximate the area of a region in the plane? What is an interpretation of the area under the graph of a velocity function?

MA 124 January 18, Derivatives are. Integrals are.

Review of Riemann Integral

8 Laplace s Method and Local Limit Theorems

Math 113 Exam 2 Practice

The Wave Equation I. MA 436 Kurt Bryan

More on automata. Michael George. March 24 April 7, 2014

Heat flux and total heat

Introduction to the Calculus of Variations

Math Calculus with Analytic Geometry II

5: The Definite Integral

Lecture 19: Continuous Least Squares Approximation

Chapter 5 : Continuous Random Variables

1. Gauss-Jacobi quadrature and Legendre polynomials. p(t)w(t)dt, p {p(x 0 ),...p(x n )} p(t)w(t)dt = w k p(x k ),

Duality # Second iteration for HW problem. Recall our LP example problem we have been working on, in equality form, is given below.

(0.0)(0.1)+(0.3)(0.1)+(0.6)(0.1)+ +(2.7)(0.1) = 1.35

Transcription:

Mth 1c TA: Pdric Brtlett Recittion 3: More Applictions of the Derivtive Week 3 Cltech 2012 1 Rndom Question Question 1 A grph consists of the following: A set V of vertices. A set E of edges where ech edge consists of distinct unordered pir of distinct vertices. 1 5 2 For exmple the pentgon 4 3 cn be thought of s the grph with V = {1 2 3 4 5} E = { {1 2} {2 3} {3 4} {4 5} {5 1} }. Given grph G nd vertex v V we cn define the degree of v to be the number of edges tht hve v s one of their endpoints. For exmple every vertex in the pentgon bove hs degree 2 s ech vertex is the endpoint for precisely two edges. A tringle decomposition of grph G is wy to brek its edge set E prt into disjoint tringles. It s not too hrd to show tht if tringle decomposition exists then every vertex needs to hve even degree: this is becuse ech of tringle s vertices hs precisely two edges from the tringle hitting it so if we ve broken ll of our edges into tringles every vertex hs degree equl to 2 (the number of tringles tht use tht vertex) which is even. The number of edges in E hs to be multiple of 3 becuse ech tringle uses three edges nd they re ll disjoint. Suppose tht G is grph on n vertices 1. (Known not too hrd:) Show tht if the degree of every vertex is n 1 (i.e. every vertex is connected to every other vertex) these conditions re lso sufficient: i.e. if ll of the degrees re even nd the number of edges is multiple of 3 tringle decomposition exists. 2. (Known firly hrd:) Show tht if the degree of every vertex is ( 1 10 24) n i.e. the vertices re connected to lmost every other vertex these conditions re still sufficient. 1

3. (Current reserch results I m working on) Show tht if the degree of every vertex is ( 1 10 4) n then these conditions re still sufficient. 4. (Conjecture probbly wildly difficult) Show tht if the degree of every vertex is 3 4 n then these conditions re still sufficient. 2 Directionl Derivtives In our lst clss we spent lot of time working on the ide of derivtive in R n. Specificlly we introduced the ide of prtil derivtives used these to construct the totl derivtive ( liner pproximtion to our function t point which ws similr to the liner pproximtion ide tht we hd for the derivtive in R 1 ) nd discussed some of the geometric interprettions nd pplictions of these ides. However these techniques were not the only wys to tlk bout the derivtive! Another different wy is to generlize the ide of slope from R 1 vi the concept of the directionl derivtive: we discuss how to do this below. In R 1 the derivtive of function f : R R t some point is the slope of the grph f(x) = y t the point ( f()): essentilly we re mesuring the chnge in f(x) s we move long the x-xis. However for functions R n R we re no longer restricted to just the x-xis; insted we cn move long ny vector in R n! This leds us to define the directionl derivtive of function f : R n R t some point long some direction v s the slope of f t the point s mesured in the direction v. More formlly: Definition. The directionl derivtive of function f : R n R t some point long some direction v is the derivtive f (; v) := d dt (f( + t v). To illustrte wht s going on here consider the following exmple: Question 2 Consider the function f(x y) = x 2 + y 2. Wht is the directionl derivtive of this function t the point (0 1) in the direction (0 1)? Solution. First to get good ide of wht s going on in this problem we grph our function: z y x f (;v) v 2

Visully if we look t the point (0 1) nd its slope in the direction (0 1) we cn see tht it should be 1 just by exmintion. So let s clculte nd see if our visul intuition mtches our mthemticl definition: f ((0 1); (0 1)) = d dt (f((0 1) + t (0 1))) = d dt (f(0 t 1)) = d dt ( 0 2 + (t 1) 2 ) = d dt ( t 1 ) = d dt ( ( (t 1))) [ becuse ner 0 (t 1) is negtive] = d dt (t 1) = 1 = 1. t=0 This mtches our visul picture nd our intuition. The following result cn mke clculting the directionl derivtive esier in the cse tht we lredy know the grdient of function: Theorem 3 Suppose tht f is differentible t some point : one notble cse where this hppens is when ll of f s prtil derivtives re continuous t s we mentioned lst clss. Then the directionl derivtive of function f : R n R t some point long some direction v is given by the dot product of the grdient of f t with v/ v. In other words f v (; v) := f v. To illustrte the use of this theorem return to our cone problem from erlier. There we hd f(x y) = x 2 + y 2 ; thus if we hold y constnt we cn see tht Similrly by holding y constnt we hve f x = 2x 2 x 2 + y = x 2 x 2 + y. 2 f y = y x 2 + y 2. 3

Therefore we know tht the directionl derivtive of f t (0 1) in the direction (0 1) is given by ( ) ( ) f f (0) (0 1) (0 1) (0 1) = x y 0 2 + ( 1) ( 1) (0 1) 2 0 2 + ( 1) 2 = (0 1) (0 1) = 1 which mtches our erlier nswer. 3 Higher-Order Derivtives nd their Applictions Another thing we could wnt to do with the derivtive motivted by wht we were ble to do in R 1 is the concept of higher-order derivtives. These re reltively esy to define for prtil derivtives: Definition. Given function f : R n R we cn define its second-order prtil derivtives s the following: = ( ) f. x i x j x i x j In other words the second-order prtil derivtives re simply ll of the functions you cn get by tking two consecutive prtil derivtives of your function f. A useful theorem for clculting these prtil derivtives is the following: Theorem 4 A function f : R n R is clled C 2 t some point if ll of its second-order prtil derivtives re continuous t tht point. If function is C 2 then the order in which second-order prtil derivtives re clculted doesn t mtter: i.e. for ny i j. x i x j = x j x i It bers noting tht if the conditions of this theorem re not met then the order for computing second-order prtil derivtives my ctully mtter! One such exmple is the function { x 3 y xy 3 (x y) (0 0) f(x y) = x 2 +y 2 0 (x y) = (0 0) At (0 0) you cn clculte tht xy = 1 1 = yx : result tht occurs becuse the second-order prtils of this function re not continuous. 4

However the interesting spects of higher-order prtil derivtives re not relly in their clcultion; rther the pplictions of higher-order prtil derivtives re the things worth studying. In R for exmple we could turn the second derivtive of function into lot of informtion bout tht function: in prticulr we could use this second derivtive to determine whether given criticl point ws locl minim or mxim whether function is concve up or down t given point nd wht the second-order Tylor pproximtion to tht function ws t point. Cn we do the sme for functions from R n to R? As it turns out the nswer is yes! The tool with which we do this is clled the Hessin which we define here: Definition. The Hessin of function f : R n R t some point H(f) (h) is the following function from R n to R: H(f) (h) = 1 x 2 (h 1 x 1 ()... h x 1 x n () 1 1 h 2... h n ).... h 2. x nx 1 ().... x nx n () h n The min useful property of the Hessin is the following: Theorem 5 Let f : R n R be function with well-defined second-order prtils t some point nd H = H(f) be its Hessin. Pick ny two co ordintes x i x j in R n : then x i x j () = 2 H h i h j. In other words H s second-order prtil derivtive re precisely the second-order prtil derivtives of f t! So H is bsiclly function designed to hve the sme second-order prtils s f t. One quick thing this theorem suggests is tht we could use H(f) to crete secondorder pproximtion to f t in similr fshion to how we used the derivtive to crete liner (i.e. first-order) pproximtion to f. We define this below: Theorem 6 If f : R n R is function with continuous second-order prtils we define the second-order Tylor pproximtion to f t s the function T 2 (f) ( + h) = f() + ( f)() h + H(f) (h). You cn think of f() s the constnt or zero-th order prt ( f)() h s the liner prt nd H(f) (h) s the second-order prt of this pproximtion. To illustrte how this process ctully cretes pretty decent pproximtion to f we clculte n exmple: 5

Exmple. Clculte the second-order Tylor pproximtion to the function f(x y) = e xy t the origin. Answer. Clculting the second derivtives of f is pretty strightforwrd: f x = yexy f y = xexy x 2 = y2 e xy y 2 = x2 e xy xy = xyexy + e xy = yx. If we evlute these prtils t 0 nd plug them into the definition bove for T 2 (f) (00) we get T 2 (f) (00) ((0 0) + (h 1 h 2 )) = f(0 0) + ( f)(0 0) (h 1 h 2 ) + H(f) (00) (h 1 h 2 ) = 1 + (0 0) (h 1 h 2 ) + 1 ( ) ( ) 0 1 2 (h h1 1 h 2 ) 1 0 h 2 = 1 + 1 ( ) 2 (h h2 1 h 2 ) h 1 = 1 + 1 2 (2h 1h 2 ) = 1 + h 1 h 2. So t the origin the second-order Tylor pproximtion for f is just T 2 (f)(x y) = 1 + xy. The following grph with e xy in solid red nd T 2 in dshed blue shows tht it s ctully somewht decent pproximtion t (0 0): z y x 6

As well we cn use the second derivtives to serch for nd find locl minim nd mxim! We define these terms here: Definition. A point R n is clled locl mxim of function f : R n R iff there is some smll vlue r such tht for ny point x in B (r) not equl to we hve f(x) f(). A similr definition holds for locl minim. So: how cn we use the derivtive to find such locl mxim? Well it s cler tht (if our function is differentible in neighborhood round this point) tht no mtter how we move to leve this point our function must not increse in other words for ny direction v R n the directionl derivtive f ( v) must be 0. But this mens tht in fct ll of the directionl derivtives must be equl to 0! becuse if f ( v) ws < 0 then f ( v) would be > 0. This motivtes the following definitions nd bsiclly proves the following theorem: Definition. A point is clled sttionry point of some function f : R n R iff (f) = (0... 0). A point is clled criticl point if it is sttionry point or f is not differentible in ny neighborhood of. Theorem 7 A function f : R n R ttins its locl mxim nd minim only t criticl points. However it bers noting tht not every criticl or sttionry point is locl mxim or minim! A trivil exmple would be the function f(x y) = x 2 y 2 : the origin is sttionry point yet neither locl minim or mxim (s f(0 ɛ) < 0 < f(ɛ 0) nd thus there re positive nd negtive vlues of f ttined in ny bll round the origin where it is 0.) How cn we tell which sttionry points do wht? Well in one-vrible clculus we used the ide of the second derivtive to determine wht ws going on! In specific we knew tht if the second derivtive of function f t some point ws negtive then tiny increses in our vrible t tht point would cuse the first derivtive to decrese nd tiny decreses in our vrible t tht point would cuse the negtive of the first derivtive to increse i.e. cuse the first derivtive to decrese nd therefore mke the function itself decrese! Therefore the second derivtive being negtive t sttionry point implied tht tht point ws locl mxim. In higher dimensions things re tricker t given point we no longer hve this ide of single second derivtive but insted hve mny different second derivtives like xy () nd (). Yet we cn still use the sme ides s before to figure out wht s going z 2 on! In prticulr in one dimension we sid tht we wnted tiny positive chnges of our vribles to mke the first functions decrese. In other words given ny of the prtils f x i we wnt ny positive chnges in the direction of this prtil to mke our function decrese i.e. we wnt the directionl derivtive of f x i to be negtive in ny direction v where ll of the coördintes of v re positive. (Positivity here stems from the sme reson tht in one dimension we hve tht the first derivtive is incresing for ll of the points to the left of mxim nd decresing for ll of the points to the right of mxim.) 7

So: this condition if we write it out is just sking tht for every i nd nonzero v tht ( 2 ) f () ()... () (v x 1 x i x 2 x i x n x 1 2 v2 2... vn) 2 i is negtive. If you choose to write this out s mtrix this ctully becomes the clim tht for ny v 0 we hve x v T 1 x 1 ()... x 1 x n ()..... v < 0. x nx 1 ()... x nx n () liner lgebr you my hopefully remember tht ny mtrix stisfying this condition is clled being negtive-definite nd is equivlent to hving ll n of your eigenvlues existing nd being negtive. Similrly if we were looking for locl minim we would be sking tht the bove mtrix product is lwys positive: i.e. tht the mtrix is positive-definite which is equivlent to ll of its eigenvlues being positive. But we ve seen this construction before! In prticulr this mtrix-product thing bove is just the Hessin! Bsed on these observtions we mke the following definitions nd observtions: Definition. The Hessin H(f) of function f t some point is clled positive-definite if for ll h 0 H(f) (h) > 0 nd similrly tht the Hessin is negtive-definite if for ll h 0 H(f) (h) < 0. Theorem 8 The Hessin H(f) is positive-definite if nd only if the mtrix x 1 x 1 ()... x 1 x n ()..... x nx 1 ()... x nx n () is positive-definite. (The sme reltion holds for being negtive-definite.) Theorem 9 A function f : R n R hs locl mxim t sttionry point if ll of its second-order prtils exist nd re continuous in neighborhood of nd the Hesssin of f is negtive-definite t. Similrly it hs locl minim if the Hessin is positive-definite t. If the Hessin tkes on both positive nd negtive vlues there it s sddle point: there re directions you cn trvel where your function increse nd others where it will decrese. Finlly if the Hessin is identiclly 0 you hve no informtion s to wht your function my be up to: you could be in ny of the three bove cses. A quick exmple to illustrte how this gets used: 8

Exmple. For f(x y) = x 2 + y 2 g(x y) = x 2 y 2 nd h(x y) = x 2 y 2 find locl minim nd mxim. Solution. First by tking prtils it is cler tht the only point t which the grdient of these functions is (0 0) is the origin. There we hve tht H(f) = (00) [ 2 0 0 2 ] H(g) = (00) [ 2 0 0 2 ] H(h) = (00) [ 2 0 0 2 nd thus tht f is positive-definite t (00) g is negtive-definite t (00) nd h is neither t (00) by exmining the eigenvlues. Thus f hs locl minim t (0 0) g hs locl mxim t (00) nd h hs sddle point t (00). ] 9