Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Chapter 10: Differentiation

Differentiation is the process of finding the derivative of a function, which tells us the slope of the function at a single point on its graph.

In Chapter 4, we defined slope in the context of a linear function. To extend this concept to more general functions, we first define secant lines (slopes over an interval) and then tangent lines (slopes at a single point). These ideas allow us to quantify how a function changes.

Secant & Tangent Lines

Curve with a secant line through two points on the graph.
Figure 10.1. A secant line approximates the slope of a curve over an interval.

The slope of a secant line to a function at a point gives an average rate of change of a function between and a nearby point.

To compute it, we pick a value of close to , say (where ), and draw a line through the points , and . The slope of this line is:

Definition: Slope of a Secant Line

Let be a function defined on an interval containing . If and , the slope of the secant line is:

This expression is also called the difference quotient.

Example: Slope of a Secant Line

This computation turns the geometric idea of a secant line into an average rate of change.

Find the slope of the secant line to the graph of between and .

The two points on the graph are

Thus, the secant slope is

This value is the average rate of change of on the interval from to .

Definition: Tangent Line

Let be a function defined in an open interval containing . The tangent line to at is the line passing through with slope:

provided this limit exists.

Example: Tangent Slope for a Square Root Function

To find a tangent slope, we let the second point move toward the first using the limit definition.

Find the slope of the tangent line to the graph of at .

The Derivative of a Function

Definition: The Derivative of a Function

Let be a function. The derivative of at is:

provided the limit exists. If the limit exists for all , we say that is differentiable on .

Note that instead of writing , we can also write or . All three expressions denote the derivative of with respect to .

The prime notation is concise and often used in basic calculus or when the variable is clear from context.

The Leibniz notation , on the other hand, emphasizes the operation of differentiation and explicitly indicates the variable, making it useful in contexts with, e.g., several variables or when applying rules like the chain rule.

Example: The Derivative of a Linear Function

Consider the linear function . For any , we compute the derivative of the function as follows:

This makes sense, as a linear function is a straight line with constant slope.

Example: The Derivative of a Quadratic Function

Consider the quadratic function , for any . We compute the derivative of the function, using the limit laws, as follows:

Common Derivatives

Rules: Common Derivatives

Below is a table of some of the most frequently used derivatives. Here , , , and the power rule is applied at points where is real-valued and differentiable. In particular, the rule holds for every real when , and nonzero integer powers can be used on their usual domains. The case is covered by the constant rule. The trigonometric rules assume that angles are measured in radians.

Table 10.1. Common derivative rules.

Function Derivative Notes
Constant rule
Power rule, on its differentiable domain
-
-
-

Common Differentiation Rules

Rules: Differentiating Combinations of Functions

Just like for limits, there are certain rules that we can apply when differentiating functions. In this context, let and be differentiable functions on an interval. For the quotient rule, we additionally require at the point under consideration. The following rules then hold:

Table 10.2. Rules for differentiating combinations of functions.

RuleFormulaName
Sum/DifferenceSum/Difference Rule
ProductProduct Rule
QuotientQuotient Rule
Constant MultipleConstant Multiple Rule

Example: Applying the Product Rule

Here is how the derivative table combines with the product rule in a concrete calculation.

Using the rules in the table, compute the derivative of the function .

Letting and , we get and . Following the order in the product rule gives

Expanding the final expression returns the previous line, which checks the factorization.

Example: Product and Quotient Rules

This example applies the product and quotient rules to the same pair of functions so that the two calculations can be compared directly.

Let

Their derivatives are

First, apply the product rule while keeping and separate:

Next, apply the quotient rule. Since , the quotient is defined only when :

Thus, the derivative of the quotient is at every point in its domain. The simplification does not define the original quotient or its derivative at .

The Chain Rule

We have seen the techniques for differentiating basic functions as well as sums, differences, products, quotients, and constant multiples of these functions. However, these techniques do not allow us to differentiate compositions of functions. In this section, we study the rule for finding the derivative of the composition of two or more functions.

Rule: The Chain Rule

Function composition diagram showing the mappings from the domain through an intermediate set to the codomain.
Figure 10.2. Function composition: the output of becomes the input of .

Let and be functions such that:

  • is differentiable at
  • is differentiable at

For the composite function:

the derivative is then defined as:

Method: Applying the Chain Rule

To differentiate , follow the steps:

  1. Identify the outer function and the inner function
  2. Differentiate with respect to its argument to get
  3. Evaluate by substituting into
  4. Differentiate with respect to its argument to get
  5. Compute as

