Derivative ApplicationsTopic #17 of 32

Optimization Problems

Using derivatives to find optimal solutions in applied problems.

Problem-Solving Strategy

  1. Understand the problem: Read carefully, identify what to maximize/minimize
  2. Draw a diagram: Visualize the situation
  3. Assign variables: Label all quantities
  4. Write the objective function: Express what you're optimizing
  5. Write constraint equation(s): Express relationships between variables
  6. Reduce to one variable: Use constraints to eliminate variables
  7. Find critical points: Set derivative = 0
  8. Verify it's a max/min: Use first or second derivative test
  9. Answer the question: Include units

Common Formulas

Geometry

  • Rectangle: A=lwA = lw, P=2l+2wP = 2l + 2w
  • Circle: A=πr2A = \pi r^2, C=2πrC = 2\pi r
  • Box: V=lwhV = lwh, S=2lw+2lh+2whS = 2lw + 2lh + 2wh
  • Cylinder: V=πr2hV = \pi r^2 h, S=2πr2+2πrhS = 2\pi r^2 + 2\pi rh
  • Cone: V=13πr2hV = \frac{1}{3}\pi r^2 h

Distance

  • d=(x2x1)2+(y2y1)2d = \sqrt{(x_2-x_1)^2 + (y_2-y_1)^2}

Examples

Example 1: Fencing Problem

A farmer has 400 ft of fencing to enclose a rectangular field next to a river (no fence needed along river). Find dimensions for maximum area.

Let xx = side perpendicular to river, yy = side parallel to river.

Constraint: 2x+y=4002x + y = 400, so y=4002xy = 400 - 2x

Objective: A=xy=x(4002x)=400x2x2A = xy = x(400 - 2x) = 400x - 2x^2

dAdx=4004x=0\frac{dA}{dx} = 400 - 4x = 0

x=100 ftx = 100 \text{ ft}

y=400200=200 fty = 400 - 200 = 200 \text{ ft}

Check: d2Adx2=4<0\frac{d^2A}{dx^2} = -4 < 0, so this is a maximum.

Maximum area = 100×200=20,000100 \times 200 = 20{,}000 ft²

Example 2: Box with Maximum Volume

An open-top box is made from a 12×12 inch square by cutting squares from corners. Find cut size for maximum volume.

Let xx = side of cut squares

Dimensions: (122x)×(122x)×x(12-2x) \times (12-2x) \times x

V=x(122x)2=x(14448x+4x2)=4x348x2+144xV = x(12-2x)^2 = x(144 - 48x + 4x^2) = 4x^3 - 48x^2 + 144x

dVdx=12x296x+144=12(x28x+12)=12(x2)(x6)=0\frac{dV}{dx} = 12x^2 - 96x + 144 = 12(x^2 - 8x + 12) = 12(x-2)(x-6) = 0

x=2x = 2 or x=6x = 6

Since 0<x<60 < x < 6, we have x=2x = 2 inches.

V(2)=2(8)2=128V(2) = 2(8)^2 = 128 in³

Maximum volume = 128 cubic inches

Example 3: Minimum Distance

Find the point on y=x2y = x^2 closest to (0,3)(0, 3).

Point on parabola: (x,x2)(x, x^2)

Distance squared: D=x2+(x23)2D = x^2 + (x^2 - 3)^2

(Minimizing D2D^2 also minimizes DD)

dDdx=2x+2(x23)(2x)=2x+4x312x=4x310x=2x(2x25)\frac{dD}{dx} = 2x + 2(x^2 - 3)(2x) = 2x + 4x^3 - 12x = 4x^3 - 10x = 2x(2x^2 - 5)

2x(2x25)=02x(2x^2 - 5) = 0

x=0 or x=±52x = 0 \text{ or } x = \pm\sqrt{\frac{5}{2}}

Compare values:

  • D(0)=0+9=9D(0) = 0 + 9 = 9
  • D(±52)=52+(523)2=52+14=114D\left(\pm\sqrt{\frac{5}{2}}\right) = \frac{5}{2} + \left(\frac{5}{2} - 3\right)^2 = \frac{5}{2} + \frac{1}{4} = \frac{11}{4}

Closest point: (±52,52)(±1.58,2.5)\left(\pm\sqrt{\frac{5}{2}}, \frac{5}{2}\right) \approx (\pm 1.58, 2.5)

Example 4: Minimum Cost

A cylindrical can must hold 1000 cm³. Material costs $0.01/cm² for sides and $0.02/cm² for top and bottom. Find dimensions for minimum cost.

V=πr2h=1000,so h=1000πr2V = \pi r^2 h = 1000, \quad \text{so } h = \frac{1000}{\pi r^2}

Cost=0.02(2πr2)+0.01(2πrh)\text{Cost} = 0.02(2\pi r^2) + 0.01(2\pi rh)

=0.04πr2+0.02πr1000πr2= 0.04\pi r^2 + 0.02\pi r \cdot \frac{1000}{\pi r^2}

=0.04πr2+20r= 0.04\pi r^2 + \frac{20}{r}

dCdr=0.08πr20r2=0\frac{dC}{dr} = 0.08\pi r - \frac{20}{r^2} = 0

r3=200.08π=250πr^3 = \frac{20}{0.08\pi} = \frac{250}{\pi}

r=250π34.30 cmr = \sqrt[3]{\frac{250}{\pi}} \approx 4.30 \text{ cm}

h=1000π(250/π)2/317.21 cmh = \frac{1000}{\pi \cdot (250/\pi)^{2/3}} \approx 17.21 \text{ cm}

Example 5: Minimum Travel Time

A lifeguard at point A must reach a drowning swimmer at point B. The guard runs at 8 m/s on sand and swims at 2 m/s. Find the optimal entry point.

Setup: Guard is 50m along shore and 40m inland from the point closest to swimmer, who is 60m offshore.

Let xx = distance along shore to entry point.

Time=402+x28+602+(50x)22\text{Time} = \frac{\sqrt{40^2 + x^2}}{8} + \frac{\sqrt{60^2 + (50-x)^2}}{2}

dTdx=x81600+x250x23600+(50x)2=0\frac{dT}{dx} = \frac{x}{8\sqrt{1600 + x^2}} - \frac{50-x}{2\sqrt{3600 + (50-x)^2}} = 0

This gives: sin(θ1)8=sin(θ2)2\frac{\sin(\theta_1)}{8} = \frac{\sin(\theta_2)}{2} (Snell's Law!)

Solving numerically: x10.6x \approx 10.6 m