4.7 Applied Optimization Problems

Learning objectives.

  • 4.7.1 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 4.32 , 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 4.32

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

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

We want to find the maximum possible area subject to the constraint that the total fencing is 100 ft . 100 ft . From Figure 4.62 , the total amount of fencing used will be 2 x + y . 2 x + y . Therefore, the constraint equation is

Solving this equation for y , y , we have y = 100 − 2 x . y = 100 − 2 x . Thus, we can write the area as

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

Maximize A ( x ) = 100 x − 2 x 2 A ( x ) = 100 x − 2 x 2 over the interval [ 0 , 50 ] . [ 0 , 50 ] .

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

Therefore, the only critical point is x = 25 x = 25 ( Figure 4.63 ). We conclude that the maximum area must occur when x = 25 . x = 25 . Then we have y = 100 − 2 x = 100 − 2 ( 25 ) = 50 . y = 100 − 2 x = 100 − 2 ( 25 ) = 50 . To maximize the area of the garden, let x = 25 x = 25 ft and y = 50 ft . y = 50 ft . The area of this garden is 1250 ft 2 . 1250 ft 2 .

Checkpoint 4.31

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

Now let’s look at a general strategy for solving optimization problems similar to Example 4.32 .

Problem-Solving Strategy

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 . 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 4 based on the physical problem to be solved.
  • Locate the maximum or minimum value of the function from step 4 . 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 4.33

Maximizing the volume of a box.

An open-top box is to be made from a 24 24 in. by 36 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?

Step 1: Let x x be the side length of the square to be removed from each corner ( Figure 4.64 ). Then, the remaining four flaps can be folded up to form an open-top box. Let V 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 . V .

Step 3: As mentioned in step 2 , 2 , we are trying to maximize the volume of a box. The volume of a box is V = L · W · H , V = L · W · H , where L , W , and H L , W , and H are the length, width, and height, respectively.

Step 4: From Figure 4.64 , we see that the height of the box is x x inches, the length is 36 − 2 x 36 − 2 x inches, and the width is 24 − 2 x 24 − 2 x inches. Therefore, the volume of the box is

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

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

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

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

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

Since 10 + 2 7 10 + 2 7 is not in the domain of consideration, the only critical point we need to consider is 10 − 2 7 . 10 − 2 7 . Therefore, the volume is maximized if we let x = 10 − 2 7 in . x = 10 − 2 7 in . The maximum volume is V ( 10 − 2 7 ) = 640 + 448 7 ≈ 1825 in . 3 V ( 10 − 2 7 ) = 640 + 448 7 ≈ 1825 in . 3 as shown in the following graph.

Watch a video about optimizing the volume of a box.

Checkpoint 4.32

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

Example 4.34

Minimizing travel time.

An island is 2 mi 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 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 8 mph and swims at a rate of 3 mph . 3 mph . How far should the visitor run before swimming to minimize the time it takes to reach the island?

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

Step 2: The problem is to minimize T . 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 ) , ( D = R × T ) , the time spent running is

and the time spent swimming is

Therefore, the total time spent traveling is

Step 4: From Figure 4.66 , the line segment of y y miles forms the hypotenuse of a right triangle with legs of length 2 mi 2 mi and 6 − x mi . 6 − x mi . Therefore, by the Pythagorean theorem, 2 2 + ( 6 − x ) 2 = y 2 , 2 2 + ( 6 − x ) 2 = y 2 , and we obtain y = ( 6 − x ) 2 + 4 . y = ( 6 − x ) 2 + 4 . Thus, the total time spent traveling is given by the function

Step 5: From Figure 4.66 , we see that 0 ≤ x ≤ 6 . 0 ≤ x ≤ 6 . Therefore, [ 0 , 6 ] [ 0 , 6 ] is the domain of consideration.

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

If T ′ ( x ) = 0 , T ′ ( x ) = 0 , then

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

which implies

We conclude that if x x is a critical point, then x x satisfies

Therefore, the possibilities for critical points are

Since x = 6 + 6 / 55 x = 6 + 6 / 55 is not in the domain, it is not a possibility for a critical point. On the other hand, x = 6 − 6 / 55 x = 6 − 6 / 55 is in the domain. Since we squared both sides of Equation 4.6 to arrive at the possible critical points, it remains to verify that x = 6 − 6 / 55 x = 6 − 6 / 55 satisfies Equation 4.6 . Since x = 6 − 6 / 55 x = 6 − 6 / 55 does satisfy that equation, we conclude that x = 6 − 6 / 55 x = 6 − 6 / 55 is a critical point, and it is the only one. To justify that the time is minimized for this value of x , x , we just need to check the values of T ( x ) T ( x ) at the endpoints x = 0 x = 0 and x = 6 , x = 6 , and compare them with the value of T ( x ) T ( x ) at the critical point x = 6 − 6 / 55 . x = 6 − 6 / 55 . We find that T ( 0 ) ≈ 2.108 h T ( 0 ) ≈ 2.108 h and T ( 6 ) ≈ 1.417 h, T ( 6 ) ≈ 1.417 h, whereas T ( 6 − 6 / 55 ) ≈ 1.368 h . T ( 6 − 6 / 55 ) ≈ 1.368 h . Therefore, we conclude that T T has a local minimum at x ≈ 5.19 x ≈ 5.19 mi.

Checkpoint 4.33

Suppose the island is 1 1 mi from shore, and the distance from the cabin to the point on the shore closest to the island is 15 mi . 15 mi . Suppose a visitor swims at the rate of 2.5 mph 2.5 mph and runs at a rate of 6 mph . 6 mph . Let x 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.

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 4.35

Maximizing revenue.

Owners of a car rental company have determined that if they charge customers p p dollars per day to rent a car, where 50 ≤ p ≤ 200 , 50 ≤ p ≤ 200 , the number of cars n n they rent per day can be modeled by the linear function n ( p ) = 1000 − 5 p . n ( p ) = 1000 − 5 p . If they charge $ 50 $ 50 per day or less, they will rent all their cars. If they charge $ 200 $ 200 per day or more, they will not rent any cars. Assuming the owners plan to charge customers between $50 per day and $ 200 $ 200 per day to rent a car, how much should they charge to maximize their revenue?

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

Step 2: The problem is to maximize R . 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 . R = n × p .

Step 4: Since the number of cars rented per day is modeled by the linear function n ( p ) = 1000 − 5 p , n ( p ) = 1000 − 5 p , the revenue R R can be represented by the function

