Skip to content
Family Table Math
Auto

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 xx 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.

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 2000x+15+0.05x\dfrac{2000}{x} + 15 + 0.05x or 40t(t+9)(t+3)\dfrac{40t}{(t + 9)(t + 3)}, using the quotient rule or a negative exponent.
  • Exponential models like 5000pe−0.02p5000pe^{-0.02p} or 12te−0.4t12te^{-0.4t}, 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 5000pe−0.02p5000pe^{-0.02p} has derivative

5000e−0.02p+5000p(−0.02e−0.02p)=5000e−0.02p(1−0.02p)5000e^{-0.02p} + 5000p\big(-0.02e^{-0.02p}\big) = 5000e^{-0.02p}(1 - 0.02p)

Factor out the exponential. Since eanything>0e^{\text{anything}} \gt 0, it can never be 00, so the derivative is 00 only when the other factor is: 1−0.02p=01 - 0.02p = 0. The same works for b−pb^{-p} with any base b>0b \gt 0.

For a quotient uv\dfrac{u}{v}, the derivative is u′v−uv′v2\dfrac{u'v - uv'}{v^2}. It’s 00 only when the numerator u′v−uv′u'v - uv' is 00 (and v≠0v \ne 0). So simplify the numerator and set just that equal to 00. Points where the denominator is 00 are usually outside the domain anyway.

Many of these problems have domains like x>0x \gt 0 or t≥0t \ge 0 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 f′>0f' \gt 0 to the left of the only critical point and f′<0f' \lt 0 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 f′′<0f'' \lt 0 there, it’s the absolute maximum (f′′>0f'' \gt 0 gives the absolute minimum).
  • Closed domain: if the context gives limits (a speed limit, a maximum production), use the candidates test with the endpoints.

Two kinds of objective function come up again and again:

  • Average cost per item. If C(x)C(x) is the total cost of making xx items, the average cost per item is A(x)=C(x)xA(x) = \dfrac{C(x)}{x}. Dividing a polynomial by xx gives a rational function.
  • Average rate. If an amount N(t)N(t) is collected in time tt, plus some “dead time” cc during which nothing is collected (travel, set-up), the average rate is R(t)=N(t)t+cR(t) = \dfrac{N(t)}{t + c}. Staying longer collects more in total, but more slowly, so there’s a best time.

A small company makes wooden hockey sticks. The total cost of making xx sticks in a week is

C(x)=2000+15x+0.05x2 dollarsC(x) = 2000 + 15x + 0.05x^2 \text{ dollars}

How many sticks per week give the lowest average cost per stick? What is that average cost?

Solution. The average cost per stick is

A(x)=C(x)x=2000x+15+0.05x,x>0A(x) = \frac{C(x)}{x} = \frac{2000}{x} + 15 + 0.05x, \qquad x \gt 0

Critical points: write 2000x\frac{2000}{x} as 2000x−12000x^{-1}:

A′(x)=−2000x2+0.05=0⇒x2=20000.05=40 000⇒x=200A'(x) = -\frac{2000}{x^2} + 0.05 = 0 \quad\Rightarrow\quad x^2 = \frac{2000}{0.05} = 40\,000 \quad\Rightarrow\quad x = 200

(The negative root isn’t in the domain.)

Justify: A′′(x)=4000x3>0A''(x) = \dfrac{4000}{x^3} \gt 0 for all x>0x \gt 0, so x=200x = 200 is a local minimum. It’s the only critical point in the domain, so it’s the absolute minimum.

A(200)=2000200+15+0.05(200)=10+15+10=35A(200) = \frac{2000}{200} + 15 + 0.05(200) = 10 + 15 + 10 = 35

Making 200200 sticks per week gives the lowest average cost, $35 per stick.

Why is there a best value? For small xx, the fixed cost of $2000 is shared by only a few sticks. For large xx, the 0.05x20.05x^2 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 pp dollars, the number of passes sold on a typical Saturday is about

