7. Optimization and Approximation

A calculus guide to modeling optimization problems, identifying absolute extrema, and using linear approximations, differentials, and Newton’s method to estimate values and solve equations.

Modeling Optimization Problems

Optimization asks for the largest or smallest possible value of an objective quantity while respecting one or more constraints. Common objectives include area, volume, revenue, profit, distance, cost, and height.

A useful modeling sequence is:

  1. Identify the objective quantity.

  2. Define variables for the unknown quantities.

  3. Write the constraint equation.

  4. Use the constraint to express the objective with one independent variable when possible.

  5. Determine the meaningful domain.

  6. Find critical points by solving f′(x)=0f'(x)=0 and by checking where f′(x)f'(x) does not exist.

  7. Compare all candidate values and relevant endpoints.

  8. Interpret the result with units and context.

For a rectangle with perimeter 4040 meters, let the side lengths be xx and yy. The constraint is 2x+2y=402x+2y=40, so y=20−xy=20-x. The area becomes the one-variable function A(x)=x(20−x)=20x−x2A(x)=x(20-x)=20x-x^2, with domain 0≤x≤200\le x\le20. Since A′(x)=20−2xA'(x)=20-2x, the interior candidate is x=10x=10, giving y=10y=10. Because A′′(x)=−2<0A''(x)=-2<0, the rectangle with greatest area is a square measuring 1010 meters by 1010 meters.

A derivative equal to zero identifies a possible optimum, not automatically an actual maximum or minimum. The domain and comparison of candidates are essential.

Takeaway: Translate the context into a constrained one-variable function before differentiating.

on Closed Intervals

The guarantees that a continuous function on a closed, bounded interval [a,b][a,b] has an absolute maximum and an absolute minimum. These values occur either at an endpoint or at an interior .

To find :

  1. Evaluate f(a)f(a) and f(b)f(b).

  2. Find every in (a,b)(a,b), where f′(x)=0f'(x)=0 or f′(x)f'(x) is undefined.

  3. Evaluate the function at every in the interval.

  4. Compare all resulting values.

  5. Identify the largest as the absolute maximum and the smallest as the absolute minimum.

For f(x)=x3−3xf(x)=x^3-3x on [−2,2][-2,2], the derivative is f′(x)=3x2−3=3(x−1)(x+1)f'(x)=3x^2-3=3(x-1)(x+1), so the critical points are x=−1x=-1 and x=1x=1. The relevant values are f(−2)=−2f(-2)=-2, f(−1)=2f(-1)=2, f(1)=−2f(1)=-2, and f(2)=2f(2)=2. Therefore, the absolute maximum is 22, occurring at x=−1x=-1 and x=2x=2, while the absolute minimum is −2-2, occurring at x=−2x=-2 and x=1x=1.

Takeaway: Never omit endpoints in an absolute-extrema problem.

Applications in Geometry, Economics, and Physics

Optimization models appear in geometry, economics, and physical applications. In each case, the derivative supplies local information that helps locate a best value.

For a cylindrical can with fixed volume VV, the constraint is πr2h=V\pi r^2h=V, so h=Vπr2h=\frac{V}{\pi r^2}. Substituting into the surface-area formula S=2πr2+2πrhS=2\pi r^2+2\pi rh produces a function of rr alone. Its critical points can identify the radius that uses the least material.

In economics, if qq is the quantity sold and p(q)p(q) is the price per unit, revenue is R(q)=q p(q)R(q)=q\,p(q), and profit is P(q)=R(q)−C(q)P(q)=R(q)-C(q). For p(q)=100−2qp(q)=100-2q and C(q)=20q+100C(q)=20q+100, profit is

P(q)=q(100−2q)−(20q+100)=80q−2q2−100.P(q)=q(100-2q)-(20q+100)=80q-2q^2-100.

Since P′(q)=80−4qP'(q)=80-4q, the candidate is q=20q=20. The second derivative P′′(q)=−4<0P''(q)=-4<0 confirms maximum profit at that quantity. The corresponding price is p(20)=60p(20)=60, and the maximum profit is P(20)=700P(20)=700. The domain must still ensure that quantity and price are meaningful.

For a projectile with height h(t)=-16t^2+64t+5\, vertical velocity is h′(t)=−32t+64h'(t)=-32t+64. Setting velocity to zero gives t=2t=2, and the maximum height is h(2)=69h(2)=69 feet.

Takeaway: The same workflow applies across fields, but the mathematical domain must remain consistent with the real situation.

