Skip to main content

Section 2.2 The Derivative Function

Recall that a line has constant slope, and for a general function, its slope can vary at different points. In this way, the slope of a function \(f\) is itself a function of \(x\text{,}\) called the derivative of \(f\text{.}\)

Subsection 2.2.1 The Derivative

Definition 2.2.1.

Let \(f\) be a function. The derivative of \(f\text{,}\) denoted by \(f'\text{,}\) is another function, defined by,
\begin{equation*} \boxed{f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}} \end{equation*}
The domain of \(f'\) is all values of \(x\) where the limit in \(h\) exists (as a real number). If \(f'(x)\) exists, then we say that \(f\) is differentiable at \(x\text{.}\) Otherwise, \(f\) is non-differentiable at \(x\text{.}\)
  • The action of determining the derivative of a function is often called “taking the derivative” or “differentiating”.
  • The derivative \(f'\) is read as “\(f\) prime” and “\(f'(x)\)” as “\(f\) prime of \(x\)”.
The derivative of \(f\) is a function whose outputs are the slopes of \(f\text{.}\) Intuitively, the outputs for the derivative of a function come from evaluating the associated limit \(\lim_{h \to 0} \frac{f(x + h) - f(x)}{h}\) for each value of \(x\) in the domain of \(f\text{,}\) and plotting the results. Consider this Desmos applet for the derivative 1 . In other words,
\begin{equation*} \boxed{\text{The output $f'(x)$ at a particular value of $x$ represents the slope of the tangent line of $f$ at $x$}} \end{equation*}

Subsection 2.2.2 Equivalent Formulation of the Tangent Slope

There is an alternate notation that is equivalent, which is,
\begin{equation*} \boxed{f'(a) = \lim_{x \to a} \frac{f(x) - f(a)}{x - a}} \end{equation*}
An equivalent limit is,
\begin{equation*} \boxed{\lim_{x \to x_0} \frac{f(x) - f(x_0)}{x - x_0} = m} \end{equation*}
For this limit, \(\frac{f(x) - f(x_0)}{x - x_0}\) represents the slope of the secant line between the fixed point \((x_0,f(x_0))\) and the arbitrary point \((x,f(x))\text{.}\) The slope \(m\) of the tangent line is the limit of this slope as the arbitrary point approaches the fixed point. Taking the limit as the difference \(h\) between the two points approaches 0, is equivalent to taking the limit as one point \(x\) approaches the other point \(a\text{.}\) More precisely, the limits are equivalent in that substituting \(h = x - x_0\) into the first limit, we have that as \(h \to 0\text{,}\) \(x \to x_0\text{,}\) which results in the second limit.

Subsection 2.2.3 Graphical Differentiation

Consider this GeoGebra applet 2 , which helps to visualize the graph of the derivative as a function which is derived from the original function.

Subsection 2.2.4 Tangent Line and Derivatives

The value of the derivative function \(f'\) at a point \(x_0\) is the number \(f'(x_0)\text{,}\) given by,
\begin{equation*} f'(x_0) = \lim_{h \to 0} \frac{f(x_0 + h) - f(x_0)}{h} \end{equation*}
which represents the slope of the graph at \(x_0\text{,}\) i.e. the slope of the tangent line of the graph \(y = f(x)\) at \(x_0\text{.}\) In other words, the derivative is a function whose outputs are slopes. Using derivative notation, the tangent line to the graph \(y = f(x)\) at \((x_0, f(x_0))\) is,
\begin{equation*} y = f'(x_0)(x - x_0) + f(x_0) \end{equation*}
The equation of this line can be written in the familiar slope-intercept form,
\begin{equation*} y = \underbrace{f'(x_0)}_m x + \underbrace{f(x_0) - x_0 f'(x_0)}_{b} \end{equation*}
and so is of the form \(y = mx + b\) where \(m = f'(x_0)\) and \(b = f(x_0) - x_0 f'(x_0)\text{.}\) The key question here is how to determine the derivative \(f'(x_0)\text{.}\)
In particular, notice that \(f'(x) = 0\) precisely when \(f\) has a horizontal tangent line at \(x\text{.}\)

Subsection 2.2.5 Derivative of Some Basic Functions

A constant function \(f(x) = k\) is a horizontal line, which has slope 0, so we would expect that its derivative would be 0.
\begin{align*} f'(x) \amp = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h} \amp\amp \text{by definition of derivative}\\ \amp = \lim_{h \to 0} \frac{k - k}{h} \amp\amp \text{as $f(x + k) = f(x) = k$}\\ \amp = \lim_{h \to 0} \frac{0}{h}\\ \amp = \lim_{h \to 0} 0\\ \amp = 0 \end{align*}
Recall that linear functions have constant slope. In this way we expect that the derivative of a line is constant. In general, the slope of a line \(f(x) = mx + b\) is \(m\text{.}\)
\begin{align*} f'(x) \amp = \lim_{h \to 0} \frac{m(x + h) + b - (mx + b)}{h}\\ \amp = \lim_{h \to 0} \frac{mh}{h}\\ \amp = \lim_{h \to 0} m\\ \amp = m \end{align*}
Again, here, the difference quotient simplifies to the constant \(m\text{,}\) because the slope does not depend on \(h\text{.}\)
The previous two examples are somewhat trivial, because the functions were linear, and so their slopes were constant.

Subsection 2.2.6 Determining Derivatives Using the Definition

Consider the limit involved in the definition of the derivative,
\begin{equation*} \lim_{h \to 0} \frac{f(x + h) - f(x)}{h} \end{equation*}
This limit cannot be evaluated immediately, because substituting \(h = 0\) results in an expression of the form \(\frac{0}{0}\text{,}\) which is an indeterminate form. In this way, evaluating the limit requires manipulating the difference quotient into a different form. This is the most important step, and it can be easy or challenging depending on the function \(f\text{.}\) In summary, to determine the derivative using the limit definition,
  1. Write down and evaluate the definition,
    \begin{equation*} \lim_{h \to 0} \frac{f(x + h) - f(x)}{h} \end{equation*}
    for the particular function \(f\text{,}\) using the formula for \(f\text{.}\)
  2. Algebraically manipulate the difference quotient to a form which allows the limit to be evaluated. This is the most difficult step, and the techniques required depends on the type of function.
  3. Evaluate the limit as \(h \to 0\text{.}\) This will always involve simply substituting \(h = 0\text{.}\)
For the first few examples, it will involve cancelling a common factor of \(h\) from the numerator and denominator.

Subsection 2.2.7 Derivative of Some More Basic Functions

For functions which are non-linear, the definition of derivative becomes more clear.
Consider the derivative of \(f(x) = x^2\text{.}\) Recall that we previously computed the slope of the tangent line of this function at \(x = 1\text{,}\) in Subsection 1.2.2. Here, we can compute the slope at an arbitrary value of \(x\text{,}\) which is the derivative.
\begin{align*} f'(x) \amp = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}\\ \amp = \lim_{h \to 0} \frac{(x + h)^2 - x^2}{h}\\ \amp = \lim_{h \to 0} \frac{(x^2 + 2xh + h^2) - x^2}{h}\\ \amp = \lim_{h \to 0} \frac{2xh + h^2}{h}\\ \amp = \lim_{h \to 0} (2x + h)\\ f'(x) \amp = 2x \end{align*}
There is a nice visualization for this derivative. Let \(y = x^2\) represent the area of a square with side length \(x\text{.}\) Then, for some small increment \(\Delta x\text{,}\) the added area is \(\Delta y = 2x \Delta x + (\Delta x)^2\text{.}\) Then,
\begin{align*} \frac{\Delta y}{\Delta x} \amp = \frac{2x \Delta x + (\Delta x)^2}{\Delta x}\\ \amp = 2x + \Delta x \end{align*}
Then, as \(\Delta x \to 0\text{,}\) we get,
\begin{equation*} \frac{dy}{dx} = 2x \end{equation*}
Consider the derivative of \(f(x) = \frac{1}{x}\text{,}\)
\begin{align*} f'(x) \amp = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}\\ \amp = \lim_{h \to 0} \frac{\frac{1}{x + h} - \frac{1}{x}}{h} \end{align*}
To simplify this difference quotient, we first write this complex fraction as a single fraction, by clearing denominators, by multiplying numerator and denominator by \(x(x+h)\text{,}\)
\begin{align*} \amp = \lim_{h \to 0} \frac{\frac{1}{x + h} - \frac{1}{x}}{h} \cdot \frac{x(x + h)}{x(x + h)}\\ \amp = \lim_{h \to 0} \frac{x - (x + h)}{hx(x + h)}\\ \amp = \lim_{h \to 0} -\frac{h}{hx(x + h)}\\ \amp = \lim_{h \to 0} -\frac{1}{x(x + h)}\\ \amp = -\frac{1}{x^2} \end{align*}
In particular, notice that \(f'(x) \lt 0\) for all \(x \neq 0\text{,}\) and as \(x \to \infty\text{,}\) \(f'(x) \to 0\text{,}\) the slope of the tangents becomes less steep.
Consider the derivative of \(f(x) = \sqrt{x}\text{,}\)
\begin{align*} f'(x) \amp = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}\\ \amp = \lim_{h \to 0} \frac{\sqrt{x + h} - \sqrt{x}}{h} \end{align*}
Then, the goal is to cancel the factor of \(h\) in the denominator. It turns out that the correct next algebraic step is a technique called rationalizing the numerator. You may recall rationalizing the denominator, which involves multiplying numerator and denominator in order to eliminate a square root in the denominator. Here, we can use a similar technique with the goal of removing the square roots in the numerator. In this case, we multiply by the conjugate of the numerator, which is \(\sqrt{x + h} + \sqrt{x}\text{,}\)
\begin{align*} \amp = \lim_{h \to 0} \frac{\sqrt{x + h} - \sqrt{x}}{h} \cdot \frac{\sqrt{x + h} + \sqrt{x}}{\sqrt{x + h} + \sqrt{x}}\\ \amp = \lim_{h \to 0} \frac{(x + h) - x}{h(\sqrt{x + h} + \sqrt{x})}\\ \amp = \lim_{h \to 0} \frac{h}{h(\sqrt{x + h} + \sqrt{x})}\\ \amp = \lim_{h \to 0} \frac{1}{\sqrt{x + h} + \sqrt{x}} \amp\amp \text{cancelling the common factor of $h$}\\ \amp = \frac{1}{\sqrt{x} + \sqrt{x}}\\ \amp = \frac{1}{2\sqrt{x}} \end{align*}
Notice that while \(f(x) = \sqrt{x}\) is defined on \([0,\infty)\text{,}\) its derivative \(f'(x)\) is only differentiable on \((0,\infty)\text{.}\) In particular, \(f\) is not differentiable at \(x = 0\text{.}\)

Subsection 2.2.8 Derivative Notation

The notation \(f'\) to denote the derivative, called prime notation, was developed by Joseph-Louis Lagrange (1736-1813), Italian mathematician. An alternate notation was used by Leibniz, called Leibniz notation. If \(y\) is a function of \(x\text{,}\) then Leibniz denoted the derivative as,
\begin{equation*} \frac{dy}{dx} \end{equation*}
read as “the derivative of \(y\) with respect to \(x\)”, or sometimes simply by reading the letters (i.e. “dee-why dee-ex”). The phrase “with respect to” means that \(x\) is being treated as the independent variable, and is often abbreviated as “w.r.t”. Note that just as \(\Delta x\) is not a product of \(\Delta\) with \(x\text{,}\) \(dx\) (and \(dy\)) does not represent the product of \(d\) with \(x\text{.}\) The advantage of this notation is that it enables us to consider derivatives without reference to a dependent variable, as we can write,
\begin{equation*} \frac{d}{dx} f(x) = f'(x) \end{equation*}
In this notation, intuitively the symbol \(\frac{d}{dx}\) can be thought of as an operator which is applied to \(f(x)\) and whose result is the derivative of \(f'(x)\text{.}\) In other words,
\begin{equation*} y = f(x) \quad \implies \quad \frac{dy}{dx} = f'(x) \end{equation*}
Also, we can consider derivatives of expressions without defining a function, for example,
\begin{equation*} \frac{d}{dx} x^2 = 2x \end{equation*}
However, it is important to note that only a function can have a derivative. One downside to Leibniz notation is that evaluating derivatives is a bit clunky. The derivative of \(y\) when \(x = a\) is denoted by,
\begin{equation*} \eval{\frac{dy}{dx}}_{x=a} \end{equation*}
Prime notation and Leibniz notation are mostly interchangeable. Leibniz notation tends to be used more in applications, where \(y\) and \(x\) represent physical quantities.
There are also alternative notations which are used less often, or are used for other more advanced areas of mathematics which use calculus. For a function \(y = f(x)\text{,}\) these include,
\begin{equation*} \frac{df}{dx} \quad \frac{d}{dx} f \quad \frac{d}{dx} f(x) \quad D_x f \end{equation*}
\begin{equation*} \begin{array}{c} \text{Prime notation} \\ \begin{array}{c|l} y' \amp \text{$y$ prime} \\ f' \amp \text{$f$ prime} \\ f'(x) \amp \text{$f$ prime of $x$} \end{array} \end{array} \begin{array}{cc} \text{Leibniz notation} \\ \begin{array}{c|l} \dfrac{dy}{dx} \amp \text{the derivative of $y$ with respect to $x$, or dee-why dee-ex} \\ \dfrac{d}{dx} f(x) \amp \text{the derivative of $f$ with respect to $x$} \end{array} \end{array} \end{equation*}

Subsection 2.2.9 Leibniz Notation, Derivative as a Limit of a Ratio, Differentials, Infinitesimals

Notice that Leibniz notation \(\frac{dy}{dx}\) suggests that the derivative is a quotient of two quantities \(dy\) and \(dx\text{.}\) When calculus was first developed in the 17th century, derivatives were treated as a quotient of infinitely small quantities. These quantities were called infinitesimals, which are positive quantities that are smaller in magnitude than any real number, but are not zero. Leibniz focused on this perspective of the derivative.
However, infinitesimals are somewhat problematic logically, because a real number with these properties does not exist. This problem created logical difficulties for the mathematicians at that time (what are infinitesimals? do they “exist”?). However, using infinitesimals often provided correct results. Later on, calculus was reformulated into the limit definition used today.
It is possible to assign meaningful interpretations to \(dy\) and \(dx\text{,}\) however, for now, we will treat \(\frac{dy}{dx}\) as an indivisible symbol which represents the derivative of \(y\text{,}\) which is a function of \(x\text{.}\) In any case, it is helpful to think of the derivative \(\frac{dy}{dx}\) conceptually as a quotient or ratio of infinitesimals. That is, the ratio of an infinitely small change in \(y\) to an infinitely small change in \(x\text{.}\) Just as \(\Delta x\) and \(\Delta y\) represent a small change in \(x\) and \(y\text{,}\) \(dx\) and \(dy\) intuitively represent an infinitesimal change in \(x\) and \(y\text{.}\) Put another way, \(dx\) and \(dy\) represent infinitely small differences between two values of \(x\) and \(y\text{.}\) Quite literally, the reason it is called differential calculus is because “differentiating” literally means “identifying differences”.
More concretely, suppose that \(y = f(x)\text{,}\) and suppose that \(x\) is changed by a small increment \(\Delta x\text{,}\) and consider the resulting change in \(\Delta y\) in \(y\text{.}\) In particular, a change from \(x\) to \(x\) will result in a change of \(y\) from \(f(x)\) to \(f(x + \Delta x)\text{,}\) or,
\begin{equation*} \boxed{\Delta y = \underbrace{f(x + \Delta x)}_{\text{new $y$}} - \underbrace{f(x)}_{\text{old $y$}}} \end{equation*}
Then, the ratio of these changes is,
\begin{equation*} \frac{\Delta y}{\Delta x} = \frac{f(x + \Delta x) - f(x)}{\Delta x} \end{equation*}
The right-hand side is a difference quotient, except with \(\Delta x\) as the increment instead of the previously-used \(h\text{.}\) In this way, if \(\Delta x\) is small, then,
\begin{equation*} \frac{\Delta y}{\Delta x} \approx f'(x) \end{equation*}
Then, as the increment \(\Delta x\) becomes smaller and smaller, this approximation becomes more accurate. In the limit as \(\Delta x \to 0\text{,}\)
\begin{equation*} \lim_{\Delta x \to 0} \frac{\Delta y}{\Delta x} = \lim_{\Delta x \to 0} \frac{f(x + \Delta x) - f(x)}{\Delta x} \end{equation*}
This expression is simply the derivative of \(f\text{,}\) with \(\Delta x\) instead of \(h\text{.}\) However, the labelling of the symbols is irrelevant, so,
\begin{equation*} \lim_{\Delta x \to 0} \frac{\Delta y}{\Delta x} = \frac{dy}{dx} = f'(x) \end{equation*}
In other words,
\begin{equation*} \boxed{\lim_{\Delta x \to 0} \frac{\Delta y}{\Delta x} = \frac{dy}{dx}} \end{equation*}
Note that this \(\Delta\) notation now makes Leibniz's notation \(\frac{dy}{dx}\) more suitable. Also, in this way, \(\frac{dy}{dx}\) is not a ratio, but rather the limit of a ratio.

Subsection 2.2.10 Summary

Derivative calculations involve a particular kind of limit calculation, and notice that these limit calculations, like before, rely crucially on algebra, not calculus. The only part where calculus is involved is for the limit calculation, which simply involves substituting in a value of a variable.
www.geogebra.org/m/DH4BpjGP
www.geogebra.org/m/BDYnGhbt