Step 5: Since the owners plan to charge between $ 50 $ 50 per car per day and $ 200 $ 200 per car per day, the problem is to find the maximum revenue R ( p ) R ( p ) for p p in the closed interval [ 50 , 200 ] . [ 50 , 200 ] .

Step 6: Since R R is a continuous function over the closed, bounded interval [ 50 , 200 ] , [ 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 ) = −10 p + 1000 . R ′ ( p ) = −10 p + 1000 . Therefore, the critical point is p = 100 p = 100 When p = 100 , p = 100 , R ( 100 ) = $ 50,000 . R ( 100 ) = $ 50,000 . When p = 50 , p = 50 , R ( p ) = $ 37,500 . R ( p ) = $ 37,500 . When p = 200 , p = 200 , R ( p ) = $ 0 . R ( p ) = $ 0 . Therefore, the absolute maximum occurs at p = $ 100 . p = $ 100 . The car rental company should charge $ 100 $ 100 per day per car to maximize revenue as shown in the following figure.

Checkpoint 4.34

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

Example 4.36

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?

Step 1: For a rectangle to be inscribed in the ellipse, the sides of the rectangle must be parallel to the axes. Let L L be the length of the rectangle and W W be its width. Let A A be the area of the rectangle.

Step 2: The problem is to maximize A . A .

Step 3: The area of the rectangle is A = L W . A = L W .

Step 4: Let ( x , y ) ( x , y ) be the corner of the rectangle that lies in the first quadrant, as shown in Figure 4.68 . We can write length L = 2 x L = 2 x and width W = 2 y . W = 2 y . Since x 2 4 + y 2 = 1 x 2 4 + y 2 = 1 and y > 0 , y > 0 , we have y = 1 − x 2 4 . y = 1 − x 2 4 . Therefore, the area is

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

To find critical points, we need to find where A ′ ( x ) = 0 . A ′ ( x ) = 0 . We can see that if x x is a solution of

then x x must satisfy

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

Therefore, the dimensions of the rectangle are L = 2 x = 2 2 L = 2 x = 2 2 and W = 2 y = 2 2 = 2 . W = 2 y = 2 2 = 2 . The area of this rectangle is A = L W = ( 2 2 ) ( 2 ) = 4 . A = L W = ( 2 2 ) ( 2 ) = 4 .

Checkpoint 4.35

Modify the area function A A if the rectangle is to be inscribed in the unit circle x 2 + y 2 = 1 . x 2 + y 2 = 1 . What is the domain of consideration?

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 f ( x ) = x 2 + 4 over ( − ∞ , ∞ ) ( − ∞ , ∞ ) has an absolute minimum of 4 4 at x = 0 . 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 , ∞ ) , ( 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 4.37

Minimizing surface area.

A rectangular box with a square base, an open top, and a volume of 216 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?

Step 1: Draw a rectangular box and introduce the variable x x to represent the length of each side of the square base; let y y represent the height of the box. Let S 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 . 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 . x · y . The area of the base is x 2 . x 2 . Therefore, the surface area of the box is

Step 4: Since the volume of this box is x 2 y x 2 y and the volume is given as 216 in . 3 , 216 in . 3 , the constraint equation is

Solving the constraint equation for y , y , we have y = 216 x 2 . y = 216 x 2 . Therefore, we can write the surface area as a function of x x only:

Therefore, S ( x ) = 864 x + x 2 . S ( x ) = 864 x + x 2 .

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

Step 6: Note that as x → 0 + , x → 0 + , S ( x ) → ∞ . S ( x ) → ∞ . Also, as x → ∞ , x → ∞ , S ( x ) → ∞ . S ( x ) → ∞ . Since S S is a continuous function that approaches infinity at the ends, it must have an absolute minimum at some x ∈ ( 0 , ∞ ) . x ∈ ( 0 , ∞ ) . This minimum must occur at a critical point of S . S . The derivative is

Therefore, S ′ ( x ) = 0 S ′ ( x ) = 0 when 2 x = 864 x 2 . 2 x = 864 x 2 . Solving this equation for x , x , we obtain x 3 = 432 , x 3 = 432 , so x = 432 3 = 6 2 3 . x = 432 3 = 6 2 3 . Since this is the only critical point of S , S , the absolute minimum must occur at x = 6 2 3 x = 6 2 3 (see Figure 4.70 ). When x = 6 2 3 , x = 6 2 3 , y = 216 ( 6 2 3 ) 2 = 3 2 3 in . y = 216 ( 6 2 3 ) 2 = 3 2 3 in . Therefore, the dimensions of the box should be x = 6 2 3 in . x = 6 2 3 in . and y = 3 2 3 in . y = 3 2 3 in . With these dimensions, the surface area is

Checkpoint 4.36

Consider the same open-top box, which is to have volume 216 in . 3 . 216 in . 3 . Suppose the cost of the material for the base is 20 ¢ / in . 2 20 ¢ / in . 2 and the cost of the material for the sides is 30 ¢ / in . 2 30 ¢ / 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 x be the side length of the base and y y be the height of the box.)

Section 4.7 Exercises

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?

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

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

True or False . For every continuous nonconstant function on a closed, finite domain, there exists at least one x x 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 + width + + width + height of the box must be less than or equal to 62 in . 62 in . Assuming the base of the suitcase is square, show that the volume is V = h ( 31 − ( 1 2 ) h ) 2 . V = h ( 31 − ( 1 2 ) h ) 2 . What height allows you to have the largest volume?

You are constructing a cardboard box with the dimensions 2 m by 4 m . 2 m by 4 m . 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?

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

Find two positive integers such that their sum is 10 , 10 , 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 400 ft 400 ft of fencing to construct a rectangular pen for cattle. What are the dimensions of the pen that maximize the area?

You have 800 ft 800 ft 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 1600 ft 2 . 1600 ft 2 . What are the dimensions of the rectangular pen to minimize the amount of material needed?

Two poles are connected by a wire that is also connected to the ground. The first pole is 20 ft 20 ft tall and the second pole is 10 ft 10 ft tall. There is a distance of 30 ft 30 ft between the two poles. Where should the wire be anchored to the ground to minimize the amount of wire needed?

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

A patient’s pulse measures 70 bpm, 80 bpm, then 120 bpm . 70 bpm, 80 bpm, then 120 bpm . To determine an accurate measurement of pulse, the doctor wants to know what value minimizes the expression ( x − 70 ) 2 + ( x − 80 ) 2 + ( x − 120 ) 2 ? ( x − 70 ) 2 + ( x − 80 ) 2 + ( x − 120 ) 2 ? 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 ( x − 70 ) 2 + ( x − 80 ) 2 + 1 2 ( x − 120 ) 2 ? ( x − 70 ) 2 + ( x − 80 ) 2 + 1 2 ( x − 120 ) 2 ?

