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

#### Solution

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

We want to find the maximum possible area subject to the constraint that the total fencing is [latex]100\text{ft}.[/latex] From (Figure) , the total amount of fencing used will be [latex]2x+y.[/latex] Therefore, the constraint equation is

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

Before trying to maximize the area function [latex]A(x)=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(x)[/latex] for [latex]x[/latex] over the open interval [latex](0,50).[/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(x)=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](0,50)[/latex] that maximizes the area of the garden. Therefore, we consider the following problem:

Maximize [latex]A(x)=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 numbers. At the endpoints, [latex]A(x)=0.[/latex] Since the area is positive for all [latex]x[/latex] in the open interval [latex](0,50),[/latex] the maximum must occur at a critical number. Differentiating the function [latex]A(x),[/latex] we obtain

Therefore, the only critical number is [latex]x=25[/latex] ( (Figure) ). We conclude that the maximum area must occur when [latex]x=25.[/latex] Then we have [latex]y=100-2x=100-2(25)=50.[/latex] To maximize the area of the garden, let [latex]x=25[/latex] ft and [latex]y=50\text{ft}.[/latex] The area of this garden is [latex]1250{\text{ft}}^{2}.[/latex]

Determine the maximum area if we want to make the same rectangular garden as in (Figure) , but we have 200 ft of fencing.

#### Hint

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

#### Solution

The maximum area is [latex]5000{\text{ft}}^{2}.[/latex]

Now let’s look at a general strategy for solving optimization problems similar to (Figure) .

### 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 numbers. Justify the answer using the closed interval method or another method if the interval is not closed.
- Give the final answer as a sentence with units.

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 24 in. by 36 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?

#### Solution

Step 1: Let [latex]x[/latex] be the side length of the square to be removed from each corner ( (Figure) ). 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.

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 2, are trying to maximize the volume of a box. The volume of a box is [latex]V=L\cdot W\cdot H,[/latex] where [latex]L,W,\text{ and }H[/latex] are the length, width, and height, respectively.

Step 4: From (Figure) , 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

Step 5: To determine the domain of consideration, let’s examine (Figure) . 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, 24 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](0,12).[/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(x)[/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(x)=0[/latex] at the endpoints and [latex]V(x) < 0[/latex] for [latex]0 < x < 12,[/latex] the maximum must occur at a critical number. The derivative is

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

Dividing both sides of this equation by 12, the problem simplifies to solving the equation

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

Since [latex]10+2\sqrt{7}[/latex] is not in the domain of consideration, the only critical number 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}\text{in}.[/latex] The maximum volume is [latex]V(10-2\sqrt{7})=640+448\sqrt{7}\approx 1825\text{in}{.}^{3}[/latex] as shown in the following graph.

Watch a video about optimizing the volume of a box.

Suppose the dimensions of the cardboard in (Figure) 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]

#### Hint

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

#### Solution

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

### Minimizing Travel Time

An island is [latex]2\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\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\text{mph}[/latex] and swims at a rate of [latex]3\text{mph}.[/latex] How far should the visitor run before swimming to minimize the time it takes to reach the island?

#### Solution

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

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]×[/latex] Time [latex](D=R×T),[/latex] the time spent running is

and the time spent swimming is

Therefore, the total time spent traveling is

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

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

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

Therefore,

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

which implies

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

Therefore, the possibilities for critical numbers are

Since [latex]x=6+6\text{/}\sqrt{55}[/latex] is not in the domain, it is not a possibility for a critical number. On the other hand, [latex]x=6-6\text{/}\sqrt{55}[/latex] is in the domain. Since we squared both sides of (Figure) to arrive at the possible critical numbers, it remains to verify that [latex]x=6-6\text{/}\sqrt{55}[/latex] satisfies (Figure) . 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 number, 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(x)[/latex] at the endpoints [latex]x=0[/latex] and [latex]x=6,[/latex] and compare them with the value of [latex]T(x)[/latex] at the critical number [latex]x=6-6\text{/}\sqrt{55}.[/latex] We find that [latex]T(0)\approx 2.108\text{h}[/latex] and [latex]T(6)\approx 1.417\text{h,}[/latex] whereas [latex]T(6-6\text{/}\sqrt{55})\approx 1.368\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 1 mi from shore, and the distance from the cabin to the point on the shore closest to the island is [latex]15\text{mi}.[/latex] Suppose a visitor swims at the rate of [latex]2.5\text{mph}[/latex] and runs at a rate of [latex]6\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.

