We've updated our
Privacy Policy effective December 15. Please read our updated Privacy Policy and tap

Studienführer > Calculus Volume 1

Applied Optimization Problems

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 [link], 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.

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 ([link]). Given [latex]100[/latex] ft of wire fencing, determine the dimensions that would create a garden of maximum area. What is the maximum area?

We want to determine the measurements [latex]x[/latex] and [latex]y[/latex] that will create a garden with a maximum area using [latex]100[/latex] ft of fencing.
A drawing of a garden has x and y written on the vertical and horizontal sides, respectively. There is a rock wall running along the entire bottom horizontal length of the drawing.

Let [latex]x[/latex] denote the length of the side of the garden perpendicular to the rock wall and [latex]y[/latex] denote the length of the side parallel to the rock wall. Then the area of the garden is

[latex]A=x·y.[/latex]

We want to find the maximum possible area subject to the constraint that the total fencing is [latex]100\phantom{\rule{0.2em}{0ex}}\text{ft}.[/latex] From [link], the total amount of fencing used will be [latex]2x+y.[/latex] Therefore, the constraint equation is

[latex]2x+y=100.[/latex]

Solving this equation for [latex]y,[/latex] we have [latex]y=100-2x.[/latex] Thus, we can write the area as

[latex]A\left(x\right)=x·\left(100-2x\right)=100x-2{x}^{2}.[/latex]

Before trying to maximize the area function [latex]A\left(x\right)=100x-2{x}^{2},[/latex] 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 [latex]x>0[/latex] and [latex]y>0.[/latex] Since [latex]y=100-2x,[/latex] if [latex]y>0,[/latex] then [latex]x<50.[/latex] Therefore, we are trying to determine the maximum value of [latex]A\left(x\right)[/latex] for [latex]x[/latex] over the open interval [latex]\left(0,50\right).[/latex] 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 [latex]A\left(x\right)=100x-2{x}^{2}[/latex] over the closed interval [latex]\left[0,50\right].[/latex] If the maximum value occurs at an interior point, then we have found the value [latex]x[/latex] in the open interval [latex]\left(0,50\right)[/latex] that maximizes the area of the garden. Therefore, we consider the following problem:

Maximize [latex]A\left(x\right)=100x-2{x}^{2}[/latex] over the interval [latex]\left[0,50\right].[/latex]

As mentioned earlier, since [latex]A[/latex] 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, [latex]A\left(x\right)=0.[/latex] Since the area is positive for all [latex]x[/latex] in the open interval [latex]\left(0,50\right),[/latex] the maximum must occur at a critical point. Differentiating the function [latex]A\left(x\right),[/latex] we obtain

[latex]{A}^{\prime }\left(x\right)=100-4x.[/latex]

Therefore, the only critical point is [latex]x=25[/latex] ([link]). We conclude that the maximum area must occur when [latex]x=25.[/latex] Then we have [latex]y=100-2x=100-2\left(25\right)=50.[/latex] To maximize the area of the garden, let [latex]x=25[/latex] ft and [latex]y=50\phantom{\rule{0.2em}{0ex}}\text{ft}.[/latex] The area of this garden is [latex]1250{\phantom{\rule{0.2em}{0ex}}\text{ft}}^{2}.[/latex]

To maximize the area of the garden, we need to find the maximum value of the function [latex]A\left(x\right)=100x-2{x}^{2}.[/latex]
The function A(x) = 100x – 2x is graphed. At its maximum there is an intersection of two dashed lines and text that reads “Maximum area is 1250 square feet when x = 25 feet.”

Determine the maximum area if we want to make the same rectangular garden as in [link], but we have [latex]200[/latex] ft of fencing.

The maximum area is [latex]5000{\phantom{\rule{0.2em}{0ex}}\text{ft}}^{2}.[/latex]

Hint

We need to maximize the function [latex]A\left(x\right)=200x-2{x}^{2}[/latex] over the interval [latex]\left[0,100\right].[/latex]

Now let’s look at a general strategy for solving optimization problems similar to [link].

Problem-Solving Strategy: Solving Optimization Problems
  1. Introduce all variables. If applicable, draw a figure and label all variables.
  2. 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).
  3. Write a formula for the quantity to be maximized or minimized in terms of the variables. This formula may involve more than one variable.
  4. Write any equations relating the independent variables in the formula from step [latex]3.[/latex] Use these equations to write the quantity to be maximized or minimized as a function of one variable.
  5. Identify the domain of consideration for the function in step [latex]4[/latex] based on the physical problem to be solved.
  6. Locate the maximum or minimum value of the function from step [latex]4.[/latex] 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.

Maximizing the Volume of a Box

An open-top box is to be made from a [latex]24[/latex] in. by [latex]36[/latex] 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 [latex]x[/latex] be the side length of the square to be removed from each corner ([link]). Then, the remaining four flaps can be folded up to form an open-top box. Let [latex]V[/latex] be the volume of the resulting box.

A square with side length [latex]x[/latex] inches is removed from each corner of the piece of cardboard. The remaining flaps are folded to form an open-top box.
There are two figures for this figure. The first one is a rectangle with sides 24 in and 36 in, with each corner having a square of side length x taken out of it. In the second picture, there is a box with side lengths x in, 24 – 2x in, and 36 – 2x in.