Example: Differentiating a Square of Sine

For this composition, identify the outer square and the inner sine function before applying the chain rule.

Differentiate .

To do so, we let:

  • The outer function be , so
  • The inner function be , so

Applying the Chain Rule, we then get:

Example: Differentiating an Exponential Composite Function

Here the exponent contains a polynomial, so the exponential function is the outer function.

Differentiate .

To do so, we let:

  • The outer function be , so .
  • The inner function be , so .

Applying the Chain Rule, we then get:

Finding Extrema

In this section, we focus on an important application of derivatives: finding maxima and minima of functions.

Definitions: Local Minima and Maxima

These terms describe extreme values near a point.

Let be defined on a domain containing .

Local minimum. The value is a local minimum if there is an open interval around such that for all points in that interval that also belong to the domain.

Local maximum. The value is a local maximum if there is an open interval around such that for all points in that interval that also belong to the domain.

By contrast, is an absolute minimum or absolute maximum on an interval if the corresponding inequality holds for every . Local and absolute maxima and minima are collectively called extrema.

Theorem: The Extreme Value Theorem

Let be a continuous function defined on a closed, bounded interval . Then has both an absolute maximum and an absolute minimum value on .

The Turning Point of a Quadratic Function

Recall from Chapter 4 that a turning point of a graph is a point at which the graph changes direction from increasing to decreasing or vice versa. For a quadratic function, this point is also called the vertex. If with , the turning point is:

We will later see how to derive this point by setting the first derivative of the function to zero and solving for (i.e., ).

For , with discriminant , the turning point is:

Since , the parabola opens upwards, and the turning point is the minimum point. This can also be confirmed by inspecting the graph.

Derivatives & Local Extrema

The derivative measures the slope of the tangent line at . If is differentiable at an interior input and has a local maximum or minimum there, then

This result is sometimes called Fermat's theorem. An interior number in the domain is called a critical number if or does not exist. If exists, the corresponding graph point is called a critical point. Critical numbers are candidates for extrema, but they need not actually produce extrema. Endpoints must also be considered when finding absolute extrema on a closed interval.

Two generic smooth curves showing a local maximum and local minimum, each with a horizontal tangent at x zero.
Figure 10.3. At smooth local extrema, the tangent line is horizontal, so the derivative is zero.

To classify critical numbers, we can use the so-called first derivative sign test or second derivative test.

Test: The First Derivative Sign Test

Let be an interior number in the domain. Assume that is continuous at and differentiable on intervals immediately to the left and right of .

  • If changes from positive to negative at , then has a local maximum there.
  • If changes from negative to positive at , then has a local minimum there.
  • If is positive on both sides of , or negative on both sides, then has no local extremum there.

If is zero throughout part of a neighboring interval, this simple sign test may be inconclusive. The behavior on the flat interval should then be checked directly from the definition of a local extremum.

Test: The Second Derivative Test

Suppose that . If exists, then

  • If we have a local minimum
  • If we have a local maximum
  • If , the test gives no information

If does not exist, the test does not apply.

Method: Finding Local Extrema

To find local extrema using derivatives:

  1. Compute the first derivative .
  2. Find the critical numbers in the domain, where or where is undefined.
  3. Use the first derivative sign test or, when applicable, the second derivative test to classify each critical number.
  4. Substitute each classified critical number into to find the corresponding function value.

If is continuous on a closed interval , it has absolute extrema on that interval. Find all critical numbers in , evaluate at those numbers and at the endpoints, and then compare the values. The largest is the absolute maximum and the smallest is the absolute minimum. If is not continuous on , this candidate comparison is not sufficient without further analysis.

Warning: Critical Numbers Are Candidates

The equation identifies candidates, not guaranteed extrema. A derivative may equal zero without changing from increasing to decreasing or vice versa. Likewise, an extremum can occur at an endpoint or at an input where the derivative does not exist.

Example: Finding Local Maxima and Minima

The derivative tests turn this optimization question into finding and classifying critical numbers.

Find the local maxima and minima of the function .

We differentiate and obtain

In order to find the critical numbers where , we solve the quadratic equation . The discriminant is and the roots are thus

Differentiating once again, we obtain

and by calculation, and . Thus, has a local maximum at and a local minimum at . The corresponding critical points are and .

A plot of the cubic function with its local maximum and local minimum marked.
Figure 10.4. The critical numbers found from correspond to a local maximum point and a local minimum point on the graph.