# 3.7: Optimization

**At Grade**Created by: CK-12

## Learning Objectives

A student will be able to:

- Use the First and Second Derivative Tests to find absolute maximum and minimum values of a function.
- Use the First and Second Derivative Tests to solve optimization applications.

## Introduction

In this lesson we wish to extend our discussion of extrema and look at the absolute maximum and minimum values of functions. We will then solve some applications using these methods to maximize and minimize functions.

*Absolute Maximum and Minimum*

We begin with an observation about finding absolute maximum and minimum values of functions that are continuous on a closed interval. Suppose that is continuous on a closed interval Recall that we can find relative minima and maxima by identifying the critical numbers of in and then applying the Second Derivative Test. The absolute maximum and minimum must come from either the relative extrema of in or the value of the function at the endpoints, or Hence the absolute maximum or minimum values of a function that is continuous on a closed interval can be found as follows:

- Find the values of for each critical value in ;
- Find the values of the function at the endpoints of ;
- The absolute maximum will be the largest value of the numbers found in 1 and 2; the absolute minimum will be the smallest number.

The optimization problems we will solve will involve a process of maximizing and minimizing functions. Since most problems will involve real applications that one finds in everyday life, we need to discuss how the properties of everyday applications will affect the more theoretical methods we have developed in our analysis. Let’s start with the following example.

**Example 1:**

A company makes high-quality bicycle tires for both recreational and racing riders. The number of tires that the company sells is a function of the price charged and can be modeled by the formula where is the priced charged for each tire in dollars. At what price is the maximum number of tires sold? How many tires will be sold at that maximum price?

**Solution:**

Let’s first look at a graph and make some observations. Set the viewing window ranges on your graphing calculator to for and for The graph should appear as follows:

We first note that since this is a real-life application, we observe that both quantities, and are positive or else the problem makes no sense. These conditions, together with the fact that the zero of is located at suggest that the actual domain of this function is This domain, which we refer to as a ** feasible domain,** illustrates a common feature of optimization problems: that the real-life conditions of the situation under study dictate the domain values. Once we make this observation, we can use our First and Second Derivative Tests and the method for finding absolute maximums and minimums on a closed interval (in this problem, ), to see that the function attains an absolute maximum at at the point So, charging a price of will result in a total of tires being sold.

In addition to the feasible domain issue illustrated in the previous example, many optimization problems involve other issues such as information from multiple sources that we will need to address in order to solve these problems. The next section illustrates this fact.

*Primary and Secondary Equations*

We will often have information from at least two sources that will require us to make some transformations in order to answer the questions we are faced with. To illustrate this, let’s return to our Lesson on Related Rates problems and recall the right circular cone volume problem.

We started with the general volume formula , but quickly realized that we did not have sufficient information to find since we had no information about the radius when the water level was at a particular height. So we needed to employ some indirect reasoning to find a relationship between and , . We then made an appropriate substitution in the original formula and were able to find the solution.

We started with a ** primary equation**, , that involved two variables and provided a general model of the situation. However, in order to solve the problem, we needed to generate a

**, that we then substituted into the primary equation. We will face this same situation in most optimization problems.**

*secondary equation,*Let’s illustrate the situation with an example.

**Example 2:**

Suppose that Mary wishes to make an outdoor rectangular pen for her pet chihuahua. She would like the pen to enclose an area in her backyard with one of the sides of the rectangle made by the side of Mary's house as indicated in the following figure. If she has of fencing to work with, what dimensions of the pen will result in the maximum area?

**Solution:**

The primary equation is the function that models the area of the pen and that we wish to maximize,

The secondary equation comes from the information concerning the fencing Mary has to work with. In particular,

Solving for we have

We now substitute into the primary equation to get

or

It is always helpful to view the graph of the function to be optimized. Set the viewing window ranges on your graphing calculator to for and for The graph should appear as follows:

The feasible domain of this function is which makes sense because if is , then the figure will be two -foot-long fences going away from the house with left for the width, Using our First and Second Derivative Tests and the method for finding absolute maximums and minimums on a closed interval (in this problem, ), we see that the function attains an absolute maximum at at the point So the dimensions of the pen should be ; with those dimensions, the pen will enclose an area of