Step 2: We are trying to maximize the volume of a box. Therefore, the problem is to maximize [latex]V.[/latex]

Step 3: As mentioned in step [latex]2,[/latex] are trying to maximize the volume of a box. The volume of a box is [latex]V=L·W·H,[/latex] where [latex]L,W,\phantom{\rule{0.2em}{0ex}}\text{and}\phantom{\rule{0.2em}{0ex}}H[/latex] are the length, width, and height, respectively.

Step 4: From [link], we see that the height of the box is [latex]x[/latex] inches, the length is [latex]36-2x[/latex] inches, and the width is [latex]24-2x[/latex] inches. Therefore, the volume of the box is

[latex]V\left(x\right)=\left(36-2x\right)\left(24-2x\right)x=4{x}^{3}-120{x}^{2}+864x.[/latex]

Step 5: To determine the domain of consideration, let’s examine [link]. Certainly, we need [latex]x>0.[/latex] Furthermore, the side length of the square cannot be greater than or equal to half the length of the shorter side, [latex]24[/latex] 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 [latex]x[/latex] over the open interval [latex]\left(0,12\right).[/latex] Since [latex]V[/latex] is a continuous function over the closed interval [latex]\left[0,12\right],[/latex] we know [latex]V[/latex] will have an absolute maximum over the closed interval. Therefore, we consider [latex]V[/latex] over the closed interval [latex]\left[0,12\right][/latex] and check whether the absolute maximum occurs at an interior point.

Step 6: Since [latex]V\left(x\right)[/latex] is a continuous function over the closed, bounded interval [latex]\left[0,12\right],[/latex] [latex]V[/latex] must have an absolute maximum (and an absolute minimum). Since [latex]V\left(x\right)=0[/latex] at the endpoints and [latex]V\left(x\right)>0[/latex] for [latex]0<x<12,[/latex] the maximum must occur at a critical point. The derivative is

[latex]{V}^{\prime }\left(x\right)=12{x}^{2}-240x+864.[/latex]

To find the critical points, we need to solve the equation

[latex]12{x}^{2}-240x+864=0.[/latex]

Dividing both sides of this equation by [latex]12,[/latex] the problem simplifies to solving the equation

[latex]{x}^{2}-20x+72=0.[/latex]

Using the quadratic formula, we find that the critical points are

[latex]x=\frac{20\text{±}\sqrt{{\left(-20\right)}^{2}-4\left(1\right)\left(72\right)}}{2}=\frac{20\text{±}\sqrt{112}}{2}=\frac{20\text{±}4\sqrt{7}}{2}=10\text{±}2\sqrt{7}.[/latex]

Since [latex]10+2\sqrt{7}[/latex] is not in the domain of consideration, the only critical point we need to consider is [latex]10-2\sqrt{7}.[/latex] Therefore, the volume is maximized if we let [latex]x=10-2\sqrt{7}\phantom{\rule{0.2em}{0ex}}\text{in}.[/latex] The maximum volume is [latex]V\left(10-2\sqrt{7}\right)=640+448\sqrt{7}\approx 1825\phantom{\rule{0.2em}{0ex}}\text{in}{.}^{3}[/latex] as shown in the following graph.

Maximizing the volume of the box leads to finding the maximum value of a cubic polynomial.
The function V(x) = 4x3 – 120x2 + 864x is graphed. At its maximum there is an intersection of two dashed lines and text that reads “Maximum volume is approximately 1825 cubic inches when x ≈ 4.7 inches.”

Watch a video about optimizing the volume of a box.

Suppose the dimensions of the cardboard in [link] are 20 in. by 30 in. Let [latex]x[/latex] be the side length of each square and write the volume of the open-top box as a function of [latex]x.[/latex] Determine the domain of consideration for [latex]x.[/latex]

[latex]V\left(x\right)=x\left(20-2x\right)\left(30-2x\right).[/latex] The domain is [latex]\left[0,10\right].[/latex]

Hint

The volume of the box is [latex]L·W·H.[/latex]

Minimizing Travel Time

An island is [latex]2\phantom{\rule{0.2em}{0ex}}\text{mi}[/latex] due north of its closest point along a straight shoreline. A visitor is staying at a cabin on the shore that is [latex]6\phantom{\rule{0.2em}{0ex}}\text{mi}[/latex] west of that point. The visitor is planning to go from the cabin to the island. Suppose the visitor runs at a rate of [latex]8\phantom{\rule{0.2em}{0ex}}\text{mph}[/latex] and swims at a rate of [latex]3\phantom{\rule{0.2em}{0ex}}\text{mph}.[/latex] How far should the visitor run before swimming to minimize the time it takes to reach the island?

Step 1: Let [latex]x[/latex] be the distance running and let [latex]y[/latex] be the distance swimming ([link]). Let [latex]T[/latex] be the time it takes to get from the cabin to the island.

How can we choose [latex]x[/latex] and [latex]y[/latex] to minimize the travel time from the cabin to the island?
The cabin is x miles from the shore. From that point on the shore, the island is y miles away. If you were to continue the line from the cabin to the shore (the x miles one) and if you were to draw a line from the island parallel to the shore, then the lines would extend 2 miles from the island and 6 miles from the cabin before intersecting.

