- Exponent Laws and Logarithm Laws
- Trig Formulas and Identities
- Differentiation Rules
- Trig Function Derivatives
- Table of Derivatives
- Table of Integrals
- Calculus Home

How to Solve Optimization Problems in Calculus
- July 7, 2016
- by Bruce Birkett
- Tags: Calculus , can , optimization , problem solving strategy
- 16 Comments
Need to solve Optimization problems in Calculus? Let’s break ’em down and develop a strategy that you can use to solve them routinely for yourself.
- Find the largest ….
- Find the minimum….
- What dimensions will give the greatest…?
The first stage doesn’t involve Calculus at all, while by contrast the second stage is just a max/min problem that you recently learned how to solve: Stage I. Develop the function. You must first convert the problem’s description of the situation into a function — crucially, a function that depends on only one single variable.
Stage II. Maximize or minimize that function. Now maximize or minimize the function you just developed. You’ll use your usual Calculus tools to find the critical points, determine whether each is a maximum or minimum, and so forth. We’ll break these two big Stages into smaller steps below. To illustrate those steps, let’s together solve this classic Optimization example problem:

Stage I. Develop the function

Step 2. Most frequently you’ll use your geometry knowledge. Having drawn the picture, the next step is to write an equation for the quantity we want to optimize . Most frequently you’ll use your everyday knowledge of geometry for this step. In this problem, for instance, we want to minimize the cost of constructing the can, which means we want to use as little metal as possible . Hence we want to minimize the can’s surface area . So let’s write an equation for that total surface area:
\begin{align*} A_\text{total} &= A_\text{top} + A_\text{cylinder} + A_\text{bottom} \\[8px] &= \pi r^2 + 2\pi r h + \pi r^2 \\[8px] &= 2\pi r^2 + 2 \pi r h \end{align*}
That’s it; you’re done with Step 2! You’ve written an equation for the quantity you want to minimize $(A_\text{total})$ in terms of the relevant quantities ( r and h ).
- Optimization Problems & Complete Solutions
Step 3. Here’s a key thing to know about how to solve Optimization problems: you’ll almost always have to use detailed information given in the problem to rewrite the equation you developed in Step 2 to be in terms of one single variable.
Above, for instance, our equation for $A_\text{total}$ has two variables, r and h . We must eliminate one of them in order to proceed. The choice of which to keep and which to eliminate is arbitrary; for our solution here, we choose to keep r . (We could just as easily choose h , and develop our solution along that path instead. We’d arrive at the same final result.) Since we’re choosing to work with r , we need to use other detailed information given in the problem to write h in terms of r so we can substitute for h as a variable.
Begin subproblem.
To accomplish this substitution, we look back to see what other constraints/information the problem gave us: recall that the can must hold an amount V of liquid, where V is some number. ( V might be 355 cm$^3$, for instance.) Now a cylinder of radius r and height h has a volume of $V = \pi r^2 h,$ and so we can solve for h in terms of V and constants: $$V = \pi r^2 h$$ thus $$h = \dfrac{V}{\pi r^2} $$ That’s our expression for h in terms of r (and the constants V and $\pi).$ End subproblem.
We’re done with Step 3: we now have the function in terms of a single variable, r : $$A(r) = 2\pi r^2 + \frac{2V}{r}$$ We’re now writing $A(r)$ to emphasize that A is a function of only the single variable r , and we’ve dropped the subscript “total” from $A_\text{total}$ since we no longer need it.
This also concludes Stage I of our work: in these threes steps, we’ve developed the function we’re now going to minimize!
Notice, by the way, that so far in our solution we haven’t used any Calculus at all. That will always be the case when you solve an Optimization problem: you don’t use Calculus until you come to Stage II.
Stage II: Maximize or minimize your function
For instance, a few weeks ago you could have gotten this as a standard max/min homework problem:

You would probably automatically find the derivative $A'(r)$ (which you could equivalently write as $\dfrac{dA}{dr})$, then find the critical points, then determine whether each represents a maximum or a minimum for the function, and so forth. That’s exactly what we’re now going to do in Stage II. Hence, you already know how to do all of the following steps; the only new part to maximization problems is what we did in Stage I above.
Step 4. We want to minimize the function $$ A(r) = 2\pi r^2 + \frac{2V}{r}$$ and so of course we must take the derivative, and then find the critical points .
The critical points occur when $A'(r) = 0$: \[ \begin{align*} A'(r) = 0 &= 4 \pi r\, – \frac{2V}{r^2} \\[8px] \frac{2V}{r^2} &= 4 \pi r \\[8px] \frac{2V}{4 \pi} &= r^3 \\[8px] r^3 &= \frac{V}{2\pi} \\[8px] r &= \sqrt[3]{\frac{V}{2\pi}} \end{align*} \] We thus have only one critical point to examine, at $r = \sqrt[3]{\dfrac{V}{2\pi}}\,.$
Step 5. Next we must justify that the critical point we’ve found represents a minimum for the can’s surface area (as opposed to a maximum, or a saddle point). We could reason physically, or use the First Derivative Test, but we think it’s easiest in this case to use the Second Derivative Test. Let’s quickly compute the second derivative, starting with the first derivative that we found above:
Since $r > 0$, this second derivative $\left(A’^\prime(r) = 4\pi + \dfrac{4V}{r^3}\right)$ is always positive $\left(A’^\prime(r) > 0 \right)$. That is, the graph of A(r) versus r is always concave up. Hence this single critical point gives us a minimum (as opposed to a maximum or saddlepoint), which is what we’re after:

