Chapter 05
Medium

Applications of Derivatives — Optimization

00 · Symbol Glossary

$\text{abs. max / abs. min}$absolute maximum / absolute minimum

The single largest (or smallest) value a function attains over an entire domain or interval — not just locally near one point, as with the local max/min of Chapter 04.

$[a,b]$closed interval

The interval from aa to bb including both endpoints, introduced in Chapter 01 for the Intermediate Value Theorem. Reused here because absolute extrema on a closed interval always exist and can occur at an endpoint.

$x_{n+1} = x_n - \dfrac{f(x_n)}{f'(x_n)}$Newton's method update rule

An iterative formula that produces a sequence of increasingly accurate approximations x1,x2,x3,x_1, x_2, x_3,\ldots to a root of ff, starting from an initial guess x0x_0.

$MR,\ MC$marginal revenue, marginal cost

MR=R(x)MR = R'(x) and MC=C(x)MC = C'(x) — the derivatives of total revenue and total cost with respect to quantity xx. They measure the revenue or cost of producing one additional unit, not the total revenue or cost itself.


01 · Absolute Extrema on a Closed Interval

Chapter 04's local max/min described behavior near a point. Absolute extrema ask a different question: over an entire interval, where is the function largest or smallest overall? On a closed interval, this question always has an answer, and it is always found at one of a short, specific list of candidate points.

Definition — Extreme Value Theorem

If ff is continuous on a closed interval [a,b][a,b], then ff attains both an absolute maximum and an absolute minimum somewhere on [a,b][a,b].

Definition — Closed Interval Method

To find the absolute extrema of a continuous ff on [a,b][a,b]:

  1. Find all critical points of ff inside (a,b)(a,b) (Chapter 04: where f=0f'=0 or ff' undefined).
  2. Evaluate ff at every critical point found in step 1, and at both endpoints aa and bb.
  3. The largest value from step 2 is the absolute maximum; the smallest is the absolute minimum.
Step-by-step — Find the absolute extrema of $f(x)=x^3-3x^2$ on $[-1,3]$
1
Differentiate: f(x)=3x26xf'(x) = 3x^2-6x (power rule).
2
Find critical points: set 3x26x=0    3x(x2)=0    x=03x^2-6x=0 \implies 3x(x-2)=0 \implies x=0 or x=2x=2. Both lie inside (1,3)(-1,3), so both are candidates.
3
Evaluate ff at every candidate — critical points first: f(0)=00=0f(0)=0-0=0. f(2)=812=4f(2)=8-12=-4.
4
Evaluate ff at both endpoints: f(1)=13=4f(-1)=-1-3=-4. f(3)=2727=0f(3)=27-27=0.
5
Compare all four values: {0,4,4,0}\{0, -4, -4, 0\} at x={0,2,1,3}x=\{0,2,-1,3\} respectively. The largest is 00 (attained at both x=0x=0 and x=3x=3); the smallest is 4-4 (attained at both x=2x=2 and x=1x=-1).
6
Conclude: absolute maximum 00, absolute minimum 4-4 on [1,3][-1,3].
❌ Only checking critical points, ignoring endpoints

On the same function, stopping after step 3 above and reporting "absolute max 00 at x=0x=0, absolute min 4-4 at x=2x=2" happens to be numerically correct here only because the endpoint values tie the interior values. Test instead on [1,1][-1,1]: critical point x=0x=0 is the only one inside (1,1)(-1,1) (x=2x=2 is outside), giving f(0)=0f(0)=0. But f(1)=4f(-1)=-4 and f(1)=13=2f(1)=1-3=-2.

Why it breaks: on [1,1][-1,1], ignoring the endpoint x=1x=-1 would miss that f(1)=4f(-1)=-4 is actually the absolute minimum on this interval — smaller than any interior critical-point value.

Consequence: the closed interval method requires checking every endpoint every time; a critical point being "the only stationary point" says nothing about whether an endpoint is more extreme.


02 · Optimization Word Problems

The closed interval method (or, when the domain is unbounded, the first/second derivative test from Chapter 04) becomes a practical tool once a real quantity is translated into a function to be maximized or minimized.

Step-by-step — Maximize the area of a rectangular region with fixed perimeter 40
1
Name the variables and write the constraint: let the rectangle have width ww and height hh. Perimeter constraint: 2w+2h=402w+2h=40.
2
Solve the constraint for one variable: h=402w2=20wh = \dfrac{40-2w}{2} = 20-w.
3
Write the quantity to optimize as a function of the single remaining variable: area A(w)=wh=w(20w)=20ww2A(w) = w\cdot h = w(20-w) = 20w-w^2.
4
State the domain: both w>0w>0 and h=20w>0h=20-w>0, so 0<w<200<w<20.
5
Differentiate and find critical points: A(w)=202wA'(w) = 20-2w. Set to 00: 202w=0    w=1020-2w=0 \implies w=10.
6
Confirm it's a maximum: A(w)=2<0A''(w)=-2<0 everywhere, so by the second derivative test (Chapter 04), w=10w=10 gives a local max — and since A(w)A(w) is a downward parabola on an open interval with only one critical point, it is also the absolute maximum.
7
Compute the final answer: h=2010=10h=20-10=10; the rectangle is a 10×1010\times10 square, giving area A(10)=20(10)100=200100=100A(10)=20(10)-100=200-100=100.
Why the domain matters as much as the function

The optimization is only over 0<w<200<w<20, not all real numbers — w=0w=0 or w=20w=20 would give a degenerate rectangle with zero area. Step 4's domain restriction is what makes the closed-interval or open-interval reasoning in step 6 valid; skipping it risks optimizing over inputs that don't correspond to an actual rectangle.


03 · Marginal Analysis

In cost/revenue models, the derivative of a total function gives the marginal version of that quantity: the approximate effect of producing one more unit. This is a direct application of the derivative's meaning as an instantaneous rate of change (Chapter 02).

Definition — Marginal Cost, Revenue, Profit

For total cost C(x)C(x), total revenue R(x)R(x), and profit Π(x)=R(x)C(x)\Pi(x) = R(x)-C(x), all as functions of quantity xx:

MC(x)=C(x)MR(x)=R(x)Π(x)=R(x)C(x)=MR(x)MC(x)MC(x) = C'(x) \qquad MR(x) = R'(x) \qquad \Pi'(x) = R'(x)-C'(x) = MR(x)-MC(x)

Profit is maximized (Section 01–02's method) where Π(x)=0\Pi'(x)=0, i.e. where MR(x)=MC(x)MR(x)=MC(x) — marginal revenue equals marginal cost.

Step-by-step — Maximize profit given $R(x)=50x-0.02x^2$ and $C(x)=10x+2000$
1
Form the profit function: Π(x)=R(x)C(x)=(50x0.02x2)(10x+2000)=40x0.02x22000\Pi(x) = R(x)-C(x) = (50x-0.02x^2) - (10x+2000) = 40x - 0.02x^2 - 2000.
2
Differentiate: Π(x)=400.04x\Pi'(x) = 40 - 0.04x.
3
Set Π(x)=0\Pi'(x)=0 and solve: 400.04x=0    0.04x=40    x=100040-0.04x=0 \implies 0.04x=40 \implies x=1000.
4
Confirm a maximum: Π(x)=0.04<0\Pi''(x)=-0.04<0 everywhere, so x=1000x=1000 is the unique maximum (concave-down profit function, Chapter 04 second derivative test).
5
Compute the maximum profit: Π(1000)=40(1000)0.02(1000)22000=40,00020,0002000=18,000\Pi(1000) = 40(1000)-0.02(1000)^2-2000 = 40{,}000 - 20{,}000 - 2000 = 18{,}000.

04 · Newton's Method

Optimization and root-finding are closely linked: setting f(x)=0f'(x)=0 to find critical points is itself a root-finding problem, and not every such equation can be solved by factoring. Newton's method approximates a root numerically using the tangent line.

Definition — Newton's Method

Starting from an initial guess x0x_0 near a root of ff, generate successive approximations:

xn+1=xnf(xn)f(xn)x_{n+1} = x_n - \frac{f(x_n)}{f'(x_n)}

Geometrically: draw the tangent line to ff at xnx_n, and let xn+1x_{n+1} be where that tangent line crosses the xx-axis. Repeating this typically converges rapidly toward an actual root.

Step-by-step — Approximate a root of $f(x)=x^2-5$ starting from $x_0=2$
1
Differentiate: f(x)=2xf'(x)=2x.
2
Compute the first iterate: x1=x0f(x0)f(x0)=22252(2)=214=2+0.25=2.25x_1 = x_0 - \dfrac{f(x_0)}{f'(x_0)} = 2 - \dfrac{2^2-5}{2(2)} = 2 - \dfrac{-1}{4} = 2+0.25=2.25.
3
Compute the second iterate: x2=x1f(x1)f(x1)=2.252.25252(2.25)=2.250.06254.52.250.01392.2361x_2 = x_1 - \dfrac{f(x_1)}{f'(x_1)} = 2.25 - \dfrac{2.25^2-5}{2(2.25)} = 2.25 - \dfrac{0.0625}{4.5} \approx 2.25 - 0.0139 \approx 2.2361.
4
Compare to the exact value: 52.2360679...\sqrt5 \approx 2.2360679... — after just two iterations, the approximation is accurate to four decimal places. This is why Newton's method is the standard numerical tool wherever an equation cannot be solved in closed form.
❌ Newton's method fails at a critical point of f itself

Applying Newton's method to f(x)=x1/3f(x)=x^{1/3} starting from x0=1x_0=1: f(x)=13x2/3f'(x) = \frac13 x^{-2/3}, so f(1)=13f'(1)=\frac13, giving x1=111/3=13=2x_1 = 1 - \dfrac{1}{1/3} = 1-3=-2. Next: f(2)=13(2)2/3f'(-2)=\frac13(-2)^{-2/3} is still defined (a negative number raised to a fractional power with even-looking denominator behaves subtly, but the iterates in fact grow in magnitude here rather than converging: x1=2>x0=1\lvert x_1\rvert=2>\lvert x_0\rvert=1).

Why it breaks: more directly, whenever some iterate lands where f(xn)=0f'(x_n)=0, the update formula divides by zero and the method is undefined at that step — the tangent line at a point with zero slope never crosses the xx-axis (it's horizontal), so there is no next iterate to compute.

Consequence: Newton's method has no universal guarantee of convergence; a poor initial guess or a landing point with f(xn)=0f'(x_n)=0 can make it fail outright or diverge instead of approaching a root.


05 · Exercises

EXERCISE 5.1

Differentiate, find critical points inside the interval, then evaluate the function at those points and at both endpoints.

f(x)=x36x2+5f(x)=x^3-6x^2+5 on [0,5][0,5]. f(x)=3x212x=3x(x4)f'(x)=3x^2-12x=3x(x-4). Critical points: x=0,4x=0,4; only x=4x=4 is strictly inside (0,5)(0,5) (x=0x=0 is an endpoint here too). f(0)=5f(0)=5. f(4)=6496+5=27f(4)=64-96+5=-27. f(5)=125150+5=20f(5)=125-150+5=-20. Comparing {5,27,20}\{5,-27,-20\}: absolute max 55 at x=0x=0, absolute min 27-27 at x=4x=4.

Find the absolute maximum and minimum of f(x)=x36x2+5f(x)=x^3-6x^2+5 on [0,5][0,5].

EXERCISE 5.2

Set up a constraint equation, solve for one variable, substitute into the quantity to optimize, then apply calculus to the resulting single-variable function.

Perimeter 2w+2h=60    h=30w2w+2h=60 \implies h=30-w. Area A(w)=w(30w)=30ww2A(w)=w(30-w)=30w-w^2, domain 0<w<300<w<30. A(w)=302w=0    w=15A'(w)=30-2w=0 \implies w=15. A(w)=2<0A''(w)=-2<0, confirming a maximum. h=3015=15h=30-15=15; max area =15×15=225=15\times15=225.

A rectangular region has fixed perimeter 6060. Find the dimensions that maximize its area, and state the maximum area.

EXERCISE 5.3

Profit is maximized where marginal revenue equals marginal cost — set Π(x)=0\Pi'(x)=0 and solve.

R(x)=80x0.05x2R(x)=80x-0.05x^2, C(x)=20x+1500C(x)=20x+1500. Π(x)=60x0.05x21500\Pi(x)=60x-0.05x^2-1500. Π(x)=600.1x=0    x=600\Pi'(x)=60-0.1x=0 \implies x=600. Π(x)=0.1<0\Pi''(x)=-0.1<0, confirming a max. Π(600)=60(600)0.05(600)21500=36,00018,0001500=16,500\Pi(600)=60(600)-0.05(600)^2-1500=36{,}000-18{,}000-1500=16{,}500.

Given R(x)=80x0.05x2R(x)=80x-0.05x^2 and C(x)=20x+1500C(x)=20x+1500, find the quantity that maximizes profit and the maximum profit value.

EXERCISE 5.4

Apply Newton's update formula twice in sequence, using the previous iterate as the input to the next.

f(x)=x210f(x)=x^2-10, f(x)=2xf'(x)=2x, x0=3x_0=3. x1=39106=316=3+0.163.1667x_1 = 3-\dfrac{9-10}{6}=3-\dfrac{-1}{6}=3+0.1\overline{6}\approx3.1667. x2=3.16673.16672102(3.1667)=3.16670.02816.33343.16670.004443.1623x_2 = 3.1667 - \dfrac{3.1667^2-10}{2(3.1667)} = 3.1667-\dfrac{0.0281}{6.3334}\approx3.1667-0.00444\approx3.1623. Compare to 103.16228\sqrt{10}\approx3.16228 — accurate to three decimals after two iterations.

Use Newton's method with x0=3x_0=3 to approximate 10\sqrt{10} (i.e. find a root of f(x)=x210f(x)=x^2-10). Compute two iterations.

EXERCISE 5.5

Find where f(x)=0f'(x)=0 for the given function, then check whether Newton's method starting exactly there is even defined.

f(x)=x33xf(x)=x^3-3x, f(x)=3x23f'(x)=3x^2-3. At x0=1x_0=1: f(1)=3(1)3=0f'(1)=3(1)-3=0. The update formula x1=x0f(x0)f(x0)x_1=x_0-\dfrac{f(x_0)}{f'(x_0)} requires dividing by f(1)=0f'(1)=0, which is undefined. Newton's method cannot proceed from this starting point — a different initial guess is required.

Show that Newton's method fails to produce a next iterate for f(x)=x33xf(x)=x^3-3x starting from x0=1x_0=1. Explain why using the update formula directly.

EXERCISE 5.6

The absolute minimum of total cost per unit occurs where the derivative of the average-cost function is zero — form the average cost first, then differentiate.

Total cost C(x)=0.01x2+20x+4500C(x)=0.01x^2+20x+4500. Average cost Cˉ(x)=C(x)x=0.01x+20+4500x\bar{C}(x)=\dfrac{C(x)}{x}=0.01x+20+\dfrac{4500}{x}. Differentiate: Cˉ(x)=0.014500x2\bar{C}'(x)=0.01-\dfrac{4500}{x^2}. Set to 00: 0.01=4500x2    x2=450,000    x=450,000670.80.01=\dfrac{4500}{x^2} \implies x^2=450{,}000 \implies x=\sqrt{450{,}000}\approx670.8. Since Cˉ(x)=9000x3>0\bar{C}''(x)=\dfrac{9000}{x^3}>0 for x>0x>0, this is a minimum. Producing roughly 671671 units minimizes average cost per unit.

Total production cost is C(x)=0.01x2+20x+4500C(x)=0.01x^2+20x+4500. Find the production quantity x>0x>0 that minimizes the average cost per unit Cˉ(x)=C(x)/x\bar{C}(x)=C(x)/x.


06 · Chapter Summary

ConceptFormula / Rule
Extreme Value TheoremContinuous ff on [a,b][a,b] attains an absolute max and min
Closed interval methodCompare ff at interior critical points and both endpoints
Optimization word problemConstraint \to solve for one variable \to single-variable function \to differentiate
Marginal cost / revenueMC=C(x)MC=C'(x), MR=R(x)MR=R'(x)
Profit maximizationΠ(x)=0    MR(x)=MC(x)\Pi'(x)=0 \iff MR(x)=MC(x)
Newton's methodxn+1=xnf(xn)f(xn)x_{n+1}=x_n-\dfrac{f(x_n)}{f'(x_n)}; fails if f(xn)=0f'(x_n)=0

Next: Chapter 06 — Integrals: Definition and FTC, which introduces the reverse process of differentiation and the theorem connecting the two.