n(p)=5000e−0.02pn(p) = 5000e^{-0.02p}

What price maximizes the revenue, and what is the maximum revenue?

Solution. Revenue is price times the number sold:

R(p)=p⋅n(p)=5000pe−0.02p,p≥0R(p) = p \cdot n(p) = 5000pe^{-0.02p}, \qquad p \ge 0

Critical points: product rule, then factor out the exponential:

R′(p)=5000e−0.02p+5000p(−0.02e−0.02p)=5000e−0.02p(1−0.02p)R'(p) = 5000e^{-0.02p} + 5000p\big(-0.02e^{-0.02p}\big) = 5000e^{-0.02p}(1 - 0.02p)

e−0.02p>0e^{-0.02p} \gt 0, so R′(p)=0R'(p) = 0 only when 1−0.02p=01 - 0.02p = 0, that is, p=50p = 50.

Justify: the sign of R′(p)R'(p) is the sign of 1−0.02p1 - 0.02p: positive for 0≤p<500 \le p \lt 50 and negative for p>50p \gt 50. RR increases and then decreases, so p=50p = 50 gives the absolute maximum.

R(50)=5000(50)e−1=250 000e≈91 969.86R(50) = 5000(50)e^{-1} = \frac{250\,000}{e} \approx 91\,969.86

At $50 a pass, the hill sells about 5000e≈1839\dfrac{5000}{e} \approx 1839 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. ✓

The concentration of a medication in a patient’s blood tt hours after a dose is

C(t)=12te−0.4t mg/L,t≥0C(t) = 12te^{-0.4t} \text{ mg/L}, \qquad t \ge 0
  • (a) When is the concentration highest, and what is the maximum concentration?
  • (b) When is the concentration decreasing most quickly?

Solution.

(a) Product rule:

C′(t)=12e−0.4t+12t(−0.4e−0.4t)=12e−0.4t(1−0.4t)C'(t) = 12e^{-0.4t} + 12t\big(-0.4e^{-0.4t}\big) = 12e^{-0.4t}(1 - 0.4t)

C′(t)=0C'(t) = 0 when 1−0.4t=01 - 0.4t = 0, so t=2.5t = 2.5. For 0≤t<2.50 \le t \lt 2.5, C′(t)>0C'(t) \gt 0; for t>2.5t \gt 2.5, C′(t)<0C'(t) \lt 0. So the concentration rises, then falls, and t=2.5t = 2.5 gives the absolute maximum:

C(2.5)=12(2.5)e−1=30e≈11.036 mg/LC(2.5) = 12(2.5)e^{-1} = \frac{30}{e} \approx 11.036 \text{ mg/L}

The concentration is highest 2.52.5 hours after the dose, at about 11.03611.036 mg/L.

(b) “Decreasing most quickly” means C′(t)C'(t) is at its most negative, so we need the minimum of C′(t)C'(t). Find where C′′(t)=0C''(t) = 0:

C′′(t)=12(−0.4e−0.4t)(1−0.4t)+12e−0.4t(−0.4)=12e−0.4t(−0.4+0.16t−0.4)=12e−0.4t(0.16t−0.8)\begin{aligned} C''(t) &= 12\big(-0.4e^{-0.4t}\big)(1 - 0.4t) + 12e^{-0.4t}(-0.4) \\ &= 12e^{-0.4t}\big(-0.4 + 0.16t - 0.4\big) \\ &= 12e^{-0.4t}(0.16t - 0.8) \end{aligned}

C′′(t)=0C''(t) = 0 when t=5t = 5. C′′C'' changes from negative to positive there, so C′C' has its minimum at t=5t = 5 (and the graph of CC has a point of inflection there).

C′(5)=12e−2(1−2)=−12e−2≈−1.624C'(5) = 12e^{-2}(1 - 2) = -12e^{-2} \approx -1.624

Five hours after the dose, the concentration is dropping fastest, at about 1.6241.624 mg/L per hour. After that, the drop slows down as the curve levels off.