The minimum surface area occurs when $r = \sqrt[3]{\dfrac{V}{2\pi}}\,. \quad \triangleleft$
Step 6. Now that we’ve found the critical point that corresponds to the can’s minimum surface area (thereby minimizing the cost), let’s finish answering the question : The problem asked us to find the dimensions — the radius and height — of the least-expensive can. We’ve already found the relevant radius, $r = \sqrt[3]{\dfrac{V}{2\pi}}\,.$
To find the corresponding height, recall that in the Subproblem above we found that since the can must hold a volume V of liquid, its height is related to its radius according to $$h = \dfrac{V}{\pi r^2}\,. $$ Hence when $r = \sqrt[3]{\dfrac{V}{2\pi}}\,,$ \[ \begin{align*} h &= \frac{V}{\pi}\,\frac{1}{r^2} \\[8px] &= \frac{V}{\pi}\,\frac{1}{\left( \sqrt[3]{\frac{V}{2\pi}}\right)^2} \\[8px] &= \frac{V}{\pi}\,\frac{2^{2/3}\pi^{2/3}}{V^{2/3}} \\[8px] &= 2^{2/3}\frac{V^{1/3}}{\pi^{1/3}} \\[8px] h &= 2^{2/3}\sqrt[3]{\frac{V}{\pi}} \quad \triangleleft \end{align*} \] The preceding expression for h is correct, but we can gain a nice insight by noticing that $$2^{2/3} = 2 \cdot\frac{1}{2^{1/3}}$$ and so \[ \begin{align*} h &= 2^{2/3}\sqrt[3]{\frac{V}{\pi}} \\[8px] &= 2 \cdot\frac{1}{2^{1/3}}\,\sqrt[3]{\frac{V}{\pi}} \\[8px] &= 2 \sqrt[3]{\frac{V}{2\pi}} = 2r \end{align*} \] since recall that the ideal radius is $r = \sqrt[3]{\dfrac{V}{2\pi}}\,.$ Hence the ideal height h is exactly twice the ideal radius.
Step 7. One last check You’ll lose points if you don’t answer the question that was asked. Because Optimization solutions can be long, we recommend that before finishing you go back and check what quantity/quantities the problem requested, and make sure you’ve provided that — especially on an exam, where you’ll lose points if you don’t answer the exact question that was asked. For example, the problem could have asked to find the value of the smallest possible surface area A , or the minimum cost.
Instead, in this case, the problem stated, “What dimensions (height and radius) will minimize the cost of metal to construct the can?” We have provided those two dimensions, and so we are done. $\checkmark$
Summary: Problem Solving Strategy
We’ve now illustrated the steps we use to solve every single Optimization problem we encounter, and they always work. PROBLEM SOLVING STRATEGY: Optimization The strategy consists of two Big Stages. The first does not involve Calculus at all; the second is identical to what you did for max/min problems.
Stage I: Develop the function.
- Draw a picture of the physical situation. Also note any physical restrictions determined by the physical situation.
- Write an equation that relates the quantity you want to optimize in terms of the relevant variables.
- If necessary, use other given information to rewrite your equation in terms of a single variable.
Stage II: Maximize or minimize the function.
- Take the derivative of your equation with respect to your single variable. Then find the critical points.
- Determine the maxima and minima as necessary. Remember to check the endpoints if there are any.
- Justify your maxima or minima either by reasoning about the physical situation, or with the first derivative test, or with the second derivative test.
- Finally, check to make sure you have answered the question as asked : Re-read the problem and verify that you are providing the value(s) requested: an x or y value; or coordinates; or a maximum area; or a shortest time; whatever was asked.
For now, over to you:
- What tips do you have to share about how to solve Optimization problems?
- What questions do you have? Optimization problems can be tricky to start, and we’re happy to help !
- How can we make posts such as this one more useful to you?
Please head to our Forum and post!
[Thanks to S. Campbell for his specific research into students’ learning of Optimization:
“College Student Difficulties with Applied Optimization Problems in Introductory Calculus,” unpublished masters thesis, The University of Maine, 2013.]
You can support our work with a cup of coffee
We're a small, self-funded team on a mission to provide high-quality, helpful materials to anyone working to learn Calculus well. We provide this site ad-free (!), and we do not sell your data to anyone. We’ve spent thousands of hours crafting everything that's here, and with your help, we can keep growing and offer more!
If we've saved you some time, or you've found our materials useful, please consider giving whatever amount feels right to you. This can take less than 60 seconds, and anything you give helps . . . and if you can contribute a little more, that allows us to continue to provide for those with less.
We thank you in advance for whatever you choose to give.
Payment information is completely secure and never touches our servers.
Thank you! ❤️
As of September 2022, we're using our Forum for comments and discussion of this topic, and for any math questions. We'd love to see you there and help! Please tap to visit our Forum: community.matheno.com
Man, if only everyone was a thorough in their explanations as this one is
Thank you for the compliment. We are very happy to have helped! : )
Nice explanation and methodical approach. Setting up the problem is 99% of the problem. I’m still trying to figure out on other optimization solutions what yo do if the 2nd derivative is simply a constant. If f ‘(x) has a desired min or max, and f ‘’(x) differentiates to a constant, what does this mean to the max or min in the first derivative test? Does the sign of the constant alone in f ‘’(x) then determine concavity since there’s no potential inflection point? If that constant’s sign is negative (concave down) and the solution requires an optimization max, does that satisfy a proof? And vice versa if concavity is positive (concave up) confirm a minimum in the first derivative test?
Thanks, Chris. We’re glad to know you liked our explanation and approach. And agreed about getting the problem set-up right as the vast majority of the work here.
The answer to all of your questions is: yes! If the second derivative is a negative constant, then the function is concave down everywhere, and so you’re guaranteed that the point x=c you found where f'(c) = 0 is a maximum. (See the figure below.) Similarly, if the second derivative is a positive constant, then the function is concave up everywhere, and so the point x=c where f'(c) = 0 is guaranteed to be a minimum. And the fact that there’s no point of inflection anywhere doesn’t affect those conclusions.
The only thing that you wrote that isn’t quite right are the very last words, “in the first derivative test”; instead, you’re using the Second Derivative Test . That test is just as conclusive as the First Derivative Test, and is often easier to use. The one exception is if the second derivative is zero at the point of interest (f”(c)=0), in which case the Second Derivative Test is inconclusive and you have to revert to the First Derivative Test. But otherwise, the conclusion you reach with the Second Derivative test is indeed conclusive.
Hope that helps, and thanks for asking!

what problems can help to solve optimization
Thanks for asking! We have more completely solved optimization problems on this page: Optimization: Problems and Solutions .
We hope that helps!
very nicely organized! however i think it would have been more effective with some numbers, instead of variables. it can get hard to follow, especially when there’s multiple(in this case). but it was still lovely and easy to follow
Thank you for your nice comment, and for your suggestion. We’ll keep it in mind for future posts. For now: thanks very much!
I am having a tough time differentiating what it means when they say minimize(or maximize) a situation, as in how do the answers vary one from the other? I understand all the steps. I just want to be sure I pick the right “direction” when presented with an optimization problem….
Thanks for asking, Jon!
We’re happy to try to answer your question. First, we’d like to ask for a bit of clarification so we can be sure we address the question you actually have. Can you say a bit more about “how do the answers vary one from the other” ? Even better, could you give us an example, or two, of a problem where you don’t know what direction to pick initially? Is it that you’re not sure whether you need to maximize or minimize a particular quantity, or that when you’re presented with a situation you don’t know where to begin at all, or ??
And we know it’s tough to ask a clear question when you’re learning a new topic, so please just add whatever you can.
Thanks very much, and thanks again for posting your question, which I’m sure other students have as well!
What if you want to know the optimal volume needed for one product to finish at the same time with the other
We’re sorry that we don’t quite understand the question you’re asking. If you would like to provide more detail, perhaps with the statement of a problem you’re working to solve, we’ll be very happy to try to assist.
For now, thank you for your initial query!
Jump to solved problems
- Evaluating Limits
- Limits at Infinity
- Limits at Infinity with Square Roots
- Calculating Derivatives
- Equation of a Tangent Line
- Mean Value Theorem & Rolle’s Theorem
- Garden fence
- Least expensive open-topped can
- Printed poster
- Snowball melts
- Snowball melts, area decreases at given rate
- How fast is the ladder’s top sliding
- Angle changes as a ladder slides
- Lamp post casts shadow of man walking
- Water drains from a cone
- Given an equation, find a rate
We have new material coming very soon. Please watch our new Forum for announcements:
Community.Matheno.com
You can ask any Calculus questions there, too! We'd like to help, so please visit.
Update September 2022
All of our content is now free, with the goal of supporting anyone who is working to learn Calculus well.
To access our materials, please simply visit our Calculus Home screen.
Also new: we've added a forum, Community.Matheno.com , also free to use. If you need some help with a Calculus question, please post there and we'll do our best to assist!

- Terms of Use
- Privacy Policy
Matheno ®
Berkeley, California

