III. Calculus
III. Calculus
Bjorn Persson
Boston University
Fall 2023
Bε (x ) = fy 2 X : d (x, y ) < εg
is an open neighborhood of x
int (X ) = [i Oi = O
Bounded set
A set X 2 Rn is bounded from above if there is a number M 2 R
such that kx k M for all x 2 X
In Rn , all sets of the form (ai , bi )n are open sets, all sets [ai , bi ]n are
closed
Compactness
Theorem (Heine-Borel): A set K 2 Rn is compact i¤ it is closed and
bounded
Example
Are the following sets compact?
X = (x, y ) 2 R2 : x + y < 1
Y = (x, y ) 2 R2 : 1 < x < 1, and y = 0
In Rn , all sets of the form (ai , bi )n are open sets, all sets [ai , bi ]n are
closed
All …nite sets in Rn are closed - they are the …nite union of the sets
n
i [ i [ ai , ai ]
Example
Consider the following sets in R :
A = \n 2N [n, n + 1]
1 n
B = [ n 2N ,
n+1 n+1
De…nition
A sequence in a set X Rn is a mapping f : N ! X often denoted:
Bounded sequence
A sequence xk is bounded if there exists an M 2 R such that
kxk k M for all k
Converging sequence
A sequence xk converges to a point x 0 if for every ε > 0 there exists
an N 2 N such that:
Limit
A sequence xk that converges to a point x 0 said to have a limit at
x = x0 :
lim fxk g = x 0
k !∞
Accumulation point
A sequence xk has an accumulation point y 0 if x = y 0 in…nitely often
Theorem
A sequence may have multiple accumulation points, but at most one
limit
x0 x <δ) f x0 f (x ) < ε
x 0 : fyt g = ff (xt )g
An operational de…nition
A function f : X ! Y is continuous at x = x 0 if:
f (x ) is de…ned at x = x 0
f (x ) has a limit y at x = x 0
f (x 0 ) = y
Theorem
A continuous function de…ned on a compact set K Rn achieves
global extrema:
Example
Let f : K R ! R be de…ned by:
f (x ) = 4x x 2 on K = [0, 3]
Examples
A utility function maps consumption vectors x 2 Rn into real
numbers:
u : Rn ! R
A production function maps n inputs into m outputs:
F : Rn ! Rm
De…nition
A function f : Rn ! R is real-valued (or scalar-valued)
Gf = f(x, y ) 2 X Y : y = f (x )g
Gf = (x, y ) 2 R2 : y = f (x )
Example
The function f : R2 ! R given by f (x1 , x2 ) = y can be restricted by
…xing x1 = x 1 . This gives a one-dimensional function with graph in
the (x2 , y ) plane:
f (x 1 , x2 ) = y
Repeating this for various levels of x1 can provide a good picture of
the whole function
Example
The expenditure function e : Rn++ R ! R+ restricted to R++
De…nition
For a function f : Rn ! R, a level set (contour set) consists of all
vectors in the domain where f is constant:
Lf (c ) = fx 2 Rn : f (x ) = c for some c 2 Rg
Note how the inverse of the function plays a large part here:
Examples
Sketch some level sets of the following functions:
f : R2 ! R+ de…ned by f (x1 , x2 ) = x12 + x22
One variable
Consider a one-variable real-valued function f : R ! R. The
derivative of f at x 0 (if it exists) is de…ned:
f x 0 + ∆x f (x 0 )
f 0 (x 0 ) = lim 2R
∆x !0 ∆x
Example
f (x ) = 2x 2 + x at x 0 = 1
Two variables
Consider a two-variable real-valued function f : R2 ! R. The partial
derivatives of f with respect to x evaluated at x 0 :
g (x ) = a0 + a1 x1 + a2 x2
Notation
Various forms:
∂f (x 0 )
fi (x 0 ) = Di f x 0 =
∂xi
Geometric representation
The partial derivatives can geometrically be represented by tangents
Computation
Find the partials of f : R2 ! R and g : R2 ! R de…ned by
g (x ) = x1 x2 + x13 ln x2
g (x ) = f x 0 + f1 x 0 ∆x1 + f2 (x 0 )∆x2
The gradient
The vector of (…rst-order) partial derivatives is known as the gradient
and is often written:
f1 x 0
= rf (x 0 )
f2 ( x 0 )
g (x ) = f (x 0 ) + rf (x 0 ) x x0
Example
Find the best a¢ ne approximation of f (x ) at x 0 = (1, 1) where
f : R2 ! R is de…ned as above:
h (x ) = f (g (x ))
h0 = f 0 g 0
f (x (t )) = z (t )
z 0 (t ) = f1 ( ) x10 (t ) + f2 ( )x20 (t )
Example
Let f (x1 , x2 ) = x12 x2 x22 , where x1 (t ) = t 2 and x2 (t ) = 2t :
φ (t ) = f (x (t )) = f x 0 + tv
where t 2 R is a parameter
φ 0 ( t ) = f1 x 0 + tv v1 + f2 x 0 + tv v2
Bjorn Persson (Boston University) Calculus Fall 2023 26 / 47
Di¤erentiation X
Dv f x 0 = rf (x 0 ) v
Dv f x 0 = r f x 0 v = rf x 0 kv k cos α
Questions
In what direction v is the directional derivative the largest?
Example
Let f (x ) = x12 + 2x22 and suppose x 0 = (1, 2)
Keep f constant?
Partial derivative
The partial derivative in the general case of f : Rn ! Rm is de…ned
similarly. The partial derivative of f j wrt xi evaluated at x 0 is:
kf (x ) g (x )k
8x 2 Bδ (x0 ) ) ε
kx x0k
g (x ) = f (x 0 ) + J (x 0 )(x x0)
Example
Find the Jacobian at x 0 = (1, 1) for:
if it exists
f11 x 0 f12 x 0
r2 f x 0 = H (x 0 ) =
f21 x 0 f22 x 0
Example
Find the Hessian matrix of f (x ) = 5x12 x2 + 3x1 e 2x2
Young’s Theorem
If f is twice continously di¤erentiable the Hessian is symmetric:
H x0 = HT x0
Example
Let f : Rn ! R be a twice di¤erentiable at x 0 2 Rn . Then the
Hessian evaluated at x 0 is an n n matrix:
0 1
f11 x 0 f1n (x 0 )
B .. .. .. C
H (x 0 ) = @ . . . A
0
fn1 (x ) 0
fnn (x )
f (x ) = 0
Example
Let f 1 (x ) = 2x1 + x2 = 0 and f 2 (x ) = x12 + x22 = 1
That is, can we …nd a function ϕ such that that the following holds
at x 2 Bε (x 0 ) :
f (x 0 ) = 0
and:
Geometric interpretation
For a two-variable real-valued function f (x ) = c where x2 can be
de…ned locally as a function of x1 , the expression x20 (x10 ) gives the
slope of the level set of the function f at x 0 where f (x 0 ) = c
f1 (x 0 ) x1 x10 + f2 (x 0 ) x2 x20 = 0
or, equivalently:
rf (x 0 ) v = 0
Bjorn Persson (Boston University) Calculus Fall 2023 37 / 47
The Implicit Function Theorem V
In what direction is u = u?
y = g (x1 , ..., xn )
or:
Dx j g
Dxj xm = = MRS
Dxgm
Using Leibniz’notation, this can be written as the solution to:
xi0 = ϕi (y 0 )
Dx f (x 0 , y 0 )Dy ϕ(y 0 ) + Dy f (x 0 , y 0 ) = 0
or, equivalently:
1
Dy ϕ ( y 0 ) = Dx f (x 0 , y 0 ) Dy f ( x 0 , y 0 )
Example 1
Supply and demand system:
S= Q S (p, t )
D = Q D (p, y )
In equilibrium:
0 = Q S (p, t ) Q D (p, y )
0 = Q S (p (y , t ), t ) Q D (p (y , t ), y )
Dy Q D ( p ( y , t ) , y )
Dy p ( y , t ) = >0
Dp Q S ( p ( y , t ) , t ) Dp Q D ( p ( y , t ) , y )
Dt Q S (p (y , t ), t )
Dt p ( y , t ) = >0
Dp Q ( p ( y , t ) , t ) Dp Q D ( p ( y , t ) , y )
S
Example 2
Consider the Keynesian model:
Y = C (Y T ) + I (r ) + G
M = L(Y , r )
Assume that 0 < C 0 < 1, I 0 < 0, LY > 0, and Lr < 0. This gives the
implicit system:
C (Y T ) + I (r ) + G Y 0
F (Y , r , G , T , M ) = =
L(Y , r ) M 0
De…ne ϕ : R3 ! R2 as:
Y (G , M, T )
ϕ(G , M, T ) =
r (G , M, T )
D(Y ,r ) F (Y , r , G , T , M )D ϕG ,M ,T + DG ,M ,T F (Y , r , G , T , M ) = 0
or:
C0 1 I0 YG YM YT 1 0 C0 0
+ =
LY Lr rG rM rT 0 0 1 0
Solving gives:
1
YG YM YT C0 1 I0 1 0 C0
=
rG rM rT LY Lr 0 0 1
or:
YG YM YT 1 Lr 0 I0 C 0 Lr
= 0
rG rM rT det D(Y ,r ) LY 0 C LY C0 + 1