Linear Approximation

A replaces a differentiable function near x=ax=a with its tangent line:

L(x)=f(a)+f′(a)(x−a).L(x)=f(a)+f'(a)(x-a).

For inputs close to aa, use f(x)≈L(x)f(x)\approx L(x). This is effective when f(a)f(a) and f′(a)f'(a) are easy to calculate but the exact value of f(x)f(x) is inconvenient.

To approximate 4.1\sqrt{4.1}, choose f(x)=xf(x)=\sqrt{x} and base point a=4a=4. Then f(4)=2f(4)=2 and f′(4)=14f'(4)=\frac14, so

L(x)=2+14(x−4).L(x)=2+\frac14(x-4).

Therefore,

4.1≈L(4.1)=2+14(0.1)=2.025.\sqrt{4.1}\approx L(4.1)=2+\frac14(0.1)=2.025.

The estimate is close because 4.14.1 is near the base point 44. The approximation generally becomes less reliable as the input moves farther from the point where the tangent line was constructed.

Takeaway: Linear approximation is a local method: select a convenient nearby point, compute the tangent line, and use it only within a suitable neighborhood.

Differentials and Error Estimates

A estimates the change in a function caused by a small change in its input. If y=f(x)y=f(x), then

dy=f′(x) dx.dy=f'(x)\,dx.

The exact change is

Δy=f(x+Δx)−f(x),\Delta y=f(x+\Delta x)-f(x),

whereas dydy gives an approximation when dx=Δxdx=\Delta x is small:

Δy≈dy.\Delta y\approx dy.

For the area of a circle, A=πr2A=\pi r^2, so dA=2πr drdA=2\pi r\,dr. If r=10r=10 centimeters and dr=0.02dr=0.02 centimeters, then

dA=2π(10)(0.02)=0.4π cm2≈1.257 cm2.dA=2\pi(10)(0.02)=0.4\pi\text{ cm}^2\approx1.257\text{ cm}^2.

Thus, the area increases by approximately 1.2571.257 square centimeters. The same calculation can estimate how a small measurement error in radius affects the calculated area.

Takeaway: Differentials convert a small input change into an approximate output change through the derivative.

repeatedly applies tangent-line approximations to solve an equation. To solve f(x)=0f(x)=0, begin with an initial guess x0x_0 and use

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

Geometrically, the tangent line at (xn,f(xn))(x_n,f(x_n)) meets the horizontal axis at the next approximation.

To approximate 10\sqrt{10}, solve x2−10=0x^2-10=0. With f(x)=x2−10f(x)=x^2-10 and f′(x)=2xf'(x)=2x, the iteration becomes

xn+1=12(xn+10xn).x_{n+1}=\frac12\left(x_n+\frac{10}{x_n}\right).

Starting with x0=3x_0=3 gives

x1=3.1666667,x2≈3.1622807,x3≈3.16227766.x_1=3.1666667,\qquad x_2\approx3.1622807,\qquad x_3\approx3.16227766.

Hence, 10≈3.16227766\sqrt{10}\approx3.16227766.

The method is not guaranteed to converge. Difficulties can arise if f′(xn)=0f'(x_n)=0, the initial guess is far from the desired root, an iteration enters an unsuitable domain, or the function has multiple roots or complicated behavior. A practical stopping rule is

∣xn+1−xn∣<ε,|x_{n+1}-x_n|<\varepsilon,

combined with checking the residual ∣f(xn)∣|f(x_n)| to ensure that the approximation nearly satisfies the original equation.

Takeaway: is powerful but depends on a suitable starting point, a defined derivative, and a verification of the result.

Connecting Optimization and Approximation

These methods use the derivative in related ways. Optimization uses derivative information to locate candidate extrema. Absolute-extrema analysis adds endpoints to the critical-point test. Linear approximation replaces a function near one point with its tangent line. Differentials express the resulting approximate change, and repeats tangent-line approximation to find a root.

The shared pattern is local information supporting a larger decision:

  • To optimize, compare derivative-based candidates with endpoints.

  • To estimate a value, use a tangent line near a convenient base point.

  • To estimate a change, use dy=f′(x) dxdy=f'(x)\,dx.

  • To solve an equation, update an approximation with the Newton iteration.

Each method has conditions and limitations. Check continuity, differentiability, domains, endpoint behavior, the distance from a point, and the quality of an iterative approximation.

Final takeaway: Derivatives do more than describe instantaneous change; they provide a systematic way to model best values, estimate nearby quantities, and approximate solutions.