You can run at a speed of 6 6 mph and swim at a speed of 3 3 mph and are located on the shore, 4 4 miles east of an island that is 1 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 40 m . 40 m . He must reach someone who is drowning on the exact opposite side of the pool, at position C . C . The lifeguard swims with a speed v v and runs around the pool at speed w = 3 v . w = 3 v .

Find a function that measures the total amount of time it takes to reach the drowning person as a function of the swim angle, θ . θ .

Find at what angle θ θ the lifeguard should swim to reach the drowning person in the least amount of time.

A truck uses gas as g ( v ) = a v + b v , g ( v ) = a v + b v , where v v represents the speed of the truck and g g represents the gallons of fuel per mile. Assuming a a and b b are positive, at what speed is fuel consumption minimized?

For the following exercises, consider a limousine that gets m ( v ) = ( 120 − 2 v ) 5 mi/gal m ( v ) = ( 120 − 2 v ) 5 mi/gal at speed v , v , the chauffeur costs $15/h , $15/h , and gas is $ 3.5 / gal . $ 3.5 / gal .

Find the cost per mile at speed v . v .

Find the cheapest driving speed.

For the following exercises, consider a pizzeria that sell pizzas for a revenue of R ( x ) = a x R ( x ) = a x and costs C ( x ) = b + c x + d x 2 , C ( x ) = b + c x + d x 2 , where x x represents the number of pizzas ;   a   >   c ;   a   >   c .

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

Assume that R ( x ) = 10 x R ( x ) = 10 x and C ( x ) = 2 x + x 2 . C ( x ) = 2 x + x 2 . How many pizzas sold maximizes the profit?

Assume that R ( x ) = 15 x , R ( x ) = 15 x , and C ( x ) = 60 + 3 x + 1 2 x 2 . C ( x ) = 60 + 3 x + 1 2 x 2 . How many pizzas sold maximizes the profit?

For the following exercises, consider a wire 4 ft 4 ft long cut into two pieces. One piece forms a circle with radius r r and the other forms a square of side x . x .

Choose x x to maximize the sum of their areas.

Choose x x to minimize the sum of their areas.

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

x 2 y 2 x 2 y 2

y − 1 x y − 1 x

x 2 − y x 2 − y

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 1 . 1 .

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

Find the area of the largest rectangle that fits into the triangle with sides x = 0 , y = 0 x = 0 , y = 0 and x 4 + y 6 = 1 . x 4 + y 6 = 1 .

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

Find the dimensions of the closed cylinder volume V = 16 π V = 16 π that has the least amount of surface area.

Find the dimensions of a right cone with surface area S = 4 π S = 4 π 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 y = 5 − 2 x y = 5 − 2 x closest to the origin?

[T] Where is the line y = 5 − 2 x y = 5 − 2 x closest to point ( 1 , 1 ) ? ( 1 , 1 ) ?

[T] Where is the parabola y = x 2 y = x 2 closest to point ( 2 , 0 ) ? ( 2 , 0 ) ?

[T] Where is the parabola y = x 2 y = x 2 closest to point ( 0 , 3 ) ? ( 0 , 3 ) ?

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 20 ft 20 ft of window-framing materials for the outer frame, what is the maximum size of the window you can create? Use r r to represent the radius of the semicircle.

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

You are constructing a box for your cat to sleep in. The plush material for the square bottom of the box costs $ 5 / ft 2 $ 5 / ft 2 and the material for the sides costs $ 2 / ft 2 . $ 2 / ft 2 . You need a box with volume 4 ft 3 . 4 ft 3 . Find the dimensions of the box that minimize cost. Use x x to represent the length of the side of the box.

You are building five identical pens adjacent to each other with a total area of 1000 m 2 , 1000 m 2 , as shown in the following figure. What dimensions should you use to minimize the amount of fencing?

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

As an Amazon Associate we earn from qualifying purchases.

This book may not be used in the training of large language models or otherwise be ingested into large language models or generative AI offerings without OpenStax's permission.

Want to cite, share, or modify this book? This book uses the Creative Commons Attribution-NonCommercial-ShareAlike License and you must attribute OpenStax.

Access for free at https://openstax.org/books/calculus-volume-1/pages/1-introduction
  • Authors: Gilbert Strang, Edwin “Jed” Herman
  • Publisher/website: OpenStax
  • Book title: Calculus Volume 1
  • Publication date: Mar 30, 2016
  • Location: Houston, Texas
  • Book URL: https://openstax.org/books/calculus-volume-1/pages/1-introduction
  • Section URL: https://openstax.org/books/calculus-volume-1/pages/4-7-applied-optimization-problems

© Feb 5, 2024 OpenStax. Textbook content produced by OpenStax is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License . The OpenStax name, OpenStax logo, OpenStax book covers, OpenStax CNX name, and OpenStax CNX logo are not subject to the Creative Commons license and may not be reproduced without the prior and express written consent of Rice University.

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

Course: ap®︎/college calculus ab   >   unit 5.

  • 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)

Optimization

  • Motion problems: finding the maximum acceleration
  • Your answer should be
  • an integer, like 6 ‍  
  • an exact decimal, like 0.75 ‍  
  • a simplified proper fraction, like 3 / 5 ‍  
  • a simplified improper fraction, like 7 / 4 ‍  
  • a mixed number, like 1   3 / 4 ‍  

pep

Find what you need to study

5.11 Solving Optimization Problems

2 min read • february 15, 2024

In the last key topic , we began to take a look at optimization problems and even practiced a few. Let’s recap and do some more practice questions!

🔎 Understanding Optimization Problems

Optimization problems are a key aspect of real-world applications in calculus, and involve finding the maximum or minimum value of a function in applied contexts. These contexts can range from determining the dimensions for maximum volume to minimizing costs. The objective is to identify the optimal conditions that lead to an extreme value. 👾

📝 Optimization on the AP Calculus Exam

Optimization problems are presented in many formats on the AP Test— you may see them as part of multiple choice problems, and they are usually accompanied by lengthier context or story problems. You are, however, basically guaranteed to see them one way or another—which is why it’s so important to understand how to solve them!

🧩  How to Solve Optimization Problems

🧺 identify the objective function.

