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:
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.
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.
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 ...
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.
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 | ||
| - | ||
| - | ||
| - |
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:
| Rule | Formula | Name |
|---|---|---|
| Sum/Difference | Sum/Difference Rule | |
| Product | Product Rule | |
| Quotient | Quotient Rule | |
| Constant Multiple | Constant Multiple Rule |
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.
Let and be functions such that:
- is differentiable at
- is differentiable at
For the composite function:
the derivative is then defined as:
To differentiate , follow the steps:
- Identify the outer function and the inner function
- Differentiate with respect to its argument to get
- Evaluate by substituting into
- Differentiate with respect to its argument to get
- Compute as
Differentiate .
To do so, we let:
- The outer function be , so
- The inner function be , so
Applying the Chain Rule, we then get:
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.
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 .
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.
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
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 ,