Optimization with Rational and Exponential Models
On the optimization page, most of the objective functions were polynomials: areas of fields, volumes of boxes. Many real models aren’t polynomials. The cost per item of making items is a rational function. Ticket sales that drop by a fixed percentage for each dollar of price follow an exponential model, and so does the amount of a medicine left in the body. The method is the same, but the algebra changes, and the domains are often open-ended, so justifying your answer takes a little more care.
Key ideas
Section titled “Key ideas”The same steps, new models
Section titled “The same steps, new models”The setup from the optimization page still applies: define variables, write the objective as a function of one variable, state the domain, find critical points, justify, and answer the question in context. What’s new is the kind of function you’ll differentiate:
- Rational models like or , using the quotient rule or a negative exponent.
- Exponential models like or , using the product rule and the rules from derivatives of exponential functions.
Solving f′(x) = 0 for exponential models
Section titled “Solving f′(x) = 0 for exponential models”A product like has derivative
Factor out the exponential. Since , it can never be , so the derivative is only when the other factor is: . The same works for with any base .
Solving f′(x) = 0 for rational models
Section titled “Solving f′(x) = 0 for rational models”For a quotient , the derivative is . It’s only when the numerator is (and ). So simplify the numerator and set just that equal to . Points where the denominator is are usually outside the domain anyway.
Justifying on an open domain
Section titled “Justifying on an open domain”Many of these problems have domains like or with no right endpoint, so the candidates test doesn’t apply directly. Use one of these instead:
- First derivative test on the whole domain: if to the left of the only critical point and to the right of it, the critical point is the absolute maximum (and the reverse for a minimum).
- Second derivative test with one critical point: if there’s only one critical point in the domain and there, it’s the absolute maximum ( gives the absolute minimum).
- Closed domain: if the context gives limits (a speed limit, a maximum production), use the candidates test with the endpoints.
Average cost and average rate
Section titled “Average cost and average rate”Two kinds of objective function come up again and again:
- Average cost per item. If is the total cost of making items, the average cost per item is . Dividing a polynomial by gives a rational function.
- Average rate. If an amount is collected in time , plus some “dead time” during which nothing is collected (travel, set-up), the average rate is . Staying longer collects more in total, but more slowly, so there’s a best time.
Worked examples
Section titled “Worked examples”Example 1: Minimizing average cost
Section titled “Example 1: Minimizing average cost”A small company makes wooden hockey sticks. The total cost of making sticks in a week is
How many sticks per week give the lowest average cost per stick? What is that average cost?
Solution. The average cost per stick is
Critical points: write as :
(The negative root isn’t in the domain.)
Justify: for all , so is a local minimum. It’s the only critical point in the domain, so it’s the absolute minimum.
Making sticks per week gives the lowest average cost, $35 per stick.
Why is there a best value? For small , the fixed cost of $2000 is shared by only a few sticks. For large , the term (overtime, wear on machines) takes over. The minimum is the balance between the two.
Example 2: Revenue with an exponential demand model
Section titled “Example 2: Revenue with an exponential demand model”A ski hill finds that when a day pass costs dollars, the number of passes sold on a typical Saturday is about
What price maximizes the revenue, and what is the maximum revenue?
Solution. Revenue is price times the number sold:
Critical points: product rule, then factor out the exponential:
, so only when , that is, .
Justify: the sign of is the sign of : positive for and negative for . increases and then decreases, so gives the absolute maximum.
At $50 a pass, the hill sells about passes, for a maximum revenue of about $91 970.
Check: at $40 the revenue is about $89 866, and at $60 it’s about $90 358. Both are less. ✓
Example 3: Drug concentration
Section titled “Example 3: Drug concentration”The concentration of a medication in a patient’s blood hours after a dose is
- (a) When is the concentration highest, and what is the maximum concentration?
- (b) When is the concentration decreasing most quickly?
Solution.
(a) Product rule:
when , so . For , ; for , . So the concentration rises, then falls, and gives the absolute maximum:
The concentration is highest hours after the dose, at about mg/L.
(b) “Decreasing most quickly” means is at its most negative, so we need the minimum of . Find where :
when . changes from negative to positive there, so has its minimum at (and the graph of has a point of inflection there).
Five hours after the dose, the concentration is dropping fastest, at about mg/L per hour. After that, the drop slows down as the curve levels off.
Example 4: Maximizing an average rate
Section titled “Example 4: Maximizing an average rate”A bee visits a patch of flowers. In minutes in the patch, it collects
Flying to the next patch takes minutes, and the bee collects nothing on the way. How long should the bee stay in each patch to maximize its average rate of collection, counting the flying time?
Solution. Each cycle takes minutes (staying plus flying) and gives mg. The average rate is
Critical points: quotient rule. Only the numerator matters for :
when , so (the negative root isn’t in the domain).
Justify: the denominator is positive, so has the sign of : positive for and negative for . So gives the absolute maximum.
The bee should stay about minutes in each patch, for an average of about mg of nectar per minute.
A picture of the answer. The average rate is the slope of the line from to the point on the curve. The best choice of makes that line as steep as possible, which happens when it just touches the curve: it’s tangent there. Staying longer (say minutes) gives more nectar per patch, but a less steep line, so a lower average rate.
Common mistakes
Section titled “Common mistakes”Setting the exponential factor equal to zero. In , the equation has no solution. Don’t divide by it carelessly or try to solve it; just say ”, so ”.
Optimizing total cost instead of average cost. “Lowest cost per item” means minimize , not . The total cost in Example 1 is smallest at , which isn’t a useful answer.
Forgetting the dead time in an average rate. In Example 4, dividing by instead of gives , which is largest as : a nonsense answer that says the bee should leave immediately. The travel time is what makes staying longer worthwhile.
Setting the whole quotient equal to zero, denominator and all. For a rational derivative, set only the numerator equal to . Then check that the denominator isn’t at your answer and that it’s in the domain.
No justification on an open domain. With a domain like , there are no endpoints to compare. Give a sign argument for on both sides of the critical point, or use and note it’s the only critical point.
Answering with the wrong quantity. If the question asks for the price that maximizes revenue, the answer is $50, not $91 970. Read the question again before you write your final sentence, and include units.
Practice
Section titled “Practice”1. (Warm-up) The total cost of producing units of a product is dollars. Find the production level that minimizes the average cost per unit, and the minimum average cost.
Solution
gives , so .
, and is the only critical point, so it’s the absolute minimum.
. Producing units gives the lowest average cost, $14 per unit.
2. (Warm-up) Find the maximum value of for .
Solution
. Since , only at .
for and for , so gives the absolute maximum: .
3. (Core) A trucking company sends a truck on a km trip. The driver is paid $30 per hour, and fuel costs dollars per hour when the truck travels at km/h. The truck must travel between km/h and km/h. What speed minimizes the total cost of the trip? Round to 1 decimal place.
Solution
The trip takes hours, and the cost per hour is :
gives , so , which is in the domain.
Candidates:
| (km/h) | |||
|---|---|---|---|
| ($) |
The cheapest speed is about km/h, for a total cost of about $346.41.
4. (Core) A science centre finds that when the admission price is dollars, the daily attendance is about . What price maximizes the daily revenue? Find the maximum revenue to the nearest dollar.
Solution
Product rule, using :
, so when .
for smaller and for larger , so this is the absolute maximum. The best price is about $12.99.
At that price, , so the attendance is people and
The maximum daily revenue is about $11 472.
5. (Core) The concentration of a drug in the bloodstream hours after an injection is mg/L. When is the concentration greatest, and what is the maximum concentration?
Solution
when (the root is outside the domain). for and for , so this is the absolute maximum.
. The concentration is greatest after hours, at mg/L.
6. (Core) A printed poster must have cm² of printed area, with margins of cm at the top and bottom and cm on each side. What dimensions of paper use the least area? Round to 2 decimal places.
Solution
Let the printed region be cm wide and cm tall. The paper is cm wide and cm tall:
gives , so .
, and it’s the only critical point, so it’s the absolute minimum.
The printed region is cm wide and cm tall. The paper is cm wide by cm tall.
7. (Core) A company’s total cost of producing batches of a chemical is dollars. Find the number of batches that minimizes the average cost per batch, and the minimum average cost to the nearest cent.
Solution
Quotient rule:
when , so . for and for , so this is the absolute minimum.
. Making batches gives the lowest average cost, about $5.44 per batch.
8. (Challenge) A forager collects units of food in minutes at a patch, where and are positive constants. Travelling between patches takes minutes. Show that the average rate of collection, including travel time, is greatest when . Check your formula against Example 4.
Solution
The numerator of is
The denominator of is a square, so it’s positive. So when , giving , and changes from positive to negative there (since does). That makes the absolute maximum.
In Example 4, and , so . ✓ (Notice that doesn’t matter: a richer patch doesn’t change how long to stay.)
9. (Challenge) A salmon swims km upstream against a current of km/h. Its speed relative to the water is km/h, with . The energy it uses per hour is proportional to , so the total energy for the trip is
where and are positive constants. Find the speed that minimizes the energy used.
Solution
is a positive constant, so it’s enough to minimize for .
For , only at . for and for , so gives the absolute minimum.
The salmon uses the least energy swimming at km/h relative to the water, which is times the speed of the current. (Its speed relative to the riverbank is then km/h.)