#### Hint

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

#### Solution

[latex]T(x)=\frac{x}{6}+\frac{\sqrt{{(15-x)}^{2}+1}}{2.5}[/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(p)=1000-5p.[/latex] If they charge [latex]$50[/latex] per day or less, they will rent all their cars. If they charge [latex]$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]$200[/latex] per day to rent a car, how much should they charge to maximize their revenue?

#### Solution

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×p.[/latex]

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

Step 5: Since the owners plan to charge between [latex]\$50[/latex] per car per day and [latex]\$200[/latex] per car per day, the problem is to find the maximum revenue [latex]R(p)[/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 numbers. The derivative is [latex]{R}^{\prime }(p)=-10p+1000.[/latex] Therefore, the critical number is [latex]p=100[/latex] When [latex]p=100,[/latex] [latex]R(100)=\$50,000.[/latex] When [latex]p=50,[/latex] [latex]R(p)=\$37,500.[/latex] When [latex]p=200,[/latex] [latex]R(p)=\$0.[/latex] Therefore, the absolute maximum occurs at [latex]p=\$100.[/latex] The car rental company should charge [latex]\$100[/latex] per day per car to maximize revenue as shown in the following figure.

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 modelled by the linear function [latex]n(p)=750-5p.[/latex] How much should the company charge each customer to maximize revenue?

#### Hint

[latex]R(p)=n×p,[/latex] where [latex]n[/latex] is the number of cars rented and [latex]p[/latex] is the price charged per car.

#### Solution

The company should charge [latex]$75[/latex] per car per day.

### Maximizing the Area of an Inscribed Rectangle

A rectangle is to be inscribed in the ellipse

What should the dimensions of the rectangle be to maximize its area? What is the maximum area?

#### Solution

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.

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](x,y)[/latex] be the corner of the rectangle that lies in the first quadrant, as shown in (Figure) . 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

Step 5: From (Figure) , 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(x)[/latex] over the open interval [latex](0,2).[/latex] Since [latex]A(x)[/latex] will have an absolute maximum (and absolute minimum) over the closed interval [latex]\left[0,2\right],[/latex] we consider [latex]A(x)=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(x)[/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(x)=0.[/latex] For [latex]0 < x < 2,[/latex] [latex]A(x) < 0.[/latex] Therefore, the maximum must occur at a critical number. Taking the derivative of [latex]A(x),[/latex] we obtain

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

then [latex]x[/latex] must satisfy

Therefore, [latex]{x}^{2}=2.[/latex] Thus, [latex]x=\pm \sqrt{2}[/latex] are the possible solutions of (Figure) . 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 number, but [latex]x=-\sqrt{2}[/latex] is not. Therefore, we check whether [latex]\sqrt{2}[/latex] is a solution of (Figure) . Since [latex]x=\sqrt{2}[/latex] is a solution of (Figure) , we conclude that [latex]\sqrt{2}[/latex] is the only critical number of [latex]A(x)[/latex] in the interval [latex]\left[0,2\right].[/latex] Therefore, [latex]A(x)[/latex] must have an absolute maximum at the critical number [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

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=(2\sqrt{2})(\sqrt{2})=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?

#### Hint

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

#### Solution

[latex]A(x)=4x\sqrt{1-{x}^{2}}.[/latex] The domain of consideration is [latex]\left[0,1\right].[/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(x)={x}^{2}+4[/latex] over [latex](-\infty ,\infty )[/latex] has an absolute minimum of 4 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](0,\infty ),[/latex] the function has an absolute minimum. Below are the options to justify an absolute maximum or minimum of a continuous function on an open interval.

### Problem-Solving Strategy: Justify a Maximum or Minimum on an Open Interval

- Instead of testing the endpoints, take the limit as the variable approaches the endpoint. If both those answers are less than a critical number, then the largest function value at the critical numbers is the absolute maximum. Similar for minimum. If at least one of the limits is larger than all function values at the critical numbers (or is infinity), then there is no maximum. Similar for minimum.
- If the function is increasing over the entire interval to the left of the critical number and decreasing for the entire interval after the critical number, then there is the absolute maximum at the critical number. Similar for minimum.
- If there is only one critical number on the interval and there is a local maximum at that value, then there is an absolute maximum at that value. Similar for 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 216 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?

#### Solution

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.

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

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

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:

Therefore, [latex]S(x)=\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](0,\infty ).[/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](0,\infty ).[/latex]

Step 6: Note that as [latex]x\to {0}^{+},[/latex] [latex]S(x)\to \infty .[/latex] Also, as [latex]x\to \infty ,[/latex] [latex]S(x)\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 (0,\infty ).[/latex] This minimum must occur at a critical number of [latex]S.[/latex] The derivative is

Therefore, [latex]{S}^{\prime }(x)=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 number of [latex]S,[/latex] the absolute minimum must occur at [latex]x=6\sqrt[3]{2}[/latex] (see (Figure) ). When [latex]x=6\sqrt[3]{2},[/latex] [latex]y=\frac{216}{{(6\sqrt[3]{2})}^{2}}=3\sqrt[3]{2}\text{in}.[/latex] Therefore, the dimensions of the box should be [latex]x=6\sqrt[3]{2}\text{in}.[/latex] and [latex]y=3\sqrt[3]{2}\text{in}.[/latex] With these dimensions, the surface area is

Consider the same open-top box, which is to have volume [latex]216\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.)

