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.
Costs with different prices
Section titled “Costs with different prices”When different parts of an object are made from different materials, the objective is the cost, not the area. Multiply each part’s area by its own price per unit area, then add. For example, a box whose base costs $0.03 per cm² and whose sides cost $0.01 per cm² has cost . The cheapest shape then shifts away from the expensive parts: making them smaller saves more.
Designing a model to fit a peak
Section titled “Designing a model to fit a peak”Sometimes the question runs the other way: the model has parameters, and you must choose them so the maximum lands at a given time with a given value. Find the critical point in terms of the parameters first, set it equal to the given time, then use the given peak value to find the remaining parameter. For example, peaks at , so a peak at hours needs , and a peak value of then needs , so .
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 community centre is printing a flyer for its bulletin board. The text and pictures must fill cm², with blank margins of cm at the top and bottom and cm on each side. What paper dimensions use the least paper? 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, for an area of cm².
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. (Core) An open-top storage box with a square base must hold cm³. The material for the base costs $0.03 per cm², and the material for the sides costs $0.01 per cm² (hypothetical prices). Find the dimensions that minimize the cost of the material, to 2 decimal places, and the minimum cost to the nearest cent.
Solution
Let the base be cm by cm and the height cm, with . The volume gives , so . There’s no top, so the cost in dollars is
, and this is the only critical point for , so it gives the absolute minimum.
The cheapest box has a base about cm by cm and a height of about cm, and its material costs about $17.31. The base is the expensive part, so the best box is taller than it is wide ().
Check: ✓.
9. (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.)
10. (Challenge) A battery with voltage volts and internal resistance ohms runs a small heater with resistance ohms. The power delivered to the heater is
where and are positive constants.
- (a) Show that the power is greatest when the heater’s resistance equals the battery’s internal resistance, , whatever the value of .
- (b) For a V battery with internal resistance Ω, what is the greatest power the heater can receive?
Solution
(a) Use the quotient rule. is a positive constant, so it just comes along:
For the denominator is positive, so only at . for and for , so gives the absolute maximum on the open domain. The voltage never affected where the sign changes, so the answer doesn’t depend on .
(b) At :
The heater receives at most W, when its resistance is Ω.
Homework
Section titled “Homework”Try these independently after the practice questions. Show your setup and explain your reasoning. Use exact answers where possible, and check that your answers fit the question. Homework solutions are not provided on the published site.
For every question, define your variable, state its domain, justify that your answer is a maximum or minimum, and finish with a sentence in context, with units.
Foundations
Section titled “Foundations”H1. (Foundations) A school club orders custom printed hoodies. The total cost of hoodies is dollars (hypothetical). How many hoodies give the lowest average cost per hoodie, and what is that average cost?
H2. (Foundations) The concentration of a hypothetical medication in the blood hours after a dose is mg/L, for . When is the concentration highest, and what is the maximum concentration? Use the first derivative test to justify your answer.
H3. (Core) A juice company wants a closed cylindrical can that holds mL ( cm³) and uses the least metal.
- (a) Show that the surface area is , where is the radius in centimetres.
- (b) Find the radius and height that minimize the surface area, to 2 decimal places, and the minimum surface area. What do you notice about the height compared with the radius?
H4. (Core) A maple syrup producer packs syrup in closed cylindrical tins that hold L ( cm³). The sheet metal for the top and bottom is thicker, so it costs $0.006 per cm², while the side costs $0.002 per cm² (hypothetical prices). Find the radius and height that minimize the cost of the metal for one tin, to 2 decimal places, and the minimum cost to the nearest cent.
H5. (Core) A canoe outfitter near Algonquin Park finds that when a day rental costs dollars, it rents about canoes on a summer weekend day (hypothetical model).
- (a) Write the revenue and find the price that maximizes it.
- (b) Find the maximum revenue to the nearest dollar and about how many canoes are rented at that price.
H6. (Core) Two lights are m apart on a straight path. The right-hand light is times as strong as the left-hand one. The brightness at a point on the path is the sum of the two lights’ contributions, and each contribution is the light’s strength divided by the square of the distance to it. So at a point m from the left-hand light,
where is a positive constant. Where between the lights is the path darkest? Justify that your point is a minimum.
Challenge
Section titled “Challenge”H7. (Challenge) A hypothetical courier company’s weekly cost of making deliveries is dollars. Its contract guarantees between and deliveries per week.
- (a) Find the number of deliveries that minimizes the average cost per delivery, and that average cost.
- (b) Find the highest average cost per delivery the company could face under the contract.
- (c) A classmate says the answer to (b) must come from the critical point, since “that’s where the optimum is.” Explain what’s wrong with that reasoning.
H8. (Challenge) A pharmacologist models the concentration of a drug as mg/L, hours after a dose, where and are positive constants.
- (a) Show that the concentration peaks at , whatever the value of .
- (b) Choose and so that the concentration peaks hours after the dose, at mg/L. Give exact values.
- (c) With your values from (b), what fraction of the peak concentration remains hours after the dose? Round to 3 decimal places.
H9. (Challenge) A hypothetical model says an electric delivery van uses
when it drives at a steady km/h. On a highway where vehicles must travel between km/h and km/h, a student wants the speed that uses the least energy per kilometre. Here is the student’s work:
, so and . Since , this is a minimum. The van should drive at about km/h.
- (a) The derivative work is correct, but the conclusion is wrong. Explain the mistake.
- (b) Find the correct speed and the energy used per kilometre at that speed.
H10. (Challenge) A closed cylinder must hold a fixed volume .
- (a) Show that its surface area is smallest when the height equals the diameter, , whatever the value of .
- (b) Suppose the top and bottom cost times as much per cm² as the side, where . Show that the cost is smallest when . Check your result against H3 and H4.
- (c) Many real drink cans are much taller than they are wide. Give one reason a company might choose a shape that doesn’t use the least metal.