Kim’s Math NotesCourse index

Solving Optimization Problems

How do I justify that my candidate gives the best possible value?

Justify that an optimization answer is the largest or smallest: compare candidates on a closed domain, or use the only critical point on an open one.

A sign change is only relative

Common mistake S′(2)=0 and S′ changes sign, so S has an absolute minimum at r=2.

Correction r=2 is the only critical point on r>0, and S′ changes from − to + there.

No ends: one critical point

Take f of x equals x minus the natural log of x, for x greater than zero. There's no left end, and no right end. f prime is one minus one over x. That's the line y equals one, minus the curve y equals one over x. They meet only once, at x equals one.

Left of one, the curve is higher, so f prime is negative.

Watch this part of the concept lesson

Read the rest of this scene

Right of one, the line is higher, so f prime is positive. So f falls all the way down to one, then rises all the way after. Could f dip lower somewhere else? It would have to turn again, and a turn needs another critical point. There isn't one. So f of one, which is one, is the absolute minimum.

Pick the argument

There are three cases. With a closed domain, compare every candidate, the points where f prime is zero or doesn't exist, and both ends. With no ends and just one critical point, say it's the only critical point, and give the sign change, or use the second derivative test. With more than one critical point, track the sign of f prime across the whole domain.

Here's the sentence for x minus ln x.

Watch this part of the concept lesson

Read the rest of this scene

f is continuous on x greater than zero, x equals one is the only critical point, and f prime changes from negative to positive there, so f has its absolute minimum at x equals one. This is the only-critical-point argument. You met it with the second derivative test.

Today it's the main tool.

Answer what was asked

Once it's proved, answer the quantity the question asked, with units. A size? A value? Read it again. If you're counting whole items, like chairs, compare the whole numbers on either side of your answer. Sometimes the word optimize never shows up. Look for greatest, least, fastest.

Find the quantity that has to be greatest or least, and for fastest, that quantity is a rate.

Watch this part of the concept lesson

Read the rest of this scene

Take its derivative, then prove it.

Example 1: the can

Example one. A closed can holds sixteen pi cubic inches. Find the radius and height that give the smallest surface area, the least metal. Justify that it's a minimum. The plan: surface area in r alone, and its domain. Then S prime equals zero, and the sign.

Slice the can open.

Watch this part of the concept lesson

Read the rest of this scene

The top and the bottom are two circles: two pi r squared. Unroll the side wall, and it's a rectangle. Its width is the way around the circle, two pi r, and its height is h. The volume is fixed: pi r squared h equals sixteen pi. Divide by pi r squared: h is sixteen over r squared.

Put h into S: two pi r squared, plus two pi r times sixteen over r squared. Cancel one r: two pi r squared, plus thirty-two pi over r. The domain: r just has to be positive, so it's open, with no ends. Your turn: set S prime equal to zero. S prime: four pi r, minus thirty-two pi over r squared.

Over a common denominator, that's four pi times the quantity r cubed minus eight, all over r squared. It's zero when r cubed is eight. That's r equals two, and only two. A cube has just one real root. The bottom, r squared, is positive, and four pi is positive.

So the sign comes from r cubed minus eight. Negative before two, positive after: S falls, then rises. Now the sentence. S is continuous on r greater than zero, r equals two is the only critical point,

and S prime changes from negative to positive there, so S has its absolute minimum at r equals two. But the question asked for the radius and the height, not S. h is sixteen over two squared: four. The radius is two inches, and the height is four. In your workbook, there's an open box that holds thirty-two cubic inches. Same sentence.

Why the word only matters

S prime of two is zero, so minimum? Not proved. S prime goes from negative to positive, so absolute minimum? A sign change only talks about nearby points. If S turned again past two, it could dip lower. But a second turn needs a second critical point, and there isn't one.

So say it: the only critical point, plus negative to positive.

Watch this part of the concept lesson

Example 2: growing fastest

Example two. A new song comes out. For t from zero to three days, the total downloads, in thousands, are N of t equals t cubed, minus three t squared, plus four t. When are the downloads growing fastest, and how fast? Justify your answer. The word optimize isn't anywhere.

So first: which quantity has to be the greatest?

Watch this part of the concept lesson

Read the rest of this scene

Many people set N prime equal to zero. Try it: three t squared, minus six t, plus four. That's three times t minus one, squared, plus one. It's never zero. We're stuck. Read the question again.

Growing fastest means the rate is greatest. Let's name how fast the downloads grow. We'll call it R. R of t is N prime of t, three t squared minus six t plus four. The domain is zero to three, ends included. It's closed, so we compare.

Your move: R prime equals zero, then compare the values of R. To find the biggest R, take R's derivative: six t minus six. Zero at t equals one. R of zero is four. R of one is one.

R of three is thirteen. Here's R on the whole domain. Look: t equals one gives the slowest growth. The winner is the right end. With every candidate compared, the downloads grow fastest at t equals three days, at thirteen thousand downloads per day.

Your workbook has one more of these. Name the quantity first.

Worked examples

Example 1

A closed cylindrical can holds 16π cubic inches.
Find the radius and height with the least surface area. Justify that it is a minimum.
Hint

r>0 is open: no ends to compare. Say ``the only critical point'' and give its sign change.

Answer and solution

Answer r = 2 in, h = 4 in

  1. πr2h=16π→h=16r2,S(r)=2πr2+2πr⋅16r2=2πr2+32πr,r>0
  2. S′(r)=4πr−32πr2=4π(r3−8)r2=0→r=2
  3. r=2 is the only critical point on r>0, and S′ changes from − to + there, so S has its absolute minimum at r=2.
  4. h=1622=4. The radius is 2 in and the height is 4 in.

Example 2

