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

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 an earlier chapter, we defined the 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

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

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

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 Line

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.

Note that instead of writing we sometimes write or , i.e., these expressions are equivalent, but ...

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

Below is a table of some of the most frequently used derivatives. Here , , and .

Function Derivative Notes
Constant rule
Power rule
-
-
-

Example: ...

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

Letting and , we get from the table of derivatives that and . The product rule then gives

Common Differentiation Rules

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, with . The following rules then hold:

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

Example:

Differentiate the functions , , and consider the derivative of the product and the quotient , without performing algebraic manipulations until the very end.

We already know that

Now, computing the product, we get:

For the quotient, where we assume , as otherwise would be zero, we get:

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.

Definition: The Chain Rule

Let and be functions such that:

  • is differentiable at
  • is differentiable at

For the composite function:

the derivative is then defined as:

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

Definition:

Differentiate .

To do so, we let:

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

Applying the Chain Rule, we then get:

Example:

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.

Definition: Local Minima and Maxima

Let be defined on an interval containing , then:

  • is the minimum of on if for all
  • is the maximum of on if for all

The maximum and minimum values are the extreme values, or extrema, of on .

Definition: The Extreme Value Theorem

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

The Turning Point of a Quadratic Function

Recall from earlier, a turning point (or tipping point) of a graph is a point at which the graph changes direction from increasing to decreasing or vice versa. For a quadratic formula, the formula for the turning point is:

We will later see how to find 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 a minimum. This can also be confirmed by inspecting the graph.

Derivatives & Local Extrema

The derivative measures the slope of the tangent line at . At a local maximum or minimum, the tangent line is horizontal, meaning:

Such points are also called critical points.

Definition: The Second Derivative Test

Let be a 2-times differentiable function and a point such that . Then

  • If we have a local minimum
  • If we have a local maximum
  • If or doesn't exist, the test gives no information

Example: Finding Local Maxima and Minima

Find the local maxima and minima of the function .

We differentiate and obtain

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

Differentiating once again, we obtain

and by calculation, and . We can compute the coordinates ,

Chapter Exercises