Begin by clearly defining the quantity you want to optimize. This is your objective function, often denoted by f ( x ) or f( y) . For instance, if you're a farmer looking to maximize your crop yield, your objective function might be P(x) for the total profit.

💥 Establish Constraints

Consider any constraints or limitations on the variables involved. Constraints could be in the form of limitations on resources, dimensions, or any other relevant factors. In our farming example, this could be the amount of land available or a budget constraint for purchasing seeds and fertilizer.

🖊️ Formulate the Optimization Equation

Create an equation that represents the quantity you want to optimize. This is the function you aim to maximize or minimize. If you're maximizing profit, your equation might involve revenue minus costs: P(x) = R(x) − C(x) .

🎯 Find Critical Points

Take the derivative of the objective function with respect to the variable of interest. Set the derivative equal to zero and solve for critical points. Remember, critical points are potential locations for maxima or minima.

🤔 Test Critical Points

Use the first or second derivative test to determine whether each critical point corresponds to a local maximum, minimum, or neither. This step ensures that you are pinpointing the desired extreme value.

🧠 Consider Endpoints

If the optimization problem involves a closed interval, evaluate the objective function at the endpoints as well. Include these results in your analysis.

📈 Optimization Practice Problems

Let’s put these steps into action and give two questions a try.

🏡  Problem 1: Maximizing Area of a Rectangular Garden

You have 100 meters of fencing to enclose a rectangular garden. What dimensions will maximize the enclosed area?

First, define your variables in terms of what was given to you.

  • Let x be the width of the rectangle.
  • The length, y , will be determined by the remaining fencing: 2 x + 2 y = 100 2x+2y=100 2 x + 2 y = 100 or y = 50 − x . y=50 -x. y = 50 − x .

Since we’re asked to maximize the area, we can define the equations with the area formula of a rectangle. The area, A , of the rectangle is given by

We have our equations! Now we can find our critical points . Take the derivative of A ( x ) A(x) A ( x ) and set it equal to zero:

Test this critical point using the second derivative test. This will confirm that x = 25 x=25 x = 25 is a maximum.

Because A ′ ′ ( x ) A''(x) A ′′ ( x ) is a negative value, this confirms that x = 25 x = 25 x = 25 is a maximum.

Last but not least, interpret results!

The dimensions that maximize the area are x = 25   m x = 25 \ m x = 25   m (width) and y = 25   m y = 25 \ m y = 25   m (length). Good job! 👏

📦  Problem 2: Maximize the Size of a Can

A cylindrical can is to be made to contain 1000 π 1000\pi 1000 π cubic centimeters of liquid. Find the dimensions (radius and height) of the can that minimize the amount of material needed to manufacture the can.

Let’s again define our variables. Let r represent the radius of the cylinder and h represent the height of the cylinder.

Now we can define and simplify our equations. The quantity to be optimized in this problem is the surface area of the cylinder, which is the sum of the lateral surface area and the area of the two circular bases. The surface area A is given by:

The problem states that the can must contain 1000 π 1000\pi 1000 π cubic centimeters of liquid. The volume V of a cylinder is given by:

Since V = 1000 π = π r 2 h V = 1000\pi = \pi r^2h V = 1000 π = π r 2 h , we have r 2 h = 1000 , r^2h = 1000, r 2 h = 1000 , which serves as the constraint equation.

Solve the constraint equation for h:

Then, substitute h into the equation for surface area, A A A :

Simplify this equation:

Find the critical points! Take the derivative of A with respect to r and set it equal to zero to find critical points:

Check the values of r at the endpoints of the feasible interval (in this case, r cannot be negative, so only consider positive values).

Determine the minimum values. Evaluate the area function A at the critical point and endpoints, and determine which one gives the minimum value. In this case, r = 500 3 r = \sqrt[3]{500} r = 3 500 ​ yields the minimum surface area.

Use the expression h = 1000 r 2 h = \frac{1000}{r^2} h = r 2 1000 ​ to find the corresponding value of the height h . The answer is approximately h = 63.

You’re almost there! State the conclusion.

The dimensions that minimize the amount of material needed to manufacture the can are r = 500 3 r = \sqrt[3]{500} r = 3 500 ​ centimeters and h = 1000 ( 500 3 ) 2 h = \frac{1000}{(\sqrt[3]{500})^2} h = ( 3 500 ​ ) 2 1000 ​ , or approximately 63 centimeters.

🏆 Tips for Success

You made it to the end of this guide! Here are some tips for success:

  • 💡  Clearly Define Variables: Ensure a clear understanding of the meaning of each variable in the problem.
  • 📈  Graphical Insight: Consider graphing the function to visualize critical points and endpoints.
  • 🧠  Units Matter: Pay attention to units in real-world problems. Ensure your final answer makes sense in the given context.

Happy optimizing!

Fiveable

Stay Connected

© 2024 Fiveable Inc. All rights reserved.

AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.

Module 4: Applications of Derivatives

Solving optimization problems, learning outcomes.

  • Set up and solve optimization problems in several applied fields

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 instance, in the example below, 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: 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 1). Given 100 ft of wire fencing, determine the dimensions that would create a garden of maximum area. What is the maximum area?

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.

Figure 1. We want to determine the measurements [latex]x[/latex] and [latex]y[/latex] that will create a garden with a maximum area using 100 ft of fencing.

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[/latex] ft. From Figure 1, 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-2x^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-2x^2[/latex] over the closed interval [latex][0,50][/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-2x^2[/latex] over the interval [latex][0,50][/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(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 point. Differentiating the function [latex]A(x)[/latex], we obtain

Therefore, the only critical point is [latex]x=25[/latex] (Figure 2). 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[/latex] ft. The area of this garden is [latex]1250 \, \text{ft}^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.”

Figure 2. To maximize the area of the garden, we need to find the maximum value of the function [latex]A(x)=100x-2x^2[/latex].

Watch the following video to see the worked solution to Example: Maximizing the Area of a Garden.

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

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

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

Now let’s look at a general strategy for solving optimization problems similar to these above.

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: 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?

Step 1: Let [latex]x[/latex] be the side length of the square to be removed from each corner (Figure 3). Then, the remaining four flaps can be folded up to form an open-top box. Let [latex]V[/latex] be the volume of the resulting 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.

Figure 3. 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.

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[/latex], and [latex]H[/latex] are the length, width, and height, respectively.

Step 4: From Figure 3, 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 3. 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][0,12][/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][0,12][/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][0,12][/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 point. The derivative is

To find the critical points, 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 points are

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}[/latex] in. 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.

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.”

Figure 4. Maximizing the volume of the box leads to finding the maximum value of a cubic polynomial.

Interactive

Watch a video about optimizing the volume of a box.

Suppose the dimensions of the cardboard in the previous example 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].

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

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

Example: Minimizing Travel Time

An island is [latex]2[/latex] mi due north of its closest point along a straight shoreline. A visitor is staying at a cabin on the shore that is [latex]6[/latex] 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 [latex]8[/latex] mph and swims at a rate of [latex]3[/latex] mph. 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 (Figure 5). Let [latex]T[/latex] be the time it takes to get 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.

Figure 5. How can we choose [latex]x[/latex] and [latex]y[/latex] to minimize the travel time 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]\times[/latex] Time [latex](D=R \times T)[/latex], the time spent running is