A new song is released. For 0≤t≤3 days, the total number of downloads is N(t)=t3−3t2+4t thousand.
At what time are the downloads growing fastest? How fast? Justify.
Hint

Plan: which quantity? → closed → compare

Answer and solution
  1. 3
  2. 13
  1. Growing fastest: the rate R(t)=N′(t)=3t2−6t+4 is greatest, on the closed 0≤t≤3.
  2. R′(t)=6t−6=0→t=1
  3. Candidates: R(0)=4, R(1)=1 (the slowest), R(3)=13.
  4. Fastest at t=3 days: 13 thousand downloads per day.

Workbook

Problem 1

Find the minimum value of f(x)=2x+8x for x>0. Justify your answer.
Hint

Only one critical point on x>0. Show f′ changes from − to + there.

Answer and solution

Answer 8, at x = 2

  1. f′(x)=2−8x2=0→x=2(x>0)
  2. x=2 is the only critical point on x>0, and f′ changes from − to + there: the absolute minimum.
  3. f(2)=4+4=8

Common mistake Stopping at f'(2) = 0 without a reason for the minimum.

Watch the worked solution to Problem 1

Problem 2

The numbers x≥0 and y≥0 satisfy x+2y=12. Find the largest possible value of xy. Justify your answer.
Hint

y=12−x2. Maximize P(x)=x(12−x)2 on [0,12].

Answer and solution

Answer 18, at x = 6, y = 3

  1. y=12−x2,P(x)=x(12−x)2,0≤x≤12
  2. P′(x)=6−x=0→x=6,P(0)=0,P(6)=18,P(12)=0
  3. The largest value of xy is 18, at x=6, y=3.

Common mistake Maximizing x + y instead of xy.

Watch the worked solution to Problem 2

Problem 3

The function f is differentiable on (0,∞), and f′(3)=0. Which statement justifies that f has an absolute minimum at x=3 on (0,∞)?
  1. f′(3)=0
  2. f′ changes from negative to positive at x=3
  3. x=3 is the only critical point on (0,∞), and f′ changes from negative to positive there
  4. f is continuous at x=3
Hint

An open interval has no ends to compare. What must the only critical point show?

Answer and solution

Answer C. x=3 is the only critical point on (0,∞), and f′ changes from negative to positive there

  1. (A) is only a flat spot. (B) gives only a relative min. (D) says nothing about the smallest value.
  2. (C): the only critical point, and f′ changes from − to + there: an absolute min. Answer C.

Common mistake Choosing 'f' changes sign at 3' without saying it is the only critical point.

Watch the worked solution to Problem 3

Problem 4

An open box with a square base must hold 32 in³. Find the dimensions that use the least material. Justify your answer.
Hint

Volume x2h=32 gives h. Material: x2+4xh in one variable, x>0.

Answer and solution

Answer base 4 in by 4 in, height 2 in

  1. x2h=32→h=32x2,S(x)=x2+4x⋅32x2=x2+128x,x>0
  2. S′(x)=2x−128x2=0→x3=64→x=4
  3. x=4 is the only critical point on x>0, and S′ changes from − to +: the absolute minimum. Base 4 in by 4 in, height 2 in.

Common mistake Using a closed box (5 faces versus 6).

Watch the worked solution to Problem 4

Problem 5

A rectangular garden has an area of 200 ft². The fence on the front side costs 6 dollars per foot, and the fence on the other three sides costs 2 dollars per foot. Find the dimensions that make the cost as small as possible. Justify your answer.
Hint

Front 6 dollars per foot, the other three sides 2. Area xy=200 gives y.

Answer and solution

Answer 10 ft (front) by 20 ft, cost 160 dollars

  1. y=200x,C(x)=6x+2x+2⋅2y=8x+800x,x>0
  2. C′(x)=8−800x2=0→x=10
  3. x=10 is the only critical point on x>0, and C′ changes from − to +: the absolute minimum.
  4. 10 ft along the front by 20 ft deep; the cost is 160 dollars.

Common mistake Paying 6 dollars per foot on two sides.

Watch the worked solution to Problem 5

Problem 6

A person in a boat is 3 km from the nearest point P on a straight shore. The person wants to reach a point Q on the shore 4 km from P, rowing at 3 km/h and walking at 5 km/h. The person lands x km from P, with 0≤x≤4. Find the least possible travel time. Justify your answer.
Hint

Rowing distance 9+x2, walking distance 4−x. Time = distance ÷ speed. Compare with the ends.

Answer and solution

Answer 85 h, landing 94 km from P

  1. T(x)=9+x23+4−x5,0≤x≤4
  2. T′(x)=x39+x2−15=0→5x=39+x2→x=94
  3. T(0)=95,T(94)=54+720=85,T(4)=53
  4. The least time is 85 h, landing 94 km from P.

Common mistake Forgetting to compare with the end x = 4 (walking all the way).

Watch the worked solution to Problem 6

Problem 7

A rumor spreads through a school. For 0≤t≤10 days, the number of students who have heard it is N(t)=60t2−4t3.
  1. At what time t is the number of students who have heard the rumor growing fastest? Justify your answer.
  2. How fast is the number growing at that time? Indicate units of measure.
Hint

Growing fastest means the rate N′(t) is largest. Find where N′′(t)=0, then compare N′ there and at the ends.

Answer and solution
  1. t=5: maximize N′(t)=120t−12t2 on [0,10]; N′(0)=0, N′(5)=300, N′(10)=0
  2. N′(5)=300 students per day
  1. N′(t)=120t−12t2,N′′(t)=120−24t=0→t=5
  2. Candidates for the largest N′ on [0,10]: N′(0)=0, N′(5)=300, N′(10)=0.
  3. The rate is largest at t=5: 300 students per day.

Common mistake Maximizing N(t) itself instead of the rate N'(t).

Watch the worked solution to Problem 7