Lesson assets
No linked assets.
Further Optimization Problems
Lesson 3PM fixed the two-equation template, an objective equation and a constraint equation, against geometric and physical problems: the garden against a wall, the minimum-cost enclosure, the mailable cylinder. The same template carries directly into stockrooms, into lung physiology, into the budget for advertising. Calculus changes nothing in the procedure; only the meaning of the symbols moves. The structural wrinkle this recitation forces into view is bounded domains. When the variable is confined to a closed interval, a critical number inside the interval gives only a local extremum, and the absolute optimum can sit at an endpoint instead.
Inventory Control
A retailer who orders an entire year’s stock in one delivery pays heavily on storage, insurance, and capital tied up in unsold goods. Splitting the year into many small deliveries reduces those carrying costs but multiplies the freight, clerical, and receiving cost paid per order. The two costs pull in opposite directions, so a derivative argument decides between them. The order size minimizing the total annual inventory cost is the economic order quantity.
The setup is best handled in two steps: first carrying cost alone, with the number of orders treated as a free integer parameter; then the total cost, with the order size treated as a continuous variable.
A supermarket expects to sell 1200 cases of frozen orange juice at a steady rate over the next year. Carrying one case in inventory for one year costs £8, computed on the average inventory during a single order–reorder period. Equally spaced orders of equal size are placed. Find the annual carrying cost when the manager places:
-
one order,
-
two orders,
-
four orders.
-
A single delivery of 1200 cases. Inventory starts at 1200 and runs steadily down to 0, so the average inventory over the year is cases. Carrying cost: .
-
Two deliveries of cases each. Across each half-year the inventory drops from 600 to 0; the average is 300 cases. Carrying cost: .
-
Four deliveries of 300 cases each. The average inventory per quarter is 150 cases. Carrying cost: .
More frequent orders cut the carrying cost, and the cut is sizeable. Putting back a fixed cost per delivery will pull in the other direction; the optimum sits where the two marginal effects cancel.
For the same 1200 cases per year, each delivery now incurs an ordering cost of £75, while the carrying cost is £8 per case per year as before. Find the order size minimizing the total annual inventory cost.
Let be the order quantity in cases and the number of orders placed during the year.
Objective equation. The annual inventory cost is ordering cost plus carrying cost:
because the inventory of a single order–reorder period averages cases, and that pattern repeats unchanged across the year.
Constraint equation. The orders of size must supply the full 1200 cases:
Substituting the constraint into the objective,
The cost function is a constant times plus a linear term, the same structural family as the delivery cost from Lesson 3PM. Differentiate:
Setting ,
Since is an order quantity, , so . The second derivative confirms a minimum. The economic order quantity is 150 cases per order, and the corresponding number of orders is per year.
The two costs balance exactly at the optimum: ordering cost is , carrying cost is , total £1200. The equality is forced by , not by chance.
Problem 1
The supermarket’s sales of frozen orange juice quadruple to 4800 cases per year, while the £75 ordering cost and the £8 per case per year carrying cost are unchanged.
- Write the objective and constraint equations under the new demand.
- Express and compute its derivative.
- Solve and confirm the minimum.
- Does the order quantity double, quadruple, or follow some other scaling? Read the square-root structure of the answer.
Air Velocity in a Cough
Physical models sometimes hand the objective and constraint equations across in finished form. Deriving them lies outside calculus, but once they are written the optimization proceeds unchanged.
To clear the trachea during a cough the body raises the velocity of the expelled air by contracting the airway against an increase in pressure. Two empirical relations describe the situation. Let be the resting radius of the trachea, the radius during a cough, the increase in air pressure, and the air velocity.
- (Constraint) The decrease in radius is nearly proportional to the increase in pressure: with .
- (Objective) Flow theory gives proportional to the product of the pressure increase and the cross-sectional area: with . Absorbing the constant into a single positive constant gives .
Maximise over .
Solving the constraint for and substituting into the objective,
Differentiating,
The zeros of are and . The critical number inside the interval is the substantive candidate, the other being an endpoint. The second derivative,
evaluated at gives , so that critical number gives a local maximum. The endpoint values are and , both below , so the local maximum is the absolute maximum on the closed interval.
The optimal contraction during a cough is to two-thirds of the resting radius, independent of the empirical constants and . The ratio is forced by the structure of the model.
Both ends of the interval, and , were checked alongside the critical number inside the interval. They turned out to be tied at and so could not displace the maximum, but the sample was forced rather than freely chosen: on a closed interval, any candidate for the absolute optimum that lies on the boundary must be evaluated and compared against the critical numbers. The next section makes the warning bite.
When the Optimum Sits at an Endpoint
In the inventory problem and the cough model the critical number inside the interval won outright. The next example shows the opposite outcome: the global maximum lies at an endpoint, while the critical number inside the interval gives only a local minimum. A zero of the derivative gives a candidate, no more; the trouble is that local extrema need not be the answer to the applied question.
A rancher has 204 meters of fencing to enclose two separate corrals: one square, the other a rectangle whose length is twice its width. Non-negative dimensions are admissible, so either corral may degenerate to width zero. Find the dimensions giving the largest combined area.
Let be the width of the rectangle (so its length is ) and the side length of the square.
Objective equation. The combined area is
Constraint equation. The total fencing along the four sides of each corral is
The rectangle has two sides of length and two of length , summing to . Non-negativity of the dimensions and the fixed total give , i.e. .
Solving (2) for and substituting into (1),
Expanding,
Differentiating,
Setting gives . The second derivative is everywhere, so the parabola is concave up and supplies a local minimum of . Since the problem asks for the maximum, the answer must lie at an endpoint.
Evaluating the endpoints,
The absolute maximum on is square meters, attained at . From the constraint . The rancher should build only the square corral, of side 51 m, and omit the rectangle altogether. The critical number gives the smallest combined area, square meters.
A zero of the derivative gives a candidate, no more. The applied question may demand the opposite kind, and on a closed interval the answer can sit at the boundary while the critical number points in the wrong direction.
Problem 2
A farmer has 300 meters of fencing to enclose a rectangular field and divide it into two equal pens by a fence parallel to one side. Let be the length of the side perpendicular to the dividing fence.
- Sketch the configuration and write the objective and constraint equations.
- Express the area as a function of on a closed interval.
- Find the critical number and classify it.
- Identify the absolute maximum and the corresponding dimensions.
Optimal Advertising Spend
The first three sections fixed the optimum either through cost-versus-cost trade-offs or through a physical model. The next setting is closer to economic reality: a single spending decision controls revenue, and the firm chooses the spend at which net profit peaks.
A firm estimates that the weekly gross revenue from a product, in thousands of pounds, is
where (in thousands of pounds) is the weekly amount spent on advertising. Gross revenue here is revenue from sales before deducting advertising cost. The net weekly profit is
Find the spend that maximizes net profit.
Writing , the power rule and the sum rule give
Setting ,
The second derivative is for all , so supplies a local maximum. Since and as , the local maximum is also the absolute maximum on . The optimal weekly advertising spend is £100,000, generating a net profit of thousand pounds, or £100,000. Spending less than £100k leaves revenue on the table; spending more buys revenue at a worse rate than the cost of buying it.
Problem 3
The firm revises its revenue model to (in thousands of pounds) for the same weekly advertising spend .
- Write the new net profit function .
- Find the spend maximizing net profit.
- Confirm with the second derivative test.
- Compare the optimum with that of the square-root model. Which model prescribes the more aggressive spend, and why does the comparison run that way?
Cost, Revenue, and Profit
Optimization in business and economics rests on three functions of a single variable, the production level :
- the cost function , the cost of producing units;
- the revenue function , the revenue from selling units;
- the profit function , the difference between the two.
Strictly takes only non-negative integer values, since fractional cars and refrigerators are never sold, but for the purposes of differentiation each function is interpolated to a smooth curve over . Answers are then read in light of the original integer setting whenever that interpretation matters.
The derivatives , , and are called marginal cost, marginal revenue, and marginal profit, respectively. Each measures the rate at which the corresponding total responds to one more unit produced. Calculus reduces every question in this section to the location of zeros of one of these marginal functions.
Marginal Cost
A typical cost function is concave down for small and concave up for large . The shape encodes two opposing forces. At low production levels the firm benefits from economies of scale, fixed overhead spread over more output, bulk-rate inputs, so each additional unit is cheaper than the last; the cost rises but at a slowing rate. At high production levels the firm hits overtime, less efficient plant, and competition for scarce inputs, so each additional unit is more expensive than the last. The transition between the two regimes is exactly where the marginal cost is least.
A manufacturer’s daily cost (in pounds) is
Describe the behavior of the marginal cost and sketch .
Differentiating,
The marginal cost is itself a parabola opening upwards, with vanishing at . So has its minimum at , with value
Marginal cost decreases for , attains its minimum of £2 per unit at the production level , and increases thereafter.
The graph of is now read off from . Since for every , the cost is increasing throughout, as any cost ought to be. The sign of flips at : is concave down on and concave up on , so is an inflection point of the cost curve. The inflection of sits exactly above the minimum of , the point at which the firm switches from economies of scale to diseconomies of scale.
Revenue and the Demand Equation
When a firm faces many competitors, its own sales barely move the market price, so for a constant and the revenue curve is a straight line through the origin. The interesting case is the monopolist, the only supplier of the product. Customers buy more units at a low price and fewer at a high price, so for each quantity there is a highest price at which all units can be sold. The function is decreasing; its graph is the demand curve. Total revenue is then
no longer a straight line but typically a downward-opening curve with a maximum.
The demand equation for a monopolist’s product is pounds. Find the production level giving the greatest total revenue.
Total revenue is
a downward-opening parabola. The marginal revenue is , which vanishes at . Since , the critical number gives the absolute maximum. The corresponding revenue is
Selling 6 units at pounds each maximizes revenue at £18.
The demand equation is rarely handed across in finished form. More often the firm has only a handful of price-quantity observations and must fit a curve, the simplest choice being a straight line through two known points.
An open-top tour bus operator priced its city circuit at £7 per ticket and averaged 1000 customers per week. After the price was lowered to £6, weekly demand rose to 1200. Assuming the demand equation is linear, find the ticket price that maximizes weekly revenue.
The two points and lie on the demand line. Its slope is
Using the point-slope form anchored at ,
Total revenue is
The marginal revenue is
Setting gives . Since , the critical number maximizes revenue. The corresponding price is
and the maximum weekly revenue is
Of the two prices already tested, the £6 price was already at the optimum; the £7 price was leaving £200 a week on the table.
Maximizing Profit
With the cost function and the revenue function in hand, the profit function is differentiated like any other; the critical number gives the optimum production level whenever the second derivative test confirms a maximum.
The demand equation for a monopolist is pounds, and the cost function is pounds. Find the production level maximizing profit, the corresponding price, and the maximum profit.
Total revenue is
so the profit function is
The graph of is a downward-opening parabola. Its marginal profit is
so at . The second derivative confirms a maximum. The maximum profit is
The price the monopolist should charge to clear all 2500 units is
Producing 2500 units at £75 each yields a profit of £52,500.
Profit Under an Excise Tax
A tax levied per unit produced is absorbed cleanly into the cost function, leaving the demand equation untouched. The shape of the analysis is identical; only the constants move.
The government imposes an excise tax of £10 per unit. Repeat the previous example.
Each unit sold now carries an additional £10 cost paid to the government, so the cost function becomes
The demand equation, and so the revenue function, is unchanged: . The new profit function is
The marginal profit is
so at . The second derivative confirms a maximum. The new maximum profit is
and the new price is
The optimal price has risen from £75 to £80, but only by half the £10 tax. The monopolist passes half the tax onto the consumer and absorbs the other half in reduced margin; the profit collapses from £52,500 to £30,000. No production decision can recover the lost £22,500. The drop is the structural reason firms lobby against per-unit taxation.
At a production level that maximizes profit, , and since the equation reads
Profit is maximized at the production level where marginal revenue equals marginal cost. The principle is the structural lesson of the section, separate from any particular cost or demand model.
Problem 4
A firm has cost function and faces the demand equation .
- Write the revenue function and the profit function .
- Compute , , and the critical number satisfying .
- Confirm with the second derivative test that the critical number maximizes .
- Compute the optimal price and the maximum profit.
Exercises
Exercise 1
A small retailer sells 800 units of a product per year at a constant rate. The ordering cost is £40 per order and the carrying cost is £5 per unit per year. Find the economic order quantity and the minimum annual inventory cost.
Exercise 2
For the general inventory model with annual demand , ordering cost per order, and carrying cost per unit per year, derive the closed form of the economic order quantity, .
Exercise 3
For the windpipe model, show that the radius maximizing the air velocity is exactly of the resting radius, independently of the empirical constants and . The ratio is a structural invariant of the model.
Exercise 4
A rectangular page is to contain 54 square inches of printed matter, with 1-inch margins at the top and bottom and 1.5-inch margins at the sides. Find the dimensions of the page that minimize the amount of paper used.
Exercise 5
The cost of running a ship at a steady speed knots is pounds per hour, with . Find the speed minimizing the hourly cost, and show that at the minimizing speed the term is exactly one-third of the term .
Exercise 6
Find the points on the parabola closest to . Minimize the square of the distance rather than the distance itself, and justify that the answer gives the absolute minimum.
Exercise 7
A right circular cylinder is inscribed in a sphere of radius . With cylinder radius and height , the cross-section gives
Find the height that maximizes the cylinder’s volume.
Exercise 8
A monopolist faces the demand equation and has cost function .
- Find the production level maximizing profit and the corresponding price.
- The government imposes an excise tax of £4 per unit. Find the new optimal production level, the new price, and the loss of profit caused by the tax.
- By what fraction of the tax is the price raised?
Exercise 9
A firm’s marginal cost is . Find the production level minimizing the marginal cost, and compute the minimum marginal cost.