Recall in the Lesson Related Rates that we solved problems that involved a variety of geometric shapes. Let’s consider a problem about surface areas of cylinders.

**Example 3:**

A certain brand of lemonade sells its product in ounce aluminum cans that hold Find the dimensions of the cylindrical can that will use the least amount of aluminum.

**Solution:**

We need to develop the formula for the surface area of the can. This consists of the top and bottom areas, each and the surface area of the side, (treating the side as a rectangle, the lateral area is (circumference of the top) (height)). Hence the primary equation is

We observe that both our feasible domains require

In order to generate the secondary equation, we note that the volume for a circular cylinder is given by Using the given information we can find a relationship between and . We substitute this value into the primary equation to get , or

when . We note that since Hence we have a minimum surface area when and .

## Lesson Summary

- We used the First and Second Derivative Tests to find absolute maximum and minimum values of a function.
- We used the First and Second Derivative Tests to solve optimization applications.

## Multimedia Links

For video presentations of maximum-minimum Business and Economics applications **(11.0)**, see Math Video Tutorials by James Sousa, Max & Min Apps. w/calculus, Part 1 (9:57)

and Math Video Tutorials by James Sousa, Max & Min Apps. w/calculus, Part 2 (4:51).

To see more examples of worked out problems involving finding minima and maxima on an interval **(11.0)**, see the video at Khan Academy Minimum and Maximum Values on an Interval (11:42).

This video shows the process of applying the first derivative test to problems with no context, just a given function and a domain. A classic problem in calculus involves maximizing the volume of an open box made by cutting squares from a rectangular sheet and folding up the edges. This very cool calculus applet shows one solution to this problem and multiple representations of the problem as well. Calculus Applet on Optimization

## Review Questions

In problems #1–4, find the absolute maximum and absolute minimum values, if they exist.

- on
- on
- on
- on
- Find the dimensions of a rectangle having area whose perimeter is as small as possible.
- Find two numbers whose product is and whose sum is a minimum.
- John is shooting a basketball from half-court. It is approximately from the half court line to the hoop. The function models the basketball’s height above the ground in feet, when it is from the hoop. How many feet from John will the ball reach its highest height? What is that height?
- The height of a model rocket seconds into flight is given by the formula .
- How long will it take for the rocket to attain its maximum height?
- What is the maximum height that the rocket will reach?
- How long will the flight last?

- Show that of all rectangles of a given perimeter, the rectangle with the greatest area is a square.
- Show that of all rectangles of a given area, the rectangle with the smallest perimeter is a square.

## Review Answers

- Absolute minimum at . Absolute maximum at
- Absolute minimum at Absolute maximum at
- Absolute minimum at Absolute maximum at
- Absolute minimum at Absolute maximum at
- At , the basketball will reach a height of .
- The rocket will take approximately to attain its maximum height of . the rocket will hit the ground at .
- Assume that the given perimeter is a constant . Then: , where is the width of the rectangle and is the length. The area of this rectangle is given by . Since we want to maximize the area, we first isolate in the perimeter equation: And then substitute this into the area equation: . To find the maximum of , we then take the derivative of with respect to , set the derivative equal to zero, and solve for and the associated critical value: Which means that: will produce either a max or minimum for the area . We can also take the second derivative of with respect to to determine whether this produces a maximum or a minimum: And this negative value for the second derivative over the entire domain of means that the function A is concave downwards everywhere, which, in turn, means that the function at the point is a maximum. Finally, since we know that: Accordingly, since , we have shown that the dimensions that produce the maximum area are square dimensions.
- Assume that the given area is a constant . Then: , where is the width of the rectangle and is the length. Then the perimeter of this rectangle is given by . Since we want to minimize the perimeter, we first isolate in the area equation: . Substituting this into the perimeter equation we get: . To find the point of minimization of this perimeter function, we take the derivative of this function with respect to and set it to zero and solve for : To find we substitute this value back into the area formula: So we have either a perimeter maximum or a minimum at . To determine which, we look at the second derivative of the perimeter function: . Since we know that the domain of is limited to positive values, then is positive for all values of , and the function is concave upwards everywhere in the domain for , and so produces an absolute minimum for . Accordingly, we have shown that the smallest perimeter is in the shape of a square.