Step 2: The problem is to minimize [latex]T.[/latex]

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 [latex]=[/latex] Rate [latex]\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}[/latex] Time [latex]\left(D=R\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}T\right),[/latex] the time spent running is

[latex]{T}_{\text{running}}=\frac{{D}_{\text{running}}}{{R}_{\text{running}}}=\frac{x}{8},[/latex]

and the time spent swimming is

[latex]{T}_{\text{swimming}}=\frac{{D}_{\text{swimming}}}{{R}_{\text{swimming}}}=\frac{y}{3}.[/latex]

Therefore, the total time spent traveling is

[latex]T=\frac{x}{8}+\frac{y}{3}.[/latex]

Step 4: From [link], the line segment of [latex]y[/latex] miles forms the hypotenuse of a right triangle with legs of length [latex]2\phantom{\rule{0.2em}{0ex}}\text{mi}[/latex] and [latex]6-x\phantom{\rule{0.2em}{0ex}}\text{mi}.[/latex] Therefore, by the Pythagorean theorem, [latex]{2}^{2}+{\left(6-x\right)}^{2}={y}^{2},[/latex] and we obtain [latex]y=\sqrt{{\left(6-x\right)}^{2}+4}.[/latex] Thus, the total time spent traveling is given by the function

[latex]T\left(x\right)=\frac{x}{8}+\frac{\sqrt{{\left(6-x\right)}^{2}+4}}{3}.[/latex]

Step 5: From [link], we see that [latex]0\le x\le 6.[/latex] Therefore, [latex]\left[0,6\right][/latex] is the domain of consideration.

Step 6: Since [latex]T\left(x\right)[/latex] 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 [latex]T[/latex] over the interval [latex]\left[0,6\right].[/latex] The derivative is

[latex]{T}^{\prime }\left(x\right)=\frac{1}{8}-\frac{1}{2}\phantom{\rule{0.2em}{0ex}}\frac{{\left[{\left(6-x\right)}^{2}+4\right]}^{-1\text{/}2}}{3}·2\left(6-x\right)=\frac{1}{8}-\frac{\left(6-x\right)}{3\sqrt{{\left(6-x\right)}^{2}+4}}.[/latex]

If [latex]{T}^{\prime }\left(x\right)=0,[/latex] then

[latex]\frac{1}{8}=\frac{6-x}{3\sqrt{{\left(6-x\right)}^{2}+4}}.[/latex]

Therefore,

[latex]3\sqrt{{\left(6-x\right)}^{2}+4}=8\left(6-x\right).[/latex]

Squaring both sides of this equation, we see that if [latex]x[/latex] satisfies this equation, then [latex]x[/latex] must satisfy

[latex]9\left[{\left(6-x\right)}^{2}+4\right]=64{\left(6-x\right)}^{2},[/latex]

which implies

[latex]55{\left(6-x\right)}^{2}=36.[/latex]

We conclude that if [latex]x[/latex] is a critical point, then [latex]x[/latex] satisfies

[latex]{\left(x-6\right)}^{2}=\frac{36}{55}.[/latex]

Therefore, the possibilities for critical points are

[latex]x=6\text{±}\frac{6}{\sqrt{55}}.[/latex]

Since [latex]x=6+6\text{/}\sqrt{55}[/latex] is not in the domain, it is not a possibility for a critical point. On the other hand, [latex]x=6-6\text{/}\sqrt{55}[/latex] is in the domain. Since we squared both sides of [link] to arrive at the possible critical points, it remains to verify that [latex]x=6-6\text{/}\sqrt{55}[/latex] satisfies [link]. Since [latex]x=6-6\text{/}\sqrt{55}[/latex] does satisfy that equation, we conclude that [latex]x=6-6\text{/}\sqrt{55}[/latex] is a critical point, and it is the only one. To justify that the time is minimized for this value of [latex]x,[/latex] we just need to check the values of [latex]T\left(x\right)[/latex] at the endpoints [latex]x=0[/latex] and [latex]x=6,[/latex] and compare them with the value of [latex]T\left(x\right)[/latex] at the critical point [latex]x=6-6\text{/}\sqrt{55}.[/latex] We find that [latex]T\left(0\right)\approx 2.108\phantom{\rule{0.2em}{0ex}}\text{h}[/latex] and [latex]T\left(6\right)\approx 1.417\phantom{\rule{0.2em}{0ex}}\text{h,}[/latex] whereas [latex]T\left(6-6\text{/}\sqrt{55}\right)\approx 1.368\phantom{\rule{0.2em}{0ex}}\text{h}.[/latex] Therefore, we conclude that [latex]T[/latex] has a local minimum at [latex]x\approx 5.19[/latex] mi.

Suppose the island is [latex]1[/latex] mi from shore, and the distance from the cabin to the point on the shore closest to the island is [latex]15\phantom{\rule{0.2em}{0ex}}\text{mi}.[/latex] Suppose a visitor swims at the rate of [latex]2.5\phantom{\rule{0.2em}{0ex}}\text{mph}[/latex] and runs at a rate of [latex]6\phantom{\rule{0.2em}{0ex}}\text{mph}.[/latex] Let [latex]x[/latex] 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.

[latex]T\left(x\right)=\frac{x}{6}+\frac{\sqrt{{\left(15-x\right)}^{2}+1}}{2.5}[/latex]

Hint

The time [latex]T={T}_{\text{running}}+{T}_{\text{swimming}}.[/latex]

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.

