Optimization Problems

OPTIMIZATION PROBLEMS
AP Calculus AB
December 2014
METHOD SUMMARY
1. Draw a diagram, and label it with variables.
2. Write a function for the quantity to be optimized, in terms of the variables you
have defined.
3. Use geometric formulae to express the function in terms of only one variable.
4. Take the derivative of your function.
5. Solve the derivative for zero.
6. Use the answer to determine the optimum quantity, and the variable values that
would produce it.
FARMER CHAN
Farmer Chan (Janey Sue’s husband) has 1,000 metres of fencing wire, and wants to
make the biggest field possible for his cows to graze in. There is a long, straight
existing fence that he can use for one side of the new field. What is the area of the
biggest field that he can make, and what should its side lengths be?
First, draw a diagram of the situation, and
label the variables.
Then, come up with an expression for the
quantity you are trying to maximize, in terms of
those variables.
L
W
𝐴 = πΏπ‘Š
FARMER CHAN
We would then want to maximize the area, A. In other words, we need to find the
derivative, A’, and find where A’ equals zero. This will give us the local maximum or
minimum (or possibly just an inflection point, but hopefully not!).
The problem is that we cannot take a derivative when there are two variables, L and
W. So, we need a geometric formula that lets us state one variable in terms of the
other. Try to work it out yourself first.
𝐿 + π‘Š + π‘Š = 1000 (because he has 1000 metres of wire total)
𝐿 + 2π‘Š = 1000
𝐿 = 1000 βˆ’ 2π‘Š
FARMER CHAN
𝐿 = 1000 βˆ’ 2π‘Š
Insert this into the original formula to express A in terms of one variable only.
𝐴 = πΏπ‘Š
𝐴 = 1000 βˆ’ 2π‘Š π‘Š
𝐴 = βˆ’2π‘Š 2 + 1000π‘Š
Find the derivative, A’, with respect to W as the independent variable.
𝐴′ = βˆ’4π‘Š + 1000
FARMER CHAN
𝐴′ = βˆ’4π‘Š + 1000
Solve the derivative for zero, because this will be a critical point.
0 = βˆ’4π‘Š + 1000
4π‘Š = 1000
π‘Š = 250
Therefore, when W is 250 metres, and L is 500 metres, the area A will be 125,000
square metres. This critical point is a local maximum… you can prove this by seeing
what happens if W was instead 249 or 251 metres. Problem solved!
TIN CAN
A tin can is being manufactured, and we want to use the least possible amount of
metal to hold a given volume. Let’s say we want a volume of 500 mL. What would
be the dimensions of a can that uses the least possible metal to hold that?
Draw a diagram and label it.
Q: What quantity is being optimized?
r
A: The surface area – in this case minimized.
𝑆 = 2πœ‹π‘Ÿ 2 + 2πœ‹π‘Ÿβ„Ž
h
TIN CAN
𝑆 = 2πœ‹π‘Ÿ 2 + 2πœ‹π‘Ÿβ„Ž
We have two variables in our formula for S, and we
need to work with just one.
Q: What geometric formula could link r and h? What
other information was given that could help?
r
A: The volume must be exactly 500 mL.
𝑉 = πœ‹π‘Ÿ 2 β„Ž = 500
β„Ž=
500
πœ‹π‘Ÿ 2
h
TIN CAN
Substitute one expression in to the other.
𝑆 = 2πœ‹π‘Ÿ 2 + 2πœ‹π‘Ÿβ„Ž
𝑆 = 2πœ‹π‘Ÿ 2 + 2πœ‹π‘Ÿ
𝑆 = 2πœ‹π‘Ÿ 2 +
500
πœ‹π‘Ÿ 2
1000
π‘Ÿ
r
Q: What is the next step?
A: Take the derivative of S. Try to do this on your
own before going to the next slide.
h
TIN CAN
𝑆 = 2πœ‹π‘Ÿ 2 +
1000
π‘Ÿ
𝑆 β€² = 4πœ‹π‘Ÿ βˆ’ 1000π‘Ÿ βˆ’2
Now set the derivative to zero, and solve. Try to do
this on your own before advancing.
r
0 = 4πœ‹π‘Ÿ βˆ’ 1000π‘Ÿ βˆ’2
0 = 4πœ‹π‘Ÿ 3 βˆ’ 1000
1000 =
250
πœ‹
=
(multiplied both by r2)
h
4πœ‹π‘Ÿ 3
π‘Ÿ3
… therefore π‘Ÿ =
3
250
πœ‹
β‰ˆ 4.301
TIN CAN
Q: By the way, if the volume is measured in mL, what is
the radius and height measured in?
A: Centimetres… 1 mL = 1 cm3
Radius is 4.301 cm. Also work out the height.
β„Ž=
500
πœ‹π‘Ÿ 2
500
=
πœ‹
3 250
πœ‹
2
β‰ˆ 8.603 cm
Interesting fact: a can that holds the most volume for the
least metal will always be exactly as high as its
diameter.
r
h
NETWORK CABLE
Betsy Ann Chan (Janey Sue’s indolent sister) wants to run a network cable out to the
fields so she can have better wireless access for her frequent breaks. The cable
needs to run from Point A to Point B; from one river bank to the other, and slightly
downstream. It costs $2 per metre to run the cable across land, and $5 per metre to
run it along the riverbed. The dimensions are given in the diagram.
10 metres
4 metres
A
B
NETWORK CABLE
NETWORK CABLE
Let’s show a general case for the cable, and try to define some variables. We’ll add
them on to the existing diagram.
What dimensions would you choose on the diagram for the variables?
10 m
x
4m
A
B
y
NETWORK CABLE
NETWORK CABLE
See if you can write a function for cable cost before you advance. Remember it is $5
to go through the water, and only $2 to go along the riverbank.
Did you actually try this? Just checking! Make sure you wrote a function for cable
cost and not just cable length.
𝐢 = 5 42 + π‘₯ 2 + 2𝑦
10 m
x
4m
A
B
y
NETWORK CABLE
NETWORK CABLE
This geometric formula is actually pretty easy, and almost could have just been part
of the original diagram. There are two possibilities, and see if you can get it before
you click.
π‘₯ = 10 βˆ’ 𝑦
or
10 m
𝑦 = 10 βˆ’ π‘₯
x
4m
A
B
y
NETWORK CABLE
It is probably easier to get rid of y, because the algebra will be simpler. Put it back
in the function C…
𝐢 = 5 16 + π‘₯ 2 + 2𝑦
𝐢 = 5 16 + π‘₯ 2 + 2 10 βˆ’ π‘₯
𝐢 = 5 16 + π‘₯ 2 + 20 βˆ’ 2π‘₯
10 m
x
4m
A
B
y
NETWORK CABLE
𝐢 = 5 16 + π‘₯ 2 + 20 βˆ’ 2π‘₯
The fourth step is to take the derivative, C’. Do this yourself before you advance the
slides.
10 m
x
4m
A
B
y
NETWORK CABLE
𝐢 = 5 16 + π‘₯ 2 + 20 βˆ’ 2π‘₯
β€²
𝐢 =5βˆ™
β€²
1
2
1
16 + π‘₯
𝐢 = 5π‘₯ 16 + π‘₯
2 βˆ’2
βˆ™ 2π‘₯ βˆ’ 2
1
2 βˆ’2
βˆ’2
Our fifth step is to then make C’
zero, and solve for x.
10 m
x
4m
A
B
y
NETWORK CABLE
1
0 = 5π‘₯ 16 + π‘₯
2=
2 βˆ’2
βˆ’2
5π‘₯
16+π‘₯ 2
25π‘₯ 2
4=
16+π‘₯ 2
64 + 4π‘₯ 2 =
(square both sides – sneaky!)
25π‘₯ 2
10 m
B
64 = 21π‘₯ 2
64
21
= π‘₯2
∴π‘₯=
x
4m
64
21
(discard negative)
A
y
NETWORK CABLE
Sixth and final step is to answer the question fully.
∴π‘₯=
64
21
β‰ˆ 1.75 m
∴ 𝑦 β‰ˆ 8.25 m
𝐢 = 5 16 + π‘₯ 2 + 20 βˆ’ 2π‘₯
10 m
∴ πΆπ‘šπ‘–π‘› = $38.33
Betsy Ann gets
x
4m
A
her wireless! y
B
CARDBOARD BOX
A six-sided cardboard box needs to have a volume of exactly 15 cubic feet. The top
and bottom of the box are to be exactly square. Work out what the dimensions of
the box must be for it to use the least amount of cardboard.
For this one you’re completely on your own!
All answers on the next slide.
CARDBOARD BOX
𝑆 = 4β„Žπ‘  + 2𝑠 2
(expression for surface area)
𝑉 = 15 = β„Žπ‘  2
(the geometric expression that links variables)
15
𝑠2
60
∴ 𝑆 = + 2𝑠 2
𝑠
60
𝑆 β€² = βˆ’ 2 + 4𝑠
𝑠
βˆ΄β„Ž=
𝑠=
3
15 β‰ˆ 2.466 ft
s
(the surface area with one variable)
(derivative of surface area)
(solved for zero)
∴ β„Ž β‰ˆ 2.466 ft
𝑆 β‰ˆ 36.493 ft2 (optimal surface area)
h
s
WRAPPING UP