Step 19: Optimisation
- Optimisation means finding the largest or smallest value of a quantity: the biggest area, the least material, the most profit. Write the quantity as a function of one variable using the constraint, state its domain, differentiate and set the derivative to zero.
- Always justify that you have a maximum or minimum (second derivative, sign change of the first derivative, or the candidates test on a closed interval), then answer the question that was asked, with units.
- For a firm, profit \( \pi = R-C \) is greatest where \( MR = MC \) (the first-order condition) and \( \pi” < 0 \) (the second-order condition: MC cuts MR from below). Average cost is least where \( MC = AC \).
- Exam point: revenue is greatest where \( MR = 0 \), which is where the price elasticity of demand is exactly \( -1 \). A profit-maximising firm with positive marginal cost always produces on the elastic part of demand.
A method for every optimisation problem
The calculus in an optimisation problem is usually two lines long: differentiate, set equal to zero. The skill is everything around it, turning a paragraph of words into a function of one variable and then checking that the answer makes sense. The same five steps work every time.
| Step | What you do |
|---|---|
| 1 | Draw a diagram, label the variables, and name the quantity to be maximised or minimised. |
| 2 | Use the constraint to write that quantity as a function of one variable. State the domain (lengths positive, outputs within capacity). |
| 3 | Differentiate and solve derivative \( = 0 \). Reject solutions outside the domain. |
| 4 | Justify the maximum or minimum: second derivative test, sign change of the first derivative, or the candidates test if the domain is closed. |
| 5 | Answer the question asked, in context and with units. |
A farmer has 60 m of fencing to make a rectangular pen against a long straight wall, so only three sides need fencing. Find the largest possible area.
The greatest area is 450 m², with the pen 15 m deep and 30 m along the wall. Notice the answer is not a square: the free wall changes the shape.
A minimum problem follows the same steps. The classic one asks for the cheapest shape of a container, where “cheapest” means least surface area for a fixed volume.
A closed cylindrical can must hold 500 cm³. Find the radius that minimises the total surface area, and show that the height is then equal to the diameter.
The least surface area is about 349 cm², when \( r \approx 4.30 \) cm and the height equals the diameter, about 8.60 cm.
Distance problems have a useful shortcut. A distance is never negative, so it is smallest exactly where its square is smallest, and the square has no awkward square root to differentiate.
Find the point on the curve \( y = \sqrt{x} \) that is closest to the point \( (3, 0) \), and the least distance.
The closest point is \( \left(2.5, \sqrt{2.5}\right) \approx (2.5, 1.58) \), at a distance of about 1.66 units.
Profit maximisation: MR = MC
Economics is full of optimisation, and the first-year results all come from setting a derivative to zero. Start with the most important one. Profit is revenue minus cost, \( \pi(Q) = R(Q)-C(Q) \). At a maximum the derivative is zero:
This is the first-order condition (FOC). It is necessary but not sufficient: \( MR = MC \) also holds at a profit minimum. The second-order condition (SOC) \( \pi”(Q) < 0 \) means \( R”(Q) < C”(Q) \): marginal cost must be rising faster than marginal revenue, so the MC curve cuts the MR curve from below.
A firm sells in a competitive market at a price of $39, so \( R = 39Q \). Its total cost is \( C = Q^3-12Q^2 + 60Q + 40 \) dollars. Find the output that maximises profit, and the maximum profit.
Profit is maximised at 7 units, giving $58. A firm that stopped at the first solution of \( MR = MC \) would have chosen the worst output nearby, a loss of $50.
Minimum average cost: MC = AC
Average cost is \( AC(Q) = \dfrac{C(Q)}{Q} \). Differentiate with the quotient rule:
For \( Q > 0 \), the sign of the slope of AC is the sign of \( MC-AC \). This is the rule you know from test marks: if your next mark is below your average, the average falls; if it is above, the average rises. So AC falls while \( MC < AC \), rises once \( MC > AC \), and at its lowest point \( MC = AC \). The MC curve passes through the bottom of the AC curve.
A firm’s cost is \( C = 0.5Q^2 + 10Q + 200 \) dollars. Find the output that minimises average cost, and check that \( MC = AC \) there.
Average cost is lowest, at $30 per unit, when the firm makes 20 units.
Revenue maximisation and elasticity
When a firm sets its own price, demand slopes down and price depends on output: \( P = P(Q) \). Revenue is \( R = PQ \), and the product rule gives
where \( \varepsilon \) is the price elasticity of demand (negative for a normal demand curve). Revenue is greatest where \( MR = 0 \), that is where \( \varepsilon = -1 \): unit elasticity. Where demand is elastic (\( \varepsilon < -1 \)), \( MR > 0 \), so selling more by cutting the price raises revenue; where it is inelastic, \( MR < 0 \) and a price cut loses revenue.
A monopolist faces demand \( Q = 120-4P \) and has cost \( C = 6Q + 100 \). Find (a) the revenue-maximising output, with the elasticity there, and (b) the profit-maximising output, price and profit.
The firm sells 48 units at $18 for a profit of $476, fewer units at a higher price than the revenue maximum. At \( Q = 48 \), \( \varepsilon = -4 \times \tfrac{18}{48} = -1.5 \), elastic, and indeed \( MR = 18\left(1-\tfrac{2}{3}\right) = 6 = MC \).
Practise: 6 questions
Try each one on paper first, then check the worked answer.
EasyQ1. Two positive numbers add up to 20. Find the largest possible value of their product. Show worked answer
\( P = x(20-x) = 20x-x^2 \), so \( P’ = 20-2x = 0 \) at \( x = 10 \).
\( P” = -2 < 0 \): a maximum.
Both numbers are 10, and the largest product is 100.
EasyQ2. A firm’s profit is \( \pi(Q) = -2Q^2 + 80Q-300 \) dollars. Find the profit-maximising output and the maximum profit. Show worked answer
\( \pi”(Q) = -4 < 0 \): a maximum.
\( \pi(20) = -800 + 1600-300 = 500 \).
Maximum profit $500, at 20 units.
MediumQ3. Squares of side \( x \) cm are cut from the corners of a 30 cm by 16 cm sheet of card, and the sides are folded up to make an open box. Find the value of \( x \) that gives the greatest volume, and that volume. Show worked answer
\( V’ = 12x^2-184x + 480 = 4(3x-10)(x-12) \).
\( x = 12 \) is outside the domain, so \( x = \tfrac{10}{3} \).
\( V” = 24x-184 = -104 < 0 \) at \( x = \tfrac{10}{3} \): a maximum.
\( V = \tfrac{10}{3} \times \tfrac{70}{3} \times \tfrac{28}{3} = \tfrac{19600}{27} \approx 726 \) cm³.
MediumQ4. A firm’s total cost is \( C = 2Q^2 + 18Q + 128 \). Find the output that minimises average cost, and verify that \( MC = AC \) there. Show worked answer
\( AC’ = 2-\dfrac{128}{Q^2} = 0 \) gives \( Q^2 = 64 \), so \( Q = 8 \).
\( AC” = \dfrac{256}{Q^3} > 0 \): a minimum. \( AC(8) = 16 + 18 + 16 = 50 \).
\( MC = 4Q + 18 = 50 \) at \( Q = 8 \). So \( MC = AC = \$50 \).
MediumQ5. Demand for a product is \( P = 90-3Q \). Find the output and price that maximise revenue, the maximum revenue, and the price elasticity of demand at that point. Show worked answer
\( P = 90-45 = 45 \), and \( R = 45 \times 15 = 675 \).
\( Q = 30-\tfrac{P}{3} \), so \( \dfrac{dQ}{dP} = -\tfrac{1}{3} \).
\( \varepsilon = -\tfrac{1}{3} \times \tfrac{45}{15} = -1 \): unit elastic, as expected at a revenue maximum.
ExamQ6. An open box (no lid) has a square base of side \( x \) cm and a volume of 500 cm³. (a) Show that the external surface area is \( A = x^2 + \dfrac{2000}{x} \). [2] (b) Find the value of \( x \) for which \( A \) is stationary, and the corresponding value of \( A \). [3] (c) Determine the nature of this stationary value, and state the height of the box. [2] Show worked answer
\( A = x^2 + 4xh = x^2 + 4x \cdot \dfrac{500}{x^2} = x^2 + \dfrac{2000}{x} \). [A1]
(b) \( \dfrac{dA}{dx} = 2x-\dfrac{2000}{x^2} \). [M1]
\( = 0 \) gives \( x^3 = 1000 \), \( x = 10 \). [A1]
\( A = 100 + 200 = 300 \) cm². [A1]
(c) \( \dfrac{d^2A}{dx^2} = 2 + \dfrac{4000}{x^3} = 6 > 0 \), so a minimum. [M1]
Height \( h = \dfrac{500}{100} = 5 \) cm. [A1]
Total: 7 marks.
Check yourself
1. What is the first-order condition for profit maximisation?
2. At the output that maximises revenue, the price elasticity of demand is
3. At the current output, marginal cost is below average cost. What is happening to average cost as output rises?
Your score: 0 out of 3
The short version
- Method: diagram, one-variable function with its domain, derivative \( = 0 \), justify max or min, answer the question with units.
- Justify with the second derivative, a sign change of the first derivative, or the candidates test on a closed interval. On an open domain, a single critical point that is a local extremum is the absolute one.
- Profit: FOC \( MR = MC \), SOC \( \pi” < 0 \) (MC cuts MR from below). With a cubic cost, one solution of \( MR = MC \) is a profit minimum.
- \( \dfrac{d(AC)}{dQ} = \dfrac{MC-AC}{Q} \), so average cost is least where \( MC = AC \).
- \( MR = P\left(1 + \tfrac{1}{\varepsilon}\right) \): revenue is greatest where \( \varepsilon = -1 \), and a profit-maximising firm with \( MC > 0 \) prices on the elastic part of demand.
- The full chapter in Mathematics Made Simple has many more worked examples and a full set of practice questions with a complete answer key.
Further reading on EconTutorials
Related in-depth articles from our blog:
- Profit Maximisation with Calculus: First and Second Order Conditions
- Marginal Analysis: Why Every Marginal Concept Is a Derivative
- Elasticity Mathematics: Point vs Arc Elasticity, Cross-Price Elasticity and the Lerner Index
- Derivatives in Economics: Marginal Cost, Revenue and Profit with Step-by-Step Calculus Examples