Maximizing Revenue

Owners of a car rental company have determined that if they charge customers [latex]p[/latex] dollars per day to rent a car, where [latex]50\le p\le 200,[/latex] the number of cars [latex]n[/latex] they rent per day can be modeled by the linear function [latex]n\left(p\right)=1000-5p.[/latex] If they charge [latex]\text{💲}50[/latex] per day or less, they will rent all their cars. If they charge [latex]\text{💲}200[/latex] per day or more, they will not rent any cars. Assuming the owners plan to charge customers between 💲50 per day and [latex]\text{💲}200[/latex] per day to rent a car, how much should they charge to maximize their revenue?

Step 1: Let [latex]p[/latex] be the price charged per car per day and let [latex]n[/latex] be the number of cars rented per day. Let [latex]R[/latex] be the revenue per day.

Step 2: The problem is to maximize [latex]R.[/latex]

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, [latex]R=n\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}p.[/latex]

Step 4: Since the number of cars rented per day is modeled by the linear function [latex]n\left(p\right)=1000-5p,[/latex] the revenue [latex]R[/latex] can be represented by the function

[latex]R\left(p\right)=n\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}p=\left(1000-5p\right)p=-5{p}^{2}+1000p.[/latex]

Step 5: Since the owners plan to charge between [latex]\text{💲}50[/latex] per car per day and [latex]\text{💲}200[/latex] per car per day, the problem is to find the maximum revenue [latex]R\left(p\right)[/latex] for [latex]p[/latex] in the closed interval [latex]\left[50,200\right].[/latex]

Step 6: Since [latex]R[/latex] is a continuous function over the closed, bounded interval [latex]\left[50,200\right],[/latex] it has an absolute maximum (and an absolute minimum) in that interval. To find the maximum value, look for critical points. The derivative is [latex]{R}^{\prime }\left(p\right)=-10p+1000.[/latex] Therefore, the critical point is [latex]p=100[/latex] When [latex]p=100,[/latex] [latex]R\left(100\right)=\text{💲}50,000.[/latex] When [latex]p=50,[/latex] [latex]R\left(p\right)=\text{💲}37,500.[/latex] When [latex]p=200,[/latex] [latex]R\left(p\right)=\text{💲}0.[/latex] Therefore, the absolute maximum occurs at [latex]p=\text{💲}100.[/latex] The car rental company should charge [latex]\text{💲}100[/latex] per day per car to maximize revenue as shown in the following figure.

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.
The function R(p) is graphed. At its maximum there is an intersection of two dashed lines and text that reads “Maximum revenue is 💲50,000 per day when the price charged per car is 💲100 per day.”

A car rental company charges its customers [latex]p[/latex] dollars per day, where [latex]60\le p\le 150.[/latex] It has found that the number of cars rented per day can be modeled by the linear function [latex]n\left(p\right)=750-5p.[/latex] How much should the company charge each customer to maximize revenue?

The company should charge [latex]\text{💲}75[/latex] per car per day.

Hint

[latex]R\left(p\right)=n\phantom{\rule{0.2em}{0ex}}×\phantom{\rule{0.2em}{0ex}}p,[/latex] where [latex]n[/latex] is the number of cars rented and [latex]p[/latex] is the price charged per car.

Maximizing the Area of an Inscribed Rectangle

A rectangle is to be inscribed in the ellipse

[latex]\frac{{x}^{2}}{4}+{y}^{2}=1.[/latex]

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 [latex]L[/latex] be the length of the rectangle and [latex]W[/latex] be its width. Let [latex]A[/latex] be the area of the rectangle.

We want to maximize the area of a rectangle inscribed in an ellipse.
The ellipse x2/4 + y2 = 1 is drawn with its x intercepts being ±2 and its y intercepts being ±1. There is a rectangle inscribed in the ellipse with length L (in the x-direction) and width W.

Step 2: The problem is to maximize [latex]A.[/latex]

Step 3: The area of the rectangle is [latex]A=LW.[/latex]

Step 4: Let [latex]\left(x,y\right)[/latex] be the corner of the rectangle that lies in the first quadrant, as shown in [link]. We can write length [latex]L=2x[/latex] and width [latex]W=2y.[/latex] Since [latex]\frac{{x}^{2}}{4+{y}^{2}=1}[/latex] and [latex]y>0,[/latex] we have [latex]y=\sqrt{\frac{1-{x}^{2}}{4}}.[/latex] Therefore, the area is

[latex]A=LW=\left(2x\right)\left(2y\right)=4x\sqrt{\frac{1-{x}^{2}}{4}}=2x\sqrt{4-{x}^{2}}.[/latex]

Step 5: From [link], we see that to inscribe a rectangle in the ellipse, the [latex]x[/latex]-coordinate of the corner in the first quadrant must satisfy [latex]0<x<2.[/latex] Therefore, the problem reduces to looking for the maximum value of [latex]A\left(x\right)[/latex] over the open interval [latex]\left(0,2\right).[/latex] Since [latex]A\left(x\right)[/latex] will have an absolute maximum (and absolute minimum) over the closed interval [latex]\left[0,2\right],[/latex] we consider [latex]A\left(x\right)=2x\sqrt{4-{x}^{2}}[/latex] over the interval [latex]\left[0,2\right].[/latex] 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, [latex]A\left(x\right)[/latex] is a continuous function over the closed, bounded interval [latex]\left[0,2\right].[/latex] Therefore, it has an absolute maximum (and absolute minimum). At the endpoints [latex]x=0[/latex] and [latex]x=2,[/latex] [latex]A\left(x\right)=0.[/latex] For [latex]0<x<2,[/latex] [latex]A\left(x\right)>0.[/latex] Therefore, the maximum must occur at a critical point. Taking the derivative of [latex]A\left(x\right),[/latex] we obtain

