UNIT 2: Basic Concepts of Derivatives Lesson 7 - Optimization
UNIT 2: Basic Concepts of Derivatives Lesson 7 - Optimization
OVERVIEW
One common application of calculus is calculating the minimum or maximum
value of a function. For example, companies often want to minimize production costs
or maximize revenue. In manufacturing, it is often desirable to minimize the amount
of material used to package a product with a certain volume. In this section, we show
how to set up these types of minimization and maximization problems and solve them
by using the tools developed in this lesson.
LEARNING OBJECTIVES
LEARNING EXPERIENCES
Warm-Up Activity
For the following activity, find the critical points in the domains of the
following functions.(see the given example)
Example: find the critical points 𝑦 = −3𝑥 2 + 15𝑥 + 1
Solution:
Step 1: find the derivative of the function
𝑦′ = −6𝑥 + 15
Step 2: equate the derived function to zero. 𝑦 ′ = 0
0 = −6𝑥 + 15
Step 3: solve for x
6𝑥 = 15
𝑥 = 2.5
Step 4: go back to the original equation, substitute the value of x and solve for y.
𝑦 = −3(2.5)2 + 15(2.5) + 1
𝑦 = 19.75
Thus the critical point (𝑥, 𝑦) of the function 𝑦 = −3𝑥 2 + 15𝑥 + 1 is at (2.5,19.75).
1.𝑦 = −𝑥 2 + 2𝑥 + 5
2. 𝑦 = 4𝑥 3 − 3𝑥
3. 𝑦 = 4√𝑥 − 𝑥 2
1
4. 𝑦 = 𝑥 2
5. 𝑦 = 2𝑥 − 3𝑥 2
Guide Questions
As you proceed with your learning materials, take note of the following guide
questions that will help you better understand your lesson:
What is optimization?
How does optimization works?
What are the steps used in solving optimization problem?
What are the problems involves in solving optimization problem?
The basic idea of the optimization problems that follow is the same. We have
a particular quantity that we are interested in maximizing or minimizing. However,
we also have some auxiliary condition that needs to be satisfied. For example, in
Example 1, we are interested in maximizing the area of a rectangular garden.
Certainly, if we keep making the side lengths of the garden larger, the area will
continue to become larger. However, what if we have some restriction on how much
fencing we can use for the perimeter? In this case, we cannot make the garden as
large as we like. Let’s look at how we can maximize the area of a rectangle subject
to some constraint on the perimeter.
Solution
Let x denote the length of the side of the garden perpendicular to the rock
wall and y denote the length of the side parallel to the rock wall. Then the area of
the garden is
𝐴 = 𝑥 ⋅ 𝑦.
We want to find the maximum possible area subject to the constraint that
the total fencing is 100ft. From Figure 1, the total amount of fencing used will be
2𝑥 + 𝑦. Therefore, the constraint equation is
2𝑥 + 𝑦 = 100.
Solving this equation for y, we have 𝑦 = 100 − 2𝑥. Thus, we can write the area
as
Figure 2. To maximize the area of the garden, we need to find the maximum
value of the function 𝐴(𝑥) = 100𝑥 − 2𝑥 2 .
Now let’s apply this strategy to maximize the volume of an open-top box given a
constraint on the amount of material to be used.
Solution
Step 1: Let x be the side length of the square to be removed from each corner
(Figure 3). Then, the remaining four flaps can be folded up to form an open-top box.
Let V be the volume of the resulting box.
Figure 3. A square with side length x inches is removed from each corner of the piece of
cardboard. The remaining flaps are folded to form an open-top box.
Step 2: We are trying to maximize the volume of a box. Therefore, the problem is to
maximize V.
Step 3: As mentioned in step 2, are trying to maximize the volume of a box. The
volume of a box is 𝑉 = 𝐿 ⋅ 𝑊 ⋅ 𝐻, where L,W,andH are the length, width, and height,
respectively.
Step 4: From Figure 3, we see that the height of the box is 𝑥 inches, the length is
36 − 2𝑥 inches, and the width is 24 − 2𝑥 inches. Therefore, the volume of the box is
Step 6: Since 𝑉(𝑥) is a continuous function over the closed, bounded interval
[0,12], V must have an absolute maximum (and an absolute minimum). Since
V(x)=0 at the endpoints and 𝑉(𝑥) > 0 for 0 < 𝑥 < 12, the maximum must occur at a
critical point. The derivative is
Dividing both sides of this equation by 12, the problem simplifies to solving the
equation
𝑥 2 − 20𝑥 + 72 = 0.
−𝑏±√𝑏2 −4𝑎𝑐
Using the quadratic formula 𝑥 = , we find that the critical points are
2𝑎
20 ± √202 − 4(1)(72) 20 ± √112 20 ± 4√7
𝑥= = = = −10 ± 2√7.
2(1) 2 2
Since 10 + 2√7 is not in the domain of consideration, the only critical point we need
to consider is 10 − 2√7.Therefore, the volume is maximized if we let 𝑥 = 10 − 2√7𝑖𝑛.
The maximum volume is 𝑉(10 − 2√7) = 640 + 448√7 ≈ 1825𝑖𝑛. 3 as shown in the
following graph.
Figure 4. Maximizing the volume of the box leads to finding the maximum value of a cubic
Example 3: Minimizing
polynomial. Travel Time
An island is 2mi due north of its closest point along a straight shoreline. A
visitor is staying at a cabin on the shore that is 6mi west of that point. The visitor is
planning to go from the cabin to the island. Suppose the visitor runs at a rate of
8mph and swims at a rate of 3mph. How far should the visitor run before swimming
to minimize the time it takes to reach the island?
Solution
Step 1: Let x be the distance running and let y be the distance swimming (Figure
5). Let T be the time it takes to get from the cabin to the island.
Step 3: To find the time spent traveling from the cabin to the island, add the time
spent running and the time spent swimming. Since Distance = Rate × Time
(𝐷 = 𝑅 × 𝑇), the time spent running is
𝐷𝑟𝑢𝑛𝑛𝑖𝑛𝑔 𝑥
𝑇𝑟𝑢𝑛𝑛𝑖𝑛𝑔 = = ,
𝑅𝑟𝑢𝑛𝑛𝑖𝑛𝑔 8
and the time spent swimming is
𝐷𝑠𝑤𝑖𝑚𝑚𝑖𝑛𝑔 𝑦
𝑇𝑠𝑤𝑖𝑚𝑚𝑖𝑛𝑔 = = .
𝑅𝑠𝑤𝑖𝑚𝑚𝑖𝑛𝑔 3
Therefore, the total time spent traveling is
𝑥 𝑦
+ . 𝑇=
8 3
Step 4: From Figure 5, the line segment of y miles forms the hypotenuse of a right
triangle with legs of length 2𝑚𝑖 and 6 − 𝑥 𝑚𝑖. Therefore, by the Pythagorean theorem,
22 + (6 − 𝑥)2 = 𝑦 2 , and we obtain 𝑦 = √(6 − 𝑥)2 + 4. Thus, the total time spent
traveling is given by the function
𝑥 √(6 − 𝑥)2 + 4
+ 𝑇(𝑥) =
8 3
Step 5: From Figure 5, we see that 0 ≤ 𝑥 ≤ 6. Therefore, [0,6] is the domain of
consideration.
Step 6: Since 𝑇(𝑥) is a continuous function over a closed, bounded interval, it has a
maximum and a minimum. Let’s begin by looking for any critical points of T over
the interval [0,6]. The derivative is
1
′ (𝑥)
1 1 [(6 − 𝑥)2 + 4]−2 1 6−𝑥
𝑇 = − ⋅ 2(6 − 𝑥) = − .
8 2 3 8 3√(6 − 𝑥)2 + 4
If 𝑇′(𝑥) = 0, then
Therefore,
Squaring both sides of this equation, we see that if x satisfies this equation, then x
must satisfy
36
(𝑥 − 6)2 =
.
55
Therefore, the possibilities for critical points are
6
𝑥 =6±
√55
6
Since 𝑥 = 6 + is not in the domain, it is not a possibility for a critical point. On the
√55
6
other hand, 𝑥 = 6 − is in the domain. Since we squared both sides of Equation 5
√55
6
to arrive at the possible critical points, it remains to verify that 𝑥 = 6 − satisfies
√55
6 6
Equation 5. Since 𝑥 = 6 − does satisfy that equation, we conclude that 𝑥 = 6 −
√55 √55
is a critical point, and it is the only one. To justify that the time is minimized for this
value of x, we just need to check the values of 𝑇(𝑥) at the endpoints 𝑥 = 0 𝑎𝑛𝑑 𝑥 = 6,
6
and compare them with the value of 𝑇(𝑥) at the critical point 𝑥 = 6 − . We find that
√55
6
𝑇(0) ≈ 2.108ℎ and 𝑇(6) ≈ 1.417ℎ, whereas 𝑇 (6 − ) = 1.368ℎ. Therefore, we conclude
√55
that T has a local minimum at 𝑥 ≈ 5.19 𝑚𝑖.
Solution
Step 1: Let p be the price charged per car per day and let n be the number of cars
rented per day. Let R be the revenue per day.
Step 4: Since the number of cars rented per day is modeled by the linear function
𝑛(𝑝) = 1000 − 5𝑝, the revenue R can be represented by the function
Step 5: Since the owners plan to charge between $50 per car per day and $200 per
car per day, the problem is to find the maximum revenue R(p) for p in the closed
interval [50,200].
Step 6: Since R is a continuous function over the closed, bounded interval [50,200],
it has an absolute maximum (and an absolute minimum) in that interval. To find the
maximum value, look for critical points. The derivative is 𝑅′(𝑝) = −10𝑝 + 1000.
Therefore, the critical point is 𝑝 = 100. When 𝑝 = 100, 𝑅(100) = $50,000. When 𝑝 = 50,
𝑅(𝑝) = $37,500. When p=200, 𝑅(𝑝) = $0. Therefore, the absolute maximum occurs at
𝑝 = $100. The car rental company should charge $100 per day per car to maximize
revenue as shown in the following figure.
Figure 6. To maximize revenue, a car rental company has to balance the price of a rental against the
number of cars people will rent at that price.
Lord, thank you for giving us the opportunity to learn and the capacity to understand.
Let our knowledge be of service not only for the attainment of our goals but also for the benefit of
others. - Amen.
Optimization problems
problems that are solved by finding the maximum or minimum value of a function
REFERENCES
Gilbert Strang, Edwin “Jed” Herman. (Mar 30, 2016). Title of document. Retrieved from
https://openstax.org/books/calculus-volume-1/pages/4-7-applied-optimization-
problems
Larson, R. (2014). College Algebra Ninth Edition. (G. Whalen, S. Green, C. Ashton, S. Lugtu, &
L. Pham, Eds.) (Ninth Edit). Liz Covello Acquisitions. Retrieved from
www.cengagebrain.com.
Stewart, J. (2014). Calculus Early TranscEndEnTals. (K. Townes, Ed.) (EighTh Edi). 20 Channel
Center Street Boston, MA 02210 USA Cengage: Cengage Learning. Retrieved from
www.cengage.com/highered
Stewart, J., RedLin, L., & Watson, S. (2016). Precalculus (Seventh Ed). 20 Channel Center
Street Boston, MA 02210 USA: Cengage Learning. Retrieved from
www.cengage.com/highered
University, M. S., & SullivanIII, M. (2013). ALGEBRA & TRIGONOMETRY. (A. Kelly, D. Murrin,
& J. Colella, Eds.) (Sixth Edit). Chicago State University: Pearson Education, Inc.
Retrieved from www.pearsonhighered.com/irc
HELPLINES
You may contact these persons in case you need assistance, we’d be happy to assist you,
always!
GUIDANCE OFFICE: (034) 434 9661 local 212
EDUCATION TECHNOLOGY SPECIALIST: Ms. Razel S. Valdez
edtech@lccbonline.edu.ph (034) 434 9661 local 332
CSF/COACH MENTOR (Grade 12): Ms. Wilma Grace Amar
wilmagraceamar@lccbonline.edu.ph (034) 434 9661 local 112
CSF/COACH MENTOR (Grade 11): Mr. Joselito M. Diaz
joselitodiaz@lccbonline.edu.ph (034) 434 9661 local 312
CAMPUS MINISTER: Ms. Mary Joy R. Servicio
maryjoyservicio@lccboline.edu.ph (034) 434 9661 local 211
A. For the following exercises, set up and evaluate each optimization problem. (Work in separate
paper to show each following solutions 10pts each)
1. Suppose the dimensions of the cardboard in Example 2 are 20 in. by 30 in. Let x be the side
length of each square and write the volume of the open-top box as a function of x. Determine
the domain of consideration for x.
2. A car rental company charges its customers p dollars per day, where 60 ≤ 𝑝 ≤ 150. It has found
that the number of cars rented per day can be modeled by the linear function 𝑛(𝑝) = 750 − 5𝑝.
How much should the company charge each customer to maximize revenue?
3. Suppose the island is 1 mi from shore, and the distance from the cabin to the point on the shore
closest to the island is 15mi. Suppose a visitor swims at the rate of 2.5mph and runs at a rate of
6mph. Let x denote the distance the visitor will run before swimming, and find a function for the
time it takes the visitor to get from the cabin to the island.
4. You have 400ft of fencing to construct a rectangular pen for cattle. What are the dimensions of
the pen that maximize the area?
5. 320. You have 800ft of fencing to make a pen for hogs. If you have a river on one side of your
property, what is the dimension of the rectangular pen that maximizes the area?
REMINDERS
Task1 are to be submitted on ________________.
Next week’s lesson: Chain Rule
Prepared by John Mark H. LIbo-on
Subject Teacher, Basic Calculus
Checked by GEFF B. SAGALA, MDC
Strand Chair, STEM
OVERVIEW
We have seen the techniques for differentiating basic functions
(𝑥 𝑛 , 𝑠𝑖𝑛𝑥, 𝑐𝑜𝑠𝑥, 𝑒𝑡𝑐. ) as well as sums, differences, products, quotients, and constant
multiples of these functions. However, these techniques do not allow us to
differentiate compositions of functions, such as ℎ(𝑥) = 𝑠𝑖𝑛(𝑥 3 ) or 𝑘(𝑥) = √3𝑥 2 + 1. In
this section, we study the rule for finding the derivative of the composition of two or
more functions.
LEARNING OBJECTIVES
LEARNING EXPERIENCES
Warm-Up Activity
6
3. 𝑦 = (5𝑥)3
Guide Questions
As you proceed with your learning materials, take note of the following guide
questions that will help you better understand your lesson:
What is Chain Rule?
What problem strategy are used in solving Chain Rule?
Does Chain applies to the rules learned in the previous lessons?
What particular set-up can we use chain rule?
To put this rule into context, let’s take a look at an example: ℎ(𝑥) = 𝑠𝑖𝑛(𝑥 3 ). We can
think of the derivative of this function with respect to x as the rate of change of 𝑠𝑖𝑛(𝑥 3 )
relative to the change in x. Consequently, we want to know how 𝑠𝑖𝑛(𝑥 3 ) changes as x
changes. We can think of this event as a chain reaction: As x changes, 𝑥 3 changes,
which leads to a change in 𝑠𝑖𝑛(𝑥 3 ). This chain reaction gives us hints as to what is
involved in computing the derivative of 𝑠𝑖𝑛(𝑥 3 ). First of all, a change in x forcing a
change in 𝑥 3 suggests that somehow the derivative of 𝑥 3 is involved. In addition, the
change in 𝑥 3 forcing a change in 𝑠𝑖𝑛(𝑥 3 ) suggests that the derivative of 𝑠𝑖𝑛(𝑢) with
respect to u, where 𝑢 = 𝑥 3 , is also part of the final derivative.
We can take a more formal look at the derivative of ℎ(𝑥) = 𝑠𝑖𝑛(𝑥 3 ) by setting up the
limit that would give us the derivative at a specific value a in the domain of ℎ(𝑥) =
𝑠𝑖𝑛(𝑥 3 ).
𝑠𝑖𝑛(𝑥 3 ) − 𝑠𝑖𝑛(𝑎3 )
ℎ′(𝑎) = lim .
𝑥→𝑎 𝑥−𝑎
This expression does not seem particularly helpful; however, we can modify it by
multiplying and dividing by the expression 𝑥 3 − 𝑎3 to obtain
𝑥 3 − 𝑎3 𝑑
lim = 3 (𝑥 3 )𝑥=𝑎 = 3𝑎2
𝑥→𝑎 𝑥 − 𝑎 𝑑
However, it might be a little more challenging to recognize that the first term is also
a derivative. We can see this by letting u=x3 and observing that as x→a,u→a3:
Now that we have derived a special case of the chain rule, we state the general case
and then apply it in a general form to other composite functions. An informal proof
is provided at the end of the section.
ℎ′(𝑥) = 𝑓′(𝑔(𝑥))𝑔′(𝑥).
Alternatively, if y is a function of u, and u is a function of x, then
𝑑𝑦 𝑑𝑦 𝑑𝑢
= ⋅ .
𝑑𝑥 𝑑𝑢 𝑑𝑥
𝑛−1
ℎ′(𝑥) = 𝑛(𝑔(𝑥)) 𝑔′(𝑥)
Solution
1
First, rewrite ℎ(𝑥) = (3𝑥2 +1)2 = (3𝑥 2 + 1)−2 .
12𝑥
ℎ′(𝑥) = − .
(3𝑥2 + 1)3
Example 2: Using the Chain and Power Rules with a Trigonometric Function
Find the derivative of ℎ(𝑥) = sin3 𝑥.
Solution
First recall that sin3 𝑥 = (𝑠𝑖𝑛𝑥)3 , so we can rewrite ℎ(𝑥) = sin3 𝑥 as ℎ(𝑥) = (𝑠𝑖𝑛𝑥)3 .
For the slope, we need ℎ′(2). To find h′(x), first we rewrite ℎ(𝑥) = (3𝑥 − 5)−2 and apply
the power rule to obtain
By substituting, we have ℎ′(2) = −6(3(2) − 5)−3 = −6. Therefore, the line has equation
𝑦 − 1 = −6(𝑥 − 2). Rewriting, the equation of the line is 𝑦 = −6𝑥 + 13.
Solution
Think of ℎ(𝑥) = 𝑐𝑜𝑠(𝑔(𝑥)) as 𝑓(𝑔(𝑥)) where 𝑓(𝑥) = 𝑐𝑜𝑠𝑥. Since 𝑓′(𝑥) = −𝑠𝑖𝑛𝑥. we have
𝑓′(𝑔(𝑥)) = −𝑠𝑖𝑛(𝑔(𝑥)). Then we do the following calculation.
Solution
Let 𝑔(𝑥) = 5𝑥 2 . Then 𝑔′(𝑥) = 10𝑥. Using the result from the previous example,
Solution
Apply the chain rule to ℎ(𝑥) = 𝑠𝑒𝑐(𝑔(𝑥)) to obtain
ℎ′(𝑥) = 𝑠𝑒𝑐(𝑔(𝑥))𝑡𝑎𝑛(𝑔(𝑥))𝑔′(𝑥).
Solution
First apply the product rule, then apply the chain rule to each term of the product.
𝑑 𝑑
ℎ′ (𝑥) = 𝑑𝑥 ((2𝑥 + 1)5 ) ⋅ (3𝑥 − 2)7 + 𝑑𝑥 ((3𝑥 − 2)7 ) ⋅ (2𝑥 + 1)5 Apply the product rule.
4 7 6
= 5(2𝑥 + 1) ⋅ 2 ⋅ (3𝑥 − 2) + 7(3𝑥 − 2) ⋅ 3 ⋅ (2𝑥 + 1) 5
Apply the chain rule.
= 10(2𝑥 + 1)4 (3𝑥 − 2)7 + 21(3𝑥 − 2)6 (2𝑥 + 1)5 Simplify
4 6
= (2𝑥 + 1) (3𝑥 − 2) (10(3𝑥 − 2) + 21(2𝑥 + 1)) Factor out.(2𝑥 + 1)4 (3𝑥 − 2)6
4
= (72𝑥 + 1)(2𝑥 + 1) (3𝑥 − 2) 6
Simplify.
𝑘(𝑥) = ℎ(𝑓(𝑔(𝑥))),
then
𝑘′(𝑥) = ℎ′(𝑓(𝑔(𝑥)))𝑓′(𝑔(𝑥))𝑔′(𝑥).
Solution
First, rewrite 𝑘(𝑥) as
4
𝑘(𝑥) = (𝑐𝑜𝑠(7𝑥 2 + 1)) .
𝑑
𝑘 ′ (𝑥) = 4(cos(7𝑥 2 + 1))3 (𝑑𝑥 𝑐𝑜𝑠(7𝑥 2 + 1)) Apply the chain.
Solution
To find 𝑣(𝑡), the velocity of the particle at time 𝑡, we must differentiate 𝑠(𝑡). Thus,
𝜋 𝜋
Substituting 𝑡 = 6 𝑖𝑛𝑡𝑜 𝑣(𝑡), we obtain 𝑣 ( 6 ) = −2.
Lord, thank you for giving us the opportunity to learn and the capacity to understand.
Let our knowledge be of service not only for the attainment of our goals but also for the benefit of
others. - Amen.
GLOSSARY
CHAIN RULE
Is defined as f and g be functions. For all x in the domain of g for which g is
differentiable at x and f is differentiable at g(x), the derivative of the composite
function
ℎ′(𝑥) = 𝑓′(𝑔(𝑥))𝑔′(𝑥).
Alternatively, if y is a function of u, and u is a function of x, then
𝑑𝑦 𝑑𝑦 𝑑𝑢
= ⋅ .
𝑑𝑥 𝑑𝑢 𝑑𝑥
HELPLINES
You may contact these persons in case you need assistance, we’d be happy to assist you,
always!
GUIDANCE OFFICE: (034) 434 9661 local 212
EDUCATION TECHNOLOGY SPECIALIST: Ms. Razel S. Valdez
edtech@lccbonline.edu.ph (034) 434 9661 local 332
CSF/COACH MENTOR (Grade 12): Ms. Wilma Grace Amar
wilmagraceamar@lccbonline.edu.ph (034) 434 9661 local 112
CSF/COACH MENTOR (Grade 11): Mr. Joselito M. Diaz
joselitodiaz@lccbonline.edu.ph (034) 434 9661 local 312
CAMPUS MINISTER: Ms. Mary Joy R. Servicio
maryjoyservicio@lccboline.edu.ph (034) 434 9661 local 211
𝒅𝒚
A. For the following exercises, find 𝒅𝒙 for each function.
1. 𝑦 = (3𝑥 2 + 3𝑥 − 1)4
2. 𝑦 = (5 − 2𝑥)−2
3. 𝑦 = cos 3(𝜋𝑥)
4. 𝑦 = (2𝑥 3 − 𝑥 2 + 6𝑥 + 1)3
1
5. 𝑦 = sin2 𝑥
6. 𝑦 = (𝑡𝑎𝑛𝑥 + 𝑠𝑖𝑛𝑥)−3
7. 𝑦 = 𝑥 2 𝑐𝑜𝑠4𝑥
8. 𝑦 = 𝑠𝑖𝑛(𝑐𝑜𝑠7𝑥)
9. 𝑦 = √6 + 𝑠𝑒𝑐𝜋𝑥 2
B. For the following exercises, set up and evaluate each following problem. (Work in separate
paper to show the solutions 10pts each)
4. A particle moves along a coordinate axis. Its position at time t is given by 𝑠(𝑡) = 𝑠𝑖𝑛(4𝑡). Find its
acceleration at time t.
5. Find the equation of the line tangent to the graph of 𝑓(𝑥) = (𝑥 2 − 2)3 𝑎𝑡 𝑥 = −2.
REMINDERS
Task1 are to be submitted on ________________.
Next week’s lesson: Implicit Differentiation
Prepared by John Mark H. LIbo-on
Subject Teacher, Basic Calculus
Checked by GEFF B. SAGALA, MDC
Strand Chair, STEM