The drug concentration curve C(t) = 12 t e to the minus 0.4 t, with its maximum at t = 2.5 and its inflection point at t = 5 2 4 6 8 10 12 2 4 6 8 10 12 maximum (2.5, 11.04) inflection (5, 8.12) C(t) = 12te−0.4t t (h) C (mg/L)
C(t)=12te−0.4tC(t) = 12te^{-0.4t} peaks at t=2.5t = 2.5 h and falls fastest at the inflection point, t=5t = 5 h.

A bee visits a patch of flowers. In tt minutes in the patch, it collects

N(t)=40tt+9 mg of nectarN(t) = \frac{40t}{t + 9} \text{ mg of nectar}

Flying to the next patch takes 33 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 t+3t + 3 minutes (staying plus flying) and gives N(t)N(t) mg. The average rate is

R(t)=N(t)t+3=40t(t+9)(t+3)=40tt2+12t+27,t>0R(t) = \frac{N(t)}{t + 3} = \frac{40t}{(t + 9)(t + 3)} = \frac{40t}{t^2 + 12t + 27}, \qquad t \gt 0

Critical points: quotient rule. Only the numerator matters for R′(t)=0R'(t) = 0:

R′(t)=40(t2+12t+27)−40t(2t+12)(t2+12t+27)2=40(t2+12t+27−2t2−12t)(t2+12t+27)2=40(27−t2)(t2+12t+27)2\begin{aligned} R'(t) &= \frac{40(t^2 + 12t + 27) - 40t(2t + 12)}{(t^2 + 12t + 27)^2} \\ &= \frac{40(t^2 + 12t + 27 - 2t^2 - 12t)}{(t^2 + 12t + 27)^2} \\ &= \frac{40(27 - t^2)}{(t^2 + 12t + 27)^2} \end{aligned}

R′(t)=0R'(t) = 0 when t2=27t^2 = 27, so t=27=33≈5.196t = \sqrt{27} = 3\sqrt{3} \approx 5.196 (the negative root isn’t in the domain).

Justify: the denominator is positive, so R′(t)R'(t) has the sign of 27−t227 - t^2: positive for 0<t<330 \lt t \lt 3\sqrt{3} and negative for t>33t \gt 3\sqrt{3}. So t=33t = 3\sqrt{3} gives the absolute maximum.

R(33)=40−2033≈1.786 mg/minR(3\sqrt{3}) = \frac{40 - 20\sqrt{3}}{3} \approx 1.786 \text{ mg/min}

The bee should stay about 5.25.2 minutes in each patch, for an average of about 1.7861.786 mg of nectar per minute.

A picture of the answer. The average rate N(t)t+3\dfrac{N(t)}{t + 3} is the slope of the line from (−3,0)(-3, 0) to the point (t,N(t))(t, N(t)) on the curve. The best choice of tt makes that line as steep as possible, which happens when it just touches the curve: it’s tangent there. Staying longer (say 1515 minutes) gives more nectar per patch, but a less steep line, so a lower average rate.

The nectar curve N(t) = 40t over (t + 9) with lines from (-3, 0); the steepest one is tangent to the curve near t = 5.2 −3 3 6 9 12 15 18 8 12 16 20 24 28 t ≈ 5.2 (best) t = 15 (−3, 0) N(t) = 40t / (t + 9) t (min) N (mg)
The average rate is the slope of a line from (−3,0)(-3, 0) to the curve. The steepest such line is tangent to the curve, at t=33≈5.2t = 3\sqrt{3} \approx 5.2 min.

Setting the exponential factor equal to zero. In 5000e−0.02p(1−0.02p)=05000e^{-0.02p}(1 - 0.02p) = 0, the equation e−0.02p=0e^{-0.02p} = 0 has no solution. Don’t divide by it carelessly or try to solve it; just say ”e−0.02p>0e^{-0.02p} \gt 0, so 1−0.02p=01 - 0.02p = 0”.

