01_a_SingleVariableOptimization
01_a_SingleVariableOptimization
This first module reviews the basics of one variable maximization from an economics
perspective. Consider a monopoly which produces a single product. The cost of producing each
unit is c. Current output is q0 . You have been recruited to figure out how much the firm should
produce and hence what price to set. What should you do? As a well trained economist you
seek information from the marketing department on how the demand for the product would
vary with price. You then use a statistical software package1 to estimate a demand price
function, p(q) . In the example depicted below the estimated demand price function is linear.
You can now compute a revenue function, R(q) p(q)q .
You pick some new output q1 q0 q where q is small and then compute the rate at which
revenue and cost rises with output.
Profit is (q) R(q) C(q) . Thus the rate at which profit rises with output is
1
For this purpose Excel’s statistical package would be more than adequate.
1
John Riley 26 July 2019
(q1) (q0 ) (R(q1) C(q1)) (R(q0 ) C(q0 )) R(q1) R(q0 ) C(q1) C(q0 )
q1 q0 q1 q0 q1 q0 q1 q0
Therefore
The rate at which revenue rises with output is higher than 20 for all q 700 and lower for all
q 800. Thus profit is maximized at an output somewhere between 700 and 800.
2
John Riley 26 July 2019
Since the rate at which revenue rises is close to 20 on this interval, as a practical matter
it is not necessary to reduce q to something very small in order to get a more accurate
answer. Remember that the demand price function is an estimate based on the judgment of
the marketing department.
Derivative of a function
However, for a deeper economic analysis it is very helpful indeed to have an exact
solution to the maximization problem. Consider the expression for the rate of change of the
firm’s cost once more.
R(q0 q) a(q0 q) b(q0 q)2 aq0 b(q0 )2 aq0q 2bq0q b(q)2 .
Subtracting R(q0 ) and dividing by q , the rate at which revenue rises with q is
R(q1) R(q0 ) R
a 2bq0 bq .
q q
1 0
q
Note that the expression on the right hand side has a limit as q approaches zero. Then, as an
economist would say, the “marginal revenue” of the firm is
MR(q0 ) a 2bq0
R
To a mathematician, if the ratio a 2bq0 has a limit at q0 , the revenue function is
q
“differentiable” at q0 and the limit itself is the derivative of the revenue function at q0 .
The derivative of a function is typically written in one of the following three ways.
3
John Riley 26 July 2019
dR
(q) R(q) D R(q)
dq
Marginal cost is defined in the same way.
d dR dC a c
(q) (q) (q) a 2bq c 2b( q)
dq dq dq 2b
Note that marginal profit is a decreasing function of output. It is depicted below.
a c a c
Marginal profit is strictly positive for any q and strictly negative for any q . Thus
2b 2b
a c
profit is maximized by choosing the output q* . Since (a, b, c) (60, 401 ,20) the profit
2b
maximizing output is 800.
There is a second helpful way of thinking about the problem geometrically. In the
diagram on the left below we have drawn the line through the points (q0 , R(q0 )) (200,10000)
4
John Riley 26 July 2019
R(q1) R(q0 )
and (q1, R(q1)) (1000,35000) . The slope of this line is . Thus the equation of
q1 q0
the line is
R(q1) R(q0 )
R R(q0 ) (q q0 ) .
q q
1 0
In the diagram on the right the increase in output, q q2 q0 is smaller. The equation of the
new line is
R(q2 ) R(q0 )
R R(q0 ) (q q0 ) .
q q
2 0
dR 0
R R(q0 ) (q )(q q0 ) .
dq
Graphically this line touches the revenue curve at q0 . Mathematicians call this a tangent line.
5
John Riley 26 July 2019
In the next figure the graph of the profit function is depicted and also the tangent line at
q0 200 and the tangent line at q* 800 . Since the derivative of the profit function (marginal
profit) is zero at q* the slope of the tangent line at q* is zero.
6
John Riley 26 July 2019
It follows that f (q) is strictly larger at q0 than at any other point in the interval (a, b) .
When this is the case for some interval (a, b) containing q0 we say that f (q) has a strict local
maximum at q0 .
7
John Riley 26 July 2019
It is not clear from the figure which of these solves the maximization problem. The answer can
then be obtained by substituting the two local maxima into the profit function.
2
Hopefully I did the algebra correctly!