and the time spent swimming is

Therefore, the total time spent traveling is

Step 4: From Figure 5, the line segment of [latex]y[/latex] miles forms the hypotenuse of a right triangle with legs of length [latex]2[/latex] mi and [latex]6-x[/latex] mi. 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 5, we see that [latex]0\le x\le 6[/latex]. Therefore, [latex][0,6][/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 points of [latex]T[/latex] over the interval [latex][0,6][/latex]. The derivative is

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

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 point, then [latex]x[/latex] satisfies

Therefore, the possibilities for critical points are

Since [latex]x=6+\frac{6}{\sqrt{55}}[/latex] is not in the domain, it is not a possibility for a critical point. On the other hand, [latex]x=6-\frac{6}{\sqrt{55}}[/latex] is in the domain. Since we squared both sides of the equation to arrive at the possible critical points, it remains to verify that it is satisfied by [latex]x=6-\frac{6}{\sqrt{55}}[/latex]. Since [latex]x=6-\frac{6}{\sqrt{55}}[/latex] does satisfy that equation, we conclude that [latex]x=6-\frac{6}{\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(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 point [latex]x=6-\frac{6}{\sqrt{55}}[/latex]. We find that [latex]T(0)\approx 2.108[/latex] h and [latex]T(6)\approx 1.417[/latex] h, whereas [latex]T(6-\frac{6}{\sqrt{55}})\approx 1.368[/latex] h. 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[/latex] mi. Suppose a visitor swims at the rate of [latex]2.5[/latex] mph and runs at a rate of [latex]6[/latex] mph. 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.

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

[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.

Example: 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 [latex]$50[/latex] per day and [latex]$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 \times p[/latex].

Step 4: Since the number of cars rented per day is modeled 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][50,200][/latex].

Step 6: Since [latex]R[/latex] is a continuous function over the closed, bounded interval [latex][50,200][/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}(p)=-10p+1000[/latex]. Therefore, the critical point 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.

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.”

Figure 6. To maximize revenue, a car rental company has to balance the price of a rental against the number of cars people will rent at that price.

Watch the following video to see the worked solution to Example: Maximizing Revenue.

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

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

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

Example: 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?

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.

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.

Figure 7. We want to maximize the area of a rectangle inscribed in an ellipse.

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

Step 3: The area of the rectangle is [latex]A=L \times W[/latex].

Step 4: Let [latex](x,y)[/latex] be the corner of the rectangle that lies in the first quadrant, as shown in Figure 7. 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{1 - \frac{x^2}{4}}[/latex]. Therefore, the area is

Step 5: From Figure 7, 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][0,2][/latex], we consider [latex]A(x)=2x\sqrt{4-x^2}[/latex] over the interval [latex][0,2][/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][0,2][/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 point. Taking the derivative of [latex]A(x)[/latex], we obtain

To find critical points, 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[latex]A^{\prime}(x)[/latex]. Since we are considering [latex]x[/latex] over the interval [latex][0,2][/latex], [latex]x=\sqrt{2}[/latex] is a possibility for a critical point, but [latex]x=−\sqrt{2}[/latex] is not. Therefore, we check whether [latex]\sqrt{2}[/latex] is a solution of [latex]A^{\prime}(x)[/latex]. Since [latex]x=\sqrt{2}[/latex] is a solution of[latex]A^{\prime}(x)[/latex], we conclude that [latex]\sqrt{2}[/latex] is the only critical point of [latex]A(x)[/latex] in the interval [latex][0,2][/latex]. Therefore, [latex]A(x)[/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

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=L \times W=(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?

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

[latex]A(x)=4x\sqrt{1-x^2}[/latex]. The domain of consideration is [latex][0,1][/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.

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: Minimizing Surface Area

A rectangular box with a square base, an open top, and a volume of [latex]216 \, \text{in}^3[/latex] 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.

A box with square base is shown. The base has side length x, and the height is y.

Figure 8. We want to minimize the surface area of a square-based box with a given volume.

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

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.”

Figure 9. We can use a graph to determine the dimensions of a box of given the volume and the minimum surface area.

Watch the following video to see the worked solution to Example: Minimizing Surface Area.

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]$0.20 / \text{in}^2[/latex] and the cost of the material for the sides is [latex]$0.30 / \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.)

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

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

  • 4.7 Applied Optimization Problems. Authored by : Ryan Melton. License : CC BY: Attribution
  • Calculus Volume 1. Authored by : Gilbert Strang, Edwin (Jed) Herman. Provided by : OpenStax. Located at : https://openstax.org/details/books/calculus-volume-1 . License : CC BY-NC-SA: Attribution-NonCommercial-ShareAlike . License Terms : Access for free at https://openstax.org/books/calculus-volume-1/pages/1-introduction

Footer Logo Lumen Candela

Privacy Policy

  • Search This Site All UCSD Sites Faculty/Staff Search Term
  • Chair's Message
  • Commitment to Diversity
  • Department History
  • Press Contact
  • Economics Roundtable
  • Conferences
  • Career Workshops
  • Faculty Profiles
  • Research Groups
  • Research Centers
  • Faculty Recruitment
  • Faculty Resources
  • Faculty Recognition
  • In Memoriam
  • Graduate Advising
  • Current Students
  • Prospective Students
  • Resources for Current Students
  • Majors & Minors
  • About the Undergraduate Program
  • Prospective Student Info
  • Hire A Triton
  • Stay Connected
  • Undergraduate Program
  • Econ Video Handbooks

A. Math Topics

  • A4. Solving Optimization Problems

How does one derive the solution to unconstrained/constrained maximization and minimization problems?

  • A1. Elasticity
  • A2. Level Curves
  • A3. Scale Properties of Functions
  • A5. Comparative Statics

Library homepage

  • 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.

Mathematics LibreTexts

4.5: Optimization Problems

  • Last updated
  • Save as PDF
  • Page ID 13659

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.

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

CNX_Calc_Figure_04_07_001.jpeg

Figure \(\PageIndex{1}\): We want to determine the measurements x and y that will create a garden with a maximum area using 100 ft of fencing.

Solution: Let \(x\) denote the length of the side of the garden perpendicular to the rock wall and \(y\) denote the length of the side parallel to the rock wall. Then the area of the garden is

\(A=x⋅y.\)

We want to find the maximum possible area subject to the constraint that the total fencing is \(100ft.\) From Figure, 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)\).

Maximize \(A(x)=100x−2x^2\) over the interval \((0,50)\).

Differentiating the function \(A(x)\), we obtain

\(A′(x)=100−4x.\)

Solving for x, we get the only critical point is \(x=25\)

We use the same process to look for a maximum or a minimum. At this point, we use the Second Derivative Test (SDT) determine if this critical point corresponds to a minimum or a maximum.

\(A′′(x)=−4,\) thus \(A′′(25)=−4\). Since the second derivative at \(x=25\) is negative, 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\) ft and \(y=50\) ft. The area of this garden is \(1250\) \(ft^2\).

ANSWER: The maximum area of this garden is \(1250\) \(ft^2\).

See Figure \(\PageIndex{2}\) .

CNX_Calc_Figure_04_07_002.jpeg

Figure \(\PageIndex{2}\) : To maximize the area of the garden, we need to find the maximum value of the function \(A(x)=100x−2x^2\).

try-it.png

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

We need to maximize the function \(A(x)=200x−2x^2\) over the interval \([0,100].\)

The maximum area is \(5000\) \(ft^2\).

Now let’s look at a general strategy for solving optimization problems similar to Example \(\PageIndex{1}\).

Steps to Solve Optimization Problems

  • Determine which quantity is to be optimized; is it to be maximized or minimized? If applicable, draw a figure and label all variables.
  • Write a formula (function) for the quantity to be optimized in terms of the variables. Write constraint equation(s) on the side.
  • Write your function from step \(2\) in terms of one variable (use the constraints to relate variables). Identify the domain based on the physical problem to be solved.
  • Find the derivative of your function.
  • Set the derivative equal to zero & solve to find critical points.
  • Test the critical point to see if it yields a maximum or minimum value of the function; use second derivative test (SDT) (or first (FDT)) & also consider endpoints.
  • If needed, find the value of the "other" variable.
  • If needed, calculate the quantity to optimize.
  • State the answer to the question.

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\) 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 0: Let x 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 \(V\) be the volume of the resulting box.