Optimizing total cost instead of average cost. “Lowest cost per item” means minimize C(x)x\dfrac{C(x)}{x}, not C(x)C(x). The total cost C(x)C(x) in Example 1 is smallest at x=0x = 0, which isn’t a useful answer.

Forgetting the dead time in an average rate. In Example 4, dividing by tt instead of t+3t + 3 gives 40t+9\dfrac{40}{t + 9}, which is largest as t→0t \to 0: 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 00. Then check that the denominator isn’t 00 at your answer and that it’s in the domain.

No justification on an open domain. With a domain like t>0t \gt 0, there are no endpoints to compare. Give a sign argument for f′f' on both sides of the critical point, or use f′′f'' 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.

1. (Warm-up) The total cost of producing xx units of a product is C(x)=500+4x+0.05x2C(x) = 500 + 4x + 0.05x^2 dollars. Find the production level that minimizes the average cost per unit, and the minimum average cost.

SolutionA(x)=C(x)x=500x+4+0.05x,x>0A(x) = \frac{C(x)}{x} = \frac{500}{x} + 4 + 0.05x, \qquad x \gt 0

A′(x)=−500x2+0.05=0A'(x) = -\dfrac{500}{x^2} + 0.05 = 0 gives x2=10 000x^2 = 10\,000, so x=100x = 100.

A′′(x)=1000x3>0A''(x) = \dfrac{1000}{x^3} \gt 0, and x=100x = 100 is the only critical point, so it’s the absolute minimum.

A(100)=5+4+5=14A(100) = 5 + 4 + 5 = 14. Producing 100100 units gives the lowest average cost, $14 per unit.

2. (Warm-up) Find the maximum value of f(x)=5xe−xf(x) = 5xe^{-x} for x≥0x \ge 0.

Solution

f′(x)=5e−x−5xe−x=5e−x(1−x)f'(x) = 5e^{-x} - 5xe^{-x} = 5e^{-x}(1 - x). Since e−x>0e^{-x} \gt 0, f′(x)=0f'(x) = 0 only at x=1x = 1.

f′(x)>0f'(x) \gt 0 for 0≤x<10 \le x \lt 1 and f′(x)<0f'(x) \lt 0 for x>1x \gt 1, so x=1x = 1 gives the absolute maximum: f(1)=5e≈1.839f(1) = \dfrac{5}{e} \approx 1.839.

3. (Core) A trucking company sends a truck on a 500500 km trip. The driver is paid $30 per hour, and fuel costs 0.004v20.004v^2 dollars per hour when the truck travels at vv km/h. The truck must travel between 6060 km/h and 100100 km/h. What speed minimizes the total cost of the trip? Round to 1 decimal place.

Solution

The trip takes 500v\dfrac{500}{v} hours, and the cost per hour is 30+0.004v230 + 0.004v^2:

C(v)=(30+0.004v2)500v=15 000v+2v,60≤v≤100C(v) = \left(30 + 0.004v^2\right)\frac{500}{v} = \frac{15\,000}{v} + 2v, \qquad 60 \le v \le 100

C′(v)=−15 000v2+2=0C'(v) = -\dfrac{15\,000}{v^2} + 2 = 0 gives v2=7500v^2 = 7500, so v=503≈86.6v = 50\sqrt{3} \approx 86.6, which is in the domain.

Candidates:

vv (km/h)6060503≈86.650\sqrt{3} \approx 86.6100100
C(v)C(v) ($)250+120=370250 + 120 = 370≈346.41\approx 346.41150+200=350150 + 200 = 350

The cheapest speed is about 86.686.6 km/h, for a total cost of about $346.41.

4. (Core) A science centre finds that when the admission price is pp dollars, the daily attendance is about n(p)=2400(1.08)−pn(p) = 2400(1.08)^{-p}. What price maximizes the daily revenue? Find the maximum revenue to the nearest dollar.

