We already know how to find the largest value of a function f(x) on a closed interval [a,b]. In word problems, nobody hands us the function or the interval. We have to build them from the problem.
Say we have 120 m of fence to build a rectangular pen along a straight river. The river acts as one side, so that side needs no fence. Which pen encloses the most area? Let's call the two sides running away from the river x, and the side along the river y.
Find the dimensions of the pen with the largest area from 120 m of fence along a river
Text solution
Use the fence to get rid of yThe area xy has two variables, but two sides of x and one side of y use up all 120 m of fence.
2x+y=120→y=120−2x
A(x)=x(120−2x)=120x−2x2
Find the intervalAt x=0 and at x=60 the pen is flat and encloses no area, but including those two pens gives a closed interval.
0≤x≤60
Compare the critical point with the endsThe only critical point is x=30, and there y=120−2(30)=60.
A′(x)=120−4x=0→x=30
A(0)=0
A(30)=1800
A(60)=0
Here's the whole process for the pen.
Quantity to maximize
A=xy
Eliminate a variable
y=120−2x→A(x)=x(120−2x)
y=120−2x
→A(x)=x(120−2x)
Interval
0≤x≤60
Largest value
A′(30)=0;A(0)=0,A(30)=1800,A(60)=0
→30 m by 60 m
A′(30)=0;
A(0)=0,A(30)=1800,
A(60)=0
→30 m by 60 m
A square pen, 40 m on each side, encloses only 1600 m2. Because the river gives one side for free, the side along the river is twice as long as the sides running away from it. Try a few pens yourself.
2
Making an open box
Take a 5 by 8 inch sheet of cardboard, cut a square of side x from each corner, and fold up the four flaps. That makes an open box. What size cut gives the largest volume?
Find the cut x that gives an open box with the largest volume from a 5 by 8 inch sheet
Text solution
Write the volumeThe flaps stand x tall, and each edge loses a square at both ends.
V=x(5−2x)(8−2x)
V=4x3−26x2+40x
Find the interval firstThe shorter 5-inch edge runs out of cardboard first, so the two cuts on it can take up at most 5 inches.
2x≤5→0≤x≤25
Cross out the cut that can't fitOf the two critical points, 310 is larger than 25. The volume is 0 at both ends, so x=1 gives the largest box, 1×3×6.
V′=4(3x−10)(x−1)=0
x=1 or x=310
V(1)=18 in3
The picture to keep in mind is the 5-inch edge in three pieces: a cut, the base, and another cut.
3
When there are no endpoints to check
Now let's find the radius r and height h of a closed cylindrical can holding 16π cm3 that uses the least metal. Using the least metal means finding the smallest possible surface area: two circular lids, and a side that unrolls into a rectangle.
This time the radius can be any positive number. A very thin can and a very flat can both use lots of metal, and there's no smallest or largest radius, so there are no endpoints to compare. We need another way to be sure we've found the minimum.
Find the radius and height of a closed can holding 16π cm3 with the smallest surface area
Text solution
Use the volume to get rid of hThe surface area is S=2πr2+2πrh, and the fixed volume gives h in terms of r.
πr2h=16π→h=r216
S(r)=2πr2+r32π,r>0
Find the critical pointOver a common denominator, S′ is 0 only when r3=8.
S′(r)=4πr−r232π=r24π(r3−8)=0→r=2
Check the sign on each sideThe sign of S′ is the sign of r3−8, so S decreases the whole way to r=2 and increases the whole way after. That makes r=2 the absolute minimum, and then h=4.
0<r<2:S′(r)<0
r>2:S′(r)>0
S(2)=24π cm2
Or use the second derivativeS′′ is positive for every r>0, so the graph of S is concave up everywhere and its only critical point is the absolute minimum.
S′′(r)=4π+r364π>0(r>0)
The best can is 2 cm in radius and 4 cm tall, so it's as tall as it is wide. Could a taller or wider can use less metal?
4
Minimizing the squared distance
Let's find the point on the curve y=x that's closest to (1,0). The points (1,1) and (0,0) are both on the curve, and both are a distance 1 from (1,0). A point in between might be even closer.
Find the point on y=x closest to (1,0)
x
y
y=x
(1,0)
Text solution
Write the distanceAny point on the curve is (x,x), so the distance formula gives
d=(x−1)2+(x)2
Minimize the squared distance insteadDistance is never negative, so d and d2 are smallest at the same x, and d2 has no square root to differentiate.
D(x)=d2=x2−x+1,x≥0
D′(x)=2x−1=0→x=21
Check the sign on each sideThere's no right endpoint, so as with the can we check D′ on each side of x=21. Then y=21=22.
0≤x<21:D′(x)<0
x>21:D′(x)>0
d=43=23
closest point: (21,22)
5
Getting home fastest
Let's find where to land on the shore to get home in the shortest time. We're on an island 3 km straight out from a point P on the shore, and home is 6 km down the shore from P. We row at 3 km/h and walk at 5 km/h. Walking is faster than rowing, but rowing straight to P makes the walk as long as possible. Rowing straight home avoids walking entirely, but we row much farther.
island
P
3
home
6
x
9+x2
6−x
Find where to land to get home in the shortest time
island
P
3
home
6
row 3 km/h
walk 5 km/h
Text solution
Write the total timeLanding x km from P, we row the hypotenuse 9+x2 and walk 6−x. Time is distance divided by speed.
T(x)=39+x2+56−x,0≤x≤6
Find the critical pointSetting T′(x)=0 gives 5x=39+x2, which needs x>0. Both sides are positive, so we can square them. Squaring also brings in x=−49, which is outside the interval.
T′(x)=39+x2x−51
5x=39+x2→16x2=81→x=49
Compare with the endsSince 22=4<5, the critical point gives the shortest time: land 49 km from P, and get home in 2 hours.
T(49)=45+43=2
T(0)=511
T(6)=5
If home is only 2 km awayT′(x) is the same expression, so its only zero is still 49, now past home. T′ starts negative and never reaches 0 on [0,2].
T′(0)=−51<0→T′(x)<0 on [0,2]
T(2)=313<T(0)=57
The critical point only matters when it lies inside the interval. With home 2 km from P, the critical point 49 is past home, so T(x) decreases across the whole interval, and the fastest trip is to row straight home.
Summary
Setting up an optimization problem
Quantity to maximize
A=xy
Use the fixed amount
2x+y=120→A(x)=x(120−2x)
2x+y=120
→A(x)=x(120−2x)
Find the interval
0≤x≤60
Solve and answer what was asked
A(30)=1800→30 m by 60 m
A(30)=1800
→30 m by 60 m
Write the quantity you want to maximize or minimize, solve the fixed-amount equation for one variable and substitute, and find the interval of allowed values. Once you find where the function is largest or smallest, check what the problem asks for. The dimensions are 30 m by 60 m, not just x=30.
Checking critical points on a closed interval
0≤x≤25:
x=1✓,x=310>25
On a closed interval, compare the value at each critical point inside the interval with the values at the endpoints. For the open box, the two cuts along the 5-inch edge take 2x, so x can't be more than 25. The critical point x=310 is larger than 25, so it's outside the interval and can't be a solution. An endpoint can also be the answer.
An interval without endpoints
S′(r)=r24π(r3−8):
S′<0 for 0<r<2,
S′>0 for r>2
When an interval is missing an endpoint and has only one critical point, check the sign of the derivative on each side. If the derivative changes from negative to positive, the function decreases before the critical point and increases after it, so that critical point gives the smallest value on the entire interval. If the derivative changes from positive to negative, the critical point gives the largest value.
Minimizing distance
d2=(x−1)2+(x)2=x2−x+1
To find the closest point, minimize the square of the distance instead of the distance itself. Distance is never negative, so d and d2 are smallest at the same point. Minimizing d2 gets rid of the square root before differentiating. Take the square root at the end if the problem asks for the actual distance.
6
Practice
Give exact answers unless a problem asks for an approximation.
1
A farmer has 60 m of fence to make a rectangular pen, divided into two smaller pens by a fence parallel to one pair of sides. What is the largest total area the pen can enclose?
How many pieces of fence have length x, and how many have length y?
If you got 225 Check whether you included the dividing fence. The 60 m of fence has to cover 3 pieces of length x and 2 pieces of length y, not just the outer rectangle.
Use the fixed amount of fenceThe pen has two sides of length y, and two outer sides plus one divider of length x, so the five pieces add to 60.
3x+2y=60→y=30−23x
Write the area in terms of xThe area is xy, and y≥0 means x can't be larger than 20.
A(x)=xy=30x−23x2,0≤x≤20
Set the derivative equal to 0 to find the critical point.
A′(x)=30−3x=0→x=10,y=15
Compare the area at the critical point with the ends of the interval.
A(0)=0,A(10)=150,A(20)=0
A(0)=0,
A(10)=150,
A(20)=0
2
A rectangle has its base on the x-axis and its two upper corners on the parabola y=12−x2. What is the largest possible area of the rectangle?
If the right corner is on the curve y=12−x2, what are its coordinates, and what is the rectangle's width from −x to x?
If you got 16 Check the width of the rectangle. The base goes from −x to x, so its width is 2x, not x.
Find the dimensions of the rectangleThe upper right corner lies on the parabola, so its height is 12−x2, and symmetry across the y-axis gives a base running from −x to x.
corner (x,12−x2),width 2x
The area is width times height, and the height is at least 0 when x≤23.
A(x)=2x(12−x2)=24x−2x3,0≤x≤23
Set the derivative equal to 0 to find the critical point.
A′(x)=24−6x2=0→x=2
Evaluate the area at the ends and at x=2.
A(0)=0,A(2)=4⋅8=32,A(23)=0
A(0)=0,
A(2)=4⋅8=32,
A(23)=0
3
An open-top box with a square base must hold 8 ft3. The material for the base costs $2 per ft², and the material for the sides costs $1 per ft². What is the least possible cost of the box? Justify your answer.
Which faces make up an open-top box, and what does each face cost?
If you got 1234 Check the cost of the base. The base costs $2 per square foot, so its cost is 2x2, not x2.
Use the fixed volumeThe box has a square base of side x and height h, so the volume x2h=8 gives h in terms of x.
x2h=8→h=x28
Write the total costThe box has an open top, so the cost comes from one base at $2 per square foot and four sides at $1 per square foot.
C=2x2+1⋅4xh=2x2+x32,x>0
Set the derivative equal to 0 to find the critical point.
C′(x)=4x−x232=x24(x3−8)=0→x=2
Check the sign of the derivativeThe side length x can be any positive value, so we check the sign of C′ on either side of x=2.
0<x<2:C′(x)<0;x>2:C′(x)>0
The cost decreases up to x=2 and increases after, so x=2 gives the least cost.
C(2)=8+16=24,h=2
4
A wire 4 m long is cut into two pieces. One piece is bent into a square and the other into a circle. (a) How much of the wire should go into the square to make the total area as small as possible? (b) How much should go into the square to make the total area as large as possible?
If the square uses x meters of wire, the remaining 4−x meters form the circumference of the circle. What is the radius?
What is the total area when x=π+416, when x=0, and when x=4?
If you got π+416 for (b) Check the area at the ends. The critical point gives the smallest total area, not the largest.
Find the side and the radiusIf x meters make the square, each side is 4x, and the remaining 4−x meters make the circumference 2πr.
square side 4x,2πr=4−x→r=2π4−x
Add the area of the square to the area of the circle.
A(x)=16x2+4π(4−x)2,0≤x≤4
Set the derivative equal to 0 to find the critical point.
A′(x)=8x−2π4−x=0→πx=16−4x→x=π+416
Compare the critical point with the endsEvaluate the total area at the critical point and at the two ends where all the wire goes into one shape.
A(π+416)=π+44,A(0)=π4,A(4)=1
A(π+416)=π+44,
A(0)=π4,
A(4)=1
π+44<1<π4(π+4>4,π<4)
The critical point gives the smallest area, and putting all the wire into the circle gives the largest area.
(a) x=π+416,(b) x=0
5
An oil rig is 4 km offshore from the nearest point P on a straight shore. A refinery is on the shore, 2 km from P. A pipe costs $5 million per km underwater and $3 million per km on land. The pipe runs underwater to a point on the shore between P and the refinery, then along the shore to the refinery. What is the least possible cost?
If the pipe reaches the shore at distance x from P, does x=3 lie between P and the refinery?
If you got 22 Check the interval for x. The refinery is only 2 km from P, so the critical point x=3 lies past the refinery.
Write the cost functionIf the pipe reaches the shore x km from P, the underwater pipe is the hypotenuse of a right triangle with legs 4 and x, and the land pipe runs the remaining distance 2−x.
C(x)=516+x2+3(2−x),0≤x≤2
Set the derivative equal to 0 and square both sides to find the critical point.
C′(x)=16+x25x−3=0:5x=316+x2→16x2=144→x=3
Check the intervalThe critical point x=3 lies past the refinery, so C′(x) has no zeros on [0,2] and stays negative.
3>2,C′(0)=−3<0→C′(x)<0 on [0,2]
Because the cost decreases all the way to x=2, running the pipe straight underwater to the refinery costs the least.
C(0)=20+6=26,C(2)=520=105
C(0)=20+6=26,
C(2)=520=105
6
Find the points on the parabola y=x2 that are closest to the point (0,2). Justify your answer.
What is the squared distance at each of the three critical points?
If you got (0,0) Check the sign change of the derivative at x=0. The derivative changes from positive to negative there, so the distance has a local maximum at (0,0), not a minimum.
Write the squared distanceA point on the curve is (x,x2), and minimizing the distance is the same as minimizing the squared distance D(x).
(x,x2),D(x)=x2+(x2−2)2=x4−3x2+4
Differentiate and factor to find all three critical points.
D′(x)=4x3−6x=2x(2x2−3)=0→x=0,x=±26
Test the critical pointsChecking the sign of D′ shows that D decreases until x=−26, increases until x=0, decreases until x=26, and increases after.
D′<0 for x<−26;D′>0 on (−26,0);
D′<0 on (0,26);D′>0 for x>26
D′<0 for x<−26;
D′>0 on (−26,0);
D′<0 on (0,26);
D′>0 for x>26
D(0)=4,D(±26)=49−29+4=47
D(0)=4,
D(±26)=49−29+4=47
The minimum squared distance is 47, and that gives two closest points on the parabola.
(±26,23),d=27
7
A right circular cylinder stands inside a cone of radius 3 and height 6. The cylinder stands on the cone's base and has the same axis. What is the largest possible volume of the cylinder?
At height h, what is the radius of the cone?
If you got 54π Check the relation between r and h. The cone's radius decreases as height increases, so h=6−2r, not h=2r. The cone's total volume is only 18π, so the cylinder can't exceed that.
Relate the radius and heightBy similar triangles, the cone's radius decreases linearly from 3 at the base to 0 at height 6.
cone radius at height h=3−2h,r=3−2h→h=6−2r
The volume of the cylinder is πr2h, and r can go from 0 up to the cone's base radius of 3.
V(r)=πr2(6−2r)=π(6r2−2r3),0≤r≤3
Set the derivative equal to 0 to find the critical point.
V′(r)=π(12r−6r2)=6πr(2−r)=0→r=2,h=2
Compare the volume at r=2 with the ends r=0 and r=3.