CNX_Calc_Figure_04_07_003.jpeg

Figure \(\PageIndex{3}\): A square with side length x inches is removed from each corner of the piece of cardboard. The remaining flaps are folded to form an open-top box.

Step 1: We are trying to maximize the volume of a box. Therefore, the problem is to maximize \(V\).

Step 2: The volume of a box is \(V=L⋅W⋅H\), where \(L,W,\)and \(H\) are the length, width, and height, respectively.

Step 3: From Figure, 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

\(V(x)=(36−2x)(24−2x)x=4x^3−120x^2+864x\).

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\) 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).\)

Step 4: The derivative is \(V′(x)=12x^2−240x+864.\)

Step 5: 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

\(x=\dfrac{20±\sqrt{(−20)^2−4(1)(72)}}{2}=\dfrac{20±\sqrt{112}}{2}=\dfrac{20±4\sqrt{7}}{2}=10±2\sqrt{7}\).

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}\).

Step 6: SDT: The second derivative is \(V′′(x)=24x−240.\) \(V′′(10-2\sqrt{7})=24(10-2\sqrt{7})−240 =−48\sqrt{7}.\) Since \(V′′(x)<0,\) we have found a maximum.

Step 7: there is no other variable.

Step 8: Therefore, the volume is maximized if we let \(x=10−2\sqrt{7}\) in. The maximum volume is \(V(10−2\sqrt{7})=640+448\sqrt{7}≈1825\) \(in.^3\) as shown in the following graph.

Step 9: ANSWER: Squares with sides of \(10−2\sqrt{7}\) in. should be cut out of the corners to obtain the maximum volume.

CNX_Calc_Figure_04_07_004.jpeg

Figure \(\PageIndex{4}\): Maximizing the volume of the box leads to finding the maximum value of a cubic polynomial.

Watch a video about optimizing the volume of a box.

Suppose the dimensions of the cardboard in Example are 20 in. by 30 in. Let \(x\) be the side length of each square and write the volume of the open-top box as a function of \(x\). Determine the domain of consideration for \(x\).

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 0: Let \(x\) be the distance running and let \(y\) be the distance swimming (Figure). Let \(T\) be the time it takes to get from the cabin to the island.

CNX_Calc_Figure_04_07_011.jpeg

Figure \(\PageIndex{5}\) : How can we choose \(x\) and y to minimize the travel time from the cabin to the island?

Step 1: The problem is to minimize \(T\), the travel time.

Step 2: 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 3: From Figure, 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}\).

From Figure, we see that \(0≤x≤6\). Therefore, \([0,6]\) is the domain of consideration.

Step 4: The derivative is

\[T′(x)=\dfrac{1}{8}−\dfrac{1}{2}\dfrac{[(6−x)^2+4]^{−1/2}}{3}⋅2(6−x)=\dfrac{1}{8}−\dfrac{(6−x)}{3\sqrt{(6−x)^2+4}}\]

Step 5: If \(T′(x)=0,\) then

\[\dfrac{1}{8}=\dfrac{6−x}{3\sqrt{(6−x)^2+4}}\]

\[3\sqrt{(6−x)^2+4}=8(6−x).\]

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,\]

which implies

\[55(6−x)^2=36.\]

We conclude that if \(x\) is a critical point, then \(x\) satisfies

\[(x−6)^2=\dfrac{36}{55}.\]

Therefore, the possibilities for critical points are

\[x=6±\dfrac{6}{\sqrt{55}}.\]

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 an equation to arrive at the possible critical points, it remains to verify that \(x=6−6/\sqrt{55}\) satisfies does satisfy the equation. \(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.

Step 6: Rather than use the Second Derivative Test (which does not look quick to use) we can use the fact that \(T(x)\) is a continuous function over a closed, bounded interval, and thus must have a maximum and a minimum. 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.108h\) and \(T(6)≈1.417\) h, whereas \(T(6−6/\sqrt{55})≈1.368\) h. Therefore, we conclude that \(T\) has a local minimum at \(x≈5.19\) mi.

