Section 4.7: Optimization Solutions
Section 4.7: Optimization Solutions
7: Optimization Solutions
– Draw a diagram
– Identify formulas
– Figure out what the constraint is using the given information in the problem
– Identify what formula is being maximized and minimized
– Usually the easiest way to do this is by using the second derivative test
– Make sure to go back and answer what is being asked. It is usually not the case that the answer
you got in Step 5 is actually the answer to the original question.
1
Example 1. A farmer has 2400 ft. of fencing and wants to fence off a rectangular field that borders a
straight river. He needs no fencing along the river. What are the dimensions of the field that has the largest
area?
(b) What formulas will be used in this problem? Area of a rectangle and Length of Fencing
L = 2400 ft.
A = x · y and L = 2x + y = 2400
2x + y = 2400 =⇒ y = 2400 − 2x
2
Example 2. A cylindrical can is to be made to hold 1 L of oil. Find the dimensions that will minimize
the cost of the metal to manufacture the can.
(b) What formulas will be used in this problem? Surface Area of Cylinder and Volume of Cylinder
V = 1 L = 1000 cm3
3
Step 5: Test Critical Numbers
r !
4000 500 p
A00 (r) = 4π + 3 =⇒ A00
3 3
> 0 =⇒ r = 500/π is a min.
r π
4
Example 3. Find the point on the parabola y 2 =p2x that is closest to the point (1, 4). Recall : The distance
between two points is given by the formula d = (x2 − x1 )2 + (y2 − y1 )2 .
(b) What formulas will be used in this problem? The Equation of the Parabola and Distance Formula
y 2 = 2x
y 2 = 2x
p
d= (x − 1) + (y − 4)2 = Distance between (1, 4) and (x, y)
y2
y 2 = 2x =⇒ x =
2
p p
d= (x − 1)2 + (y − 4)2 = (y 2 /2 − 1)2 + (y − 4)2
It turns out that the minimum of d occurs at the same point as the minimum of d2 (convince yourself of
this), but d2 is easier to work with:
2
y2
2
f (y) = d = − 1 + (y − 4)2
2
5
2
y2
f (y) = − 1 + (y − 4)2
2
y2
0
f (y) = 2 − 1 y + 2(y − 4) = y 3 − 8 = 0
2
=⇒ y 3 = 8
y=2
y2 (2)2
x= = = 2.
2 2
Hence, the point (2,2) minimizes the distance between the parabola y 2 = 2x and the point (1,4).
6
Example 4. A rectangular box with an open top is to have a volume of 60 m3 . The length of the base is
twice the width. Material for the base costs $10/m2 . Material for the sides cost $6/m2 . Find the cost of
materials for the cheapest container.
(b) What formulas will be used in this problem? Volume of a Rectangle and Cost of Materials
V = 60
C = 20w2 + 36wh
2 30
= 20w + 36w
w2
1080
= 20w2 +
w
7
Step 4: Find Critical Numbers
1080
C(w) = 20w2 +
w
40(−26)
w = 1 : C 0 (1) = <0
12
40(403 − 27)
w = 4 : C 0 (4) = >0
402
Hence, w = 3 is a minimum. [Alternatively, you could take the second derivative as before, but notice it
involves the quotient rule.]
8
Example 5. Find the area of the largest rectangle that can be inscribed in a semicircle of radius r.
(b) What formulas will be used in this problem? Area of a Rectangle and Equation of a Circle
x2 + y 2 = r 2
x2 + y 2 = r 2
√
x2 + y 2 = r2 =⇒ y = r2 − x2
√
A = 2xy = 2x r2 − x2
9
Step 5: Test Critical Numbers
A0 (x) = 2r2 − 4x2 =⇒ A00 (x) = −8x
00 r r
A √ = −8 √ < 0 since r > 0
2 2
r
Hence, x = √ is a maximum.
2
10
Example 6. A farmer with 950 ft of fencing wants to enclose a rectangular area and then divide it into
four pens with fencing parallel to one side of the rectangle. What is the largest possible total area of the
four pens?
(b) What formulas will be used in this problem? Area of a Rectangle and Length of Fencing
L = 950
5
5x + 2y = 950 =⇒ y = 475 − x
2
5 5
A = xy = x 475 − x = 475x − x2
2 2
A0 (x) = 475 − 5x = 0
=⇒ 5x = 475
=⇒ x = 95
11
Second Derivative Test:
Hence, x = 95 is a maximum.
12
Example 7. A rectangular flower garden with an area of 30 m2 is surrounded by a grass border 1 m wide
on two sides and 2 m wide on the other two sides. What dimensions of the garden minimize the combined
area of the garden and borders?
(b) What formulas will be used in this problem? Area of Garden and Combined Area of Garden
and Borders
G = 30
30
xy = 30 =⇒ y =
x
C = (x + 4)(y + 2)
30
= (x + 4) +2
x
120
= 30 + 2x + +8
x
120
= 2x + + 38
x
13
Step 4: Find Critical Numbers
120
C(x) = 2x + + 38
x
14