Multi Variable Calculus

Similar documents
Multivariate Calculus Solution 1

Constrained Optimization

Dynamical Systems. August 13, 2013

Sometimes the domains X and Z will be the same, so this might be written:

Chain Rule. MATH 311, Calculus III. J. Robert Buchanan. Spring Department of Mathematics

Contents. 2 Partial Derivatives. 2.1 Limits and Continuity. Calculus III (part 2): Partial Derivatives (by Evan Dummit, 2017, v. 2.

Mathematical Economics: Lecture 9

Math 1270 Honors ODE I Fall, 2008 Class notes # 14. x 0 = F (x; y) y 0 = G (x; y) u 0 = au + bv = cu + dv

Basic Proof Techniques

MATH The Chain Rule Fall 2016 A vector function of a vector variable is a function F: R n R m. In practice, if x 1, x n is the input,

Introduction to Real Analysis

Review for the Final Exam

ECON 186 Class Notes: Derivatives and Differentials

g(2, 1) = cos(2π) + 1 = = 9

Multivariable Calculus Midterm 2 Solutions John Ross

[A + 1 ] + (1 ) v: : (b) Show: the derivative of T at v = v 0 < 0 is: = (v 0 ) (1 ) ; [A + 1 ]

Math 67. Rumbos Fall Solutions to Review Problems for Final Exam. (a) Use the triangle inequality to derive the inequality

25. Chain Rule. Now, f is a function of t only. Expand by multiplication:

Calculus I Review Solutions

2015 Math Camp Calculus Exam Solution

Math 234 Exam 3 Review Sheet

g(t) = f(x 1 (t),..., x n (t)).

MATH 3A FINAL REVIEW

Comparative Statics. Autumn 2018

f(z)dz = 0. P dx + Qdy = D u dx v dy + i u dy + v dx. dxdy + i x = v

Multiple Integrals. Introduction and Double Integrals Over Rectangular Regions. Philippe B. Laval. Spring 2012 KSU

REVIEW OF DIFFERENTIAL CALCULUS

Major Ideas in Calc 3 / Exam Review Topics

Partial Differentiation

Instructions: No books. No notes. Non-graphing calculators only. You are encouraged, although not required, to show your work.

Math 265H: Calculus III Practice Midterm II: Fall 2014

Marginal Functions and Approximation

Dr. Allen Back. Sep. 10, 2014

MA 510 ASSIGNMENT SHEET Spring 2009 Text: Vector Calculus, J. Marsden and A. Tromba, fifth edition

The Derivative. Appendix B. B.1 The Derivative of f. Mappings from IR to IR

Note: Please use the actual date you accessed this material in your citation.

MATH2111 Higher Several Variable Calculus Integration

Partial Derivatives Formulas. KristaKingMath.com

Integrals. D. DeTurck. January 1, University of Pennsylvania. D. DeTurck Math A: Integrals 1 / 61

HOMEWORK 7 SOLUTIONS

Math 425 Notes 9. We state a rough version of the fundamental theorem of calculus. Almost all calculations involving integrals lead back to this.

Optimization and Calculus

Solutions of Math 53 Midterm Exam I

Multiple Integrals. Introduction and Double Integrals Over Rectangular Regions. Philippe B. Laval KSU. Today

Solution. This is a routine application of the chain rule.

Review for the First Midterm Exam

Lecture 2: Review of Prerequisites. Table of contents

Solutions to Homework 11

CHAPTER 6 VECTOR CALCULUS. We ve spent a lot of time so far just looking at all the different ways you can graph

14.05: Section Handout #1 Solow Model

4. Be able to set up and solve an integral using a change of variables. 5. Might be useful to remember the transformation formula for rotations.

CURRENT MATERIAL: Vector Calculus.

MA102: Multivariable Calculus

September Math Course: First Order Derivative

Math 212-Lecture 8. The chain rule with one independent variable

Lecture Notes for Chapter 12

MATH 32A: MIDTERM 2 REVIEW. sin 2 u du z(t) = sin 2 t + cos 2 2

Calculus for the Life Sciences II Assignment 6 solutions. f(x, y) = 3π 3 cos 2x + 2 sin 3y

THE NATIONAL UNIVERSITY OF IRELAND, CORK COLÁISTE NA hollscoile, CORCAIGH UNIVERSITY COLLEGE, CORK. Summer Examination 2009.

Tvestlanka Karagyozova University of Connecticut

(x + 3)(x 1) lim(x + 3) = 4. lim. (x 2)( x ) = (x 2)(x + 2) x + 2 x = 4. dt (t2 + 1) = 1 2 (t2 + 1) 1 t. f(x) = lim 3x = 6,

Homework Solutions:

3. On the grid below, sketch and label graphs of the following functions: y = sin x, y = cos x, and y = sin(x π/2). π/2 π 3π/2 2π 5π/2

Optimization Over Time

ENGI Partial Differentiation Page y f x

MATH 135 Calculus 1 Solutions/Answers for Exam 3 Practice Problems November 18, 2016

For those of you who are taking Calculus AB concurrently with AP Physics, I have developed a

Sample Questions, Exam 1 Math 244 Spring 2007

Electromagnetic Theory Prof. D. K. Ghosh Department of Physics Indian Institute of Technology, Bombay

Tangent Planes, Linear Approximations and Differentiability

(x 3)(x + 5) = (x 3)(x 1) = x + 5. sin 2 x e ax bx 1 = 1 2. lim

1 Functions of Several Variables Some Examples Level Curves / Contours Functions of More Variables... 6

Unit #16 : Differential Equations

1 The pendulum equation

Problem Solving 1: The Mathematics of 8.02 Part I. Coordinate Systems

Math 265 (Butler) Practice Midterm III B (Solutions)

Announcements. Topics: Homework:

Math 10C Practice Final Solutions

Math 229 Mock Final Exam Solution

Derivatives of Functions from R n to R m

LECTURE NOTES ON MICROECONOMICS

Differentiation - Quick Review From Calculus

Calculus I Announcements

Calculus Review Session. Brian Prest Duke University Nicholas School of the Environment August 18, 2017

f( x) f( y). Functions which are not one-to-one are often called many-to-one. Take the domain and the range to both be all the real numbers:

This exam will be over material covered in class from Monday 14 February through Tuesday 8 March, corresponding to sections in the text.

Math 222 Spring 2013 Exam 3 Review Problem Answers

Note: Every graph is a level set (why?). But not every level set is a graph. Graphs must pass the vertical line test. (Level sets may or may not.

Section 2.1: The Derivative and the Tangent Line Problem Goals for this Section:

Substitutions and by Parts, Area Between Curves. Goals: The Method of Substitution Areas Integration by Parts

FINAL EXAM STUDY GUIDE

Linear Algebra: Linear Systems and Matrices - Quadratic Forms and Deniteness - Eigenvalues and Markov Chains

Math 210, Final Exam, Practice Fall 2009 Problem 1 Solution AB AC AB. cosθ = AB BC AB (0)(1)+( 4)( 2)+(3)(2)

Math Review ECON 300: Spring 2014 Benjamin A. Jones MATH/CALCULUS REVIEW

x 1. x n i + x 2 j (x 1, x 2, x 3 ) = x 1 j + x 3

D. Correct! This is the correct answer. It is found by dy/dx = (dy/dt)/(dx/dt).

Predator - Prey Model Trajectories and the nonlinear conservation law

Rice University. Answer Key to Mid-Semester Examination Fall ECON 501: Advanced Microeconomic Theory. Part A

Unit #10 : Graphs of Antiderivatives, Substitution Integrals

Final Exam Review Exercise Set A, Math 1551, Fall 2017

Transcription:

Multi Variable Calculus Joshua Wilde, revised by Isabel Tecu, Takeshi Suzuki and María José Boccardi August 3, 03 Functions from R n to R m So far we have looked at functions that map one number to another number, ie that map from R to R Often, however, we encounter functions of more than one variable For example, a utility function takes as input consumption of good, x and consumption of good, x, and assigns to them a utility level: u = u(x, x In this case, the function maps from R ( R + strictly speaking to R In general, a function that takes n input variables and maps them to one output variable is said to map from R n to R On the other hand, there are also functions that take one input variable and map it to several output variables For example, a function that predicts the state of the economy takes time t as input variable and assigns to it a level of GDP and of the capital stock: E(t = (Y (t, K(t In this case, the function maps from R to R In general, a function that takes one input variables and maps it to m output variables is said to map from R to R m Note that a function f : R R m is really nothing else than an array of m functions, each mapping from R to R: f(x = (f (x, f (x,, f m (x Of course a function can take multiple input variables and multiple output variables For example, a production function takes capital K, labor L and intermediate product x as input and assigns to it the level of nal good, y, and nal good, y : (y, y = f(k, L, x In this case, the function maps from R 3 to R In general, a function that takes n input variables and maps them to m output variables is said to map from R n to R m Note that again we can think of a function f : R n R m as an array of m functions, each mapping from R n to R: f(x, x,, x n = (f (x, x,, x n, f (x, x,, x n,, f m (x, x,, x n It is hard to visualize functions in higher dimensions graphically One way to picture a function is to look at its level sets Consider a function f(x with x = (x,, x n A level set is the set of all x's such that f(x = c, where c is some specied constant For example, indierence curves are level sets, as are isoquant curves Derivatives of a Single Function of Several Variables Partial Derivatives Let f be a function of many variables, eg f(x = f(x, x,, x n The partial derivative of f with respect to x, denoted f x or f x, is the function obtained by dierentiating f with respect to x and treating all other variables as constants Rigorously, this is f x (x, x,, x n = lim h 0 f(x + h, x,, x n f(x, x,, x n h

Multivariate Calculus Interpretation: x f(x is the change in the value of the function if x changes innitesimally It is the slope of the tangent line to the graph of f at point x in the x -direction Let f(x, y = x y 3 Then f x = xy3 The Total Derivative or Gradient The total derivative is merely a vector containing all of the partial derivatives of a function, ( f Df(x, x,, x n =, f, f x x x n The transpose of this vector, evaluated at a specic point a = (x, x, x n is called the gradient of f at a, or f(a The vector f(a points into the direction in which f increases most rapidly from Interpretation: The gradient is a "list" of the changes in the value of the function if each variable separately changes innitesimally: The rst element tells us how much f changes if x changes a tiny bit, the second element tells us how much f changes if x changes a tiny bit etc It gives the slopes of the tangent lines to the graph of f at point x in each of the coordinate directions The vector f(a also happens to point into the direction in which f increases most rapidly from point a, ie f(a gives the direction of steepest ascent Let f(x, y = x y 3, and a = (, Then and 3 The Total Dierential ( xy 3 f = 3x y f(a = ( 6 The total dierential of a function f(x, x,, x n at a point a = (x, x,, x n is df = f x (adx + f x (adx + + f x n (adx n Interpretation: The interpretation of the total dierential is easy to see by looking at a tangent plane to the function f(x, y Let dx and dy be thought of as small deviations from the points x and y respectively The total dierential states that the change in the value of the function f from this small deviation from (x, y to (x + dx, y + dy is the slope of the plane at (x, y in the x direction times the deviation dx, plus the slope of the plane at (x, y in the y direction times the deviation dy Given a utility function of the form U(C, N = ln(c + ln(n, nd the approximate change in utility by consuming an additional 0 units of C and less 0 units of N Assume the individual originally was consuming 05 units of each

Math Camp 3 du C dc + N dn = 05 0 + 05 ( 0 = 0 Note that the total dierential is only valid with equality as (dx, dy (0, 0 Otherwise it is only an approximation 4 Second order partial derivatives The second order partial derivative is just a partial derivative of a partial derivative The derivative with respect to x i of the derivative with respect to x j of the function f, or x i ( f x j, is denoted by f x i x j Let f(x, y = x y 3 Then Notice that f x y = f y x The Hessian Matrix f x = y3 f y = 6x y f x y = 6xy f y x = 6xy The Hessian is merely a matrix of the second order partial derivatives of a function function f(x,, f n Its Hessian is given by f x f x x f x x n f x x f x f x x n f x n x f x n x f x n Consider a Note that a Hessian matrix of f is always a square symmetric matrix if f C by Young's theorem (p330 in SB, Clairaut's theorem, or Schwarz's theorem Let f(x, y = x y 3 Then the Hessian is Problem: Find the Hessian of x + x + e x3 ( y 3 6xy 6xy 6x y

4 Multivariate Calculus Check the second order partial derivatives of { xy(x y f(x, y = x +y for (x, y (0, 0 0 for (x, y = (0, 0 at (0, 0 5 Chain Rule Let x(t = (x (t,, x n (t Also, let f be some function of x(t Then df f (x(t = dx dt x dt + + f dx n x n dt Let K (capital stock and L (labor stock be functions of time, such that dk dt = sy δk and dl dt = nl If Y = K α L α, what is dy dt? dy dt = Y K dk dt + Y L dl dt ( α ( α dy L K dt = α (sy δk + ( α nl K L { [ ( } α dy L dt = α s δ] + ( α n Y K Problem: (The Solow Growth Model Let k = K AL, n = dl/dt L, g = da/dt A, dk dt = sy δk, and f(k = Y dk AL Find dt 6 Directional Derivatives Assume a function f(x, where x = (x,, x n is a point in R n Now let there be a vector v = (v,, v n, and a parameter t The point of a directional derivative is to see how the value of the function f(x changes as we move along the vector v from the original point x A line can be drawn from x along v in R n by constructing a point x + t v, and allowing t to vary Dene a new function g(t = f(x + t v = f(x + t v,, x n + t v n, and derivate it with respect to t, dg dt = f x (x + t v,, x n + t v n v + + f x n (x + t v,, x n + t v n v n Since we are interested in the change of f at the original point x, we let t = 0 to get dg f (0 = (x,, x n v + + f (x,, x n v n = [ f(x] v dt x x n This is the directional derivative It is merely the dot product of the total derivative at x with the vector v Other notiations are Df x v or f v (x 3 Derivatives of Multiple Functions of Several Variables Instead of assuming we have one function f, say we now have m equations which are each a function of n variables: y = f (x,, x n

Math Camp 5 y m = f m (x,, x n As noted above, we can denote this as a single function f which is a function from R n to R m (Why? Because we can think of the system of equations as a box into which we throw n inputs (the x's and get m outputs (the y's Recall that the total derivative of any function f is Df = ( f x f x n How do we interpret f x? Since f is actually m functions, we say that f x = f x f m x Therefore, Df is now an n m matrix called the Jacobian matrix Df(x = f where x is a particular value of x = (x,, x n Find the Jacobian of the following system: f x (x x n (x f m x (x f m x n (x W (X, Y = X Y V (X, Y = XY Notice that and DW = ( Y, X Y DV = (Y, X, so the Jacobian is ( X Y Y X Problem: Find the Jacobian of the following function F (Y, Y : R R X = Y Y, X = Y Y

6 Multivariate Calculus 4 Integration over Several Variables Let f be a function of several variables For simplicity we assume f to be a function of two variables, f : R R The integral ˆ b a f(x, ydx is simply computed by treating f(x, y as a function of x only, that is, y is treated as a constant Note that the result of the integration will be a function of y Evaluate 4 (x + ydx ˆ 4 (x + ydx = ( x + xy 4 = 6 + y 4 Double and Higher Order Integrals In order to evaluate the double integral it is helpful to rewrite the integral as ˆ b ˆ d ˆ b a c a c f(x, ydxdy (ˆ d f(x, ydx dy and evaluate the inside integral rst Then the outside integral can be evaluated to obtain the solution Evaluate ˆ ˆ 4 4 (x + ydxdy (x+ydxdy = ˆ (ˆ 4 (x + ydx dy = ˆ ( ( x + xy 4 dy = ˆ (6 + y dy = 6y+y = 9 Triple integrals (and higher order integrals are evaluated in the same manner as doubles; we rst integrate with respect to one variable and work our way back to lower order integrals ˆ b ˆ d ˆ f ˆ b (ˆ d (ˆ f f(x, y, zdxdydz = f(x, ydx dy dz a c e a c e 4 Order of Integration The limits of integration will only be scalar if we are integrating over a rectangle (or its equivalent in higher dimensions In many cases, the simplicity of the order of integration does not matter 4 Recall the double integral (x + ydxdy above which we evaluated with respect to x rst Now evaluate with respect to y rst ˆ 4 ˆ ˆ 4 (ˆ ˆ 4 ( (x + ydydx = (x + ydy dx = ( y + xy dy =

Math Camp 7 = ˆ 4 ( 3 + x dy = 3 y + y 4 = 3 + 6 = 9 However, we are integrating with respect to variables that are also in the limits of integration, then dierent orders of integration inuence the diculty of the problem To see this, consider the integral of f(x, y over the region R = { y, y x y } By drawing the area of integration, we can easily see that integrating with respect to x rst is much easier Notice that the region R is equivalent to the region S = { x, x y x} { x 4, y x} If I integrate with respect to y rst, I must split the integral into two parts, since the bounds of integration in the x direction change at x = Evaluate x x xy dydx with respect to y rst: ˆ ˆ x x xy dydx = ˆ Now evaluate with respect to x rst: ˆ ˆ x x = xy dydx = ˆ ˆ ˆ y ( y4 y dy + 43 Transformations d ( 3 xy3 x x dx = xy dxdy + ˆ 4 ˆ ˆ 4 ˆ y 7 3 x4 dx = 7 5 x5 = 7 5 (5 5 = 7 5 xy dxdy = ˆ ˆ 4 x y y dy + x y y dy = (y y4 8 dy = ( 0 y5 6 y3 + ( 3 y3 40 y5 4 = = 3 0 7 6 + 3 99 40 = 7 5 Consider the integral b f(x, y As we have seen previously, integrals are sometimes easier to a c evaluate when we substitute a variable u in for a function of x and y Consider the following integral: ˆ 3 ˆ x 0 (x + y(x y We can guess that making a substitution u = x + y and v = x y would make the integration a lot simpler However, there is more than meets the eye in making this transformation Not only will the limits of integration change, but we must also change the function itself beyond just making the substitution In general, say we are given f(x, y, a region of integration, and two transformation functions u(x, y and v(x, y In order to integrate using the transformation, we rst solve the system of transformation functions for x(u, v and y(u, v Then me must compute the Jacobian matrix ( x u y u and nd the absolute value of its determinant We will cover determinants later, but the absolute value of the determinant of this specic matrix is x u y v x v y u = J We then go back to the original equation f(x, y, plug in x(u, v and y(u, v to get a new equation g(u, v and multiply it by the Jacobian to get our new integrand ˆ ˆ g(u, v J dudv x v y v

8 Multivariate Calculus Finally, we must change the limits of integration This is done simply by looking at the possible values x and y took on, and then seeing what that would correspond to in u and v For example, if x, y (0, and u = xy and v = x y, we can see that u (0, and v (0, We then integrate over that region Note that this is the generalization of the "integration by substitution" technique discussed in the notes on single variable calculus In the single variable case, the determinant of the Jacobian is simply the derivative of the transformation function There is only one subtle dierence: In the multidimensional case we use the absolute value of the determinant, in the single variable case we use the determinant including its sign Transform 3 x 0 (x+y(x y dydx using u = x + y and v = x y Solving the system for x and y we get x = u+v, y = u v The Jacobian of this system is ( = Plugging this into the original equation, we have ˆ ˆ ( u+v + u v u+v ( u v dudv = ˆ ˆ uv dudv To nd the new limits of integration, we notice that there are three boundaries to the original integral: x 3, y 0, y x Substituting in for and x and y in each of these three, we get: u + v 3 u + v 6 u v 0 u v u v u + v v Plotting these three, we see that the area of integration in u, v space is now an isosceles triangle with corners at (,, (3, 3, and (4, We can then set up the orders of integration so the integral now reads ˆ 3 ˆ 6 v uv dudv This is hard to integrate, so we will leave it for the interested student to do at home v 44 Leibnitz's Integral Rule In order to dierentiate under a denite integral, we use Leibnitz Rule: d dy ˆ b(y a(y f(x, ydx = ˆ b(y a(y Find the derivative of 0 x y dx with respect to y f db dx + f[b(y, y] f[a(y, y]da y dy dy d dy ˆ 0 x y dx = ˆ 0 x ydx

Math Camp 9 Find the derivative of 3y y x y dx with respect to y d dy ˆ 3y y Problem: Dierentiate 3y x y dx = ˆ 3y y y x y dx with respect to y x ydx + (3y y 3 (y y

0 Multivariate Calculus 5 Homework In st semester micro, you will solve general equilibrium models Sometimes when solving these models it is useful to see if utility functions are concave One way of testing for concavity involves calculating the function's Hessian Find the Hessian matrices of the following utility functions (these functions were used in previous homeworks and tests: (Core Exam U(x, x = 3 x + 3 x (Final Exam U(x, x = x + δ α xα 3 (Homework problem U(x, x, x 3 = x + x δ x 3 4 (Midterm Exam U(x, x = 3 ln(x + 3 ln(x The Slutsky Equation breaks changes in demand into income eects and substitution eects Last semester for one of the homework problems, we were asked to calculate the Slutsky equation to nd the substitution eect and the income eect In the problem, the utility function was the same as in question 3 above, and it can be shown that the direct demand functions are x (p, p, w = w 3p x (p, p, w = w 3p Let the function x(p, w : R 3 R be the combined demand function, where p = (p, p The Slutsky equation is as follows: D p x + D w x x = D p v, where the subscripts denote which derivative it is respect to (Note: these are total derivatives, not directional derivatives and v is the indirect utility function Find D p x (the total eect, D w x x (the wealth eect, and use the above Slutsky equation to compute D p v (the substitution eect Hint: D p x is a matrix, D w x is, and x is This involves matrix multiplication, something we haven't covered yet, but that you should already know If the graph of a function F : R 3 R lives in R 4, in which space does the gradient F live? Evaluate the following integrals: 4 x xydydx 0 0 x x ydydx 0 x 3 xdydx for the region bounded by y = x and y = 3 x 4 0 y x sin(xydxdy Sketch the following regions: x, y 7 0 x, x y x

Math Camp 3 x, x y x + 4 0 x, x y x Integrate the following: f(x, y = sin(x over the area 0 x, 0 y x f(x, y = sin(x over the area 0 x, 0 y x with respect to x rst with respect to y rst Dierentiate the following: x λe λxy dy with respect to x e x x xexy dy with respect to x In st semester econometrics, you will be asked to integrate probability density functions (or pdfs in order to nd the probability that certain events will occur Sometimes it is necessary to transform the random variables For example, if we are given the density functions for X and X, and Y and Y as functions of X and X, we can then transform this system to solve for the pdf's of Y and Y The following problems are taken from pdf's in the rst semester econometrics textbook, section 37 For each of the following, Find X and X as functions of Y and Y Find the determinant of the Jacobian Sketch the region of integration in terms of X and X Sketch the region of integration in terms of Y and Y Evaluate the new integral in terms of Y and Y f(x, X = e X X over the region X > 0, X > 0, where Y = X X +X and Y = X + X f(x, X = 8X X over the region 0 X X, where Y = X X and Y = X Hint: As a check, realize that all pdf's integrate to one So the original integrals with respect to X and X, as well as the transformed integral with respect to Y and Y, should integrate to one Try it!