Step 7 & Step 8: not asked for in this problem.

Step 9: ANSWER: The visitor should run \(6−6/\sqrt{55}\) mi (about \(5.19\) mi) before swimming in order to minimize the time traveled.

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 0: 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 1: The problem is to maximize \(R.\)

Step 2: 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 3: 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

\(R(p)=n×p=(1000−5p)p=−5p^2+1000p.\)

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 4: The derivative is \(R′(p)=−10p+1000.\)

Step 5: Set the derivative equal to zero \(−10p+1000=0\)

Therefore, the critical point is \(p=100\)

Step 6: SDT: \(R′′(p)=−10,\) so \(R′′(100)=−10,\) \(R′′(x)<0,\) we have found a maximum.

When \(p=100, R(100)=$50,000.\)

Checking the endpoints: when \(p=50, R(p)=$37,500\) & when \(p=200, R(p)=$0\). Therefore, the absolute maximum occurs at \(p=$100\). T

Step 9: ANSWER: The car rental company should charge \($100\) per car per day to maximize revenue as shown in the following figure.

CNX_Calc_Figure_04_07_010.jpeg

Figure \(\PageIndex{6}\) : To maximize revenue, a car rental company has to balance the price of a rental against the number of cars people will rent at that price.

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 given by this equation:

\[\dfrac{x^2}{4}+y^2=1.\]

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

Step 0: 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.

CNX_Calc_Figure_04_07_007.jpeg

Figure \(\PageIndex{7}\): We want to maximize the area of a rectangle inscribed in an ellipse.

Step 1: The problem is to maximize the area of the rectangle, \(A\).

Step 2: The area of the rectangle is \(A=LW.\)

Step 3: Let \((x,y)\) be the corner of the rectangle that lies in the first quadrant, as shown in Figure. 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{\dfrac{1−x^2}{4}}\). Therefore, the area is

\(A=LW=(2x)(2y)=4x\sqrt{\dfrac{1−x^2}{4}}=2x\sqrt{4−x^2}\)

From Figure, 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)\).

Step 4: Taking the derivative of \(A(x)\), we obtain

\(A'(x)=2\sqrt{4−x^2}+2x⋅\dfrac{1}{2\sqrt{4−x^2}}(−2x)\)

\(=2\sqrt{4−x^2}−\dfrac{2x^2}{\sqrt{4−x^2}}\)

\(=\dfrac{8−4x^2}{\sqrt{4−x^2}}\).

Step 5: Setting the derivative equal to zero

\(\dfrac{8−4x^2}{\sqrt{4−x^2}}=0\),

then \(x\) must satisfy

\(8−4x^2=0.\)

Therefore, \(x^2=2.\) Thus, \(x=±\sqrt{2}\) are the possible solutions of our equation. 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 our equation. Since \(x=\sqrt{2}\) is a solution of our equation, we conclude that \(\sqrt{2}\) is the only critical point of \(A(x)\) in the interval \((0,2)\).

Step 6: The First Derivative Test might be easier than finding the second derivative. Staying within the domain we get:

____|_______*_________|

0.1 \(\sqrt{2}\) 1.9 indicating we have a maximum at \(x=\sqrt{2}.\)

If you use the SDT, you get \(A''(x)=\dfrac{4x(x^2-6)}{(4−x^2)^{3/2}}\) and \(A''(\sqrt{2})<0\), therefore a maximum at \(x=\sqrt{2}.\)

\(A(x)\) has an absolute maximum at the critical point \(x=\sqrt{2}\).

Step 7: 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}}.\]

length \(L=2x\) and width \(W=2y\), so \(L=2\sqrt{2}\) and \(W=\dfrac{2}{\sqrt{2}}=\sqrt{2}\).

Step 8: The area of this rectangle is\( A=LW=(2\sqrt{2})(\sqrt{2})=4.\)

Step 9: ANSWER: (a) The dimensions of the rectangle to maximize the area are \(L=2\sqrt{2}\) and \(W=\sqrt{2}\).

(b) The maximum area of this rectangle is \(4.\)

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)\).

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 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 0: 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.

CNX_Calc_Figure_04_07_008.jpeg

Figure \(\PageIndex{8}\) : We want to minimize the surface area of a square-based box with a given volume.

Step 1: We need to minimize the surface area, \(S\).

Step 2: 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 3: Since the volume of this box is \(x^2y\) and the volume is given as \(216in.^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(\dfrac{216}{x^2})+x^2.\]

Therefore, \(S(x)=\dfrac{864}{x}+x^2\).

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,∞)\).

Step 4: The derivative is \[S′(x)=−\dfrac{864}{x^2}+2x.\]

Step 5: setting the derivative equal to zero, \(2x=\dfrac{864}{x^2}\). Solving this equation for \(x\), we obtain \(x^3=432\), so \(x=\sqrt[3]{432}=6\sqrt[3]{2}.\)

Step 6: The second derivative is \[S′′(x)=\dfrac{1728}{x^3}+2.\]

\(S′′(6\sqrt[3]{2})>0\) so we have a minimum at \(x=6\sqrt[3]{2}.\)

Since this is the only critical point of \(S\), the absolute minimum must occur at \(x=6\sqrt[3]{2}\)

Step 7: When \(x=6\sqrt[3]{2}\), \(y=\dfrac{216}{(6\sqrt[3]{2})^2}=3\sqrt[3]{2}\).

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}\]

Step 9: ANSWER: (a) The dimensions for the minimum surface area are \(6\sqrt[3]{2}\) in. for the length & width of the base and \(3\sqrt[3]{2}\) in. for the height.

(b) The minimum surface area \(108\sqrt[3]{4}\) \(in.^2\)

(see Figure \(\PageIndex{9}\) ).

CNX_Calc_Figure_04_07_009.jpeg

Figure \(\PageIndex{9}\): We can use a graph to determine the dimensions of a box of given the volume and the minimum surface area.

Consider the same open-top box, which is to have volume \(216\) \(in.^3\). Suppose the cost of the material for the base is \(20¢/in.^2\) and the cost of the material for the sides is \(30¢/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¢/in.^2,\) the cost of that side is \(0.30xy.\)