SolutionR(p)=2400p(1.08)−p,p≥0R(p) = 2400p(1.08)^{-p}, \qquad p \ge 0

Product rule, using ddp[(1.08)−p]=−(1.08)−pln⁡1.08\dfrac{d}{dp}\big[(1.08)^{-p}\big] = -(1.08)^{-p}\ln 1.08:

R′(p)=2400(1.08)−p−2400p(1.08)−pln⁡1.08=2400(1.08)−p(1−pln⁡1.08)R'(p) = 2400(1.08)^{-p} - 2400p(1.08)^{-p}\ln 1.08 = 2400(1.08)^{-p}\big(1 - p\ln 1.08\big)

(1.08)−p>0(1.08)^{-p} \gt 0, so R′(p)=0R'(p) = 0 when p=1ln⁡1.08≈12.99p = \dfrac{1}{\ln 1.08} \approx 12.99.

R′(p)>0R'(p) \gt 0 for smaller pp and R′(p)<0R'(p) \lt 0 for larger pp, so this is the absolute maximum. The best price is about $12.99.

At that price, (1.08)−p=e−pln⁡1.08=e−1(1.08)^{-p} = e^{-p\ln 1.08} = e^{-1}, so the attendance is 2400e≈883\dfrac{2400}{e} \approx 883 people and

R≈12.9936×2400e≈11 472R \approx 12.9936 \times \frac{2400}{e} \approx 11\,472

The maximum daily revenue is about $11 472.

5. (Core) The concentration of a drug in the bloodstream tt hours after an injection is C(t)=5tt2+4C(t) = \dfrac{5t}{t^2 + 4} mg/L. When is the concentration greatest, and what is the maximum concentration?

SolutionC′(t)=5(t2+4)−5t(2t)(t2+4)2=5(4−t2)(t2+4)2,t≥0C'(t) = \frac{5(t^2 + 4) - 5t(2t)}{(t^2 + 4)^2} = \frac{5(4 - t^2)}{(t^2 + 4)^2}, \qquad t \ge 0

C′(t)=0C'(t) = 0 when t=2t = 2 (the root t=−2t = -2 is outside the domain). C′(t)>0C'(t) \gt 0 for 0≤t<20 \le t \lt 2 and C′(t)<0C'(t) \lt 0 for t>2t \gt 2, so this is the absolute maximum.

C(2)=108=1.25C(2) = \dfrac{10}{8} = 1.25. The concentration is greatest after 22 hours, at 1.251.25 mg/L.

6. (Core) A printed poster must have 384384 cm² of printed area, with margins of 44 cm at the top and bottom and 22 cm on each side. What dimensions of paper use the least area? Round to 2 decimal places.

Solution

Let the printed region be xx cm wide and 384x\dfrac{384}{x} cm tall. The paper is x+4x + 4 cm wide and 384x+8\dfrac{384}{x} + 8 cm tall:

P(x)=(x+4)(384x+8)=384+8x+1536x+32=416+8x+1536x,x>0P(x) = (x + 4)\left(\frac{384}{x} + 8\right) = 384 + 8x + \frac{1536}{x} + 32 = 416 + 8x + \frac{1536}{x}, \qquad x \gt 0

P′(x)=8−1536x2=0P'(x) = 8 - \dfrac{1536}{x^2} = 0 gives x2=192x^2 = 192, so x=83≈13.86x = 8\sqrt{3} \approx 13.86.

P′′(x)=3072x3>0P''(x) = \dfrac{3072}{x^3} \gt 0, and it’s the only critical point, so it’s the absolute minimum.

The printed region is 838\sqrt{3} cm wide and 38483=163\dfrac{384}{8\sqrt{3}} = 16\sqrt{3} cm tall. The paper is 83+4≈17.868\sqrt{3} + 4 \approx 17.86 cm wide by 163+8≈35.7116\sqrt{3} + 8 \approx 35.71 cm tall.