[latex]\begin{array}{cc}\hfill A\prime \left(x\right)& =2\sqrt{4-{x}^{2}}+2x·\frac{1}{2\sqrt{4-{x}^{2}}}\left(-2x\right)\hfill \\ & =2\sqrt{4-{x}^{2}}-\frac{2{x}^{2}}{\sqrt{4-{x}^{2}}}\hfill \\ & =\frac{8-4{x}^{2}}{\sqrt{4-{x}^{2}}}.\hfill \end{array}[/latex]

To find critical points, we need to find where [latex]A\prime \left(x\right)=0.[/latex] We can see that if [latex]x[/latex] is a solution of

[latex]\frac{8-4{x}^{2}}{\sqrt{4-{x}^{2}}}=0,[/latex]

then [latex]x[/latex] must satisfy

[latex]8-4{x}^{2}=0.[/latex]

Therefore, [latex]{x}^{2}=2.[/latex] Thus, [latex]x=\text{±}\sqrt{2}[/latex] are the possible solutions of [link]. Since we are considering [latex]x[/latex] over the interval [latex]\left[0,2\right],[/latex] [latex]x=\sqrt{2}[/latex] is a possibility for a critical point, but [latex]x=\text{−}\sqrt{2}[/latex] is not. Therefore, we check whether [latex]\sqrt{2}[/latex] is a solution of [link]. Since [latex]x=\sqrt{2}[/latex] is a solution of [link], we conclude that [latex]\sqrt{2}[/latex] is the only critical point of [latex]A\left(x\right)[/latex] in the interval [latex]\left[0,2\right].[/latex] Therefore, [latex]A\left(x\right)[/latex] must have an absolute maximum at the critical point [latex]x=\sqrt{2}.[/latex] To determine the dimensions of the rectangle, we need to find the length [latex]L[/latex] and the width [latex]W.[/latex] If [latex]x=\sqrt{2}[/latex] then

[latex]y=\sqrt{1-\frac{{\left(\sqrt{2}\right)}^{2}}{4}}=\sqrt{1-\frac{1}{2}}=\frac{1}{\sqrt{2}}.[/latex]

Therefore, the dimensions of the rectangle are [latex]L=2x=2\sqrt{2}[/latex] and [latex]W=2y=\frac{2}{\sqrt{2}}=\sqrt{2}.[/latex] The area of this rectangle is [latex]A=LW=\left(2\sqrt{2}\right)\left(\sqrt{2}\right)=4.[/latex]

Modify the area function [latex]A[/latex] if the rectangle is to be inscribed in the unit circle [latex]{x}^{2}+{y}^{2}=1.[/latex] What is the domain of consideration?

[latex]A\left(x\right)=4x\sqrt{1-{x}^{2}}.[/latex] The domain of consideration is [latex]\left[0,1\right].[/latex]

Hint

If [latex]\left(x,y\right)[/latex] is the vertex of the square that lies in the first quadrant, then the area of the square is [latex]A=\left(2x\right)\left(2y\right)=4xy.[/latex]

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 [latex]f\left(x\right)={x}^{2}+4[/latex] over [latex]\left(\text{−}\infty ,\infty \right)[/latex] has an absolute minimum of [latex]4[/latex] at [latex]x=0.[/latex] 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 [latex]\left(0,\infty \right),[/latex] 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.

Minimizing Surface Area

A rectangular box with a square base, an open top, and a volume of [latex]216[/latex] 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 [latex]x[/latex] to represent the length of each side of the square base; let [latex]y[/latex] represent the height of the box. Let [latex]S[/latex] denote the surface area of the open-top box.

We want to minimize the surface area of a square-based box with a given volume.
A box with square base is shown. The base has side length x, and the height is y.

Step 2: We need to minimize the surface area. Therefore, we need to minimize [latex]S.[/latex]

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 [latex]x·y.[/latex] The area of the base is [latex]{x}^{2}.[/latex] Therefore, the surface area of the box is

[latex]S=4xy+{x}^{2}.[/latex]

Step 4: Since the volume of this box is [latex]{x}^{2}y[/latex] and the volume is given as [latex]216\phantom{\rule{0.2em}{0ex}}\text{in}{.}^{3},[/latex] the constraint equation is

[latex]{x}^{2}y=216.[/latex]

Solving the constraint equation for [latex]y,[/latex] we have [latex]y=\frac{216}{{x}^{2}}.[/latex] Therefore, we can write the surface area as a function of [latex]x[/latex] only:

[latex]S\left(x\right)=4x\left(\frac{216}{{x}^{2}}\right)+{x}^{2}.[/latex]

Therefore, [latex]S\left(x\right)=\frac{864}{x}+{x}^{2}.[/latex]