\(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.

Contributors

Gilbert Strang (MIT) and Edwin “Jed” Herman (Harvey Mudd) with many contributing authors. This content by OpenStax is licensed with a CC-BY-SA-NC 4.0 license. Download for free at http://cnx.org .

IMAGES

  1. How to Solve Optimization Problems Using Matlab

    solving optimization problems homework

  2. how to solve optimization problems in calculus

    solving optimization problems homework

  3. Solving Optimization Problems using Derivatives

    solving optimization problems homework

  4. Steps for Solving Optimization Problems:

    solving optimization problems homework

  5. how to solve optimization problems in calculus

    solving optimization problems homework

  6. Optimization Problems: Introduction and example

    solving optimization problems homework

VIDEO

  1. Homework 2.9 #9

  2. Solving Optimization Problems

  3. Solving Optimization Problems with Mathematica 9-Mar-2022

  4. Day 28: Homework Example #2

  5. Day 28: Homework Example #1

  6. Day 28: Homework Example #1

COMMENTS

  1. 4.7: Optimization Problems

    Step 1: Let x be the side length of the square to be removed from each corner (Figure 4.7.3 ). Then, the remaining four flaps can be folded up to form an open-top box. Let V be the volume of the resulting box. Figure 4.7.3: A square with side length x inches is removed from each corner of the piece of cardboard.

  2. 4.7 Applied Optimization Problems

    Learning Objectives. 4.7.1 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 ...

  3. Optimization (practice)

    Lesson 11: Solving optimization problems. Optimization: sum of squares. Optimization: box volume (Part 1) Optimization: box volume (Part 2) Optimization: profit. ... Learn for free about math, art, computer programming, economics, physics, chemistry, biology, medicine, finance, history, and more. Khan Academy is a nonprofit with the mission of ...

  4. Optimization Problems: Solving Homework Exercises

    Solving optimization problems for Calculus 1 students. Examples include: 1. Minimizing the sum of two numbers given their product2. Maximizing the vertical d...

  5. Calculus I

    Determine the dimensions of the box that will maximize the enclosed volume. Solution. We want to build a box whose base length is 6 times the base width and the box will enclose 20 in 3. The cost of the material of the sides is $3/in 2 and the cost of the top and bottom is $15/in 2. Determine the dimensions of the box that will minimize the cost.

  6. AP Calculus 2024

    Last but not least, interpret results! The dimensions that maximize the area are x = 25 m x = 25 \ m x = 25 m (width) and y = 25 m y = 25 \ m y = 25 m (length). Good job! 👏. 📦 Problem 2: Maximize the Size of a Can A cylindrical can is to be made to contain 1000 π 1000\pi 1000 π cubic centimeters of liquid. Find the dimensions (radius and height) of the can that minimize the amount of ...

  7. Solving Optimization Problems

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

  8. 5.6: Optimization

    This is an example of an optimization problem. However, optimization is not limited to finding a maximum. For example, consider the manufacturer who would like to minimize his costs based on certain criteria. ... This is easily done by solving equation (18) for x. \[x=80-3 y \nonumber \] Next, substitute this result in equation (19) to get \[A ...

  9. Calculus I

    Method 1 : Use the method used in Finding Absolute Extrema. This is the method used in the first example above. Recall that in order to use this method the interval of possible values of the independent variable in the function we are optimizing, let's call it I I, must have finite endpoints. Also, the function we're optimizing (once it's ...

  10. 4.4: Optimization Problems

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

  11. Optimization Problems EXPLAINED with Examples

    Learn how to solve any optimization problem in Calculus 1! This video explains what optimization problems are and a straight forward 5 step process to solve...

  12. Calculus 3.7: Optimization Problems Flashcards

    What is the fifth step to solving optimization problems? If Q has been expressed as a function of more than one variable then find a relationship among the variables and use the equations to eliminate all but one of the variables in order for Q to be as a function of one variable.

  13. 3.6: Applied Optimization Problems

    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, where L, W, and H are the length, width, and height, respectively. Step 4: From Figure 3.6.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.

  14. 5.6 Optimization Problems

    5.6 Optimization Problems . Video Notes Intro to Optimization. Video Notes Optimization Examples. Notes Key. Hw Key.

  15. Calculus I

    Section 4.8 : Optimization. Back to Problem List. 2. Find two positive numbers whose product is 750 and for which the sum of one and 10 times the other is a minimum. Show All Steps Hide All Steps. Start Solution.

  16. A4. Solving Optimization Problems

    general structure of optimization problems (0:46) world's simplest optimization problems (2:09) optimization problems with many control variables (2:51) optimization problems with parameters (4:05) optimization problems with constraints (5:46) example: utility maximization (6:38) example: cost minimization (7:59) famous optimization problems ...

  17. Calculus I

    Section 4.9 : More Optimization. Back to Problem List. 4. An 80 cm piece of wire is cut into two pieces. One piece is bent into an equilateral triangle and the other will be bent into a rectangle with one side 4 times the length of the other side. Determine where, if anywhere, the wire should be cut to maximize the area enclosed by the two ...

  18. 5.6 Solving Optimization Problems HW.pdf

    View Assignment - 5.6 Solving Optimization Problems HW.pdf from MATH CALC at American School of Kuwait. Fatima Solving Optimization Problems Homework 5.6 Michel G. Problems 1 - 9, solve each question

  19. Solved Name 5.6 Solving Optimization Problems Homework Date

    Advanced Math. Advanced Math questions and answers. Name 5.6 Solving Optimization Problems Homework Date Period Problems 1 - 9, solve each question and justify your reasoning. 1. A farmer has 350 feet of fencing to enclose 2 adjacent horse corrals. What dimensions should be used so that the enclosed area will be a maximum?

  20. PDF Notes Steps for Solving Optimization Problems

    5.5 Steps for Solving Optimization Problems STEP 1: Draw a picture and find the equation related to what is being minimized/maximized. STEP 2: Find an equation that relates the unknown variables from the Optimization equation and the given information. STEP 3: Solve the equation in Step 2 for one of the variables and substitute it into the equation in Step 1.

  21. 4.5: Optimization Problems

    Step 2: 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. R = n × p. Step 3: Since the number of cars rented per day is modeled by the linear function n(p) = 1000 − 5p, n ( p) = 1000 − 5 p, the revenue R R can be represented by the function.

  22. 5.10 Introduction to Optimization Problems

    calc_5.10_packet.pdf. File Size: 298 kb. File Type: pdf. Download File. Want to save money on printing? Support us and buy the Calculus workbook with all the packets in one nice spiral bound book. Solution manuals are also available.