AP ® is a trademark registered by the College Board, which is not affiliated with, and does not endorse, this site.
© 2014–2023 Matheno, Inc.
Yes, I'll give back via PayPal!
Your payment information is securely connected directly to PayPal. It never touches our servers.
" * " indicates required fields
Yes, I'll give back with Google Pay, Apple Pay, or credit card
Your payment information is securely connected directly to the Stripe payment service. It never touches our servers.
(The hand-off to Stripe may take a moment. Thank you for you for giving back!!)
Once you log in with your free account, the site will record and then be able to display for you:
- Your answers to multiple choice questions;
- Your self-chosen confidence rating for each problem, so you know which to return to before an exam (super useful!);
- Your progress, and specifically which topics you have marked as complete for yourself.
Your selections are for your use only, and we do not share your specific data with anyone else. We do use aggregated data to help us see, for instance, where many students are having difficulty, so we know where to focus our efforts.
You’ll also be able to post any Calculus questions that you have on our Forum , and we’ll do our best to answer them!
We believe that free, high-quality educational materials should be available to everyone working to learn well. There is no cost to you for having an account, other than our gentle request that you contribute what you can, if possible, to help us maintain and grow this site.
Calcworkshop
Optimization In Calculus How-To w/ 7 Step-by-Step Examples!
// Last Updated: July 25, 2021 - Watch Video //
Has there ever been a time when you wish the day would never end?
Jenn, Founder Calcworkshop ® , 15+ Years Experience (Licensed & Certified Teacher)
Or, on the flip side, have you ever felt like the day couldn’t end fast enough?
What do these sentiments have in common?
Both are trying to optimize the situation!
Optimization is the process of finding maximum and minimum values given constraints using calculus .
For example, you’ll be given a situation where you’re asked to find:
- The Maximum Profit
- The Minimum Travel Time
- Or Possibly The Least Costly Enclosure
It is our job to translate the problem or picture into usable functions to find the extreme values .
Solving Optimization Problems (Step-by-Step)
Step 1: Translate the problem using assign symbols, variables, and sketches, when applicable, by finding two equations: one is the primary equation that contains the variable we wish to optimize, and the other is called the secondary equation , which holds the constraints.
Step 2: Substitute our secondary equation into our primary equation and simplify.
Step 3: Take the first derivative of this simplified equation and set it equal to zero to find critical numbers.
Step 4: Verify our critical numbers yield the desired optimized result (i.e., maximum or minimum value).
While this may seem difficult at first, it’s really quite straightforward as we are simply finding two equations, plugging one equation into the other, and then taking the derivative.
Let’s look at a few problems to see how our optimization problem-solving strategies in work.
Suppose we are told that the product of two positive numbers is 192 and the sum is a minimum. What are the two numbers?
First, we need to find our primary and secondary equations by translating our problem.
Secondary: \(x \cdot y=192\) Primary: \(x+y=\min\)
Now we will substitute our secondary equation into our primary equation ( the equation we want to minimize ) and simplify.
\begin{equation} \text { If } x \cdot y=192 \rightarrow x=\frac{192}{y}, \text { then } x+y=\min \rightarrow \frac{192}{y}+y=\min \end{equation}
Next, we will take the first derivative and solve for critical numbers by setting the derivative equal to zero.
\begin{equation} \begin{array}{l} \min =\frac{192}{y}+y \\ \min =192 y^{-1}+y \\ \frac{d(\min )}{d y}=-192 y^{-2}+1 \\ \frac{d(\min )}{d y}=\frac{-192}{y^{2}}+1 \\ 0=\frac{-192}{y^{2}}+1 \\ 0=-192+y^{2} \\ y^{2}=192 \\ y=\sqrt{192},-\sqrt{192} \end{array} \end{equation}
Now, only the positive result fits our question because we are looking for two positive numbers. And now it’s time to use our second derivative test (or first derivative test) to verify that our critical number is indeed a relative minimum.
\begin{equation} \begin{array}{l} \frac{d^{2}(\min )}{d y^{2}}=2(192) y^{-3}=\frac{383}{y^{3}} \\ \frac{d^{2}}{d y^{2}}(\sqrt{192})=\frac{383}{(\sqrt{192})^{3}}>0 \end{array} \end{equation}
The second derivative is positive at the given critical number, so we know that we have a local minimum!
Now all that is left to do is substitute our found y-value into our original secondary equation to find the x-value.
\begin{equation} \begin{array}{l} x \cdot y=192, y=\sqrt{192} \\ x \sqrt{192}=192 \\ x=\frac{192}{\sqrt{192}}=\sqrt{192} \end{array} \end{equation}
Therefore, the two positive numbers whose product is 192 and sum is a minimum are \(x=\sqrt{192}\) and \(y=\sqrt{192}\).
See, that wasn’t too bad now, was it?
Okay, let’s now look at a more realistic question.
Assume the manager at a landscaping store wants to build a 600 square foot rectangular enclosure to display lawn equipment. Three sides of the enclosure will be made from wood fending at the cost of $7 per foot, whereas the fourth side of the enclosure will be built of bricks at the cost of $14 per foot. Find the dimensions of the least costly enclosure.
First, let’s draw a picture and find our primary and secondary equations.
Area Rectangular Enclosure
We know that the area of the enclosure is 600, so that would mean:
\begin{equation} A=x \cdot y=600 \end{equation}
Now, we also know that three sides are wood, and one side is brick, so let’s relabel our diagram as follows.
Cost Materials Rectangular Enclosure
And since the cost for the wood is $7 and brick is $14, that means the cost for the enclosure would be
\begin{equation} C=7(\text { wood })+14(\text { brick })=7(2 y+x)+14 x=14 y+21 x \end{equation}
Alright, so now we’ve acquired our two equations.
Primary: \(C=14 y+21 x\) Secondary: \(x y=600\)
Now it’s time to substitute the secondary equation into the primary equation (the equation we want to optimize) and simplify
\begin{equation} \begin{array}{l} \text { If } x y=600 \rightarrow x=\frac{600}{y}=600 y^{-1}, \text { then } C=14 y+21 x \rightarrow C=14 y+21\left(600 y^{-1}\right) \\ C=14 y+12600 y^{-1} \end{array} \end{equation}
\begin{equation} \begin{array}{l} \frac{d C}{d y}=14-12600 y^{-2} \\ 0=14-\frac{12600}{y^{2}} \\ 0=14 y^{2}-12600 \\ y^{2}=900 \\ y=30,-30 \end{array} \end{equation}
Because the dimensions of an enclosure must be a positive distance, we know that the only critical number that makes sense is for y = 30 feet.
Now, let’s test our critical number, using the second derivative test, to ensure that this will yield a minimum value, as we are looking to find the least costly enclosure.
\begin{equation} \begin{array}{l} \frac{d^{2} C}{d y^{2}}=2(12600) y^{-3}=\frac{25200}{y^{3}} \\ \frac{d^{2}}{d y^{2}}(30)=\frac{25200}{(30)^{3}}>0 \end{array} \end{equation}
The second derivative is positive at y = 30, so we know that we have a local minimum!
Now all that is left to do is substitute our y-value into our secondary equation to find the x-value.
\begin{equation} \begin{array}{l} x y=600, y=30 \\ x(30)=600 \\ x=20 \end{array} \end{equation}
This means that the dimensions of the least costly enclosure are 20 feet long and 30 feet wide.
So, together we will work through numerous questions where we will have to follow the optimization problem-solving process to find the values that will either maximize or minimize our function.
Let’s get to it!
Video Tutorial w/ Full Lesson & Detailed Examples (Video)
Get access to all the courses and over 450 HD videos with your subscription
Monthly and Yearly Plans Available
Get My Subscription Now
Still wondering if CalcWorkshop is right for you? Take a Tour and find out how a membership can take the struggle out of learning math.

- school Campus Bookshelves
- menu_book Bookshelves
- perm_media Learning Objects
- login Login
- how_to_reg Request Instructor Account
- hub Instructor Commons
- Download Page (PDF)
- Download Full Book (PDF)
- Periodic Table
- Physics Constants
- Scientific Calculator
- Reference & Cite
- Tools expand_more
- Readability
selected template will load here
This action is not available.