Step 5: Since we are requiring that [latex]{x}^{2}y=216,[/latex] we cannot have [latex]x=0.[/latex] Therefore, we need [latex]x>0.[/latex] On the other hand, [latex]x[/latex] is allowed to have any positive value. Note that as [latex]x[/latex] becomes large, the height of the box [latex]y[/latex] becomes correspondingly small so that [latex]{x}^{2}y=216.[/latex] Similarly, as [latex]x[/latex] becomes small, the height of the box becomes correspondingly large. We conclude that the domain is the open, unbounded interval [latex]\left(0,\infty \right).[/latex] 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 [latex]\left(0,\infty \right).[/latex]

Step 6: Note that as [latex]x\to {0}^{+},[/latex] [latex]S\left(x\right)\to \infty .[/latex] Also, as [latex]x\to \infty ,[/latex] [latex]S\left(x\right)\to \infty .[/latex] Since [latex]S[/latex] is a continuous function that approaches infinity at the ends, it must have an absolute minimum at some [latex]x\in \left(0,\infty \right).[/latex] This minimum must occur at a critical point of [latex]S.[/latex] The derivative is

[latex]{S}^{\prime }\left(x\right)=-\frac{864}{{x}^{2}}+2x.[/latex]

Therefore, [latex]{S}^{\prime }\left(x\right)=0[/latex] when [latex]2x=\frac{864}{{x}^{2}}.[/latex] Solving this equation for [latex]x,[/latex] we obtain [latex]{x}^{3}=432,[/latex] so [latex]x=\sqrt[3]{432}=6\sqrt[3]{2}.[/latex] Since this is the only critical point of [latex]S,[/latex] the absolute minimum must occur at [latex]x=6\sqrt[3]{2}[/latex] (see [link]). When [latex]x=6\sqrt[3]{2},[/latex] [latex]y=\frac{216}{{\left(6\sqrt[3]{2}\right)}^{2}}=3\sqrt[3]{2}\phantom{\rule{0.2em}{0ex}}\text{in}.[/latex] Therefore, the dimensions of the box should be [latex]x=6\sqrt[3]{2}\phantom{\rule{0.2em}{0ex}}\text{in}.[/latex] and [latex]y=3\sqrt[3]{2}\phantom{\rule{0.2em}{0ex}}\text{in}.[/latex] With these dimensions, the surface area is

[latex]S\left(6\sqrt[3]{2}\right)=\frac{864}{6\sqrt[3]{2}}+{\left(6\sqrt[3]{2}\right)}^{2}=108\sqrt[3]{4}\phantom{\rule{0.2em}{0ex}}\text{in}{.}^{2}[/latex]
We can use a graph to determine the dimensions of a box of given the volume and the minimum surface area.
The function S(x) = 864/x + x2 is graphed. At its minimum there is a dashed line and text that reads “Minimum surface area is 108 times the cube root of 4 square inches when x = 6 times the cube root of 2 inches.”

Consider the same open-top box, which is to have volume [latex]216\phantom{\rule{0.2em}{0ex}}\text{in}{.}^{3}.[/latex] Suppose the cost of the material for the base is [latex]20¢\text{/}\text{in}{.}^{2}[/latex] and the cost of the material for the sides is [latex]30¢\text{/}\text{in}{.}^{2}[/latex] 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 [latex]x[/latex] be the side length of the base and [latex]y[/latex] be the height of the box.)

[latex]c\left(x\right)=\frac{259.2}{x}+0.2{x}^{2}[/latex] dollars

Hint

If the cost of one of the sides is [latex]30¢\text{/}\text{in}{.}^{2},[/latex] the cost of that side is [latex]0.30xy.[/latex]

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.

For the following exercises, answer by proof, counterexample, or explanation.

When you find the maximum for an optimization problem, why do you need to check the sign of the derivative around the critical points?

The critical points can be the minima, maxima, or neither.

Why do you need to check the endpoints for optimization problems?

True or False. For every continuous nonlinear function, you can find the value [latex]x[/latex] that maximizes the function.

False; [latex]y=\text{−}{x}^{2}[/latex] has a minimum only

True or False. For every continuous nonconstant function on a closed, finite domain, there exists at least one [latex]x[/latex] that minimizes or maximizes the function.

For the following exercises, set up and evaluate each optimization problem.

To carry a suitcase on an airplane, the length [latex]+\text{width}+[/latex] height of the box must be less than or equal to [latex]62\phantom{\rule{0.2em}{0ex}}\text{in}.[/latex] Assuming the height is fixed, show that the maximum volume is [latex]V=h{\left(31-\left(\frac{1}{2}\right)\phantom{\rule{0.1em}{0ex}}h\right)}^{2}.[/latex] What height allows you to have the largest volume?

[latex]h=\frac{62}{3}[/latex] in.

You are constructing a cardboard box with the dimensions [latex]\text{2 m by 4 m}.[/latex] You then cut equal-size squares from each corner so you may fold the edges. What are the dimensions of the box with the largest volume?

A rectangle is drawn with height 2 and width 4. Each corner has a square with side length x marked on it.

Find the positive integer that minimizes the sum of the number and its reciprocal.

[latex]1[/latex]

Find two positive integers such that their sum is [latex]10,[/latex] and minimize and maximize the sum of their squares.

For the following exercises, consider the construction of a pen to enclose an area.

