Functions Variables
Functions Variables
Functions Variables
http://www.columbia.edu/itc/sipa/math/index.html
x, 4x2, -6xy2z, 7
These terms are 4x3y2, - 2xy2, and 3. The coefficients of the terms are 4, -2, and 3.
The degree of a term or monomial is the sum of the exponents of the variables. The
degree of a polynomial is the degree of the term of highest degree. In the above
example the degrees of the terms are 5, 3, and 0. The degree of the polynomial is 5.
Remember that variables are items which can assume different values. A function
tries to explain one variable in terms of another.
Consider the above example where the amount you choose to spend depends on
your salary. Here there are two variables: your salary and the amount you spend.
To continue with the same example what if the amount you choose to spend
depends not only on your salary but also on the income you receive from
investments in the stock market. Now there are three variables: your salary and
your investment income are independent variables and the amount you spend is the
dependent variable.
Functions with a single independent variable are called univariate functions. There
is a one to one correspondence. Functions with more than one independent variable
are called multivariate functions.
The independent variable is often designated by x. The dependent variable is often
designated by y.
In pronunciation we say " y is f of x." This does not mean that y is the product of
two separate quantities, f and x but rather that f is used to indicate the idea of a
function. In other words the parenthesis does not mean that f is multiplied by x.
This is an example of a function that says the price of pizza depends on the prices
of tomato sauce, cheese, and pizza dough. There is one dependent variable, the
price of pizza and there are three independent variables, the prices of tomato sauce,
cheese, and pizza dough.
Qd = f(Pp, N)
This is another example of a function. It says that the quantity of pizza demanded
depends on the price of pizza and the number of potential pizza eaters. There is one
dependent variable, the quantity of pizza demanded, and there are two independent
variables, the price of pizza and the number of potential pizza eaters.
C = C(Y)
C = 25 + .75Y
Example 1
y = f(x) = 3x + 4
f(0) = 3(0) + 4 = 4
f(1) = 3(1) + 4 = 7
Find f(-1). This means find the value of y when x equals -1.
f(-1) = 3 times (-1) plus 4
f(1) = 3(-1) + 4 = 1
Example 2
This is a function that describes the demand for an item where p is the dollar price
per item. It says that demand depends on price.
Notice that, as we might expect, the demand declines as the price rises.
Example 3
g(x) = x - 3 h(x) = x2 + 2
g(0) = 0 - 3 = -3
h(0) = 02 + 2 = 2
g(0) + h(0) = -3 + 2 = -1
g(1) = 1 - 3 = -2
h(2) = 22 + 2 = 6
HIDE SOLUTIONS
1. f(x) = x2 + 5x –24
a. Find f(0)
Answer:
b. Find f(-1)
Answer:
c. Find f(3)
Answer:
2. f(x) = 3x2 –4
a. Find f(0)
Answer:
f(0) = 3(0)2 –4 = -4
b. Find f(-1)
Answer:
f(-1) = 3(-1)2 –4 = -1
c. Find f(1)
Answer:
f(1) = 3(1)2 –4 = -1
d. Find f(.5)
Answer:
a. find d(2)
Answer:
b. find d(5)
Answer:
c. find d(8)
Answer:
d. find d(10)
Answer:
4.
a. find f(4)
Answer:
b. find f(6)
Answer:
c. find f(15)
Answer:
Answer:
Answer:
6.
a. Find f(2)
Answer:
b. Find f(0)
Answer:
c. Find f(-4)
Answer:
a. What is profit if the firm spends $2,000 on product development and $5,000 on
advertising?
b. What is profit if the firm spends $10,000 on product development and $8,000 on
advertising?
Solution:
a.
Profit is $366,000.
b.
Profit is $1,476,000.
Graphs of Two Variable Functions
Many types of economic problems require that we consider two variables at the
same time. A typical example is the relation between price of a commodity and the
demand or supply of that commodity. The relation can be described algebraically
by a two variable function or equation. But it is often useful to represent the
relation in a two-dimensional graph. Such a graph is known as a scatter diagram.
This is a useful device because if there is a simple relationship between the two
variables, it is readily observable once the data are plotted. As the proverb says, “a
picture is worth a thousand words.”
Note that there are four quadrants. If x is positive we move to the right. If x is
negative we move to the left. If y is positive we move up. If y is negative we move
down.
Coordinates
Let (x, y) represent the point whose coordinates are the numbers x and y. Note that
the x coordinate comes first. The two coordinates tell us how far we must go first
along the x axis and then along the y axis until the point is reached.
Plotting coordinates: some examples
Example 1
point a (2, 4)
point b (4,-6)
point c (-2,-6)
point d (-6, 2)
Example 2
A store manager has the following data which relate the price of a crate of
vegetables to the supply:
price 4 6 8 10 14
supply 2 14 23 27 29
What do the data tell us? The graph shows that as we might expect an increase in
price is associated with an increase in supply.
Summation Notation
Let x1, x2, x3, …xn denote a set of n numbers. x1 is the first number in the set.
xi represents the ith number in the set.
The starting point for the summation or the lower limit of the summation
The stopping point for the summation or the upper limit of summation
This expression means sum the values of x, starting at x1 and ending with xn.
This expression means sum the values of x, starting at x1 and ending with x10.
This expression means sum the values of x, starting at x3 and ending with x10.
The limits of summation are often understood to mean i = 1 through n. Then the notation
below and above the summation sign is omitted. Therefore this expression means sum the
values of x, starting at x1 and ending with xn.
This expression means sum the squared values of x, starting at x1 and ending with xn.
This expression means form the product of x multiplied by y, starting at x1 and y1 and
ending with xn and yn and then sum the products.
In this expression c is a constant, i.e. an element which does not involve the
variable of summation and the sum involves n elements.
Problems
Data
i xi
1 1
2 2
3 3
4 4
1. Find
2. Find
Data
i xi
1 -1
2 3
3 7
3. Find
4. Find
5. Find
Data
i xi yi
1 10 0
2 8 3
3 6 6
4 4 9
5 2 12
6. Find
7. Find
8. Find
9. Find
Greek Symbols
Some of the letters commonly used and their pronunciation are as follows
alpha
beta
gamma gamma
delta delta
epsilon
eta
theta
lambda lambda
mu
omicron
pi pi
rho
sigma sigma
tau
phi
Linear Functions
y = f(x) = a + bx
A linear function has one independent variable and one dependent variable. The
independent variable is x and the dependent variable is y.
a is the constant term or the y intercept. It is the value of the dependent variable
when x = 0.
b is the coefficient of the independent variable. It is also known as the slope and
gives the rate of change of the dependent variable.
2. Plot them
Example:
y = 25 + 5x
let x = 1
then
y = 25 + 5(1) = 30
let x = 3
then
y = 25 + 5(3) = 40
A simple example of a linear equation
A company has fixed costs of $7,000 for plant and equipment and variable costs of
$600 for each unit of output.
What is total cost at varying levels of output?
Data:
A company receives $45 for each unit of output sold. It has a variable cost of $25
per item and a fixed cost of $1600.
What is its profit if it sells (a) 75 items, (b)150 items, and (c) 200 items?
Solution:
Step 1. Rewrite in the form y = a + bx and simplify
Step 2. Find a set of points which satisfy the equation and plot them.
let x = 0 then
let x = 2 then
let x = -2 then
Solution:
y = 1 + 2x
Step 2. Find a set of points which satisfy the equation and plot them.
let x = 0
let x = 2
let x = 1
3. A copy shop can produce a course reader at a cost of $25 per copy. The monthly
fixed costs are $10,000.
a. Determine the total monthly cost as a function of the number of copies
produced.
b. Graph the total monthly cost function.
Solution:
C(q) = 10,000 + 25 q
b. Find a set of points which satisfy the equation and plot them
q C(q)
0 10,000
100 12,500
500 22,500
1,000 35,000
4. A chemical plant was found to be discharging toxic waste into a waterway. The
state in which the chemical plant was located fined the company $125,000 plus
$1,000 per day for each day on which the company continued to violate water
pollution regulation.
a. Express the total fine as a function of the number of days in which the company
remains in non-compliance.
b. Graph the relationship.
Solution:
b. Find a set of points which satisfy the equation and plot them
d f(d)
0 125,000
1 126,000
5 130,000
10 135,000
Slope of Linear Functions
It may show for example how demand changes when price changes or how
consumption changes when income changes or how quickly sales are growing.
Slope measures the rate of change in the dependent variable as the independent
variable changes. The greater the slope the steeper the line.
y = a + bx
b is the slope of the line. Slope means that a unit change in x, the independent
variable will result in a change in y by the amount of b.
Slope shows both steepness and direction. With positive slope the line moves
upward when going from left to right. With negative slope the line moves down
when going from left to right.
If two linear functions have the same slope they are parallel.
The slope of a linear function is the same no matter where on the line it is
measured. (This is not true for non-linear functions.)
An example of the use of slope in economics
Q(d) = a - bP
Q(s) = a + bP
The demand for a breakfast cereal can be represented by the following equation
where p is the price per box in dollars:
d = 12,000 - 1,500 p
This means that for every increase of $1 in the price per box, demand decreases by
1,500 boxes.
Slope measures the rate of change in the dependent variable as the independent
variable changes. Mathematicians and economists often use the Greek capital letter
D or as the symbol for change. Slope shows the change in y or the change on the
vertical axis versus the change in x or the change on the horizontal axis. It can be
measured as the ratio of any two values of y versus any two values of x.
Example 1
Find the slope of the line segment connecting the following points:
x1 = 1 y1 = 1
x2 = 2 y2 = 4
Example 2
Find the slope of the line segment connecting the following points:
x1 = -1 y1 = -2
x2 = 1 y2 = 6
Example 3
Find the slope of the line segment connecting the following points:
x1 = -1 y1 = 3
x2 = 8 y2 = 0
Problem Set
Slope of a Linear Function
HIDE SOLUTIONS
y = 3x
Answer: slope is 3.
5y – 3x = 4
Solution
3. Find the slope of the line segment connecting the following points:
x1 = 3 y1 = 1
x2 = - 2 y2 = 5
4. Find the slope of the line segment connecting the following points:
(-1,-1) and (1,3)
Answer: slope is 2
x1 = -1 y1 = -1
x2 = 1 y2 = 3
5. Find the slope of the line segment connecting the following points:
x1 = -4 y1 = 2
x2 = 1 y2 = 2
6. Find the slope of the line segment connecting the following points:
x1 = -3 y1 = 3
x2 = -3 y2 = -2
Intercepts of a Linear Equation
The x intercept is the point where the line
x intercept
crosses the x axis. At this point y = 0.
The y intercept is the point where the line
y intercept
crosses the y axis. At this point x = 0.
6x +3y = 18
6x + 3(0) = 18
6x = 18
x 3 The x intercept is (3,0)
6(0) +3y = 18
3y = 18
y = 6 The y intercept is (0,6)
Slope Intercept Form of a Linear Equation
The slope intercept form of a linear equation has the following form where the
equation is solved for y in terms of x:
y = a + bx
b is the slope
a is a constant term. It is the y intercept, the place where the line crosses the y
axis.
Example 1
y = -13 + 7x
This equation is in slope intercept form. The y intercept is (0,-13) and the slope is
7.
Example 2
4x + 3y = 12
3y = 12 - 4x
The equation is now in slope intercept form. The y intercept is (0,4) and the slope
is -4/3.
Example 3
5x - 3y - 15 = 0
3y = -15 + 5x
The equation is now in slope intercept form. The y intercept is (0,-5) and the slope
is
5/3.
Example 4
The equation is now in slope intercept form. The y intercept is (0,-7.5) and the
slope is
1.5.
Finding the Equation of a Line
To write the equation of a line it is necessary to know the slope and the y intercept.
There are three possibilities which depend on the data available.
Possibility 1
In this case both the slope and the y intercept are known and the equation can be
written directly.
For example if the slope is -2 and the y intercept is (0,6), then the equation is
y = 6 - 2x
Possibility 2
In this case the slope and one set of coordinates are known. This case involves the
use of the point-slope formula.
Here in the final term x1 and y1 are known coordinates and x and y are unknown
coordinates. Therefore the slope can be given as:
y - y1 = b (x - x1)
y = y1 + b (x - x1)
Example
Find the equation of the line which has a slope of 4 and a set of coordinates (3,-2).
Here x1 = 3 and y1 = -2.
y = y1 + b (x - x1)
y = -2 + 4(x-3)
y = -2 + 4x -12
y = -14 + 4x
Possibility 3
In this case two sets of coordinates are known but the slope is not known. This case
involves the use of the two-point formula. Since the slope of a linear function is the
same at any point on the line we may set an expression for the value of the slope at
one point equal to the value of the slope at any other point.
Example
Find the equation of the line which passes through the points (-2,3) and (3,8).
x1 = -2 y1 = 3
x2 = 3 y2 = 8
Problem Set
Equation of a Line
HIDE SOLUTIONS
1. Find the equation of the line which passes through the points (5,1) and has a
slope of .5.
In this case the slope and one set of coordinates are known. This case involves the
use of the point-slope formula.
y = y1 + b (x - x1)
y = 1 + .5(x-5)
y = 1 + .5x – 2.5
y = -1.5 + .5x
2. Find the equation of the line which passes through the points (2,0) and has a
slope of 1.
In this case the slope and one set of coordinates are known. This case involves the
use of the point-slope formula.
y = y1 + b (x - x1)
y = 0 + 1(x-2)
y = x-2
y = -2 + x
3. Find the equation of the line which passes through the points (5, -2) and has a
slope of -.5.
In this case the slope and one set of coordinates are known. This case involves the
use of the point-slope formula.
y = y1 + b (x - x1)
y = -2 + -.5(x-5)
y = -2 - .5x + 2.5
y = .5 - .5x
4. Find the equation of the line which passes through the points ( 3, -2) and (1, 5).
In this case two sets of coordinates are known but the slope is not known. This case
involves the use of the two-point formula. Since the slope of a linear function is
the same at any point on the line we may set an expression for the value of the
slope at one point equal to the value of the slope at any other point.
x1 = 3 y1 = -2
x2 = 1 y2 = 5
5. Find the equation of the line which passes through the points ( 1,0) and (0,1).
In this case two sets of coordinates are known but the slope is not known. This case
involves the use of the two-point formula. Since the slope of a linear function is
the same at any point on the line we may set an expression for the value of the
slope at one point equal to the value of the slope at any other point.
x1 = 1 y1 = 0
x2 = 0 y2 = 1
Applications of Linear Functions
Simple interest
With simple interest, interest is earned (charged) only on the amount lent
(borrowed).
P = principal
the amount lent or borrowed
A = P + P (i) (n)
Example 1
A = 12,000 (1+.09n)
The independent variable is n, the length of the loan. The dependent variable is A,
the amount which must be repaid.
Example 2
You borrow $3,200 and want to pay it back in a lump sum after 4 years. How
much will you have to pay if you are being charged 8% simple interest?
A = 3,200 [1+.08(4)]
A = 4,224
How much will you have to pay if you are being charged 10 % simple interest?
A = 3,200 [1+.10(4)]
A = 4,480
Systems of Linear Equations
n equations
v variables
a. graphical solution
b. algebraic solution
c. elimination method
d. substitution method
Graphical solution
Example 1
f(x) = y = 1 + .5x
f(x) = y = 11 - 2x
Graph the first equation by finding two data points. By setting first x and then y
equal to zero it is possible to find the y intercept on the vertical axis and the x
intercept on the horizontal axis.
-.5x = 1
x = -2
Graph the second equation by finding two data points. By setting first x and then
y equal to zero it is possible to find the y intercept on the vertical axis and the x
intercept on the horizontal axis.
If y = 0, then f(x) = 0 = 11 - 2x
2x = 11
x = 5.5
At the point of intersection of the two equations x and y have the same values.
From the graph these values can be read as x = 4 and y = 3.
Example 2
f(x) = y = 25 - 5x
Graph the first equation by finding two data points. By setting first x and then y
equal to zero it is possible to find the y intercept on the vertical axis and the x
intercept on the horizontal axis.
If y = 0, then f(x) = 0 = 15 - 5x
5x = 15
x = 3
Graph the second equation by finding two data points. By setting first x and then y
equal to zero it is possible to find the y intercept on the vertical axis and the x
intercept on the horizontal axis.
If y = 0, then f(x) = 0 = 25 - 5x
5x = 25
x = 5
From the graph it can be seen that these lines do not intersect. They are parallel.
They have the same slope. There is no unique solution.
Example 3
21x - 7y = 14
-15x + 5y = -10
7y = -14 + 21x
y = -2 + 3x
5y = -10 + 15x
y = -2 + 3x
Graph either equation by finding two data points. By setting first x and then y
equal to zero it is possible to find the y intercept on the vertical axis and the x
intercept on the horizontal axis.
If y = 0, then f(x) = 0 = -2 + 3x
3x = 2
x = 2/3
From the graph it can be seen that these equations are equivalent. There are an
infinite number of solutions.
Algebraic solution
This method will be illustrated using supply and demand analysis. This type of
analysis is derived from the work of the great English economist Alfred Marshall.
When graphing price is placed on the vertical axis. Thus price is the dependent
variable. It might be more logical to think of quantity as the dependent variable
and this was the approach used by the great French economist, Leon Walras.
However by convention economists continue to graph using Marshall’s analysis
which is referred to as the Marshallian cross.
The objective is to find an equilibrium price and quantity, i.e. a solution where
price and quantity will have the same values in both the supply function and the
price function.
For equilibrium
supply = demand
or P (s) = P (d)
3.5Q = 70
P (s) = 3(20) + 10
P (s) = 70
P (d) = -1/2(20) + 80
Elimination method
This method involves removing variables from the equations. Variables are
removed successively until only a single last variable is left, i.e. until there is one
equation with one unknown. This equation is then solved for the one unknown.
The solution is then used in finding the second to last variable. The procedure is
repeated by adding back variables as their solutions are found.
Example 1
2x + 3y = 5
-5x - 2y = 4
Procedure: eliminate y. The coefficients of y are not the same in the two equations
but if they were it would possible to add the two equations and the y terms would
cancel out. However it is possible through multiplication of each equation to
force the y terms to have the same coefficients in each equation.
Step 1: Multiply the first equation by 2 and multiply the second equation by
3. This gives
4x + 6y = 10
-15x - 6y = 12
-11x = 22
x = -2
2(-2) + 3y = 5
3y = 9
y = 3 or
-5(-2) - 2y = 4
10 - 2y = 4
2y = 6
y = 3
Alternate Procedure: eliminate x. The coefficients of x are not the same in the two
equations but if they were it would possible to add the two equations and the y
terms would cancel out. However it is possible through multiplication of each
equation to force the x terms to have the same coefficients in each equation.
Step 1: Multiply the first equation by 5 and multiply the second equation by
2. This gives
10x + 15y = 25
-10x - 4y =8
11y = 33
y = 3
2x + 3(3) = 5
2x = -4
x = -2 or
-5x - 2(3) = 4
- 5x = 10
x = -2
Example 2
In this example there are three variables: x1, x2, and x3. One possible procedure is
to eliminate first x1, to eliminate next x2, and then to solve for x3. The value
obtained for x3 is used to solve for x2and finally the values obtained for x3 and
x2 are used to solve for x1.
Step 1 Multiply the first equation by 2 and subtract the second equation
from the first equation. This gives
Step 1 Multiply the first equation by 21, multiply the second equation by
14. and subtract the second equation from the first equation. This gives
x3 = -1
Part C Solve for x2 by inserting the value obtained for x3 in either equation
from Part B.
14x2 + 17(-1) = -3
1 4x2 = 14
x2 = 1 or
21x2 + 25(-1) = -4
21x2 = 21
x2 = 1
Part D Solve for x1 by inserting the values obtained x2 andx3 in any of the
three original equations.
2x1 = 4
x1 = 2 or
4x1 = 8
x1 = 2 or
3x1 = 6
x1 = 2
Substitution method
This involves expressing one variable in terms of another until there is a single
equation in one unknown. This equation is then solved for that one unknown. The
result is then used to solve for the variable which was expressed in terms of the
variable whose solution has just been found.
Example
8x + y = 82 second equation
Solve the second equation for y and then substitute the value obtained for y
in the first equation.
68x = 680
x = 10
12(10) - 7y = 106
7y = 14
y = 2
y = 2
Problem Set
Solving Systems of Linear Equations
HIDE SOLUTIONS
Solution:
Add the second equation to the first equation and solve for x.
Substitute the value obtained for x into either of the original equations.
or
Answer: x = -2; y = 5
Solution:
Subtract the first equation from the second equation and solve for y.
Substitute the value obtained for y into either of the original equations.
or
Answer: x1 = 2; x2 = 1; x3 = -2
Solution:
Step 1. Add the 1st original equation and the 3rd original equation.
+
=
Step 2. Multiply the 2nd original equation by 2, multiply the 3rd original equation
by 5 and add the 2nd original equation to the 3rd original equation.
Step 1. Multiply the 1st new equation by 7, subtract the second new equation from
the first new equation, and solve for x2.
Part C. Solve for x1 by substituting the value received for x2 in either of the new
equations in Part B.
or
2nd new equation
Part D. Solve for x3 by substituting the values obtained for x1 and x2 in any of the
original equations.
or
or
4. A manufacturer produces two items which are sold at prices of p1 dollars and
p2 dollars each. The supply and demand functions in units for the items are as
follows:
How should prices be set for each item to equate supply and demand? What are
the equilibrium quantities for each item?
Answer: The price of the first item should be set at $1.80 and the price of the
second item should be set at $1.50. The equilibrium quantity for the first item is
82 units and the equilibrium quantity for the second item is 181 units.
Solution:
Part A.
Step 1. Set the supply function for item 1 equal to the demand function for item 1
and collect terms.
P(s1) = P(d1)
Step 2. Set the supply function for item 2 equal to the demand function for item 2
and collect terms.
P(s2) = P(d2)
Part B. From Part A the following system of equations has been obtained.
Step 2 . Substitute the value obtained for p1 in either equation from Part A and
solve for p2.
or
Part C. Determine equilibrium for each item by substituting the prices obtained in
Part B in either the demand function or the supply function.
For item 1
or
For item 2
or
Non-Linear Functions
Often in economics a linear function cannot explain the relationship between variables. In
such cases a non-linear function must be used. Non-linear means the graph is not a straight
line. The graph of a non-linear function is a curved line. A curved line is a line whose
direction constantly changes.
A cautionary note: Economists are accustomed to designate all lines in graphs as curves -
both straight lines and lines which are actually curved.
Although the slope of a linear function is the same no matter where on the line it is measured,
the slope of a non-linear function is different at each point on the line. Thus there is no single
slope for a non-linear function. However the slope can be determined at any point on the
line. The techniques of differential calculus are used to determine the slopes of non-linear
functions.
Examples:
32 = 3 x 3
35 = 3 x 3 x 3 x 3 x 3
Rules of exponents
Problem Set
Laws of Exponents
SHOW SOLUTIONS
1.
2.
3.
4.
5.
6.
7.
8.
Problem Set
Laws of Exponents
HIDE SOLUTIONS
1.
answer
2.
answer
3.
answer
4.
answer
5.
answer
6.
answer
7.
answer
8.
answer
Logarithms
A logarithm is an exponent. A logarithm is an exponent which indicates to what power a base must
be raised to produce a given number.
y = bx exponential form
Examples
x = logb y
x = log10 10,000 This means the logarithm of 10,000 to the base 10. It is the
exponent to which 10 must be raised to get 10,000. We know
that 10(10)(10)(10) = 10,000. Therefore x = 4.
log b b = 1 The logarithm of any number to the same base equals 1.
x = log 11 11 This means the logarithm of 11 to the base 11. It is the exponent
to which 11 must be raised to get 11. We know that 1 (1) = 11.
Therefore x = 1.
log10 y = log y
Quotient rule
x f(x) = ex x f(x)= ln x
0 1 1 0
1 2.7 2.7 1
2 7.39 7.39 2
3 20 20 3
Problem Set
Logarithms
SHOW SOLUTIONS
a.
b.
c.
d.
e.
f.
g.
2. Change the following equations from logarithmic to exponential form and solve
for x..
a.
b.
c.
d.
e.
f.
g.
a.
b.
Problem Set
Logarithms
HIDE SOLUTIONS
a.
answer:
b.
answer:
c.
answer:
d.
answer:
e.
answer:
f.
answer:
g.
answer
2. Change the following equations from logarithmic to exponential form and solve
for x..
a.
answer:
b.
answer:
c.
answer:
d.
answer:
e.
answer:
f.
answer:
g.
answer:
a.
answer:
b.
answer:
The Exponential Function
F(x) = y = abx
where a 0 and b is a constant called the base of the exponential function. b > 0 and b 1
x is the independent variable. It is the exponent of the constant, b. Thus exponential functions have
a constant base raised to a variable exponent
In economics exponential functions are important when looking at growth or decay. Examples are
the value of an investment that increases by a constant percentage each period , sales of a company
that increase at a constant percentage each period, models of economic growth or models of the
spread of an epidemic.
Notice that as the value of x increases, the value of y increases or decreases more and more rapidly.
Demand for a product in thousands of units can be expressed by the following exponential demand
function where p is the price in dollars:
Compound interest - The time value of money
Financial decision making, whether by the private sector, the government or by households requires
the evaluation of whether an expenditure is justified by the benefits it is expected to confer. The
investment decision involves acquiring something in the expectation that it will be worth more in
the future. In financial terms this means purchasing an asset or assets which will provide future
income. Typically the expenditure and the benefits occur at different points in time. Therefore sums
of money occurring at different dates must be compared.
earnings of a business
revenues from a toll road
rent from property
interest on a bond
dividends or capital gains from stock
expenditure receipt(s)
outflow inflow(s)
The cash outflow is the expenditure of money in the present because of the
expectation of the receipt of money in the future.
Problem The expenditure and the expected receipts occur at different periods In
time. Values of different periods are different values. A value received in the
future is not equivalent to a value received in the present. Values occurring at
different points in time cannot be immediately compared nor aggregated.
Thus to analyze an investment the cash outflows and the expected future receipts must be
transformed into units of standardized value and then compared. Then if the inflows are greater
than the outflows the investment has a positive rate of return and should be accepted.
Why does this problem exist? An amount received in the future is not equivalent to an amount held
in the present because money, if invested at some rate of interest, grows to a larger amount. The
interest rate is the rate at which an individual or an entity is compensated for exchanging money
held in the present for money to be received at a future date. Thus money has a time value and this
value is called interest.
The standardization process: transforming values of different periods into values of the same
period
PV Present value
a value at time = 0
FV Future value
It is important to note that in the future value notation, the future values are understood to occur at
the end rather than at the beginning of the relevant future period. The standard financial tables,
financial calculators, and the spreadsheet Excel are all constructed with this understanding.
Note In finance discounting is the procedure for calculating present values. However in retailing
discounting is the procedure of reducing selling price in order to increase sales.
What do we have at the end of the first period, i.e. what is FV1?
At the end of the first period we have our initial value, PV, plus the interest earned on that initial
value, rPV.
FV1 = PV + rPV
FV1 = PV (1+r)
What do we have at the end of the second period, i.e. what is FV2?
At the end of the second period we have what we began with, FV1, plus the interest earned on FV1.
FV2 = PV (1+r)2
If we continued to calculate future values for all future periods we would note the subscript for the
relevant future period is the same numerical value as the exponent for the expression (1+r).
In this expression the future value is determined by the value of r, the interest rate, and n, the time
period. Financial tables have been constructed for many possible values of r and n. The expression,
(1+r)n, is known as the future value interest factor for a single payment, FVIFr,n where r is the
interest rate and n is the number of periods.
Examples
1. Deposit 100 and leave it for twenty periods in an account which earns 4 percent per period. How
much will be in the account at the end of twenty periods?
FV20 = ?
FV20 = 219.11
2. Invest 2,000 in stock whose expected annual rate of return is 8 percent. How much will you
have at the end of ten years?
FV10 = ?
FVn = PV (1+r)n
PV = FV (PVIF n,r)
In this expression the present value is determined by the value of r, the interest rate, and n, the
time period. Financial tables have been constructed for many possible values of r and n. The
expression, in square brackets, is known as the present value interest factor for a single payment,
PVIF r,n where r is the interest rate and n is the number of periods. Note that the present value
interest factor for a single payment is the inverse of the future value interest factor.
Examples
1. A financial instrument is expected pay 5,000 in ten years. The interest rate available today is 10
percent. What would be a fair price for the claim to receive that 5,000 in ten years?
PV = ?
PV = 5,000 (.3855)
PV = 1927.50
2. An investment today is expected to generate a series of cash flows in the future such as the
following:
1 200
3 700
An unsophisticated analyst might consider this a good investment because the sum of the receipts,
1,300, is greater than the investment expenditure, 1,000. Such an analyst might consider that the
investment offers a gain of 300.
However this is the wrong approach. Values of different periods can never be aggregated before
they are standardized. Failure to do so ignores the fact that funds available in the present can be
invested to grow to some future value. The correct approach to analyzing this investment is to
discount each of the individual future values, then to aggregate them, and finally to compare the
result to the initial investment expenditure. If the available interest rate is 14 percent then
Accepting this investment would actually create an immediate loss of 44 rather than a gain of 300.
This is an example of one of the basic methods of investment analysis, the net present value method
or NPV. It is called net present value because it adds the receipts net of the expenditure.
Note that the present value of a future value decreases as the discount rate increases and decreases
the further into the future the cash flow occurs.
The Quadratic Function
F(x) = y = a + bx + cx2
where a, b, and c are numerical constants and c is not equal to zero.
An advantage of this notation is that it can easily be generalized by adding more terms. We could
for example write equations such as
y = a + bx + cx2 + dx3
ax2 + bx + c = 0
In this case the quadratic formula is given by
Notice that the graph of the quadratic function is a parabola. This means it is a curve with a single
bump. The graph is symmetric about a line called the axis of symmetry. The point where the axis of
symmetry intersects the parabola is known as the vertex.
Graphing the quadratic function
Construct a table with values of x and f(x).
In general the supply of a commodity increases with price and the demand decreases. The market
for the commodity is in equilibrium when supply equals demand.
In this example we are considering two functions of the same independent variable, price. We want
to find the equilibrium price and the corresponding demand.
y = a + bx + cx2
Solve the equation by means of the quadratic formula where a = 231, b = -20, and c = -4.
and
Since price cannot be negative the value of -10.5 can be eliminated. Supply will equal demand when
the price is $5.50. At that price it is possible to find the corresponding demand and supply.
Solution:
Profit equals revenue less cost. The breakeven point occurs where profit is zero or
when revenue equals cost.
set profit = 0
Solve using the quadratic formula where a = 195, b = 20, and c = .21.
Breakeven points occur where the publisher has either 12,000 or 84,000
subscribers. Between these two points the publisher will be profitable.
The Logarithmic Function
Linear functions are useful in economic models because a solution can easily be
found. However non-linear functions can be transformed into linear functions with
the use of logarithms.
A production function describes the relation between output and the inputs to a
given process. A simple production function might relate output to two inputs,
labor and capital. (Capital typically includes plant and equipment.) A production
function might be used to study tradeoffs in the use of capital and labor.
where
Consider the non-linear function shown below. What is the slope at some point such as P? (P
can be at any point along the curve.) It can be seen that the slope of the function depends on
the position of P on the curve.
The problem is to find the slope of the function at point P. A possible solution is to draw a
line tangent to the non-linear function at point P as shown in the following chart. The
tangent line touches the function but does not intersect it. The slope of this tangent line is the
same as the slope of the non-linear function at point P.
The slope of a non-linear function is different at different points along the function. The
slope may be positive, negative or zero as indicated by the tangent lines in the following
chart. The value obtained for the slope depends on the point on the function where the
tangent line is drawn.
Additional Topics necessary for all MPA students and for MIA students planning
to take the Economic Analysis Sequence (This course is required for
concentrations in International Finance and Business, International Economic
Policy and International Energy Management and Policy, Environmental Policy.
The course is highly recommended for students planning careers in any other
area related to economics, for example, economic development, even if their
concentrations at SIPA do not require it.):
More simply, real world behavior is not linear. Therefore, any attempt to
understand real economic behavior requires nonlinear modeling and the
appropriate use of calculus. Any other, simpler forms of analysis lack the detail
and sophistication essential to creating and evaluating policy.
A nonlinear function by definition has a different slope at every point along the
curve, unlike a linear function whose slope stays constant. In order to calculate a
constantly changing slope, we will use the techniques developed in calculus. Since
our focus is practical analysis, we'll review just enough theory to be confident that
our economic models are mathematically well founded.
One last caveat. While the upside of a "cookbook" review (i.e. just recalling the
how without worrying too much about the what or why), is found in its simplicity,
so is the downside. As you learn or review technique, or use technique in the
majority of cases, keep in mind that there are theoretical underlying assumptions
that are crucial to the integrity of your results. These assumptions are usually
treated as axiomatic, but as you become more sophisticated in your economic
analytic skills and/or use real world data, it is imperative that you increase your
theoretical sophistication as well by justifying your use of the assumptions as well
as properly proving your results.
Continuity of functions
If a function is continuous and the slope exists, we can find it using the techniques
of differentiation, our main calculus tool.
There are many different ways to indicate the operation of differentiation, also
known as finding or taking the derivative. The choice of notation depends on the
type of function being evaluated and upon personal preference.
Suppose you have a general function: y = f(x). All of the following notations can
be read as "the derivative of y with respect to x" or less formally, "the derivative of
the function."
[HINT: don't read the last three terms as fractions, read them as an operation.
After applying the rules of differentiation, we end up with the following result:
How do we interpret this? First, decide what part of the original function (y =
4x3 + x2 + 3) you are interested in. For example, suppose you would like to know
the slope of y when the variable x takes on a value of 2. Substitute x = 2 into the
function of the slope and solve:
dy/dx = 12 ( 2 )2 + 2 ( 2 ) = 48 + 4 = 52.
Therefore, we have found that when x = 2, the function y has a slope of + 52.
Now for the practical part. How do we actually determine the function of the
slope? Almost all functions you will see in economics can be differentiated using
a fairly short list of rules or formulas, which will be presented in the next several
sections.
How to apply the rules of differentiation
Once you understand that differentiation is the process of finding the function of
the slope, the actual application of the rules is straightforward.
First, some overall strategy. The rules are applied to each term within a function
separately. Then the results from the differentiation of each term are added
together, being careful to preserve signs. [For example, the sum of 3x and negative
2x2 is 3x minus 2x2.].
Don't forget that a term such as "x" has a coefficient of positive one. Coefficients
and signs must be correctly carried through all operations, especially in
differentiation.
The rules of differentiation are cumulative, in the sense that the more parts a
function has, the more rules that have to be applied. Let's start here with some
specific examples, and then the general rules will be presented in table form.
Take the simple function: y = C, and let C be a constant, such as 15. The
derivative of any constant term is 0, according to our first rule. This makes sense
since slope is defined as the change in the y variable for a given change in the x
variable. Suppose x goes from 10 to 11; y is still equal to 15 in this function, and
does not change, therefore the slope is 0. Note that this function graphs as a
horizontal line.
Now, add another term to form the linear function y = 2x + 15. The next rule
states that when the x is to the power of one, the slope is the coefficient on that x.
This continues to make sense, since a change in x is multiplied by 2 to determine
the resulting change in y. We add this to the derivative of the constant, which is 0
by our previous rule, and the slope of the total function is 2.
Now, suppose that the variable is carried to some higher power. We can then form
a typical nonlinear function such as y = 5x3 + 10. The power rule combined with
the coefficient rule is used as follows: pull out the coefficient, multiply it by the
power of x, then multiply that term by x, carried to the power of n - 1. Therefore,
the derivative of 5x3 is equal to (5)(3)(x)(3 - 1); simplify to get 15x2. Add to the
derivative of the constant which is 0, and the total derivative is 15x2.
Note that we don't yet know the slope, but rather the formula for the slope. For a
given x, such as x = 1, we can calculate the slope as 15. In plainer terms, when x
is equal to 1, the function ( y = 5x3 + 10) has a slope of 15.
These rules cover all polynomials, and now we add a few rules to deal with other
types of nonlinear functions. It is not as obvious why the application of the rest of
the rules still results in finding a function for the slope, and in a regular calculus
class you would prove this to yourself repeatedly. Here, we want to focus on the
economic application of calculus, so we'll take Newton's word for it that the rules
work, memorize a few, and get on with the economics! The most important step
for the remainder of the rules is to properly identify the form, or how the terms are
combined, and then the application of the rule is straightforward.
For functions that are sums or differences of terms, we can formalize the strategy
above as follows:
If y = f(x) + g(x), then dy/dx = f'(x) + g'(x). Here's a chance to practice reading the
symbols. Read this rule as: if y is equal to the sum of two terms or functions, both
of which depend upon x, then the function of the slope is equal to the sum of the
derivatives of the two terms. If the total function is f minus g, then the derivative
is the derivative of the f term minus the derivative of the g term.
The product rule is applied to functions that are the product of two terms, which
both depend on x, for example, y = (x - 3)(2x2 - 1). The most straightforward
approach would be to multiply out the two terms, then take the derivative of the
resulting polynomial according to the above rules. Or you have the option of
applying the following rule.
Given y = f(x) g(x); dy/dx = f'g + g'f. Read this as follows: the derivative of y with
respect to x is the derivative of the f term multiplied by the g term, plus the
derivative of the g term multiplied by the f term. To apply it to the above problem,
note that f(x) = (x - 3) and g(x) = (2x2 - 1); f'(x) = 1 and g'(x) = 4x. Then dy/dx =
(1)(2x2 - 1) + (4x)(x - 3). Simplify, and dy/dx = 2x2 - 1 + 4x2 - 12x, or 6x2 - 12x -
1.
The quotient rule is similarly applied to functions where the f and g terms are a
quotient. Suppose you have the function y = (x + 3)/ (- x2). Then follow this rule:
Given y = f(x)/g(x), dy/dx = (f'g - g'f) / g2. Again, identify f= (x + 3) and g = -x2 ;
f'(x) = 1 and g'(x) = - 2; and g2 = x4. Then substitute in: dy/dx = [(1)(- x2) - (- 2)(x
+ 3)] / x4 . Simplify to dy/dx = (-x2 + 2x + 6)/ x4 .
Now, let's combine rules by type of function and their corresponding graphs.
There are two more rules that you are likely to encounter in your economics
studies. The hardest part of these rules is identifying to which parts of the
functions the rules apply. Actually applying the rule is a simple matter of
substituting in and multiplying through. Notice that the two rules of this section
build upon the rules from the previous section, and provide you with ways to deal
with increasingly complicated functions, while still using the same techniques.
In the previous rules, we dealt with powers attached to a single variable, such as
x2 , or x5. Suppose, however, that your equation carries more than just the single
variable x to a power. For example,
y = (2x + 3)4
In this case, the entire term (2x + 3) is being raised to the fourth power. To deal
with cases like this, first identify and rename the inner term in the parenthesis: 2x
+ 3 = g(x). Then the problem becomes
Now, note that your goal is still to take the derivative of y with respect to x.
However, x is being operated on by two functions; first by g (multiplies x by 2 and
adds to 3), and then that result is carried to the power of four. Therefore, when we
take the derivatives, we have to account for both operations on x. First, use the
power rule from the table above to get:
.
Note that the rule was applied to g(x) as a whole. Then take the derivative of g(x)
= 2x + 3, using the appropriate rule from the table:
Note the change in notation. "g" is used because we were finding the change in g,
with respect to a change in x. Now, both parts are multiplied to get the final result:
Recall that derivatives are defined as being a function of x. Replace the g(x) in the
above term with (2x + 3) in order to satisfy that requirement. Then simplify by
combining the coefficients 4 and 2, and changing the power (4-1) to 3:
Now, we can set up the general rule. When a function takes the following form:
The second rule in this section is actually just a generalization of the above power
rule. It is used when x is operated on more than once, but it isn't limited only to
cases involving powers. Since you already understand the above problem, let's
redo it using the chain rule, so you can focus on the technique.
and the problem is complete. The formal chain rule is as follows. When a
function takes the following form:
Let's add these two rules to our table of derivatives from the previous section:
Special cases
There are two special cases of derivative rules that apply to functions that are used
frequently in economic analysis. You may want to review the sections on natural
logarithmic functions and graphsand exponential functions and graphs before
starting this section.
Note that the generalized natural log rule is a special case of the chain rule:
Exponential functions
Taking the derivative of an exponential function is also a special case of the chain
rule. First, let's start with a simple exponent and its derivative. When a function
takes the logarithmic form:
If the power of e is a function of x, not just the variable x, then use the chain rule:
For example, suppose you are taking the derivative of the following function:
Just as a first derivative gives the slope or rate of change of a function, a higher
order derivative gives the rate of change of the previous derivative. We'll tak more
about how this fits into economic analysis in a future section, [link: economic
interpretation of higher order derivatives] but for now, we'll just define the
technique and then describe the behavior with a few simple examples.
To find a higher order derivative, simply reapply the rules of differentiation to the
previous derivative. For example, suppose you have the following function:
According to our rules, we can find the formula for the slope by taking the first
derivative:
Take the second derivative by applying the rules again, this time to y', NOT y:
Note that the notation for second derivative is created by adding a second prime.
Other notations are also based on the corresponding first derivative form. Here are
some examples of the most common notations for derivatives and higher order
derivatives.
Now for some examples of what a higher order derivative actually is. Let's start
with a nonlinear function and take a first and second derivative. Recall from
previous sections that this equation will graph as a parabola that opens
downward [link: graphing binomial functions].
x=1
x=2
So, how do we interpret this information? When x equals 0, we know that the
slope of the function, or rate of change in y for a given change in x (from the first
derivative) is 6. Similarly, the second derivative tells us that the rate of change of
the first derivative for a given change in x is -2. In other words, when x changes,
we expect the slope to change by -2, or to decrease by 2. We can check this by
changing x from 0 to 1, and noting that the slope did change from 6 to 4, therefore
decreasing by 2.
To sum up, the first derivative gives us the slope, and the second derivative gives
the change in the slope. In economics, the first two derivatives will be the most
useful, so we'll stop there for now.
Problem Set
Rules of calculus - functions of one variable
SHOW SOLUTIONS
The first multiple choice quiz in this section is designed for those new to calculus.
If you choose the wrong answer, you will get feedback about probable mistakes
and a link to the correct rule to use as well as a step-by-step solution.
The second quiz is more extensive and is designed for you to use as a final test of
your understanding of the principles presented in this section.
Quiz 1
Take the derivative of the following functions, and calculate the value of the slope
when x is equal to 1:
1.
a.
b.
c.
d.
2.
a.
b.
c.
d.
3.
a.
b.
c.
d.
4.
a.
b.
c.
d.
5.
a.
b.
c.
d.
6.
a.
b.
c.
d.
7.
a.
b.
c.
d.
8.
a.
b.
c.
d.
Quiz 2
b.
c.
d.
a.
b.
c.
d.
a.
b.
c.
d.
a.
b.
c.
d.
a.
b.
c.
d.
6. Determine the slope and the rate of change of the slope of the following
function when x=1:
a.
b.
c.
d.
7. Use the product rule and the exponent rule to find the derivative of the function:
a.
b.
c.
d.
8. Although you can always simplify before using differentiation techniques, for
practice use the exponent rule and the generalized power rule before simplifying to
find the formula for the slope of the following function:
a.
b.
c.
d.
9. In the following function determine the value of the function, the slope, and the
rate of change of the slope when x=-1.
a.
b.
c.
d.
Problem Set
Rules of calculus - functions of one variable
The first multiple choice quiz in this section is designed for those new to calculus.
If you choose the wrong answer, you will get feedback about probable mistakes
and a link to the correct rule to use as well as a step-by-step solution.
The second quiz is more extensive and is designed for you to use as a final test of
your understanding of the principles presented in this section.
Quiz 1
Take the derivative of the following functions, and calculate the value of the slope
when x is equal to 1:
1.
a. correct rule:y=constant
rule: y=linear
function
b. incorrect rule:y=constant
16 =the value of the rule: y=linear
function when x=1. The function
slope is always 6, which
is why there's no x in the
y' formula.
c. incorrect rule: y=linear
Drop the x if its power is function
1
d. incorrect rule:y=constant
derivative of a constant
always 0.
Solution to 1:
2.
a. correct rule: y =
polynomial
rule: y =
sum/difference
b. incorrect rule: y =
polynomial
subtract 1 from original
power
c. incorrect rule: y =
polynomial
don't forget coefficients
d. incorrect rule: y =
polynomial
drop constants, drop
variables with power of 1
Solution to 2:
3.
a. correct rule: y =
sum/difference
b. incorrect rule: y =
sum/difference
watch sign of second term
c. incorrect rule: y =
sum/difference
signs must be consistent with
original problem
d. incorrect rule: y =
polynomial
subtract 1 from powers in
each term
Solution to 3:
4.
5.
a. correct y=quotient
rule
b. incorrect y=quotient
rule
Denominator is g squared
c. incorrect y=quotient
rule
subtract terms in numerator,
not add
d. incorrect y=quotient
rule
use quotient rule, not product
rule y=product rule
Solution to 5:
6.
a. correct y=composite
fn/chain rule
or y=gen'l
power fn rule
b. incorrect y=gen'l power
fn rule
take derivative of inside term
also
c. incorrect y=gen'l power
fn rule
carry coefficients from inside
derivative y=polynomial
rule
d. incorrect y=composite
fn/chain rule
derivatives have to be
functions of x, last step is to
sub value of u back into
function
Solution to 6:
7.
a. correct y=exponential
function rule
b. incorrect y=exponential
function rule
take derivative of power of e
c. incorrect y=exponential
function rule
bring derivative down as
coefficient
d. incorrect y=exponential
function rule
multiply terms, not add
Solution to 7:
8.
a. correct y=natural
log fn rule
b. incorrect y=natural
log fn rule
deriv of ln is
reciprocal of term
c. incorrect y=natural
log fn rule
drop ln symbol when
take deriv
d. incorrect y=natural
log fn rule
need deriv of term
inside ln operation
Solution to 8:
Quiz 2
a. correct
b. incorrect
c. incorrect
d. incorrect
a. correct
b. incorrect
c. incorrect
d. incorrect
a. correct
b. incorrect
c. incorrect
d. incorrect
4. Find the formula for the slope of the following function
a. correct
b. incorrect
c. incorrect
d. incorrect
a. correct
b. incorrect
c. incorrect
d. incorrect
6. Determine the slope and the rate of change of the slope of the following
function when x=1:
a. correct
b. incorrect
c. incorrect
d. incorrect
7. Use the product rule and the exponent rule to find the derivative of the function:
a. correct
b. incorrect
c. incorrect
d. incorrect
8. Although you can always simplify before using differentiation techniques, for
practice use the exponent rule and the generalized power rule before simplifying to
find the formula for the slope of the following function:
a. correct
b. incorrect
c. incorrect
d. incorrect
9. In the following function determine the value of the function, the slope, and the
rate of change of the slope when x=-1.
a. correct
b. incorrect
c. incorrect
d. incorrect
Economic interpretation of calculus
operations - Univariate
A very clear way to see how calculus helps us interpret economic information and
relationships is to compare total, average, and marginal functions.
For a given value of Q, say Q=10, we can interpret this function as telling us that:
when we produce 10 units of this good, the total cost is 190. We would like to
learn more about how costs evolve over the production cycle, so let's calculate
average cost, which is total cost divided by the number of units produced, or Q:
Therefore, when we produce 10 units of this good, the average cost per unit is 19.
This is somewhat deceptive, however, because we still don't know how costs
evolve or change as we produce. For example, the first unit (Q = 1) cost 10 to
produce. Obviously, if the average ends up being 19, and the first unit cost 10,
then the cost of producing a unit must be changing as we produce different units.
Alternatively, to be more technical, the change in total cost is not the same every
time we change Q. Let's define this change in total cost for a given change in Q as
the marginal cost.
Sound familiar? The slope is defined as the rate of change in the Y variable (total
cost, in this case) for a given change in the X variable (Q, or units of the good).
Therefore, taking the first derivative, or calculating the formula for the slope can
determine the marginal cost for a particular good.
What about the change in marginal cost? That way, we can not only evaluate costs
at a particular level, but we can see how our marginal costs are changing as we
increase or decrease our level of production. Thanks to our calculus background,
it's clear that the change in marginal cost or change in slope can be calculated by
taking the second derivative.
These three equations now give us a considerable amount of information regarding
the cost process, in a very clear format. For example, calculate the marginal cost
of producing the 100th unit of this good.
Now, suppose your boss wants you to forecast costs for the 101st unit. You can
recalculate marginal cost, or you can note that the second derivative tells you that
the marginal cost is expected to change by an increase of two, for every one unit
increase in Q. Therefore,
To sum up, you can start with a function, take the first and second derivatives and
have a great deal of information concerning the relationship between the variables,
including total values, changes in total values, and changes in marginal values.
The first and second derivatives can also be used to look for maximum and
minimum points of a function. For example, economic goals could include
maximizing profit, minimizing cost, or maximizing utility, among others.
Note how much care is being taken to limit the discussion of concavity to the part
of the function near the point being considered. Suppose the function is a higher
order polynomial, one that takes the shape of a curve with 2 or more turning
points. It would be easy to imagine a function where part was below the horizontal
tangent line, turned again, and came back up past the line. The definition of
concavity refers only to the part of the function near the point where the tangent
line touches the curve, it isn't required to hold everywhere on the curve.
Consider the tangent line itself. Recall from past section on linear functions that
the slope of a horizontal line or function is equal to zero. Therefore, the slope at
the top or turning point of this concave function must be zero. Another way to see
this is to consider the graph to the left of the turning point. Note that the function
is upward-sloping, ie has a slope greater than zero. The section of the graph to the
right of the turning point is downward-sloping, and has negative slope, or a slope
less than zero.
As you look at the graph from left to right, you can see that the slope is first
positive, becomes a smaller positive number the closer you get to the turning point,
is negative to the right of the turning point, and becomes a larger negative number
the further you travel from the turning point. Since this is a continuous function,
there must be a point where the slope crosses from positive to negative. In other
words, for an instant, the slope must be zero. This point we have already identified
as the turning-point.
There is a much easier way to identify what's going on, however. Recall that
second derivatives give information about the change of slope. We can use that in
conjunction with the first derivative at increasing points of x (as you travel left to
right on the graph) to determine identifying characteristics of functions.
x y f'(x) f''(x)
-2 -1 4 -2
0 3 0 -2
2 -1 -4 -2
Note that a negative second derivative means that the first derivative is always
decreasing for a given (positive) change in x, i.e., as x increases, (always reading
the graph from left to right). If the first derivative is always decreasing, AND we
know it goes through zero at the turning point, then it has to be the case that the
function is concave in the neighborhood of the turning point--i.e., the turning point
is a maximum point.
In order to fully appreciate this result, let's consider the opposite--a convex
function, i.e., a function that is above the line that is tangent to the turning point, in
the neighborhood of that point.
Moving left to right, note that the slope is negative, goes through zero at the
turning point, then becomes positive. Therefore, we would expect the underlying
function to be one where the first derivative is zero at the turning point, with a
positive second derivative in the neighborhood of the turning point, indicating an
increasing slope. These two conditions are characteristic of a function with a
minimum point.
Not only do these characteristics of first and second order derivatives describe
functions with maximum and minimum points, but they are sufficient to prove that
the points being considered are maximum or minimum points. Let's review the
characteristics:
A relative minimum at point x = a will have the derivatives f' (a) = 0 and f'' (a) > 0.
A relative maximum at point x = a will have the derivatives f' (a) = 0 and f'' (a) < 0.
Note, the word relative is used to indicate a maximum or minimum point in the
neighborhood of the point ( x = a) . Only if it can be proved that one and only one
max or min exists can it be considered the absolute optimum point. For our
purposes, this will only occur if the second derivative is a constant, meaning the
function goes through the turning point only once, and therefore has only one
maximum or minimum.
Unconstrained optimization
Now that we can use differentiation to collect so much information regarding the
characteristics of functions, the optimization of economic functions will be very
straightforward.
Given a continuous, differentiable function, follow these steps to find the relative
maximum or minimum of a function:
1. Take the first derivative of a function and find the function for the slope.
2. Set dy/dx equal to zero, and solve for x to get the critical point or points. This is
the necessary, first-order condition.
4. Substitute the x from step 2 into the second derivative and solve, paying
particular attention to the sign of the second derivative. This is also known as
evaluating the second derivative at the critical point(s), and provides the sufficient,
second-order condition.
5. Use the following characteristics to determine whether the function evaluated at
the critical point or points is a relative maximum or minimum:
You will probably always practice on functions where the maximum or minimum
does exist, but keep in mind that you will be doing public policy in the real world.
Just because you are looking for a quantity that optimizes profit or the production
level that minimizes cost doesn't mean it actually exists. That's why you always
need to follow all steps and confirm all results with both the necessary and
sufficient conditions. (Especially making sure that your optimum point is the type
you need, i.e. a max if you're maximizing and a min if you're minimizing!)
Example 1: Find the critical values of the following function, and test to determine
whether the function is convex or concave and has a relative maximum or
minimum:
Solution 1: Take the first derivative and simplify, and then solve for the critical
value. This is the value of x where the slope of the function is equal to zero:
Evaluate the function at the critical point determined above (this is not a necessary
step, but for practice and to give context we'll solve for it):
Now, determine the second derivative and evaluate it at the critical point:
The second derivative is always negative, regardless of the value of x. This gives
us two pieces of information. First, that the function has a relative maximum (i.e.
is concave), and second, that the constant second derivative implies a single
turning point, and therefore the relative maximum is also an absolute maximum.
Example 2: Given the following total cost function, determine the level of
production that minimizes the average cost, and the level that minimizes the
marginal cost:
Solution 2: Convert the total cost function into an average cost function by
dividing by Q:
Now, to minimize the average cost function, follow the steps listed above. Start by
taking the first derivative, setting it equal to zero, and solving for critical points Q:
When Q = 12, the average cost function reaches a relative optima; now we test for
concavity by taking the second derivative of average cost:
Note the second derivative is positive for all values of Q, including the critical
point Q = 12, therefore by the second order test, the function has a relative
minimum at the critical point. Since the second derivative is constant, the relative
minimum is also an absolute minimum.
Note that we were able to prove average cost is minimized when Q is 12, without
having to actually determine the average cost.
Now, to minimize marginal cost. From the original function total cost, take the
first derivative to get the function for the slope, or rate of change of total cost for a
given change in Q, also known as marginal cost.
Now, follow the steps to minimize the marginal cost function. Even though MC is
the function for the slope of total cost, ignore that and treat it as a stand-alone
function, and take the first and second order derivatives according to the steps of
optimization.
Example 3: Find the optimum points of the profit function and determine what
level of production Q will maximize profit.
Note that there are 2 critical points, but from an economic standpoint, only one is
available to us as a solution to our problem, since we can't produce a negative
quantity.
The second derivative is less than zero, which means our function is concave and
has a relative maximum when Q equals 24.
One last note: the title of this section was unconstrained optimization. The word
unconstrained refers to the fact that we placed no constraints on the functional
relationships we were optimizing. In other words, we assumed that any level of
the x variable was available to us, with the real world exception of negative values
of physical quantities (recall Q = -40 was ruled out).
Of course, this is not realistic, and as our models become more realistic in the
multivariate section, we will add constraints to our optimization problems. There is
no point in doing constrained optimization in univariate processes because it is
always easier to embed the constraint within one of the equations and use the same
process as outlined in this section.
Problem Set
Economic interpretation of calculus
operations - Univariate
SHOW SOLUTIONS
Practice problems
1a.
b.
c.
d.
2a.
b.
c.
d.
3a.
b.
c.
d.
4a.
b.
c.
d.
5a.
b.
c.
d.
6a.
b.
c.
d.
7a.
b.
c.
d.
8a.
b.
c.
d.
9a.
b.
c.
d.
10a.
d.
Problem Set
Economic interpretation of calculus
operations - univariate
HIDE SOLUTIONS
Practice problems
1a. correct
b. incorrect
c. incorrect
d. incorrect
2a.
correct
b.
incorrect
c.
incorrect
d.
incorrect
3a.
correct
b.
incorrect
c.
incorrect
d.
incorrect
4a.
correct
b.
incorrect
c.
incorrect
d.
incorrect
5a.
correct
b. incorrect
c.
incorrect
d.
incorrect
6a. correct
b. incorrect
c. incorrect
d. incorrect
7a. correct
b. incorrect
c. incorrect
d. incorrect
8a. correct
b. incorrect
c. incorrect
d. incorrect
9a. correct
b. incorrect
c. incorrect
d. incorrect
10a.
correct
d.
incorrect
Rules of calculus - multivariate
In the real world, it is very difficult to explain behavior as a function of only one
variable, and economics is no different. More specific economic interpretations
will be discussed in the next section, but for now, we'll just concentrate on
developing the techniques we'll be using.
For example, suppose that the following function describes some behavior:
Differentiating this function still means the same thing--still we are looking for
functions that give us the slope, but now we have more than one variable, and more
than one slope.
Visualize this by recalling from graphing what a function with two independent
variables looks like. Whereas a 2-dimensional picture can represent a univariate
function, our z function above can be represented as a 3-dimensional shape. Think
of the x and y variables as being measured along the sides of a chessboard. Then
every combination of x and y would map onto a square somewhere on the
chessboard. For example, suppose x=1 and y=1. Start at one of the corners of the
chessboard. Then move one square in on the x side for x=1, and one square up into
the board to represent y=1. Now, calculate the value of z.
Formally, the definition is: the partial derivative of z with respect to x is the
change in z for a given change in x, holding y constant. Notation, like before, can
vary. Here are some common choices:
Now go back to the mountain shape, turn 90 degrees, and do the same experiment.
Now, we define a second slope as the change in the height of the z function in
response to a movement forward on the chessboard (perpendicular to the
movement measured by the first slope calculation), or a change in the y variable,
holding the x variable constant. Typical notation for this operation would be
The rules of partial differentiation follow exactly the same logic as univariate
differentiation. The only difference is that we have to decide how to treat the other
variable. Recall that in the previous section, slope was defined as a change in z for
a given change in x or y, holding the other variable constant. There's our clue as to
how to treat the other variable. If we hold it constant, that means that no matter
what we call it or what variable name it has, we treat it as a constant. Suppose, for
example, we have the following equation:
Note that there were no y variables in the first term, so differentiation was exactly
like the univariate process; in the last term there were no x variables, therefore the
derivative is zero, according to the constant rule, since y is treated as a constant.
Again, note that the first term had no "variables" in it, since x is being treated as a
constant, therefore the derivative of that term is 0.
To make sure you have a clear picture of more than one slope in a function, let's
evaluate the two partial derivatives at the point on the function where x = 1 and y =
2:
How do we interpret this information? First, note that when x = 1 and y = 2, then
the function z takes on a value of 3. At this point on our "mountain' or 3
dimensional shape, we can evaluate the change in the function z in 2 different
directions. First, the change in z with respect to x is 10. In other words, the slope
in a direction parallel to the x-axis is 10. Now turn 90 degrees. The slope in a
direction perpendicular to our previous slope is 6, therefore not quite as steep.
Also, note that although each slope depends on the change in only one variable, the
position or fixed value of the other variable does matter; since you need both x and
y to actually calculate the numerical values of slope. We'll come back to this in the
next section, and look at the economic meaning behind this relatedness. But first,
back to the rules.
The product and quotient of functions rules follow exactly the same logic: hold all
variables constant except for the one that is changing in order to determine the
slope of the function with respect to that variable. To illustrate the product rule,
first let's redefine the rule, using partial differentiation notation:
Now use the product rule to determine the partial derivatives of the following
function:
To illustrate the quotient rule, first redefine the rule using partial differentiation
notation:
Use the new quotient rule to take the partial derivatives of the following function:
Just as in the previous univariate section, we have two specialized rules that we
now can apply to our multivariate case.
First, the generalized power function rule. Again, we need to adjust the notation,
and then the rule can be applied in exactly the same manner as before.
Use the power rule on the following function to find the two partial derivatives:
The composite function chain rule notation can also be adjusted for the
multivariate case:
Then the partial derivatives of z with respect to its two independent variables are
defined as:
Let's do the same example as above, this time using the composite function
notation where functions within the z function are renamed. Note that either rule
could be used for this problem, so when is it necessary to go to the trouble of
presenting the more formal composite function notation? As problems become
more complicated, renaming parts of a composite function is a better way to keep
track of all parts of the problem. It is slightly more time consuming, but mistakes
within the problem are less likely.
The last two special cases in multivariate differentiation also follow the same logic
as their univariate counterparts.
Then the partial derivatives of z with respect to its independent variables are
defined as:
The rule for taking partials of exponential functions can be written as:
Then the partial derivatives of z with respect to its independent variables are
defined as:
One last time, we look for partial derivatives of the following function using the
exponential rule:
Higher order partial and cross partial derivatives
The story becomes more complicated when we take higher order derivatives of
multivariate functions. The interpretation of the first derivative remains the same,
but there are now two second order derivatives to consider.
First, there is the direct second-order derivative. In this case, the multivariate
function is differentiated once, with respect to an independent variable, holding all
other variables constant. Then the result is differentiated a second time, again with
respect to the same independent variable. In a function such as the following:
These second derivatives can be interpreted as the rates of change of the two slopes
of the function z.
Now the story gets a little more complicated. The cross-partials, fxy and fyx are
defined in the following way. First, take the partial derivative of z with respect to
x. Then take the derivative again, but this time, take it with respect to y, and hold
the x constant. Spatially, think of the cross partial as a measure of how the slope
(change in z with respect to x) changes, when the y variable changes. The
following are examples of notation for cross-partials:
We'll discuss economic meaning further in the next section, but for now, we'll just
show an example, and note that in a function where the cross-partials are
continuous, they will be identical. For the following function:
Now, starting with the first partials, find the cross partial derivatives:
Note that the cross partials are indeed identical, a fact that will be very useful to us
in future optimization sections.
Problem Set
Rules of calculus - multivariate
SHOW SOLUTIONS
1a.
b.
c.
d.
2a.
b.
c.
d.
3a.
b.
c.
d.
4a.
b.
c.
d.
5a.
b.
c.
d.
6a.
b.
c.
d.
7a.
b.
c.
d.
8a.
b.
c.
d.
9a.
b.
c.
d.
10a.
b.
c.
d.
Problem Set
Rules of calculus - multivariate
HIDE SOLUTIONS
1a. correct
b. incorrect
c. incorrect
d. incorrect
2a. correct
b. incorrect
c. incorrect
d. incorrect
3a. correct
b. incorrect
c. incorrect
d. incorrect
4a. correct
b. incorrect
c. incorrect
d. incorrect
5a. correct
b. incorrect
c. incorrect
d. incorrect
6a. correct
b. incorrect
c. incorrect
d. incorrect
7a. correct
b. incorrect
c. incorrect
d. incorrect
8a. correct
b. incorrect
c. incorrect
d. incorrect
9a. correct
b. incorrect
c. incorrect
d. incorrect
10a. correct
b. incorrect
c. incorrect
d. incorrect
Economic interpretation of calculus
operations - multivariate
Slope and marginal values have basically the same interpretation in multivariate
problems as they do in uinivariate problems. One of the benefits of multivariate
processes is that economists can get a much richer interpretation of how variables
act and interact.
Suppose that you are trying to understand the process of consumption and how
economic agents evaluate and trade off utility as they decide what goods to
purchase and consume. Without even knowing an exact utility function, we can
make some predictions regarding this process by using the concepts of partial
derivatives.
In virtually every area of economic behavior, slopes and rates of change from
calculus operations can give information about how agents make decisions, such as
how they value the next unit of consumption or the next unit of production, or the
tradeoff between using labor vs. using capital, or the utility associated with one
more unit of income.
Before we can interpret the information, however, we have to adapt our univariate
techniques to multivariate functions.
The conditions for relative maxima and minima for multivariate functions are very
similar to those for univariate functions, with one additional requirement.
First, all first-order partial derivatives must equal zero when evaluated at the same
point, called a critical point. If we are considering a function z with two
independent variables x and y, then the three-dimensional shape taken by the
function z reaches a high or low point when evaluated at specific values of x and y;
these values are determined by setting the first derivatives equal to zero, and then
solving the resulting system of equations for the two variables.
Second, the second-order direct partial derivatives must both be the same sign
when evaluated at the critical point(s). For a maximum, they must both be
negative and for a minimum, both positive. This condition serves the same
purpose as the second-order derivative condition in univariate optimization. It
guarantees that the point where the slope is zero is indeed a high point, in the
direction of the x variable and also in the direction of the y variable. This
condition must be satisfied for both variables simultaneously, in order to rule out
shapes of functions such as "saddle points."
For this type of a shape, the first order derivatives of x and y are zero, but the
second order derivatives have different signs, meaning a relative maximum in one
direction and a relative minimum in the other.
The third condition is rather technical. When evaluated at the critical point(s), the
product of the second order partials must exceed the product of the cross partials.
This condition rules out critical points that are neither points of maximum or
minimum, but are points of inflection. A point of inflection is a point on a shape
where certain conditions of optima are met, but the function does not actually take
on the shape of a maximum or minimum.
To sum up, the points of optimum must have all of the following characteristics:
Let's try an example. Given the following function, start by setting first derivatives
equal to zero:
Using the technique of solving simultaneous equations, find the values of x and y
that constitute the critical points.
Now, take the second order direct partial derivatives, and evaluate them at the
critical points.
Both second order derivatives are positive, so we can tentatively consider the
function evaluated at the critical point (x=1, y=1) to be a relative minimum. Now
we take cross partials and check the final condition:
Note that it wasn't necessary to take both cross partials. Recall that in a previous
section we noted that continuous functions will have identical cross partials.
Therefore, either cross partial could have been used in the last condition, but taking
both is a good way to check your work.
The Lagrangian multiplier method incorporates a constraint into the body of the
function being optimized in such a way that only if the constraint is met will the
function reach its optimal point.
Suppose our goal is to optimize Z, subject to the requirement that x and y equal 60:
Now, we can take derivatives of L, with respect to x, y, and our new variable λ.
The result of forming this new function is that we have added the condition that in
order for the derivative of L with respect to the variable λ to be equal to zero (a
condition of optimization), the coefficient on the new variable must be equal to
zero. Given the way the constraint is rearranged, the coefficient is zero only when
the constraint is met. Therefore, the process of optimization now includes meeting
the constraint as a condition of optimization.
SHOW SOLUTIONS
Practice problems
1a.
b.
c.
d.
2a.
b.
c.
d.
3a.
b.
c.
d.
Problem Set
Economic interpretation of calculus
operations - multivariate
HIDE SOLUTIONS
Practice problems
1a. correct
b. incorrect
c. incorrect
d. incorrect
2a. correct
b. incorrect
c. incorrect
d. incorrect
3a. correct
b. incorrect
c. incorrect
d. incorrect