Calculus Optimization Problems with Solutions: A Complete Guide

Calculus Optimization Problems with Solutions: A Complete Guide

Optimization is one of the many applications of derivatives. Optimization helps solve problems involving quantities that need to be made as large or as small as possible. In this guide, we explore calculus optimization problems with solutions, introducing the fundamental concepts and problem-solving strategies needed to tackle a variety of optimization problems.

In this article, we will begin by exploring what optimization is and examining the role of the first and second derivative tests. We will then develop a step-by-step procedure for solving optimization problems, followed by several worked examples. By the end, you will better understand how to approach optimization problems.

Since optimization is an application of derivatives, you may wish to review the article How to Differentiate a Function Step by Step: A Beginner’s Guide before proceeding.

What Is Optimization?

Optimization is the process of finding the maximum or minimum value of a function within a specified domain or subject to a set of constraints, similar to what we did in the article How to Find Intervals of Increase and Decrease: A Step-by-Step Guide.

Differential calculus provides the mathematical tools needed to solve these problems. In particular, derivatives let us analyze how a function changes and identify points where its rate of change is zero or where its derivative is undefined. These points, called critical points, are candidates for maximum and minimum values.

Definition of Optimization

An optimization problem involves finding the largest or smallest value of a function over a given interval or domain.

To solve optimization problems, we can use differential calculus to identify the critical points of the function and determine whether they correspond to maximum or minimum values.

The Role of Derivatives in Optimization

Derivatives play a fundamental role in solving optimization problems because they describe how a function changes as its independent variable changes.

Recall that the first derivative of a function represents the instantaneous rate of change of the function at a given point.