You have [latex]400\phantom{\rule{0.2em}{0ex}}\text{ft}[/latex] of fencing to construct a rectangular pen for cattle. What are the dimensions of the pen that maximize the area?

[latex]100\phantom{\rule{0.2em}{0ex}}\text{ft by}\phantom{\rule{0.2em}{0ex}}100\phantom{\rule{0.2em}{0ex}}\text{ft}[/latex]

You have [latex]800\phantom{\rule{0.2em}{0ex}}\text{ft}[/latex] 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?

You need to construct a fence around an area of [latex]1600\phantom{\rule{0.2em}{0ex}}\text{ft}.[/latex] What are the dimensions of the rectangular pen to minimize the amount of material needed?

[latex]40\phantom{\rule{0.2em}{0ex}}\text{ft by}\phantom{\rule{0.2em}{0ex}}40\phantom{\rule{0.2em}{0ex}}\text{ft}[/latex]

Two poles are connected by a wire that is also connected to the ground. The first pole is [latex]20\phantom{\rule{0.2em}{0ex}}\text{ft}[/latex] tall and the second pole is [latex]10\phantom{\rule{0.2em}{0ex}}\text{ft}[/latex] tall. There is a distance of [latex]30\phantom{\rule{0.2em}{0ex}}\text{ft}[/latex] between the two poles. Where should the wire be anchored to the ground to minimize the amount of wire needed?

Two poles are shown, one that is 10 tall and the other is 20 tall. A right triangle is made with the shorter pole with other side length x. The distance between the two poles is 30.

[T] You are moving into a new apartment and notice there is a corner where the hallway narrows from [latex]\text{8 ft to 6 ft}.[/latex] What is the length of the longest item that can be carried horizontally around the corner?

An upside L-shaped figure is drawn with the _ part being 6 wide and the | part being 8 wide. There is a line drawn from the _ part to the | part that touches the near corner of the shape to form a hypotenuse for a right triangle the other sides being the the rest of the _ and | parts. This line is marked L.

[latex]19.73\phantom{\rule{0.2em}{0ex}}\text{ft}.[/latex]

A patient’s pulse measures [latex]\text{70 bpm, 80 bpm, then 120 bpm}.[/latex] To determine an accurate measurement of pulse, the doctor wants to know what value minimizes the expression [latex]{\left(x-70\right)}^{2}+{\left(x-80\right)}^{2}+{\left(x-120\right)}^{2}?[/latex] What value minimizes it?

In the previous problem, assume the patient was nervous during the third measurement, so we only weight that value half as much as the others. What is the value that minimizes [latex]{\left(x-70\right)}^{2}+{\left(x-80\right)}^{2}+\frac{1}{2}{\left(x-120\right)}^{2}?[/latex]

[latex]84\phantom{\rule{0.2em}{0ex}}\text{bpm}[/latex]

You can run at a speed of [latex]6[/latex] mph and swim at a speed of [latex]3[/latex] mph and are located on the shore, [latex]4[/latex] miles east of an island that is [latex]1[/latex] mile north of the shoreline. How far should you run west to minimize the time needed to reach the island?

A rectangle is drawn that has height 1 and length 4. In the lower right corner, it is marked “You” and in the upper left corner it is marked “Island.”

For the following problems, consider a lifeguard at a circular pool with diameter [latex]40\phantom{\rule{0.2em}{0ex}}\text{m}.[/latex] He must reach someone who is drowning on the exact opposite side of the pool, at position [latex]C.[/latex] The lifeguard swims with a speed [latex]v[/latex] and runs around the pool at speed [latex]w=3v.[/latex]

A circle is drawn with points A and C on a diameter. There is a point B drawn on the circle such that angle BAC form an acute angle θ.

Find a function that measures the total amount of time it takes to reach the drowning person as a function of the swim angle, [latex]\theta .[/latex]

[latex]T\left(\theta \right)=\frac{40\theta }{3v}+\frac{40\phantom{\rule{0.1em}{0ex}}\text{cos}\phantom{\rule{0.1em}{0ex}}\theta }{v}[/latex]

Find at what angle [latex]\theta [/latex] the lifeguard should swim to reach the drowning person in the least amount of time.

A truck uses gas as [latex]g\left(v\right)=av+\frac{b}{v},[/latex] where [latex]v[/latex] represents the speed of the truck and [latex]g[/latex] represents the gallons of fuel per mile. At what speed is fuel consumption minimized?

[latex]v=\sqrt{\frac{b}{a}}[/latex]

For the following exercises, consider a limousine that gets [latex]m\left(v\right)=\frac{\left(120-2v\right)}{5}\phantom{\rule{0.2em}{0ex}}\text{mi/gal}[/latex] at speed [latex]v,[/latex] the chauffeur costs [latex]\text{💲15/h},[/latex] and gas is [latex]\text{💲}3.5\text{/}\text{gal}.[/latex]

Find the cost per mile at speed [latex]v.[/latex]

Find the cheapest driving speed.

approximately [latex]34.02\phantom{\rule{0.2em}{0ex}}\text{mph}[/latex]

For the following exercises, consider a pizzeria that sell pizzas for a revenue of [latex]R\left(x\right)=ax[/latex] and costs [latex]C\left(x\right)=b+cx+d{x}^{2},[/latex] where [latex]x[/latex] represents the number of pizzas.