4.7: Optimization Problems
- Last updated
- Save as PDF
- Page ID 4467
Learning Objectives
- Set up and solve optimization problems in several applied fields.
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 chapter.
Solving Optimization Problems over a Closed, Bounded Interval
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 \(\PageIndex{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.
Example \(\PageIndex{1}\): Maximizing the Area of a Garden
A rectangular garden is to be constructed using a rock wall as one side of the garden and wire fencing for the other three sides (Figure \(\PageIndex{1}\)). Given \(100\,\text{ft}\) of wire fencing, determine the dimensions that would create a garden of maximum area. What is the maximum area?

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
\(A=x⋅y.\)
We want to find the maximum possible area subject to the constraint that the total fencing is \(100\,\text{ft}\). From Figure \(\PageIndex{1}\), the total amount of fencing used will be \(2x+y.\) Therefore, the constraint equation is
\(2x+y=100.\)
Solving this equation for \(y\), we have \(y=100−2x.\) Thus, we can write the area as
\(A(x)=x⋅(100−2x)=100x−2x^2.\)
Before trying to maximize the area function \(A(x)=100x−2x^2,\) we need to determine the domain under consideration. To construct a rectangular garden, we certainly need the lengths of both sides to be positive. Therefore, we need \(x>0\) and \(y>0\). Since \(y=100−2x\), if \(y>0\), then \(x<50\). Therefore, we are trying to determine the maximum value of \(A(x)\) for \(x\) over the open interval \((0,50)\). We do not know that a function necessarily has a maximum value over an open interval. However, we do know that a continuous function has an absolute maximum (and absolute minimum) over a closed interval. Therefore, let’s consider the function \(A(x)=100x−2x^2\) over the closed interval \([0,50]\). If the maximum value occurs at an interior point, then we have found the value \(x\) in the open interval \((0,50)\) that maximizes the area of the garden.
Therefore, we consider the following problem:
Maximize \(A(x)=100x−2x^2\) over the interval \([0,50].\)
As mentioned earlier, since \(A\) is a continuous function on a closed, bounded interval, by the extreme value theorem, it has a maximum and a minimum. These extreme values occur either at endpoints or critical points. At the endpoints, \(A(x)=0\). Since the area is positive for all \(x\) in the open interval \((0,50)\), the maximum must occur at a critical point. Differentiating the function \(A(x)\), we obtain
\(A′(x)=100−4x.\)
Therefore, the only critical point is \(x=25\) (Figure \(\PageIndex{2}\)). We conclude that the maximum area must occur when \(x=25\).

Then we have \(y=100−2x=100−2(25)=50.\) To maximize the area of the garden, let \(x=25\,\text{ft}\) and \(y=50\,\text{ft}\). The area of this garden is \(1250\, \text{ft}^2\).
Exercise \(\PageIndex{1}\)
Determine the maximum area if we want to make the same rectangular garden as in Figure \(\PageIndex{2}\), but we have \(200\,\text{ft}\) of fencing.
We need to maximize the function \(A(x)=200x−2x^2\) over the interval \([0,100].\)
The maximum area is \(5000\, \text{ft}^2\).
Now let’s look at a general strategy for solving optimization problems similar to Example \(\PageIndex{1}\).
Problem-Solving Strategy: Solving Optimization Problems
- Introduce all variables. If applicable, draw a figure and label all variables.
- Determine which quantity is to be maximized or minimized, and for what range of values of the other variables (if this can be determined at this time).
- Write a formula for the quantity to be maximized or minimized in terms of the variables. This formula may involve more than one variable.
- Write any equations relating the independent variables in the formula from step \(3\). Use these equations to write the quantity to be maximized or minimized as a function of one variable.
- Identify the domain of consideration for the function in step \(4\) based on the physical problem to be solved.
- Locate the maximum or minimum value of the function from step \(4.\) This step typically involves looking for critical points and evaluating a function at endpoints.
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.
Example \(\PageIndex{2}\): Maximizing the Volume of a Box
An open-top box is to be made from a \(24\,\text{in.}\) by \(36\,\text{in.}\) piece of cardboard by removing a square from each corner of the box and folding up the flaps on each side. What size square should be cut out of each corner to get a box with the maximum volume?
Step 1: Let \(x\) be the side length of the square to be removed from each corner (Figure \(\PageIndex{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.

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
\[V=L⋅W⋅H \nonumber, \nonumber \]
where \(L,\,W,\)and \(H\) are the length, width, and height, respectively.
Step 4: From Figure \(\PageIndex{3}\), we see that the height of the box is \(x\) inches, the length is \(36−2x\) inches, and the width is \(24−2x\) inches. Therefore, the volume of the box is
\[ \begin{align*} V(x) &=(36−2x)(24−2x)x \\[4pt] &=4x^3−120x^2+864x \end{align*}. \nonumber \]
Step 5: To determine the domain of consideration, let’s examine Figure \(\PageIndex{3}\). Certainly, we need \(x>0.\) Furthermore, the side length of the square cannot be greater than or equal to half the length of the shorter side, \(24\,\text{in.}\); otherwise, one of the flaps would be completely cut off. Therefore, we are trying to determine whether there is a maximum volume of the box for \(x\) over the open interval \((0,12).\) Since \(V\) is a continuous function over the closed interval \([0,12]\), we know \(V\) will have an absolute maximum over the closed interval. Therefore, we consider \(V\) over the closed interval \([0,12]\) and check whether the absolute maximum occurs at an interior point.
Step 6: Since \(V(x)\) 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 \(V(x)>0\) for \(0<x<12,\) the maximum must occur at a critical point. The derivative is
\(V′(x)=12x^2−240x+864.\)
To find the critical points, we need to solve the equation
\(12x^2−240x+864=0.\)
Dividing both sides of this equation by \(12\), the problem simplifies to solving the equation
\(x^2−20x+72=0.\)
Using the quadratic formula, we find that the critical points are
\[\begin{align*} x &=\dfrac{20±\sqrt{(−20)^2−4(1)(72)}}{2} \\[4pt] &=\dfrac{20±\sqrt{112}}{2} \\[4pt] &=\dfrac{20±4\sqrt{7}}{2} \\[4pt] &=10±2\sqrt{7} \end{align*}. \nonumber \]
Since \(10+2\sqrt{7}\) is not in the domain of consideration, the only critical point we need to consider is \(10−2\sqrt{7}\). Therefore, the volume is maximized if we let \(x=10−2\sqrt{7}\,\text{in.}\) The maximum volume is
\[V(10−2\sqrt{7})=640+448\sqrt{7}≈1825\,\text{in}^3. \nonumber \]
as shown in the following graph.

Exercise \(\PageIndex{2}\)
Suppose the dimensions of the cardboard in Example \(\PageIndex{2}\) are \(20\,\text{in.}\) by \(30\,\text{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\).
The volume of the box is \(L⋅W⋅H.\)
\(V(x)=x(20−2x)(30−2x).\) The domain is \([0,10]\).
Example \(\PageIndex{3}\): Minimizing Travel Time
An island is \(2\) mi due north of its closest point along a straight shoreline. A visitor is staying at a cabin on the shore that is \(6\) mi west of that point. The visitor is planning to go from the cabin to the island. Suppose the visitor runs at a rate of \(8\) mph and swims at a rate of \(3\) mph. How far should the visitor run before swimming to minimize the time it takes to reach the island?
Step 1: Let \(x\) be the distance running and let \(y\) be the distance swimming (Figure \(\PageIndex{5}\)). Let \(T\) be the time it takes to get from the cabin to the island.

Step 2: The problem is to minimize \(T\).
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 \((D=R×T),\) the time spent running is
\(T_{running}=\dfrac{D_{running}}{R_{running}}=\dfrac{x}{8}\),
and the time spent swimming is
\(T_{swimming}=\dfrac{D_{swimming}}{R_{swimming}}=\dfrac{y}{3}\).
Therefore, the total time spent traveling is
\(T=\dfrac{x}{8}+\dfrac{y}{3}\).
Step 4: From Figure \(\PageIndex{5}\), the line segment of \(y\) miles forms the hypotenuse of a right triangle with legs of length \(2\) mi and \(6−x\) mi. Therefore, by the Pythagorean theorem, \(2^2+(6−x)^2=y^2\), and we obtain \(y=\sqrt{(6−x)^2+4}\). Thus, the total time spent traveling is given by the function
\(T(x)=\dfrac{x}{8}+\dfrac{\sqrt{(6−x)^2+4}}{3}\).
Step 5: From Figure \(\PageIndex{5}\), we see that \(0≤x≤6\). Therefore, \([0,6]\) is the domain of consideration.
Step 6: Since \(T(x)\) 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
\[\begin{align*} T′(x) &=\dfrac{1}{8}−\dfrac{1}{2}\dfrac{[(6−x)^2+4]^{−1/2}}{3}⋅2(6−x) \\[4pt] &=\dfrac{1}{8}−\dfrac{(6−x)}{3\sqrt{(6−x)^2+4}} \end{align*}\]
If \(T′(x)=0,\), then
\[\dfrac{1}{8}=\dfrac{6−x}{3\sqrt{(6−x)^2+4}} \label{ex3eq1} \]
\[3\sqrt{(6−x)^2+4}=8(6−x). \label{ex3eq2} \]
Squaring both sides of this equation, we see that if \(x\) satisfies this equation, then \(x\) must satisfy
\[9[(6−x)^2+4]=64(6−x)^2,\nonumber \]
which implies
\[55(6−x)^2=36. \nonumber \]
We conclude that if \(x\) is a critical point, then \(x\) satisfies
\[(x−6)^2=\dfrac{36}{55}. \nonumber \]
[Note that since we are squaring, \( (x-6)^2 = (6-x)^2.\)]
Therefore, the possibilities for critical points are
\[x=6±\dfrac{6}{\sqrt{55}}.\nonumber \]
Since \(x=6+6/\sqrt{55}\) is not in the domain, it is not a possibility for a critical point. On the other hand, \(x=6−6/\sqrt{55}\) is in the domain. Since we squared both sides of Equation \ref{ex3eq2} to arrive at the possible critical points, it remains to verify that \(x=6−6/\sqrt{55}\) satisfies Equation \ref{ex3eq1}. Since \(x=6−6/\sqrt{55}\) does satisfy that equation, we conclude that \(x=6−6/\sqrt{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 \(T(x)\) at the endpoints \(x=0\) and \(x=6\), and compare them with the value of \(T(x)\) at the critical point \(x=6−6/\sqrt{55}\). We find that \(T(0)≈2.108\,\text{h}\) and \(T(6)≈1.417\,\text{h}\), whereas
\[T(6−6/\sqrt{55})≈1.368\,\text{h}. \nonumber \]
Therefore, we conclude that \(T\) has a local minimum at \(x≈5.19\) mi.
Exercise \(\PageIndex{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 \(15\) mi. Suppose a visitor swims at the rate of \(2.5\) mph and runs at a rate of \(6\) mph. 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.
The time \(T=T_{running}+T_{swimming}.\)
\(T(x)=\dfrac{x}{6}+\dfrac{\sqrt{(15−x)^2+1}}{2.5} \)
In business, companies are interested in maximizing revenue. In the following example, we consider a scenario in which a company has collected data on how many cars it is able to lease, depending on the price it charges its customers to rent a car. Let’s use these data to determine the price the company should charge to maximize the amount of money it brings in.
Example \(\PageIndex{4}\): Maximizing Revenue
Owners of a car rental company have determined that if they charge customers \(p\) dollars per day to rent a car, where \(50≤p≤200\), the number of cars \(n\) they rent per day can be modeled by the linear function \(n(p)=1000−5p\). If they charge \($50\) per day or less, they will rent all their cars. If they charge \($200\) per day or more, they will not rent any cars. Assuming the owners plan to charge customers between \($50\) per day and \($200\) per day to rent a car, how much should they charge to maximize their revenue?
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 2: The problem is to maximize \(R.\)
Step 3: The revenue (per day) is equal to the number of cars rented per day times the price charged per car per day—that is, \(R=n×p.\)
Step 4: Since the number of cars rented per day is modeled by the linear function \(n(p)=1000−5p,\) the revenue \(R\) can be represented by the function
\[ \begin{align*} R(p) &=n×p \\[4pt] &=(1000−5p)p \\[4pt] &=−5p^2+1000p.\end{align*}\]
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 \(R′(p)=−10p+1000.\) Therefore, the critical point is \(p=100\). When \(p=100, R(100)=$50,000.\) When \(p=50, R(p)=$37,500\). When \(p=200, R(p)=$0\).
Therefore, the absolute maximum occurs at \(p=$100\). The car rental company should charge \($100\) per day per car to maximize revenue as shown in the following figure.

Exercise \(\PageIndex{4}\)
A car rental company charges its customers \(p\) dollars per day, where \(60≤p≤150\). It has found that the number of cars rented per day can be modeled by the linear function \(n(p)=750−5p.\) How much should the company charge each customer to maximize revenue?
\(R(p)=n×p,\) where \(n\) is the number of cars rented and \(p\) is the price charged per car.
The company should charge \($75\) per car per day.

Example \(\PageIndex{5}\): Maximizing the Area of an Inscribed Rectangle
A rectangle is to be inscribed in the ellipse
\[\dfrac{x^2}{4}+y^2=1. \nonumber \]
What should the dimensions of the rectangle be to maximize its area? What is the maximum area?
Step 1: For a rectangle to be inscribed in the ellipse, the sides of the rectangle must be parallel to the axes. Let \(L\) be the length of the rectangle and \(W\) be its width. Let \(A\) be the area of the rectangle.

Step 2: The problem is to maximize \(A\).
Step 3: The area of the rectangle is \(A=LW.\)
Step 4: Let \((x,y)\) be the corner of the rectangle that lies in the first quadrant, as shown in Figure \(\PageIndex{7}\). We can write length \(L=2x\) and width \(W=2y\). Since \(\dfrac{x^2}{4}+y^2=1\) and \(y>0\), we have \(y=\sqrt{1-\dfrac{x^2}{4}}\). Therefore, the area is
\(A=LW=(2x)(2y)=4x\sqrt{1-\dfrac{x^2}{4}}=2x\sqrt{4−x^2}\)
Step 5: From Figure \(\PageIndex{7}\), we see that to inscribe a rectangle in the ellipse, the \(x\)-coordinate of the corner in the first quadrant must satisfy \(0<x<2\). Therefore, the problem reduces to looking for the maximum value of \(A(x)\) over the open interval \((0,2)\). Since \(A(x)\) will have an absolute maximum (and absolute minimum) over the closed interval \([0,2]\), we consider \(A(x)=2x\sqrt{4−x^2}\) over the interval \([0,2]\). If the absolute maximum occurs at an interior point, then we have found an absolute maximum in the open interval.
Step 6: As mentioned earlier, \(A(x)\) is a continuous function over the closed, bounded interval \([0,2]\). Therefore, it has an absolute maximum (and absolute minimum). At the endpoints \(x=0\) and \(x=2\), \(A(x)=0.\) For \(0<x<2\), \(A(x)>0\).
Therefore, the maximum must occur at a critical point. Taking the derivative of \(A(x)\), we obtain
\[ \begin{align*} A'(x) &=2\sqrt{4−x^2}+2x⋅\dfrac{1}{2\sqrt{4−x^2}}(−2x) \\[4pt] &=2\sqrt{4−x^2}−\dfrac{2x^2}{\sqrt{4−x^2}} \\[4pt] &=\dfrac{8−4x^2}{\sqrt{4−x^2}} . \end{align*}\]
To find critical points, we need to find where \(A'(x)=0.\) We can see that if \(x\) is a solution of
\[\dfrac{8−4x^2}{\sqrt{4−x^2}}=0, \label{ex5eq1} \]
then \(x\) must satisfy
\[8−4x^2=0. \nonumber \]
Therefore, \(x^2=2.\) Thus, \(x=±\sqrt{2}\) are the possible solutions of Equation \ref{ex5eq1}. Since we are considering \(x\) over the interval \([0,2]\), \(x=\sqrt{2}\) is a possibility for a critical point, but \(x=−\sqrt{2}\) is not. Therefore, we check whether \(\sqrt{2}\) is a solution of Equation \ref{ex5eq1}. Since \(x=\sqrt{2}\) is a solution of Equation \ref{ex5eq1}, we conclude that \(\sqrt{2}\) is the only critical point of \(A(x)\) in the interval \([0,2]\).
Therefore, \(A(x)\) must have an absolute maximum at the critical point \(x=\sqrt{2}\). To determine the dimensions of the rectangle, we need to find the length \(L\) and the width \(W\). If \(x=\sqrt{2}\) then
\[y=\sqrt{1−\dfrac{(\sqrt{2})^2}{4}}=\sqrt{1−\dfrac{1}{2}}=\dfrac{1}{\sqrt{2}}.\nonumber \]
Therefore, the dimensions of the rectangle are \(L=2x=2\sqrt{2}\) and \(W=2y=\dfrac{2}{\sqrt{2}}=\sqrt{2}\). The area of this rectangle is \( A=LW=(2\sqrt{2})(\sqrt{2})=4.\)
Exercise \(\PageIndex{5}\)
Modify the area function \(A\) if the rectangle is to be inscribed in the unit circle \(x^2+y^2=1\). What is the domain of consideration?
If \((x,y)\) is the vertex of the square that lies in the first quadrant, then the area of the square is \(A=(2x)(2y)=4xy.\)
\(A(x)=4x\sqrt{1−x^2}.\) The domain of consideration is \([0,1]\).
Solving Optimization Problems when the Interval Is Not Closed or Is Unbounded
In the previous examples, we considered functions on closed, bounded domains. Consequently, by the extreme value theorem, we were guaranteed that the functions had absolute extrema. Let’s now consider functions for which the domain is neither closed nor bounded.
Many functions still have at least one absolute extrema, even if the domain is not closed or the domain is unbounded. For example, the function \(f(x)=x^2+4\) over \((−∞,∞)\) has an absolute minimum of \(4\) at \(x=0\). Therefore, we can still consider functions over unbounded domains or open intervals and determine whether they have any absolute extrema. In the next example, we try to minimize a function over an unbounded domain. We will see that, although the domain of consideration is \((0,∞),\) the function has an absolute minimum.
In the following example, we look at constructing a box of least surface area with a prescribed volume. It is not difficult to show that for a closed-top box, by symmetry, among all boxes with a specified volume, a cube will have the smallest surface area. Consequently, we consider the modified problem of determining which open-topped box with a specified volume has the smallest surface area.
Example \(\PageIndex{6}\): Minimizing Surface Area
A rectangular box with a square base, an open top, and a volume of \(216 \,\text{in}^3\) is to be constructed. What should the dimensions of the box be to minimize the surface area of the box? What is the minimum surface area?
Step 1: Draw a rectangular box and introduce the variable \(x\) to represent the length of each side of the square base; let \(y\) represent the height of the box. Let \(S\) denote the surface area of the open-top box.

Step 2: We need to minimize the surface area. Therefore, we need to minimize \(S\).
Step 3: Since the box has an open top, we need only determine the area of the four vertical sides and the base. The area of each of the four vertical sides is \(x⋅y.\) The area of the base is \(x^2\). Therefore, the surface area of the box is
\(S=4xy+x^2\).
Step 4: Since the volume of this box is \(x^2y\) and the volume is given as \(216\,\text{in}^3\), the constraint equation is
\(x^2y=216\).
Solving the constraint equation for \(y\), we have \(y=\dfrac{216}{x^2}\). Therefore, we can write the surface area as a function of \(x\) only:
\[S(x)=4x\left(\dfrac{216}{x^2}\right)+x^2.\nonumber \]
Therefore, \(S(x)=\dfrac{864}{x}+x^2\).
Step 5: Since we are requiring that \(x^2y=216\), we cannot have \(x=0\). Therefore, we need \(x>0\). On the other hand, \(x\) is allowed to have any positive value. Note that as \(x\) becomes large, the height of the box \(y\) becomes correspondingly small so that \(x^2y=216\). Similarly, as \(x\) becomes small, the height of the box becomes correspondingly large. We conclude that the domain is the open, unbounded interval \((0,∞)\). Note that, unlike the previous examples, we cannot reduce our problem to looking for an absolute maximum or absolute minimum over a closed, bounded interval. However, in the next step, we discover why this function must have an absolute minimum over the interval \((0,∞).\)
Step 6: Note that as \(x→0^+,\, S(x)→∞.\) Also, as \(x→∞, \,S(x)→∞\). Since \(S\) is a continuous function that approaches infinity at the ends, it must have an absolute minimum at some \(x∈(0,∞)\). This minimum must occur at a critical point of \(S\). The derivative is
\[S′(x)=−\dfrac{864}{x^2}+2x.\nonumber \]
Therefore, \(S′(x)=0\) when \(2x=\dfrac{864}{x^2}\). Solving this equation for \(x\), we obtain \(x^3=432\), so \(x=\sqrt[3]{432}=6\sqrt[3]{2}.\) Since this is the only critical point of \(S\), the absolute minimum must occur at \(x=6\sqrt[3]{2}\) (see Figure \(\PageIndex{9}\)).
When \(x=6\sqrt[3]{2}\), \(y=\dfrac{216}{(6\sqrt[3]{2})^2}=3\sqrt[3]{2}\,\text{in.}\) Therefore, the dimensions of the box should be \(x=6\sqrt[3]{2}\,\text{in.}\) and \(y=3\sqrt[3]{2}\,\text{in.}\) With these dimensions, the surface area is
\[S(6\sqrt[3]{2})=\dfrac{864}{6\sqrt[3]{2}}+(6\sqrt[3]{2})^2=108\sqrt[3]{4}\,\text{in}^2\nonumber \]

Exercise \(\PageIndex{6}\)
Consider the same open-top box, which is to have volume \(216\,\text{in}^3\). Suppose the cost of the material for the base is \(20¢/\text{in}^2\) and the cost of the material for the sides is \(30¢/\text{in}^2\) and we are trying to minimize the cost of this box. Write the cost as a function of the side lengths of the base. (Let \(x\) be the side length of the base and \(y\) be the height of the box.)
If the cost of one of the sides is \(30¢/\text{in}^2,\) the cost of that side is \(0.30xy\) dollars.
\(c(x)=\dfrac{259.2}{x}+0.2x^2\) dollars
Key Concepts
- To solve an optimization problem, begin by drawing a picture and introducing variables.
- Find an equation relating the variables.
- Find a function of one variable to describe the quantity that is to be minimized or maximized.
- Look for critical points to locate local extrema.
If you're seeing this message, it means we're having trouble loading external resources on our website.
If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.
To log in and use all the features of Khan Academy, please enable JavaScript in your browser.
AP®︎/College Calculus AB
Unit 5: lesson 11.
- Optimization: sum of squares
Optimization: box volume (Part 1)
- Optimization: box volume (Part 2)
- Optimization: profit
- Optimization: cost of materials
- Optimization: area of triangle & square (Part 1)
- Optimization: area of triangle & square (Part 2)
- Motion problems: finding the maximum acceleration
Want to join the conversation?
- Upvote Button opens signup modal
- Downvote Button opens signup modal
- Flag Button opens signup modal

Video transcript
RadfordMathematics.com
Online mathematics book, search radford mathematics, optimization problems - calculus, maximizing & minimizing.
- maximizing : means finding the largest (or maximum) value the quantity can be
- minimizing : means finding the smallest (or minimum) value the quantity can be
To learn how to solve optimization problems we'll work through several must-know problems that many other optimization problems are similar to.
Must-Know Optimization Problem 1
To construct a rectangular enclosure for his chickens, Paul uses 40m of fencing.
One side of the enclosure is built against the outside wall of his house in order to create the largest area possible (no fencing is needed if there is a wall).
What dimensions should his enclosure be for the area to be maximized?
Must-Know Optimization Problem 1 - Answer Key
- width : \(x = 10 \ m\)
- "height" : \(y= 20 \ m\)
Must-Know Optimization Problem 1 - Detailed Solution
We start by writing the integral in terms of \(t\) .
- Step 1: The quantity we're trying to optimize (maximize in this case) is the rectangular surface area of Paul's enclosure. The variables are the width \(x\) and the "height" \(y\) of the rectangle making the enclosure. The enclosed area is therefore: \[A = xy\]
- Step 2: The constraint is the fact that Paul only has 40m of fencing. Those 40m are linked to the variables \(x\) and \(y\) by the fact that: \[40 = 2x+y\]
- Step 3: rearranging \(40 = 2x + y\) we can make \(y\) the subject: \[y = 40 - 2x\] Now we can replace \(y\) in our expression for the area, \(A=xy\), to express \(A\) in terms of \(x\) only: \[A = x\begin{pmatrix}40 - 2x\end{pmatrix}\] that's: \[A = 40x - 2x^2\] which we can write as a function of \(x\): \[A(x) = 40x - 2x^2\]
- Step 4: to find the maximum area, we turn to calculus and start by differentiating \(A(x)\): \[A'(x)=40 - 4x\] We now solve \(A'(x)=0\), that's: \[\begin{aligned} & 40 - 4x = 0 \\ & 40 = 4x \\ & 10 = x \\ & x = 10 \end{aligned}\] To check that \(x=10\) corresponds to a maximum, we can use the second derivative test : \[A''(x) = -4\] So when \(x = 10\): \[A''(10) = -4 < 0 \] Since the second derivative is negative, we can confirm: \(x=10\) corresponds to the maximum. Using the expression found at the beginning of step 3 we can therefore state that: \[\begin{aligned} y & = 40 - 2\times 10 \\ & = 40 - 20 \\ y & = 20 \end{aligned}\]
- width : \(x = 10\)
- "height" : \(y= 20\)
Must-Know Optimization Problem 1 - Video Solution
Keep in Mind
Every optimization problem we'll come across can be solved used the four step method shown here.
Tests & Exams
In tests or exams optimization problems will often be presented as a series of questions (question a, question b, ... ) each of which serves to complete one of the 4 steps stated here.
Four Step Method for Solving Optimization Problems
Step 1: We start by finding (indentifying) the quantity, \(Q\), that needs to be optimized and write an expression for it in terms of the problem's variables.
Note: making a sketch for this step is often very useful.
Step 2: Find, or identify, the constraint and write an expression for it in terms of the same variables you used in step 1 .
Note: there will always be a constraint. The constraint is what is stopping us from making the quantity \(Q\) inifinitely large, or small. Every optimization problem has a constraint.
Step 3: Use the expression found for the constraint, in step 2 , to eliminate one of the variables in the expression for \(Q\).
Note: at the end of this step, the expression for \(Q\) should only have one variable; it is therefore a function of one variable only.
Step 4: use calculus to optimize , in other words: use calculus to find the maximum or minimum value of the expression (or the function) for \(Q\) obtained at the end of step 3 .
Must-Know Optimization Problem 2
Given that a cylindrical can of soda must contain 330ml, which is 330 \(cm^3\), what dimensions, radius and height, must the can have to minimize its surface area?
Note : knowing how to minimize the surface area of a soda can can drastically reduce manufacturing costs.
Must-Know Optimization Problem 2 - Answer Key
- radius: \(r = \sqrt[3]{\frac{165}{\pi}} \approx 3.74\)cm
- height: \(h = \frac{330}{\pi \begin{pmatrix} \sqrt[3]{\frac{165}{ \pi}}\end{pmatrix}^2} \approx 7.49\)cm
Must-Know Optimization Problem 2 - Detailed Solution
- the sum of two discs, one at the top, the other at the bottom: \(\pi r^2 + \pi r^2 = 2\pi r^2\)
- the curved surface area of the can: \(2\pi r h\)
We're told, in the question, that \(330\) ml corresponds to \(330\) \(cm^3\). So the contraint is: \[V = 330\]
Given that a cylinder, of radius \(r\) and height \(h\) has volume: \[V = h.\pi r^2\] We can now write the constraint for our soda can in terms of the variables (\(r\) and \(h\)): \[h.\pi r^2 = 330\]
- Step 3 (use the constraint to eliminate one of the variables from the quantity we're optimizing): rearranging our expression for the constraint: \[h.\pi r^2 = 330\] we can make \(h\) the subject: \[h = \frac{330}{\pi r^2}\] Now we can replace \(h\) in our expression for the soda can's surface area, \(S = 2\pi r^2 + 2\pi r h\), to express \(S\) in terms of \(r\) only: \[\begin{aligned} S & = 2\pi r^2 + 2\pi r \times \frac{330}{\pi r^2} \\ & = 2 \pi r^2 + \frac{{660}\pi r}{\pi r^2} \\ S & = 2\pi r^2 + \frac{660}{r} \end{aligned}\] which we can write as a function of \(r\): \[S(r) = 2\pi r^2 + \frac{660}{r}\]
- Step 4 (use calculus to optimize): to find the can's minimum surface area, we turn to calculus and start by differentiating \(S(r)\) with respect to \(r\): \[S'(r) = 4\pi r - \frac{660}{r^2}\] We now solve \(S'(r)= 0\), that's: \[\begin{aligned} & 4\pi r - \frac{660}{r^2} = 0 \\ & 4 \pi r = \frac{660}{r^2} \\ & 4 \pi r^3 = 660 \\ & r^3 = \frac{660}{4\pi} = \frac{165}{\pi} \\ & r = \sqrt[3]{\frac{165}{\pi}} \approx 3.74 \ \text{cm} \end{aligned}\]
Important Note: although it's quite clear that this value of \(r\) can only correspond to a minimum surface area (since, in theory, without any constraints on the amount of material we can use: there is no limit to how big we can make the can and therefore no maximum surface area) if needs be: we can confirm that this value of \(r\) does indeed correspond to a minimum surface area using the second derivative test .
To find the second derivative, \(S''(r)\) we differentiate \(S'(r) = 4\pi r - \frac{660}{r^2}\) with respect to \(r\): \[S''(r) = 4 \pi + \frac{1320}{r^3}\] So when \(r = \sqrt[3]{\frac{165}{\pi}}\) that's: \[S''\begin{pmatrix}\sqrt[3]{\frac{165}{ \pi}} \end{pmatrix} = 4\pi + \frac{1320}{\begin{pmatrix} \sqrt[3]{\frac{165}{ \pi}} \end{pmatrix}^3}\] That's: \[S''\begin{pmatrix}\sqrt[3]{\frac{165}{\pi}} \end{pmatrix} = 4\pi + \frac{1320}{\frac{165}{\pi}}\] Remembering that all that matters, when using the second derivative test is the sign or the second derivative , it's quite clear that \(S''\begin{pmatrix}\sqrt[3]{\frac{165}{\pi}} \end{pmatrix}\) is positive (since both terms in the sum are positive). We can therefore state: \[S''\begin{pmatrix}\sqrt[3]{\frac{165}{\pi}} \end{pmatrix} > 0\] and that the second derivative test allows us to state that when \(r = \sqrt[3]{\frac{165}{\pi}} \approx 3.74 \ \text{cm}\) the surface area, \(S(r)\), reaches a minimum value .
The corresponding height, \(h\), of the can can/should then be found using the expression we wrote at the beginning of Step 3 , \(h = \frac{330}{\pi r^2}\), using \(r = \sqrt[3]{\frac{165}{\pi}}\), that's: \[h = \frac{330}{\pi \begin{pmatrix} \sqrt[3]{\frac{165}{ \pi}}\end{pmatrix}^2} \approx 7.49 \ \text{cm}\]
- radius : \(r = 3.74\) cm
- height : \(h= 7.49\) cm
Must-Know Optimization Problem 2 - Video Solution
Must-Know Optimization Problem 3
Find the shortest distance from the point \(\begin{pmatrix}2,0\end{pmatrix}\) to the curve \(y=\sqrt{x}\).
Must-Know Optimization Problem 3 - Answer Key
The shortest distance from the point \(\begin{pmatrix}2,0 \end{pmatrix}\) to the curve \(y=\sqrt{x}\) is: \[D = \frac{\sqrt{7}}{2} \approx 1.32\] That's \(1.32\) units of length.
Must-Know Optimization Problem 3 - Detailed Solution
- Step 1 (find an expression for the quantity we need to optimize, in term of the problem's variables): The quantity we're tyring to opyimize (minimize in this case) is the distance from the point \(\begin{pmatrix}2,0\end{pmatrix}\) to the curve \(y=\sqrt{x}\), which we can call \(D\); another way of thinking of this problem is that we're looking for the point on the curve \(y=\sqrt{x}\) that is closest to the point \(\begin{pmatrix}2,0\end{pmatrix}\). The distance from the point \(\begin{pmatrix}2,0\end{pmatrix}\) to any point \(\begin{pmatrix}x,y\end{pmatrix}\) in the \(xy\)-plane (whether that point be on the curve \(y=\sqrt{x}\) or not) is: \[D = \sqrt{\begin{pmatrix}x-2\end{pmatrix}^2 + \begin{pmatrix}y-0\end{pmatrix}^2}\] That's: \[D = \sqrt{\begin{pmatrix}x-2\end{pmatrix}^2 + y^2}\] Note : The formula we used was the formula for the distance beetween 2 points . It states that the distance, \(D\), between 2 points \(P\begin{pmatrix}x_1,y_1\end{pmatrix}\) and \(Q\begin{pmatrix}x_2,y_2\end{pmatrix}\) is: \[D = \sqrt{\begin{pmatrix}x_2-x_1\end{pmatrix}^2 + \begin{pmatrix}y_2-y_1\end{pmatrix}^2}\]
- Step 2 (write the constraint in terms of the variables): in this case the only thing stopping us from making the distance from the point \(\begin{pmatrix}2,0\end{pmatrix}\) equal to zero is the fact that the other point has to lie along the curve \(y=\sqrt{x}\) ; that is the constraint (the fact that \(y\) must equal to \(\sqrt{x}\)). So, the constraint is "simply": \[y=\sqrt{x}\]
- Step 3 (use the constraint to eliminate one of the variables from the quantity we're optimizing): Our expressing for the constraint is: \[y=\sqrt{x}\] Replacing the \(y\) inside our expression for the distance, \(D=\sqrt{\begin{pmatrix}x-2\end{pmatrix}^2 + y^2}\), we obtain: \[D = \sqrt{\begin{pmatrix}x-2\end{pmatrix}^2 + \begin{pmatrix}\sqrt{x}\end{pmatrix}^2}\] That's: \[D = \sqrt{\begin{pmatrix}x-2\end{pmatrix}^2 + x}\] Expanding \(\begin{pmatrix}x-2\end{pmatrix}^2\): \[D = \sqrt{x^2 - 4x + 4 + x}\] gathering like terms we find: \[D(x) = \sqrt{x^2 - 3x + 4}\] We can now see that the distance is only a function of \(x\), \(D(x)\), and that we have successfully eliminated the variable \(y\).
Must-Know Optimization Problem 3 - Video Solution
Scan this QR-Code with your phone/tablet and view this page on your preferred device.
Subscribe Now and view all of our playlists & tutorials .

We're sorry, this computer has been flagged for suspicious activity.
If you are a member, we ask that you confirm your identity by entering in your email.
You will then be sent a link via email to verify your account.
If you are not a member or are having any other problems, please contact customer support.
Thank you for your cooperation

IMAGES
VIDEO
COMMENTS
The six steps of problem solving involve problem definition, problem analysis, developing possible solutions, selecting a solution, implementing the solution and evaluating the outcome. Problem solving models are used to address issues that...
When multiplying or dividing different bases with the same exponent, combine the bases, and keep the exponent the same. For example, X raised to the third power times Y raised to the third power becomes the product of X times Y raised to th...
The four steps for solving an equation include the combination of like terms, the isolation of terms containing variables, the isolation of the variable and the substitution of the answer into the original equation to check the answer.
Stage I: Develop the function. · Draw a picture of the physical situation. · Write an equation that relates the quantity you want to optimize in
This calculus video explains how to solve optimization problems. It explains how to solve the fence along the river problem
Optimization Problems - Calculus · Solving Optimization Problems in 5 Steps EXPLAINED with Examples · Optimization: profit | Applications of
Solving Optimization Problems (Step-by-Step) ... Step 1: Translate the problem using assign symbols, variables, and sketches, when applicable, by
In optimization problems we are looking for the largest value or the smallest value that a function can take. We saw how to solve one kind of
Problem-Solving Strategy: Solving Optimization Problems · Introduce all variables. · Determine which quantity is to be maximized or minimized, and
Guideline for Solving Optimization Problems. · Identify what is to be maximized or minimized and what the constraints are. · Draw a diagram (if appropriate) and
How would I go about solving this circle optimization problem?
4. Reduce the objective function to one variable. Solve each of the constraint equations for one of the variables and substitute this into the objective
How to solve classic optimization problems. Optimization Problems with calculus consist of maximizing, or minimizing, a quantity under a given constraint.
Step 1: Draw a figure of your problem. Introduce variables and label what each variable represents. Step 2: Determine the value that is being minimized. Write a