This information allows us to identify important characteristics of a function. For example, if \( f'(x) > 0 \), the function is increasing, if \( f'(x) < 0 \), the function is decreasing, and if \( f'(x)=0 \), the tangent line is horizontal.

A function may change from increasing to decreasing at a local maximum or from decreasing to increasing at a local minimum. Consequently, points where the first derivative equals zero are important when searching for extrema.

However, finding a critical point does not automatically guarantee that it represents a maximum or minimum. Additional analysis is needed to classify the critical point.

Two commonly used techniques are the first-derivative test and the second-derivative test.

The First Derivative Test

The first derivative test determines whether a critical point is a local maximum, a local minimum, or neither by examining the sign of the first derivative on either side of the critical point.

Suppose \( f(x) \) is continuous near a critical point \( x = c \) and differentiable on either side of that point. We can classify the critical point by examining how the sign of \( f'(x) \) changes as \( x \) passes through \( c \).

There are three possible cases:

  • If the first derivative changes from positive to negative, the function changes from increasing to decreasing. Therefore, \( f(c) \) is a local maximum.
  • If the first derivative changes from negative to positive, the function changes from decreasing to increasing. Therefore, \( f(c) \) is a local minimum.
  • If the first derivative does not change sign, the critical point is neither a local maximum nor a local minimum.

The Second Derivative Test

The second derivative test is another method for classifying critical points. Instead of examining sign changes in the first derivative, this test uses the second derivative to determine concavity.

Recall that the second derivative describes how the first derivative changes. It provides information about the concavity of a function:

Suppose \( f'(c) = 0 \). The second derivative test provides the following classifications:

  • If \( f”(c) < 0 \), the function is concave down at the critical point. Therefore, \( f(c) \) is a local maximum.
  • If \( f”(c) > 0 \), the function is concave up at the critical point. Therefore, \( f(c) \) is a local minimum.
  • If \( f”(c) = 0 \), the test cannot determine whether the critical point represents a maximum, minimum, or neither.

To learn more about the second derivative test please refer to the article Concavity of Functions for Beginners: Everything You Need to Know.

Step-by-Step Procedure

Solving optimization problems in calculus involves more than simply differentiating a function and finding its critical points. Many optimization problems are presented as word problems, requiring us to translate a verbal description into mathematical expressions before applying differentiation techniques. This process often involves identifying the quantity to optimize, establishing relationships between variables, and determining any restrictions on possible solutions.

Although optimization problems vary in complexity, they can be approached systematically. The following eight steps provide a general framework for solving optimization problems.

Step 1: Understand the Problem

First, carefully read the problem and identify what it asks us to determine. Pay particular attention to the quantities involved and the conditions that must be satisfied.

Step 2: Identify the Variables and Constraints

Once we understand the problem, the next step is to define the variables and identify any constraints.

Variables represent the unknown quantities in the problem. Constraints are equations or inequalities that describe relationships between these quantities or restrict their possible values.

Step 3: Construct the Function to be Optimized

The function is the mathematical expression representing the quantity we want to maximize or minimize. It should be expressed in terms of a single independent variable.

Step 4: Determine the Domain

Before differentiating the function, we must determine its domain. The domain describes the permissible values of the independent variable based on the conditions of the original problem.

Determining the domain is important because not every solution is meaningful in the context of the original problem.

For optimization problems involving a closed interval, you must also consider the endpoints when searching for absolute maximum and minimum values.

Step 5: Differentiate the Function

Once we have constructed the function to be optimized and determined its domain, we can apply differentiation.

Recall that the first derivative describes the instantaneous rate of change of a function. Critical points occur where the derivative equals zero or does not exist, provided the corresponding input belongs to the domain.

Step 6: Find and Classify Critical Points

Finding a critical point does not automatically establish whether it represents a maximum or minimum. We must determine the behavior of the function around the critical point.

There are two commonly used methods for classifying critical points:

First derivative test

Examine the sign of the first derivative on either side of the critical point. If the derivative changes from positive to negative, the function has a local maximum, if the derivative changes from negative to positive, the function has a local minimum, if the derivative does not change sign, the point is neither a local maximum nor a local minimum.

Second derivative test

Calculate the second derivative and evaluate it at the critical point. If \( f”(c) < 0 \), the function has a local maximum, if \( f”(c) > 0 \), the function has a local minimum, and if \( f”(c) = 0 \), the test is inconclusive.

Step 7: Evaluate the Function at the Critical Points

After classifying the critical points, we must evaluate the function to determine the corresponding maximum or minimum value.

Additionally, when finding absolute extrema over a closed interval, we must also evaluate the function at the endpoints and compare those values with the values at the critical points.

Step 8: Interpret the Results

The final step is to interpret the mathematical results in the context of the original problem.

In the next section, we will apply these steps to several worked examples.

Worked Out Examples

The first example shows how to solve an optimization problem.

Example 1: A rectangle has a perimeter of 40 units. Determine the dimensions that maximize its area.

Solution: The area is given by

$$A = xy.$$

Furthermore, the perimeter is

$$2x + 2y = 40.$$

Subtracting \( 2x \) from both sides we obtain

$$2y = 40 – 2x.$$

Dividing each term by 2, we find

$$y = 20 – x.$$

Substituting into the equation for area gives

$$A = x(20 – x).$$

Differentiating we get

$$A’ = (x(20 – x))’.$$

Distributing this is

$$A’ = (20x – x^2)’.$$

Using the sum rule, we obtain

$$A’ = (20x)’ – (x^2)’.$$

Taking the derivatives, we get

$$A’ = 20 – 2x.$$

Setting the derivative equal to 0, we have

$$0 = 20 – 2x.$$

Adding \( 2x \) to both sides we obtain

$$2x = 20.$$

Dividing both sides by 2, we find

$$x = 10.$$

Differentiating again, we get

$$A” = (20 – 2x)’.$$

Using the sum rule, we obtain

$$A” = (20)’ – (2x)’.$$

Taking the derivatives, we get

$$A” = 0 – 2.$$

Subtracting gives

$$A” = –2.$$

Plugging in \( x = 10 \) we find

$$A”(10) = –2.$$

Hence, \( x = 10 \) corresponds to a maximum, and y is

$$y = 20 – 10.$$

Subtracting gives

$$y = 10.$$

The final dimensions that maximize the area are then

$$5\text{ units} \times 5\text{ units}.$$

The next example uses multiple constraints.

Example 2: A rectangular piece of cardboard measuring 20 inches by 30 inches has identical squares cut from each corner. The sides are folded upward to create an open-top box. Determine the dimensions of the squares that maximize the volume of the box.

Solution: The volume is given by

$$V = lwh.$$

Furthermore, the length, width, and height are respectively

$$l = 20 – 2x,$$

$$w = 30 – 2x,$$

and

$$h = x,$$

Substituting into the equation for volume gives

$$V = x(20 – 2x)(30 – 2x).$$

Differentiating we get

$$V’ = (x(20 – 2x)(30 – 2x))’.$$

Multiplying we find

$$V’ = (x(600 – 40x – 60x + 4x^2))’.$$

This simplifies to

$$V’ = (x(600 – 100x + 4x^2))’.$$

Distributing this is

$$V’ = (600x – 100x^2 + 4x^3)’.$$

Using the sum rule, we obtain

$$V’ = (600x)’ – (100x^2)’ + (4x^3)’.$$

Taking the derivatives, we get

$$V’ = 600 – 200x + 12x^2.$$

Setting the derivative equal to 0, we have

$$0 = 600 – 200x + 12x^2.$$

By the quadratic formula, our solution is

$$x = \frac{-(-200) \pm \sqrt{(-200)^2 – 4(12)(600)}}{2(12)}.$$

Squaring we find

$$x = \frac{-(-200) \pm \sqrt{40000 – 4(12)(600)}}{2(12)}.$$

Multiplying gives

$$x = \frac{200 \pm \sqrt{(40000 – 28800}}{24}.$$

Subtracting we obtain

$$x = \frac{200 \pm \sqrt{11200}}{24}.$$

Simplifying the square root, we get

$$x = \frac{200 \pm 40\sqrt{7}}{24}.$$

Factoring 8 out of the numerator gives

$$x = \frac{8(25 \pm 5\sqrt{7})}{24}.$$

Simplifying this is

$$x = \frac{25 \pm 5\sqrt{7}}{3}.$$

In the context of the problem, only the solution with the minus sign makes sense, so

$$x = \frac{25 – 5\sqrt{7}}{3}.$$

Differentiating again, we get

$$V” = (600 – 200x + 12x^2)’.$$

Using the sum rule, we obtain

$$V” = (600)’ – (200x)’ + (12x^2).$$

Taking the derivatives, we get

$$V” = 0 – 200 + 24x.$$

Adding and subtracting gives

$$V” = –200 + 24x.$$

Plugging in \( x = \frac{25 – 5\sqrt{7}}{3} \) we find

$$v”(\frac{25 – 5\sqrt{7}}{3}) = –200 + 24(\frac{25 – 5\sqrt{7}}{3}).$$

Simplifying this is

$$v”(\frac{25 – 5\sqrt{7}}{3}) = –200 + 8(25 – 5\sqrt{7}).$$

Distributing we get

$$v”(\frac{25 – 5\sqrt{7}}{3}) = –200 + 200 – 40\sqrt{7}).$$

This is equivalent to

$$v”(\frac{25 – 5\sqrt{7}}{3}) = -40\sqrt{7}).$$

Hence, \( x = \frac{25 – 5\sqrt{7}}{3} \) corresponds to a maximum, and the final dimensions of the square cuts that maximize volume are

$$\frac{25 – 5\sqrt{7}}{3}\text{ inches} \times \frac{25 – 5\sqrt{7}}{3}\text{ inches}.$$

Our final example has two solutions.

Example 3: Find the point on the parabola \( y = x^2 \) that is closest to the point \( ( 0,3 ) \).

Solution: The distance is given by

$$d = \sqrt{(x- 0)^2 + (x^2 – 3)^2}.$$

Simplifying this is

$$d = \sqrt{x^2 + (x^2 – 3)^2}.$$

Expanding we get

$$d = \sqrt{x^2 + x^4 – 6x^2 + 9}.$$

This is equivalent to

$$d = \sqrt{x^4 – 5x^2 + 9}.$$

Differentiating we get

$$d’ = (\sqrt{x^4 – 5x^2 + 9})’.$$

In terms of fractional exponents, this is

$$d’ = ((x^4 – 5x^2 + 9)^{\frac{1}{2}})’.$$

By the chain rule, this is

$$d’ = \frac{1}{2}(x^4 – 5x^2 + 9)'(x^4 – 5x^2 + 9)^{-\frac{1}{2}}.$$

Using the sum rule, we obtain

$$d’ = \frac{1}{2}((x^4)’ – (5x^2)’ + (9)’)(x^4 – 5x^2 + 9)^{-\frac{1}{2}}.$$

Taking the derivatives, we get

$$d’ = \frac{1}{2}(4x^3 – 10x + 0)(x^4 – 5x^2 + 9)^{-\frac{1}{2}}.$$

Adding and subtracting gives

$$d’ = \frac{1}{2}(4x^3 – 10x)(x^4 – 5x^2 + 9)^{-\frac{1}{2}}.$$

Setting the derivative equal to 0, we have

$$0 = \frac{1}{2}(4x^3 – 10x)(x^4 – 5x^2 + 9)^{-\frac{1}{2}}.$$

Multiplying both side by \( \frac{2}{(x^4 – 5x^2 + 9)^{-\frac{1}{2}}} \) we obtain

$$0 = 4x^3 – 10x.$$

Factoring we find

$$0 = x(4x^2 – 10).$$

Applying the zero factor property gives

$$x = 0, 4x^2 – 10 = 0.$$

Adding 10 to both sides of the second equation, we get

$$x = 0, 4x^2 = 10.$$

Which implies

$$x = 0, x^2 = \frac{10}{4}.$$

Therefore

$$x = 0, x = \pm\frac{\sqrt{10}}{2}.$$

Evaluating the distance formula at \( x = 0 \) gives

$$d = \sqrt{0^2 + (0^2 – 3)^2}.$$

Squaring we get

$$d = \sqrt{0 + (0 – 3)^2}.$$

Subtracting we obtain

$$d = \sqrt{0 + (–3)^2}.$$

Squaring this is

$$d = \sqrt{0 + 9}.$$

Adding then gives

$$d = \sqrt{9}.$$

Taking the square root, we find

$$d = 3.$$

Evaluating the distance formula at \( \frac{\sqrt{10}}{2} \) gives

$$d = \sqrt{(\frac{\sqrt{10}}{2})^2 + ((\frac{\sqrt{10}}{2})^2 – 3)^2}.$$

Squaring we get

$$d = \sqrt{\frac{10}{4} + (\frac{10}{4} – 3)^2}.$$

Obtaining a common denominator, we get

$$d = \sqrt{\frac{10}{4} + (\frac{10}{4} – \frac{12}{4})^2}.$$

Subtracting we obtain

$$d = \sqrt{\frac{10}{4} + (-\frac{2}{4})^2}.$$

Simplifying gives

$$d = \sqrt{\frac{10}{4} + (-\frac{1}{2})^2}.$$

Squaring this is

$$d = \sqrt{\frac{10}{4} + \frac{1}{4}}.$$

Adding then gives

$$d = \sqrt{\frac{11}{4}}.$$

Taking the square root, we find

$$d = \frac{\sqrt{11}}{2}.$$

Evaluating the distance formula at \( -\frac{\sqrt{10}}{2} \) gives

$$d = \sqrt{(-\frac{\sqrt{10}}{2})^2 + ((-\frac{\sqrt{10}}{2})^2 – 3)^2}.$$

Squaring we get

$$d = \sqrt{\frac{10}{4} + (\frac{10}{4} – 3)^2}.$$

Obtaining a common denominator, we get

$$d = \sqrt{\frac{10}{4} + (\frac{10}{4} – \frac{12}{4})^2}.$$

Subtracting we obtain

$$d = \sqrt{\frac{10}{4} + (-\frac{2}{4})^2}.$$

Simplifying gives

$$d = \sqrt{\frac{10}{4} + (-\frac{1}{2})^2}.$$

Squaring this is

$$d = \sqrt{\frac{10}{4} + \frac{1}{4}}.$$

Adding then gives

$$d = \sqrt{\frac{11}{4}}.$$

Taking the square root, we find

$$d = \frac{\sqrt{11}}{2}.$$

Hence, \( x = -\frac{\sqrt{10}}{2} \) and \( x = \frac{\sqrt{10}}{2} \) corresponds to the points on the parabola \( y = x^2 \) closest to \( ( 0,3 ) \). The first y value is

$$y = (-\frac{\sqrt{10}}{2})^2.$$

Squaring gives

$$y = \frac{10}{4}.$$

Simplifying we get

$$y = \frac{5}{2}.$$

The second y value is

$$y = (\frac{\sqrt{10}}{2})^2.$$

Squaring gives

$$y = \frac{10}{4}.$$

Simplifying we get

$$y = \frac{5}{2}.$$

The final points are then

$$(-\frac{\sqrt{10}}{2}, \frac{5}{2}), (\frac{\sqrt{10}}{2}, \frac{5}{2}).$$

Conclusion

Optimization is an application of differential calculus that allows us to solve problems involving quantities that need to be maximized or minimized. In this guide, we explored the fundamental concepts of optimization, including constraints and critical points. We also examined how the first and second derivative tests identify and classify local maximum and minimum values. Lastly, the worked calculus optimization problems with solutions presented in this article illustrated how to apply these techniques to different situations.

Further Reading

Step by Step Guide to Related Rates in Calculus With Worked Examples – Learn how to solve related rates problems by using implicit differentiation to determine how the rates of change of related quantities are connected.

Frequently Asked Questions

Constraints establish relationships between variables and restrict the possible solutions of an optimization problem. They let us express multiple variables in terms of a single independent variable, making it possible to construct a function we can analyze using differentiation.

The second derivative test is inconclusive when the second derivative equals zero at a stationary point. This does not necessarily mean that the function has no maximum or minimum at that point. Instead, we can use the first derivative test to examine whether the function changes from increasing to decreasing or vice versa.

Support The Math Perimeter

If you enjoyed this article, please consider supporting The Math Perimeter on Buy Me a Coffee, so I can keep making more content like it.