Find the profit function for the number of pizzas. How many pizzas gives the largest profit per pizza?

Assume that [latex]R\left(x\right)=10x[/latex] and [latex]C\left(x\right)=2x+{x}^{2}.[/latex] How many pizzas sold maximizes the profit?

[latex]4[/latex]

Assume that [latex]R\left(x\right)=15x,[/latex] and [latex]C\left(x\right)=60+3x+\frac{1}{2}{x}^{2}.[/latex] How many pizzas sold maximizes the profit?

For the following exercises, consider a wire [latex]4\phantom{\rule{0.2em}{0ex}}\text{ft}[/latex] long cut into two pieces. One piece forms a circle with radius [latex]r[/latex] and the other forms a square of side [latex]x.[/latex]

Choose [latex]x[/latex] to maximize the sum of their areas.

[latex]0[/latex]

Choose [latex]x[/latex] to minimize the sum of their areas.

For the following exercises, consider two nonnegative numbers [latex]x[/latex] and [latex]y[/latex] such that [latex]x+y=10.[/latex] Maximize and minimize the quantities.

[latex]xy[/latex]

Maximal: [latex]x=5,y=5;[/latex] minimal: [latex]x=0,y=10[/latex] and [latex]y=0,x=10[/latex]

[latex]{x}^{2}{y}^{2}[/latex]

[latex]y-\frac{1}{x}[/latex]

Maximal: [latex]x=1,y=9;[/latex] minimal: none

[latex]{x}^{2}-y[/latex]

For the following exercises, draw the given optimization problem and solve.

Find the volume of the largest right circular cylinder that fits in a sphere of radius [latex]1.[/latex]

[latex]\frac{4\pi }{3\sqrt{3}}[/latex]

Find the volume of the largest right cone that fits in a sphere of radius [latex]1.[/latex]

Find the area of the largest rectangle that fits into the triangle with sides [latex]x=0,y=0[/latex] and [latex]\frac{x}{4}+\frac{y}{6}=1.[/latex]

[latex]6[/latex]

Find the largest volume of a cylinder that fits into a cone that has base radius [latex]R[/latex] and height [latex]h.[/latex]

Find the dimensions of the closed cylinder volume [latex]V=16\pi [/latex] that has the least amount of surface area.

[latex]r=2,h=4[/latex]

Find the dimensions of a right cone with surface area [latex]S=4\pi [/latex] that has the largest volume.

For the following exercises, consider the points on the given graphs. Use a calculator to graph the functions.

[T] Where is the line [latex]y=5-2x[/latex] closest to the origin?

[latex]\left(2,1\right)[/latex]

[T] Where is the line [latex]y=5-2x[/latex] closest to point [latex]\left(1,1\right)?[/latex]

[T] Where is the parabola [latex]y={x}^{2}[/latex] closest to point [latex]\left(2,0\right)?[/latex]

[latex]\left(0.8351,0.6974\right)[/latex]

[T] Where is the parabola [latex]y={x}^{2}[/latex] closest to point [latex]\left(0,3\right)?[/latex]

For the following exercises, set up, but do not evaluate, each optimization problem.

A window is composed of a semicircle placed on top of a rectangle. If you have [latex]20\phantom{\rule{0.2em}{0ex}}\text{ft}[/latex] of window-framing materials for the outer frame, what is the maximum size of the window you can create? Use [latex]r[/latex] to represent the radius of the semicircle.

A semicircular window is drawn with radius r.

[latex]A=20r-2{r}^{2}-\frac{1}{2}\pi {r}^{2}[/latex]

You have a garden row of [latex]20[/latex] watermelon plants that produce an average of [latex]30[/latex] watermelons apiece. For any additional watermelon plants planted, the output per watermelon plant drops by one watermelon. How many extra watermelon plants should you plant?

You are constructing a box for your cat to sleep in. The plush material for the square bottom of the box costs [latex]\text{💲}5\text{/}{\text{ft}}^{2}[/latex] and the material for the sides costs [latex]\text{💲}2\text{/}{\text{ft}}^{2}.[/latex] You need a box with volume [latex]4{\phantom{\rule{0.2em}{0ex}}\text{ft}}^{2}.[/latex] Find the dimensions of the box that minimize cost. Use [latex]x[/latex] to represent the length of the side of the box.

[latex]C\left(x\right)=5{x}^{2}+\frac{32}{x}[/latex]

You are building five identical pens adjacent to each other with a total area of [latex]1000{\phantom{\rule{0.2em}{0ex}}\text{m}}^{2},[/latex] as shown in the following figure. What dimensions should you use to minimize the amount of fencing?

A rectangle is divided into five sections, and each section has length y and width x.

You are the manager of an apartment complex with [latex]50[/latex] units. When you set rent at [latex]\text{💲}800\text{/}\text{month,}[/latex] all apartments are rented. As you increase rent by [latex]\text{💲}25\text{/}\text{month,}[/latex] one fewer apartment is rented. Maintenance costs run [latex]\text{💲}50\text{/}\text{month}[/latex] for each occupied unit. What is the rent that maximizes the total amount of profit?

[latex]P\left(x\right)=\left(50-x\right)\left(800+25x-50\right)[/latex]

Glossary

optimization problems
problems that are solved by finding the maximum or minimum value of a function