Section 3.2 The Derivative as a Function
Learning Objectives.
Define the derivative function of a given function.
Graph a derivative function from the graph of a given function.
State the connection between derivatives and continuity.
Describe three conditions for when a function does not have a derivative.
Explain the meaning of a higher-order derivative.
As we have seen, the derivative of a function at a given point gives us the rate of change or slope of the tangent line to the function at that point. If we differentiate a position function at a given time, we obtain the velocity at that time. It seems reasonable to conclude that knowing the derivative of the function at every point would produce valuable information about the behavior of the function. However, the process of finding the derivative at even a handful of values using the techniques of the preceding section would quickly become quite tedious. In this section we define the derivative function and learn a process for finding it.
Subsection 3.2.1 Derivative Functions
The derivative function gives the derivative of a function at each point in the domain of the original function for which the derivative is defined. We can formally define a derivative function as follows.
Definition 3.35.
Let \(f\) be a function. The derivative function, denoted by \(f',\) is the function whose domain consists of those values of \(x\) such that the following limit exists:
A function \(f(x)\) is said to be differentiable at \(a\) if \(f'(a)\) exists. More generally, a function is said to be differentiable on \(S\) if it is differentiable at every point in an open set \(S,\) and a differentiable function is one in which \(f'(x)\) exists on its domain.
In the next few examples we use (3.2.1) to find the derivative of a function.
Example 3.36. Finding the Derivative of a Square-Root Function.
Find the derivative of \(f(x)=\sqrt{x}.\)
Start directly with the definition of the derivative function. Use (3.1.2).
Example 3.37. Finding the Derivative of a Quadratic Function.
Find the derivative of the function \(f(x)=x^2-2x.\)
Follow the same procedure here, but without having to multiply by the conjugate.
Checkpoint 3.38.
Find the derivative of \(f(x)=x^2.\)
We use a variety of different notations to express the derivative of a function. In Example 3.37 we showed that if \(f(x)=x^2-2x,\) then \(f'(x)=2x-2.\) If we had expressed this function in the form \(y=x^2-2x,\) we could have expressed the derivative as \(y'=2x-2\) or \(\frac{dy}{dx}=2x-2.\) We could have conveyed the same information by writing \(\frac{d}{dx}(x^2-2x)=2x-2.\) Thus, for the function \(y=f(x),\) each of the following notations represents the derivative of \(f(x)\text{ : }\)
In place of \(f'(a)\) we may also use \(\frac{dy}{dx}|_{x=a}\) Use of the \(\frac{dy}{dx}\) notation (called Leibniz notation) is quite common in engineering and physics. To understand this notation better, recall that the derivative of a function at a point is the limit of the slopes of secant lines as the secant lines approach the tangent line. The slopes of these secant lines are often expressed in the form \(\frac{\Delta y}{\Delta x}\) where \(\Delta y\) is the difference in the \(y\) values corresponding to the difference in the \(x\) values, which are expressed as \(\Delta x\) (Figure 3.39). Thus the derivative, which can be thought of as the instantaneous rate of change of \(y\) with respect to \(x,\) is expressed as
Subsection 3.2.2 Graphing a Derivative
We have already discussed how to graph a function, so given the equation of a function or the equation of a derivative function, we could graph it. Given both, we would expect to see a correspondence between the graphs of these two functions, since \(f'(x)\) gives the rate of change of a function \(f(x)\) (or slope of the tangent line to \(f(x)).\)
In Example 3.36 we found that for \(f(x)=\sqrt{x},f'(x)=1\text{ / }2\sqrt{x}.\) If we graph these functions on the same axes, as in Figure 3.40, we can use the graphs to understand the relationship between these two functions. First, we notice that \(f(x)\) is increasing over its entire domain, which means that the slopes of its tangent lines at all points are positive. Consequently, we expect \(f'(x)\gt 0\) for all values of \(x\) in its domain. Furthermore, as \(x\) increases, the slopes of the tangent lines to \(f(x)\) are decreasing and we expect to see a corresponding decrease in \(f'(x).\) We also observe that \(f(0)\) is undefined and that \(\displaystyle{\lim_{x\to 0^+}f'(x)=\text{ + }\infty} ,\) corresponding to a vertical tangent to \(f(x)\) at \(0.\)
In Example 3.37 we found that for \(f(x)=x^2-2x,f'(x)=2x-2.\) The graphs of these functions are shown in Figure 3.41. Observe that \(f(x)\) is decreasing for \(x\lt 1.\) For these same values of \(x,f'(x)\lt 0.\) For values of \(x\gt 1,f(x)\) is increasing and \(f'(x)\gt 0.\) Also, \(f(x)\) has a horizontal tangent at \(x=1\) and \(f'(1)=0.\)
Example 3.42. Sketching a Derivative Using a Function.
Use the following graph of \(f(x)\) to sketch a graph of \(f'(x).\)
The solution is shown in the following graph. Observe that \(f(x)\) is increasing and \(f'(x)\gt 0\) on \((–2,3).\) Also, \(f(x)\) is decreasing and \(f'(x)\lt 0\) on \((\text{ - }\infty ,-2)\) and on \((3,\text{ + }\infty ).\) Also note that \(f(x)\) has horizontal tangents at \(–2\) and \(3,\) and \(f'(-2)=0\) and \(f'(3)=0.\)
Checkpoint 3.43.
Sketch the graph of \(f(x)=x^2-4.\) On what interval is the graph of \(f'(x)\) above the \(x\)-axis?
Subsection 3.2.3 Derivatives and Continuity
Now that we can graph a derivative, let’s examine the behavior of the graphs. First, we consider the relationship between differentiability and continuity. We will see that if a function is differentiable at a point, it must be continuous there; however, a function that is continuous at a point need not be differentiable at that point. In fact, a function may be continuous at a point and fail to be differentiable at the point for one of several reasons.
Theorem 3.44. Differentiability Implies Continuity.
Let \(f(x)\) be a function and \(a\) be in its domain. If \(f(x)\) is differentiable at \(a,\) then \(f\) is continuous at \(a.\)
We have that differentiability implies continuity, but now we consider whether continuity implies differentiability. To determine an answer to this question, we examine the function \(f(x)=|x|.\) This function is continuous everywhere; however, \(f'(0)\) is undefined. This observation leads us to believe that continuity does not imply differentiability. Let’s explore further. For \(f(x)=|x|,\)
This limit does not exist because
See Figure 3.45.
Let’s consider some additional situations in which a continuous function fails to be differentiable. Consider the function \(f(x)=\sqrt[3]{x} \text{ : }\)
Thus \(f'(0)\) does not exist. A quick look at the graph of \(f(x)=\sqrt[3]{x} \) clarifies the situation. The function has a vertical tangent line at \(0\) (Figure 3.46).
The function \(f(x)=x^{2/3}\) also has a derivative that exhibits interesting behavior at \(0.\) We see that
This limit does not exist, mainly because the slopes of the secant lines are positive if we approach 0 from the right yet the slopes of the secant lines are negative if we approach 0 from the left. That is, \(\displaystyle{\lim_{x\to 0^+}\frac{1}{x^{1/3}}\gt 0}\) and \(\displaystyle{\lim_{x\to 0^-}\frac{1}{x^{1/3}}\lt 0}.\) We say that \(f(x)\) has cusp at \(x=0\text{.}\) This behavior is displayed below in Figure 3.47 . Note that the function is approaching a vertical tangent line on each side of \(x=0\text{.}\)
In summary:
We observe that if a function is not continuous, it cannot be differentiable, since every differentiable function must be continuous. However, if a function is continuous, it may still fail to be differentiable.
We saw that \(f(x)=|x|\) failed to be differentiable at \(0\) because the limit of the slopes of the tangent lines on the left and right were not the same. Visually, this resulted in a sharp corner on the graph of the function at \(0.\) From this we conclude that in order to be differentiable at a point, a function must be “smooth” at that point.
As we saw in the example of \(f(x)=\sqrt[3]{x} ,\) a function fails to be differentiable at a point where there is a vertical tangent line.
As we saw with \(f(x)=x^{2/3}\) a functions may fail to differentiable at a point where there is a cusp.
Example 3.48. A Piecewise Function that is Continuous and Differentiable.
A toy company wants to design a track for a toy car that starts out along a parabolic curve and then converts to a straight line (Figure 3.49). The function that describes the track is to have the form \(f(x)=\begin{cases} \frac{1}{10}x^2+bx+c \amp \text{ if } x\lt -10 \\ -\frac{1}{4}x+\frac{5}{2} \amp \text{ if } x\geq -10 \end{cases} \) where \(x\) and \(f(x)\) are in inches. For the car to move smoothly along the track, the function \(f(x)\) must be both continuous and differentiable at \(-10.\) Find values of \(b\) and \(c\) that make \(f(x)\) both continuous and differentiable.
For the function to be continuous at \(x=-10,\displaystyle{\lim_{x \to 10^-} f(x)=f(-10)}.\) Thus, since
and \(f(-10)=5,\) we must have \(10-10b+c=5.\) Equivalently, we have \(c=10b-5.\)
For the function to be differentiable at \(-10,\)
must exist. Since \(f(x)\) is defined using different rules on the right and the left, we must evaluate this limit from the right and the left and then set them equal to each other:
We also have
This gives us \(b-2=-\frac{1}{4}.\) Thus \(b=\frac{7}{4}\) and \(c=10(\frac{7}{4})-5=\frac{25}{2}.\)
Checkpoint 3.50.
Find values of \(a\) and \(b\) that make \(f(x)=\begin{cases} ax+b \amp \text{ if } x\lt 3 \\ x^2 \amp \text{ if } x\geq 3 \end{cases} \) both continuous and differentiable at \(3.\)
Subsection 3.2.4 Higher-Order Derivatives
The derivative of a function is itself a function, so we can find the derivative of a derivative. For example, the derivative of a position function is the rate of change of position, or velocity. The derivative of velocity is the rate of change of velocity, which is acceleration. The new function obtained by differentiating the derivative is called the second derivative. Furthermore, we can continue to take derivatives to obtain the third derivative, fourth derivative, and so on. Collectively, these are referred to as higher-order derivatives. The notation for the higher-order derivatives of \(y=f(x)\) can be expressed in any of the following forms:
It is interesting to note that the notation for \(\frac{d^2y}{dx^2}\) may be viewed as an attempt to express \(\frac{d}{dx}(\frac{dy}{dx})\) more compactly. Analogously, \(\frac{d}{dx}(\frac{d}{dx}(\frac{dy}{dx}))=\frac{d}{dx}(\frac{d^2y}{dx^2})=\frac{d^3y}{dx^3}.\)
Example 3.51. Finding a Second Derivative.
For \(f(x)=2x^2-3x+1,\) find \(f''(x).\)
First find \(f'(x).\)
Next, find \(f''(x)\) by taking the derivative of \(f'(x)=4x-3.\)
Checkpoint 3.52.
Find \(f''(x)\) for \(f(x)=x^2.\)
Example 3.53. Finding Acceleration.
The position of a particle along a coordinate axis at time \(t\) (in seconds) is given by \(s(t)=3t^2-4t+1\) (in meters). Find the function that describes its acceleration at time \(t.\)
Since \(v(t)=s'(t)\) and \(a(t)=v'(t)=s''(t),\) we begin by finding the derivative of \(s(t):\)
Next,
Thus, \(a=6 \text{ m/s }^2.\)
Checkpoint 3.54.
For \(s(t)=t^3,\) find \(a(t).\)
Subsection 3.2.5 Key Concepts
The derivative of a function \(f(x)\) is the function whose value at \(x\) is \(f'(x).\)
The graph of a derivative of a function \(f(x)\) is related to the graph of \(f(x).\) Where \(f(x)\) has a tangent line with positive slope, \(f'(x)\gt 0.\) Where \(f(x)\) has a tangent line with negative slope, \(f'(x)\lt 0.\) Where \(f(x)\) has a horizontal tangent line, \(f'(x)=0.\)
If a function is differentiable at a point, then it is continuous at that point. A function is not differentiable at a point if it is not continuous at the point, if it has a vertical tangent line at the point, or if the graph has a sharp corner or cusp.
Higher-order derivatives are derivatives of derivatives, from the second derivative to the \(n\text{ th }\) derivative.
Subsection 3.2.6 Key Equations
The derivative function \(\displaystyle{f'(x)=\lim_{h\to 0}\frac{f(x+h)-f(x)}{h}}\)
This book is a custom edition based on OpenStax Calculus Volume 1. You can download the original for free at https://openstax.org/details/books/calculus-volume-1.