Eroxl's Notes
Optimization Using Derivatives

Derivatives can be used as a tool for maximizing or minimizing the output of a function.

Steps

  1. Draw an appropriate figure and label the quantities relevant to the problem. These quantities usually take the form of multiple variables.
  2. Find a formula for the quantity to be maximized or minimized.
  3. Express the formula that is being maximized or minimized as a function of a single variable. This step usually requires rearranging the equations in step #1.
  4. Find the interval of possible values for this variable from the physical restrictions in the problem.
  5. Use calculus techniques to obtain the absolute maximum or minimum.

Techniques

First Derivative Test

The first derivative test is a method for finding local extrema of a function at a critical point.

The first derivative test is performed by checking the first derivative right before the point being checked and right after. If the derivative switches from positive to negative there is a local maximum there, alternatively if the derivative switches from negative to positive there is a local minimum there. If the sign of the derivative stays the same there is no extrema at that point.

Example

Given the function find the local minimum(s) and local maximum(s) over the interval

Y axisX axis000.20.20.40.40.60.60.80.855Expression 1Expression 2Expression 3Expression 4

is shown in blue, with critical points shown as red dots. Additionally the derivative of is also shown in green.

0
Decreasing Minimum Increasing Maximum Decreasing
Note

Tables like the example above are a good way of finding all the local extrema on an interval.

There are 2 local extrema, 1 local minimum at and 1 local maximum at .

Second Derivative Test

The second derivative test is a method for potentially finding local extrema of a function at a critical point. The second derivative test can sometimes be inconclusive in which case the first derivative test must be used.

The second derivative test is performed by checking the second derivative at a critical point.

The test can result in 3 different cases

Example

Given the function find the local minimum(s) and local maximum(s) over the interval

Y axisX axis000.20.20.40.40.60.60.80.855Expression 1Expression 2Expression 3

is shown in blue, with critical points shown as red dots.

There are 2 local extrema, 1 local minimum at and 1 local maximum at .

Because neither of these second derivatives were 0 we know that the second derivative test was conclusive so we don't need to use the first derivative test.