#### 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]

#### Solution

[latex]c(x)=\frac{259.2}{x}+0.2{x}^{2}[/latex] 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 numbers to locate local extrema.

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

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

#### Solution

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

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

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

#### Solution

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

** 4. ** * True or False * . For every continuous non-constant 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.

** 5. ** 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\text{in}.[/latex] Assuming the height is fixed, show that the maximum volume is [latex]V=h{(31-(\frac{1}{2})h)}^{2}.[/latex] What height allows you to have the largest volume?

#### Solution

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

** 6. ** 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?

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

#### Solution

1

** 8. ** Find two positive integers such that their sum is 10, and minimize and maximize the sum of their squares.

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

** 9. ** You have [latex]400\text{ft}[/latex] of fencing to construct a rectangular pen for cattle. What are the dimensions of the pen that maximize the area?

#### Solution

[latex]100\text{ft by}100\text{ft}[/latex]

** 10. ** You have [latex]800\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?

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

#### Solution

[latex]40\text{ft by}40\text{ft}[/latex]

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

** 13. [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?

#### Solution

[latex]19.73\text{ft}.[/latex]

** 14. ** 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]{(x-70)}^{2}+{(x-80)}^{2}+{(x-120)}^{2}?[/latex] What value minimizes it?

** 15. ** 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]{(x-70)}^{2}+{(x-80)}^{2}+\frac{1}{2}{(x-120)}^{2}?[/latex]

#### Solution

[latex]84\text{bpm}[/latex]

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

For the following problems, consider a lifeguard at a circular pool with diameter [latex]40\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]

** 17. ** 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]

#### Solution

[latex]T(\theta )=\frac{40\theta }{3v}+\frac{40 \cos \theta }{v}[/latex]

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

** 19. ** A truck uses gas as [latex]g(v)=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?

#### Solution

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

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

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

** 21. ** Find the cheapest driving speed.

#### Solution

approximately [latex]34.02\text{mph}[/latex]

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

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

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

#### Solution

4

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

For the following exercises, consider a wire [latex]4\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]

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

#### Solution

0

** 26. ** 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.

** 27. ** [latex]xy[/latex]

#### Solution

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

** 28. ** [latex]{x}^{2}{y}^{2}[/latex]

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

#### Solution

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

** 30. ** [latex]{x}^{2}-y[/latex]

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

** 31. ** Find the volume of the largest right circular cylinder that fits in a sphere of radius 1.

#### Solution

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

** 32. ** Find the volume of the largest right cone that fits in a sphere of radius 1.

** 33. ** 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]

#### Solution

6

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

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

#### Solution

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

** 36. ** 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.

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

#### Solution

[latex](2,1)[/latex]

** 38. [T] ** Where is the line [latex]y=5-2x[/latex] closest to point [latex](1,1)?[/latex]

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

#### Solution

[latex](0.8351,0.6974)[/latex]

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

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

** 41. ** A window is composed of a semicircle placed on top of a rectangle. If you have [latex]20\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.

#### Solution

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

** 42. ** You have a garden row of 20 watermelon plants that produce an average of 30 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?

** 43. ** You are constructing a box for your cat to sleep in. The plush material for the square bottom of the box costs [latex]$5\text{/}{\text{ft}}^{2}[/latex] and the material for the sides costs [latex]$2\text{/}{\text{ft}}^{2}.[/latex] You need a box with volume [latex]4{\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.

#### Solution

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

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

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

#### Solution

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

## Glossary

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