Professional Documents
Culture Documents
4.6 Optimization: Day 1: Introduction and Problems Involving Area or Perimeter
4.6 Optimization: Day 1: Introduction and Problems Involving Area or Perimeter
4.6 Optimization: Day 1: Introduction and Problems Involving Area or Perimeter
6 Optimization
In this section, our goal is to be able to do the following:
From the name itself, optimization deals with finding the highest or lowest values of certain
attributes in a given problem. One example of a problem involving optimization is when we’re
given a budget for a rectangular fence, and we want to maximize the area while staying within
the budget. In this particular problem, we want to optimize the ”area” attribute given the
constraint of the budget for the fence. Another possible optimization problem is when we’re
given the price-demand equation of a particular product as well as its cost function. For this
scenario, a possible problem to be solved is how many items to produce in order to maximize
revenue or profit.
When we want to optimize a certain attribute such as area or profit, we usually take the absolute
extrema of the function which models that particular attribute. Recall that absolute extrema
gives us the largest or smallest values of a given function over an interval, if they exist. Hence,
it is logical to use these absolute extrema when solving for optimization problems. Later on
when we do optimization problems, this will be clear.
There are many different types of optimization problems ranging from minimizing the cost of
piping across a river and the riverbank to analyzing the cost-effectiveness of flying different
airline routes. However, for the purposes of this course as well as in the interest of time, we
will only be tackling two types of optimization problems:
In many optimization problems, we aren’t given any functions immediately from the statement
of the problem. We are then required to deduce the function to be optimized as well as any
constraints to be factored into the optimization problem. Thus, this is an essential skill when
solving these types of problems.
To solve optimization problems, we present a general procedure to follow. Even though we
have a step-by-step process to follow, it’s also important to understand why we do these steps
instead of just memorizing the procedure.
3. Find the relevant absolute extrema of f (x) on the interval I and the
x’s where this occurs.
4. Use the solution to the mathematical model to answer all the questions
asked in the problem.
Note that in the procedure above, f (x) is to be only a function of one variable. In the case
where you get a function to be optimized and it is a function of two or more variables, you
must be able to transform this function into a function of only one variable by exploring the
various constraints to the problem.
First, we try our hand at area and perimeter problems, more specifically, maximizing area.
Try this problem out first before moving on. You should get the following. The dimensions of
the garden with the maximum area of 800 ft.2 are 20 ft. x 40 ft., with one 20-foot side of wood
fencing.
The area of the rectangular garden is given by product of the lengths of the height and width
of the rectangle, which gives us A = xy, where x is the width of the rectangle and y is the
height. Without loss of generality, we assume that the side with the wood fencing is on the
width. This means that the total cost of producing the fence is given by:
Cost = 2y + 2x + 2y + 6x = 8x + 4y = 320
What we want to do next is to make the function to be maximized into a function of only one
variable, say x. From 8x + 4y = 320, we get y = 80 − 2x, which we can substitute into the
original optimization function:
To maximize the area A(x), we must first get the domain of the function. We know that the
sides of a rectangle must be positive, so we get x ≥ 0 and y ≥ 0. From y ≥ 0, we can get
x ≤ 40:
y = 80 − 2x ≥ 0 ⇒ 2x ≤ 80 ⇒ x ≤ 40
This gives us the final domain of x ∈ [0, 40] or 0 ≤ x ≤ 40. Next, we want to find the critical
numbers, and we can get this by getting the zeroes of the derivative of the area function A(x):
A0 (x) = −4x + 80 = 0 ⇒ x = 20
Thus, our singular critical number is x = 20. Finally, we want to evaluate A(x) on the critical
number x = 20 and the end points of the domain: x = 0 and x = 40.
Substituting the critical numbers and end points:
x A(x)
0 0
20 800
40 0
Here, we see that the highest value of the area is when x = 20, which gives a total area of 800
ft.2 . Since y = 80 − 2x, substituting x = 20 gives us y = 80 − 2(20) = 40.
Thus, the dimensions of the rectangle which maximizes area is 20 ft. x 40 ft. with one of the 20
ft. sides being fenced by wood. This gives us the maximized area of 800 ft.2 with $320 worth
of fencing.
Note: In the illustration above, we coincidentally set x to be the longer side of the rectangle
and y to be the shorter side. When we got the dimensions of the rectangle which optimized the
area, we got x = 20 and y = 40. Even though this is contradictory to the original illustration
we made, it does not matter. The illustration only serves as a guide to set up the necessary
functions and does not affect the final answer.
If you want to see this problem solved in a video, click on the link below:
https://youtu.be/bn5hRtfCQMM
Like with the first example, try this problem out first before moving on. You should get
the following. The minimum cost for enclosing a 1,250-square foot garden is $400, and the
dimensions are 25 ft x 50 ft, with one 25-foot side of wood fencing.
This extension of the first example puts a spin on the procedure from the first problem. In
example 1, the area was the function to be optimized and cost of the fencing was the constraint.
Now, things are the other way around; the cost of the fencing is the function to be optimized
and the area is the constraint:
Similar to Example 1, we want to make the function to be minimized into a function of only
1250
one variable, say x. From xy = 1250, we get y = , which we can substitute into the
x
original optimization function:
1250 5000
Min C(x) = 8x + 4 = 8x +
x x
Like Example 1, we must first get the domain of the function C(x). This time, since our
constraint is xy = 1250, neither x nor y can be equal to zero, so we get x > 0 and y > 0.
1250
y>0 ⇒ >0
x
1250
> 0 will be true only for positive values of x. Thus, this gives us the final domain of
x
x ∈ (0, +∞). Next, we want to find the critical numbers. We get the derivative C 0 (x) and find
the critical numbers:
5000
C 0 (x) = 8 − ⇒ x = 25
x2
5000
From 8 − , we’re actually supposed to get 3 critical numbers: x = −25, 0, 25, but since our
x2
domain is (0, +∞), we take only x = 25.
Since our domain isn’t a closed interval, we can’t use the same method as in Example 1 to find
the absolute extrema. We will have to use the second derivative test on our singular critical
number to determine if it is an absolute minimum:
Since C 00 (25) > 0, x = 25 is an absolute minimum. This gives us the minimum cost of
5000 1250 1250
C(25) = 8(25) + = $400. Since y = , substituting x = 25 gives us y = = 50.
25 x 25
Thus, the dimensions of the rectangle which minimizes cost is 25 ft. x 50 ft. with one of the 25
ft. sides being fenced by wood. This gives us the minimized cost of $400 with an area of 1250
ft.2 .
We now move on from problems involving area and begin to tackle business-related problems.
The next few problems will tackle trying to optimize (maximize) revenue or profit given a
price-demand equation.
Before continuing on with the lesson, now might be a good time to review Marginal Analysis in
Business and Economics as the next few problems will bring back concepts from that section.
Again, try this problem out first before moving on. You should get the following. The company
will realize a maximum revenue of $25,000 when 5,000 markers are manufactured annually and
sold for $5 each.
Recall from Marginal Analysis in Business and Economics that we can get revenue from the
equation: Revenue = (Quantity)(Price) or R = xp. We are also given the price-demand
equation: p = 10 − 0.001x.
In this problem, since we want to optimize revenue, our function to be optimized is the revenue
function and our constraint is the price-demand equation:
Next, we must find the domain of the function R(x). Recall from Marginal Analysis that
demand (or quantity) can’t be negative and price can’t be negative as well, so we have x ≥ 0
and p ≥ 0. From p ≥ 0, we can get x ≤ 10, 000:
This gives us the final domain of x ∈ [0, 10000] or 0 ≤ x ≤ 10, 000. Next, we want to find
the critical numbers, and we can get this by getting the zeroes of the derivative of the revenue
function R(x):
Thus, our singular critical number is x = 5000. Finally, we want to evaluate R(x) on the critical
number x = 5000 and the endpoints of the domain: x = 0 and x = 10, 000.
x R(x)
0 0
5000 25000
10000 0
Here, we see that the highest value of revenue is when x = 5000, which gives a total revenue of
$25000. Since p = 10 − 0.001x, substituting x = 5000 gives us p = 10 − 0.001(5000) = 5.
Thus, the maximum revenue of $25000 can be achieved by selling each marker at $5 per marker,
which would generate a demand of 5000 markers per year.
Next, we extend the previous example by adding a cost function in order to be able to optimize
a profit function.
Example 4: Maximizing Profit (P. 308)
C(x) = 5000 + 2x
What is the company’s maximum profit? What should the company charge
for each marker, and how many markers should be produced?
Try this problem out first before moving on. You should get the following. The company will
realize a maximum profit of $11,000 when 4,000 markers are manufactured annually and sold
for $6 each.
Now, we extend Example 3 by adding the Cost Function C(x) = 5000 + 2x. We will reuse the
following from Example 3: R(x) = 10x − 0.001x2 and p = 10 − 0.001x. Recall from Marginal
Analysis that Profit = Revenue − Cost or P (x) = R(x) − C(x):
Since our function to be optimized is already a function of just one variable, we can move on.
Since we’re adopting the same price-demand equation from Example 3, we have the same
domain here in Example 4. This gives us the final domain of x ∈ [0, 10000] or 0 ≤ x ≤ 10, 000.
Next, we want to find the critical numbers, and we can get this by getting the zeroes of the
derivative of the profit function P (x):
Thus, our singular critical number is x = 4000. Finally, we want to evaluate P (x) on the critical
number x = 4000 and the endpoints of the domain: x = 0 and x = 10, 000.
Substituting the critical numbers and end points:
x P (x)
0 −5000
4000 11000
10000 −25000
Here, we see that the highest value of profit is when x = 4000, which gives a total profit of
$11000. Since p = 10 − 0.001x, substituting x = 4000 gives us p = 10 − 0.001(4000) = 6.
Thus, the maximum profit of $11000 can be achieved by selling each marker at $6 per marker,
which would generate a demand of 4000 markers per year.
From here on, no more solutions will be given, just the final answers. The next example modifies
the cost function of the company in Examples 3 and 4 by introducing a government tax on each
marker produced.
You should get the following. The company will realize a maximum profit of $4,000 when 3,000
markers are manufactured annually and sold for $7 each.
Even though the tax caused the company’s cost to increase by $2 per marker,
the price that the company should charge to maximize its profit increases
only by $1. The company must absorb the other $1, with a resulting de-
crease of $7,000 in maximum profit.
This decrease in the overall welfare of both the producer and the consumer
is called a ”Deadweight Loss” in Economics. This concept should be ex-
pounded upon in your Introduction to Economics course.
For more examples and explanations on optimization, the following video series by Khan
Academy is suggested.
https://tinyurl.com/KhanAcademyCalcOptimization
Day 3: Exercises
The following are some exercises on 4.6 Optimization taken from the reference book:
10. Find two numbers who sum is 19 and whose product is a maximum.
11. Find two numbers whose difference is 13 and whose product is a minimum.
12. Find two numbers whose difference is 19 and whose product is a minimum.
13. Find two positive numbers whose product is 13 and whose sum is a minimum.
14. Find two positive numbers whose product is 19 and whose sum is a minimum.
15. Find the dimensions of a rectangle with an area of 200 square feet that has the minimum
perimeter.
16. Find the dimensions of a rectangle with an area of 108 square feet that has the minimum
perimeter.
17. Find the dimensions of a rectangle with a perimeter of 148 feet that has the maximum
area.
18. Find the dimensions of a rectangle with a perimeter of 76 feet that has the maximum
area.
(A) What price should the company charge for the phones, and how many
phones should be produced to maximize the weekly revenue? What is
the maximum weekly revenue?
(B) What is the maximum weekly profit? How much should the company
charge for the phones, and how many phones should be produced to
realize the maximum weekly profit?
20. Maximum Revenue and Profit
A company manufactures and sells x cameras per week. The weekly price-
demand and cost equations are, respectively,
p = 400 − 0.5x and C(x) = 2, 000 + 200x
(A) What price should the company charge for the cameras, and how many
cameras should be produced to maximize the weekly revenue? What
is the maximum weekly revenue?
(B) What is the maximum weekly profit? How much should the company
charge for the cameras, and how many cameras should be produced to
realize the maximum weekly profit?
(B) Find the maximum profit, the production level that will realize the
maximum profit, and the price the company should charge for each
television set.
(C) If the government decides to tax the company $5 for each set it pro-
duces, how many sets should the company manufacture each month to
maximize its profit? What is the maximum profit? What should the
company charge for each set?
(B) A different market survey shows that for every $0.20 reduction in the
original $8 price, 15 more sandwiches will be sold. Now how much
should the deli charge for a sandwich in order to maximize revenue?
26. Maximum Revenue
A university student center sells 1,600 cups of coffee per day at a price of
$2.40
(A) A market survey shows that for every $0.05 reduction in price, 50 more
cups of coffee will be sold. How much should the student center charge
for a cup of coffee in order to maximize revenue?
(B) A different market survey shows that for every $0.10 reduction in the
original $2.40 price, 60 more cups of coffee will be sold. Now how
much should the student center charge for a cup of coffee in order to
maximize revenue?
29. Agriculture
A commercial pear grower must decide on the optimum time to have fruit
picket and sold. If the pears are picked now, they will bring 30 cents per
pound, with each tree yielding an average of 60 pounds of salable pears.
If the average yield per tree increases 6 pounds per tree per week for the
next 4 weeks, but the price drops 2 cents per pound per week, when should
the pears be picked to realize the maximum return per tree? What is the
maximum return?
Answer Key:
√ √
9. 6.5 & 6.5 14. 19 & 19
√ √
10. 9.5 & 9.5 15. x = 10 2 & y = 10 2
√ √
11. -6.5 & 6.5 16. x = 6 3 & y = 6 3
19. (A) Maximum revenue is $156,250 when 625 phones are produced and sold for $250 each.
(B) Maximum profit is $124,000 when 600 phones are produced and sold for $260 each.
25. (A) The deli should charge $4.80 per sandwich in order to maximize revenue.
(B) The deli should charge $8 per sandwich in order to maximize revenue.
27. The car rental agency should rent cars at a rate of $35 per day to achieve a maximum
income of $6,125.
29. 40 trees should be planted per acre to obtain the maximum yield of 1,600 pounds.
Day 4: Quiz