7. (Core) A company’s total cost of producing xx batches of a chemical is C(x)=100e0.02xC(x) = 100e^{0.02x} dollars. Find the number of batches that minimizes the average cost per batch, and the minimum average cost to the nearest cent.

SolutionA(x)=100e0.02xx,x>0A(x) = \frac{100e^{0.02x}}{x}, \qquad x \gt 0

Quotient rule:

A′(x)=100(0.02)e0.02x⋅x−100e0.02xx2=100e0.02x(0.02x−1)x2A'(x) = \frac{100(0.02)e^{0.02x} \cdot x - 100e^{0.02x}}{x^2} = \frac{100e^{0.02x}(0.02x - 1)}{x^2}

A′(x)=0A'(x) = 0 when 0.02x−1=00.02x - 1 = 0, so x=50x = 50. A′(x)<0A'(x) \lt 0 for 0<x<500 \lt x \lt 50 and A′(x)>0A'(x) \gt 0 for x>50x \gt 50, so this is the absolute minimum.

A(50)=100e50=2e≈5.44A(50) = \dfrac{100e}{50} = 2e \approx 5.44. Making 5050 batches gives the lowest average cost, about $5.44 per batch.

8. (Challenge) A forager collects N(t)=att+bN(t) = \dfrac{at}{t + b} units of food in tt minutes at a patch, where aa and bb are positive constants. Travelling between patches takes cc minutes. Show that the average rate of collection, including travel time, is greatest when t=bct = \sqrt{bc}. Check your formula against Example 4.

SolutionR(t)=at(t+b)(t+c)=att2+(b+c)t+bc,t>0R(t) = \frac{at}{(t + b)(t + c)} = \frac{at}{t^2 + (b + c)t + bc}, \qquad t \gt 0

The numerator of R′(t)R'(t) is

a(t2+(b+c)t+bc)−at(2t+b+c)=a(bc−t2)a\big(t^2 + (b + c)t + bc\big) - at\big(2t + b + c\big) = a\big(bc - t^2\big)

The denominator of R′(t)R'(t) is a square, so it’s positive. So R′(t)=0R'(t) = 0 when t2=bct^2 = bc, giving t=bct = \sqrt{bc}, and R′(t)R'(t) changes from positive to negative there (since bc−t2bc - t^2 does). That makes t=bct = \sqrt{bc} the absolute maximum.

In Example 4, b=9b = 9 and c=3c = 3, so t=27=33t = \sqrt{27} = 3\sqrt{3}. ✓ (Notice that aa doesn’t matter: a richer patch doesn’t change how long to stay.)

9. (Challenge) A salmon swims LL km upstream against a current of 44 km/h. Its speed relative to the water is vv km/h, with v>4v \gt 4. The energy it uses per hour is proportional to v3v^3, so the total energy for the trip is

E(v)=kv3⋅Lv−4E(v) = k v^3 \cdot \frac{L}{v - 4}

where kk and LL are positive constants. Find the speed that minimizes the energy used.

Solution

kLkL is a positive constant, so it’s enough to minimize f(v)=v3v−4f(v) = \dfrac{v^3}{v - 4} for v>4v \gt 4.

f′(v)=3v2(v−4)−v3(v−4)2=2v3−12v2(v−4)2=2v2(v−6)(v−4)2f'(v) = \frac{3v^2(v - 4) - v^3}{(v - 4)^2} = \frac{2v^3 - 12v^2}{(v - 4)^2} = \frac{2v^2(v - 6)}{(v - 4)^2}

For v>4v \gt 4, f′(v)=0f'(v) = 0 only at v=6v = 6. f′(v)<0f'(v) \lt 0 for 4<v<64 \lt v \lt 6 and f′(v)>0f'(v) \gt 0 for v>6v \gt 6, so v=6v = 6 gives the absolute minimum.

The salmon uses the least energy swimming at 66 km/h relative to the water, which is 1.51.5 times the speed of the current. (Its speed relative to the riverbank is then 6−4=26 - 4 = 2 km/h.)