EC270 CH2 Math Lecture Slides WEB
EC270 CH2 Math Lecture Slides WEB
.
Chapter 2
Mathematics for Microeconomics
Dr. Logan McLeod, PhD
Wilfrid Laurier University, School of Business & Economics
September 4, 2014
Functions
Function: describe the relationship between input and output
variables
I For each input (independent) variable x, a function
assigns a unique number to the output (dependent)
variable y according to some rule
= 2x
= x2
I
I
Graphs
Graph: depicts the behaviour of a
function pictorially
I x is usually on the horizontal
axis
axis
However. . .
I in economics, it is common
Properties of Functions
Continuous function: can be drawn without lifting a pencil
from the paper
I
Inverse Functions
Recall:
I A function assigns a unique number y for each x
I A monotonic function is always increasing or always decreasing
I Thus, a monotonic function will have a unique value of x associated
with each value of y
Inverse function: a function assigns a unique number x to each y
I For example, y = 2x:
y = 2x
I
y
2
I What about y = x 2
y = x2
I
x=
x = y
Solution
2x = 8
x =4
x2 = 9
x = 3 or x = 3
f (x) = 0
x = x
x 2 + 2xy + y 2
2(x + 1) 2x + 2
I
The symbol means that the left-hand side and the right-hand
side are equal for all values of the variables
Linear Functions
a
d
x
c
c
A change in x from x1 to x2 is x = x2 x1
assume y = f (x)
For example:
5
y = x +5
3
Y Axis
value of y when x = 0
(which is y = 5)
3
2
I horizontal intercept:
1
0
0
4
X Axis
b
b
m
m
d
c
d
a
a
c
same slope
I if f (x) = ax , the loga (x) is the exponent to which base a must be raised
to give x
I the natural log of x is ln(x), which has base e (i.e., ex )
Derivatives
Derivatives
Derivative is the limit of the rate of change of y with respect to
x as the change in x goes to zero
I
Derivatives
Derivatives of Non-Linear Functions
I recall the rate of change of y with respect to x will usually depend on x
I for example: y = x 2 y = 2x + x
x
I the derivative of y with respect to x will be a function of x:
df (x)
= lim 2x + x = 2x
x0
dx
Useful derivatives to know:
Family
Constant
f (x)
c
df (x)
dx
Power
xc
cx c1
Exponential
ex
ex
Logarithmic
ln x
1
x
then
df (x)
= cx 1
dx
df (x)
dx ?
then
dh(x)
dg(x)
df (x)
= g(x)
+ h(x)
dx
dx
dx
df (x)
dx ?
dx
dy
dx
Example:
Assume
Then
g(x)
x2 = y
h(y )
2y + 3
f (x)
2x 2 + 3
dg(x)
dx
dh(y )
dy
df (x)
dx
2x
2 2x = 4x
Second Derivatives
Second derivative of a function:
I
y = f (x)
df (x)
or f 0 (x)
dx
d 2 f (x)
or f 00 (x)
dx 2
implies f (x) is
concave near that point (slope is decreasing)
convex near that point (slope is increasing)
flat near that point (possible inflection point)
Partial Derivatives
Assume z = f (x, y )
Partial derivative of f (x, y ) with respect to x is just the
derivative of the function with respect to x, holding y fixed:
f (x + x, y ) f (x, y )
f (x, y )
= lim
x
x
x0
Similarly, the partial derivative with respect to x2
f (x, y )
f (x, y + y ) f (x, y )
= lim
y
y
y 0
Partial derivatives have exactly the same properties as ordinary
derivatives
f (x,y )
:
x
y 1
f (x, y )
= x 1 y 1 =
x
x
Second Partial Derivative, with respect to x
2 f (x, y )
= ( 1)x 2 y 1
x 2
Cross Partial Derivative, of
f (x,y )
x
with respect to y
2 f (x, y )
= (1 )x 1 y
xy
Youngs Theorem
Youngs Theorem: the order in which partial differentiation is
conducted to evaluate second-order partial derivatives does not
matter.
fij = fji
for any pair of variables xi , xj .
Example: f (x1 , x2 ) = x12 x23
f1 = 2x1 x23
f2 = 3x12 x22
Total Differentiation
Totally differentiating a function:
I
f (x, y )
f (x, y )
dx +
dy
x
y
Optimization
df (x )
=0
dx
d 2 f (x )
0
dx 2
(f (x) is convex near x )
Example: y = x 2 + ax
I
Value of x
0
Value of y
0
1
2
1
4
3
2
9
4
5
2
25
4
a
2
Second: substitute x into the original function
x =
= (x ) + ax
a 2
a
=
+a
2
2
2
a
=
4
y
=x
a
Second: evaluate at x :
y
a
=
a x =a/2
2
Note: this is the same results obtained earlier
Envelope Theorem: states the change in the optimal value of a
function (with respect to a parameter) can be found by partially
differentiating the objective function while holding x constant at its
optimal value
dy
y
=
{x = x (a)}
da
a
Constrained Optimization
Constrained Optimization
The notation:
max
f (x1 , x2 )
x1 ,x2
such that
g(x1 , x2 ) = c.
such that
f (x1 , x2 )
p1 x1 + p2 x2 = c.
Direct Substitution
1. Solve the constraint for one variable:
p1
c
x1
x2 (x1 ) =
p2 p2
2. Substitute x2 (x1 ) into the objective function:
f (x1 ,
p1
c
x1 )
p2 p2
(F .O.C.)
c
p1
x1 )
p2 p2
f (x1 , x2 (x1 )) f (x1 , x2 (x1 )) x2
+
=0
x1
x2
x1
f (x1 ,
Lagrange Method
Solves the constrained maximization problem by using Lagrange
multipliers.
I
(1)
(2)
(3)
September 4, 2014