Skip to main content
Logo image

APEX Calculus

Section 2.3 Basic Differentiation Rules

The derivative is a powerful tool but is admittedly awkward given its reliance on limits. Fortunately, one thing mathematicians are good at is abstraction. For instance, instead of continually finding derivatives at a point, we abstracted and found the derivative function.
Let’s practice abstraction on linear functions, \(y=mx+b\text{.}\) What is \(y'\text{?}\) Without limits, recognize that linear functions are characterized by being functions with a constant rate of change (the slope). The derivative, \(y'\text{,}\) gives the instantaneous rate of change; with a linear function, this is constant, \(m\text{.}\) Thus \(y'=m\text{.}\)
Let’s abstract once more. Let’s find the derivative of the general quadratic function, \(f(x) = ax^2+bx+c\text{.}\) Using the definition of the derivative, we have:
\begin{align*} \fp(x) \amp = \lim_{h\to 0}\frac{a(x+h)^2+b(x+h)+c-(ax^2+bx+c)}{h}\\ \amp = \lim_{h\to 0}\frac{ax^2+2ahx+ah^2+bx+bh+c-ax^2-bx-c)}{h}\\ \amp = \lim_{h\to 0} \frac{ah^2+2ahx+bh}{h}\\ \amp = \lim_{h\to 0} ah+2ax+b\\ \amp = 2ax+b\text{.} \end{align*}
So if \(y = 6x^2+11x-13\text{,}\) we can immediately compute \(y' = 12x+11\text{.}\)
In this section (and in some sections to follow) we will learn some of what mathematicians have already discovered about the derivatives of certain functions and how derivatives interact with arithmetic operations. We start with a theorem.
Figure 2.3.2. Video explanation of Theorem 2.3.1
This theorem starts by stating an intuitive fact: constant functions have zero rate of change as they are constant. Therefore their derivative is \(0\) (they change at the rate of \(0\)). The theorem then states some fairly amazing things. The Power Rule states that the derivatives of Power Functions (of the form \(y=x^n\)) are very straightforward: multiply by the power, then subtract \(1\) from the power. We see something incredible about the function \(y=e^x\text{:}\) it is its own derivative. We also see a new connection between the sine and cosine functions.
One special case of the Power Rule is when \(n=1\text{,}\) i.e., when \(f(x) = x\text{.}\) What is \(\fp(x)\text{?}\) According to the Power Rule,
\begin{equation*} \fp(x) = \lzoo{x}{x} = \lzoo{x}{x^1} = 1\cdot x^0 = 1\text{.} \end{equation*}
In words, we are asking “At what rate does \(f\) change with respect to \(x\text{?}\)” Since \(f\) is \(x\text{,}\) we are asking “At what rate does \(x\) change with respect to \(x\text{?}\)” The answer is: \(1\text{.}\) They change at the same rate. We can also interpret the derivative as the slope of the tangent line to the function at a point \((c,f(c))\text{.}\) Since \(f(x)=x\) is a linear function with constant slope \(1\text{,}\) we can say that the derivative of \(f(x)=x\) is \(\fp(x)=1\text{.}\)
Theorem 2.3.1 states that the natural exponential function has a remarkable propery: it is equal to its own derivative! The video in Figure 2.3.3 explains why this is the case.
Figure 2.3.3. Determining the derivative of \(f(x)=e^x\)
Let’s practice using this theorem.

Example 2.3.4. Using common derivative rules to find, and use, derivatives.

Let \(f(x)=x^3\text{.}\)
  1. Find \(\fp(x)\text{.}\)
  2. Find the equation of the line tangent to the graph of \(f\) at \(x=-1\text{.}\)
  3. Use the tangent line to approximate \((-1.1)^3\text{.}\)
  4. Sketch \(f\text{,}\) \(\fp\) and the tangent line from Item 2 on the same axis.
Solution 1. Video solution
Solution 2.
  1. The Power Rule states that if \(f(x) = x^3\text{,}\) then \(\fp(x) = 3x^2\text{.}\)
  2. To find the equation of the line tangent to the graph of \(f\) at \(x=-1\text{,}\) we need a point and the slope. The point is \((-1,f(-1)) = (-1, -1)\text{.}\) The slope is \(\fp(-1)= 3\text{.}\) Thus the tangent line has equation \(y = 3(x-(-1))+(-1) = 3x+2\text{.}\)
  3. We can use the tangent line to approximate \((-1.1)^3\) since \(-1.1\) is close to \(-1\text{.}\) We have
    \begin{equation*} (-1.1)^3 \approx 3(-1.1)+2 = -1.3\text{.} \end{equation*}
    We can easily find the actual value: \((-1.1)^3 = -1.331\text{.}\)
Graph of function x^3, its derivative and a tangent line drawn at point (-1,-1).
The \(y\) axis is drawn between \(-4\) and \(4\) and the \(x\) axis is drawn between \(-2\) and \(2\text{.}\) The graph of function \(f(x)=x^3\) is a curve that appears to conincide the \(x\) axis from \(x=-0.5\) to \(x=0.5\text{,}\) then it appears to increase to infinity from \(x=0.5\) in the first quadrant, and curves downward from to infinity from \(x=-0.5\) in the third quadrant.
The derivative \(\fp(x)\) is a parabola opening upwards. It intersects the function \(f(x)\) at the origin and increases to infinity on either side of the positive \(y\) axis.
A tangent line \(l(x)\)is drawn on the function at point \((-1,-1)\text{.}\) It has a positive slope and and intersects the \(x\) axis at approximately \(x=-0.6\) and the \(y\) axis at \(y=2\text{.}\)
Figure 2.3.5. A graph of \(f(x) = x^3\text{,}\) along with its derivative \(\fp(x) = 3x^2\) and its tangent line at \(x=-1\)
Theorem 2.3.1 gives useful information, but we will need much more. For instance, using the theorem, we can easily find the derivative of \(y=x^3\text{,}\) but it does not tell how to compute the derivative of \(y=2x^3\text{,}\) \(y=x^3+\sin(x)\) nor \(y=x^3\sin(x)\text{.}\) The following theorem helps with the first two of these examples (the third is answered in the next section).
Figure 2.3.7. Video presentation of Theorem 2.3.6
While we will be mainly focused on using these rules, it can also be interesting to see where they come from. Fortunately, it is not too difficult to establish these rules using the definition of the derivative. The video in Figure 2.3.8 shows why the sum rule is true.
Figure 2.3.8. Proving the sum rule
Theorem 2.3.6 allows us to find the derivatives of a wide variety of functions. It can be used in conjunction with the Power Rule to find the derivatives of any polynomial. Recall in Example 2.1.22 that we found, using the limit definition, the derivative of \(f(x) = 3x^2+5x-7\text{.}\) We can now find its derivative without expressly using limits:
\begin{align*} \lzoo{x}{3x^2+5x-7} \amp = 3\lzoo{x}{x^2} + 5\lzoo{x}{x} - \lzoo{x}{7}\\ \amp = 3\cdot 2x+5\cdot 1- 0\\ \amp = 6x+5\text{.} \end{align*}
We were a bit pedantic here, showing every step. Normally we would do all the arithmetic and steps in our head and readily find \(\lzoo{x}{3x^2+5x+7}= 6x+5\text{.}\)

Example 2.3.9. Using the tangent line to approximate a function value.

Let \(f(x) = \sin(x) + 2x+1\text{.}\) Approximate \(f(3)\) using an appropriate tangent line.
Solution 1. Video solution
Solution 2.
This problem is intentionally ambiguous; we are to approximate using an appropriate tangent line. How good of an approximation are we seeking? What does “appropriate” mean?
In the “real world,” people solving problems deal with these issues all time. One must make a judgment using whatever seems reasonable. In this example, the actual answer is \(f(3) = \sin(3) + 7\text{,}\) where the real problem spot is \(\sin(3)\text{.}\) What is \(\sin(3)\text{?}\)
Since \(3\) is close to \(\pi\text{,}\) we can assume \(\sin(3) \approx \sin(\pi) = 0\text{.}\) Thus one guess is \(f(3) \approx 7\text{.}\) Can we do better? Let’s use a tangent line as instructed and examine the results; it seems best to find the tangent line at \(x=\pi\text{.}\)
Using Theorem 2.3.1 we find \(\fp(x) = \cos(x) + 2\text{.}\) The slope of the tangent line is thus \(\fp(\pi) = \cos(\pi) + 2 =1\text{.}\) Also, \(f(\pi) = 2\pi+1 \approx 7.28\text{.}\) So the tangent line to the graph of \(f\) at \(x=\pi\) is \(y=1(x-\pi)+ 2\pi+1 =x+\pi+1 \approx x+4.14\text{.}\) Evaluated at \(x=3\text{,}\) our tangent line gives \(y=3+4.14 = 7.14\text{.}\) Using the tangent line, our final approximation is that \(f(3) \approx 7.14\text{.}\)
Using a calculator, we get an answer accurate to four places after the decimal: \(f(3) = 7.1411\text{.}\) Our initial guess was \(7\text{;}\) our tangent line approximation was more accurate, at \(7.14\text{.}\)
The point is not “Here’s a cool way to do some math without a calculator.” Sure, that might be handy sometime, but your phone could probably give you the answer. Rather, the point is to say that tangent lines are a good way of approximating, and many scientists, engineers and mathematicians often face problems too hard to solve directly. So they approximate.
The graphs in Figure 2.3.10 shows the graph of the function \(f(x)\) along with the tangent line constructed at \(x=\pi\text{.}\) The graph in Figure 2.3.10 shows the same tangent line and function. Once zoomed in, you can barely distinguish the tangent line from the function. This indicates that the tangent line is a good a approximation of the function so long as we are near the point of tangency.
Graph of the function for this example and its tangent at x=pi.
The \(y\) axis is drawn from \(-1\) to \(10\) and \(x\) axis is drawn from \(-1\) to \(5\text{.}\) The graph of \(f(x)\)is drawn in the first quadrant, the curve passes the \(y\) axis at \(y=1\text{,}\) it increases until point \((5,10)\text{.}\) It has a slight undulation between \(x=2\) to \(x=4\text{.}\)
A tangent line is drawn on the curve at approximately point \((3,7)\) or \(x=\pi\text{.}\)
Figure 2.3.10. A graph of \(f(x) = \sin(x)+2x+1\) along with its tangent line approximation at \(x=\pi\)
Highly zoomed in view of the previous graph and its tangent line, near x=pi.
The \(y\) axis is drawn from \(6.8\) to \(7.4\) and \(x\) axis is drawn from \(2.6\) to \(3.4\text{.}\) The graph of \(f(x)\) is drawn in the first quadrant, the curve and its tangent line are aligned except near shifted origin around point \((2.6, 6.8)\) where they are slightly apart.
Figure 2.3.11. A graph of \(f(x) = \sin(x)+2x+1\) along with its tangent line approximation at \(x=\pi\text{,}\) zoomed in

Subsection 2.3.1 Higher Order Derivatives

The derivative of a function \(f\) is itself a function, therefore we can take its derivative. The following definition gives a name to this concept and introduces its notation.

Definition 2.3.12. Higher Order Derivatives.

Let \(y=f(x)\) be a differentiable function on \(I\text{.}\) The following are defined, provided the corresponding limits exist.
  1. The second derivative of \(f\) is:
    \begin{equation*} \fp'(x) = \lzoo{x}{\fp(x)} = \lzoo{x}{\lz{y}{x}} = \lzn{2}{y}{x}=y''\text{.} \end{equation*}
  2. The third derivative of \(f\) is:
    \begin{equation*} \fp''(x) = \lzoo{x}{\fp'(x)} = \lzoo{x}{\lzn{2}{y}{x}} = \lzn{3}{y}{x}=y'''\text{.} \end{equation*}
  3. The \(n\)th derivative of \(f\) is:
    \begin{equation*} f^{(n)}(x) = \lzoo{x}{f^{(n-1)}(x)} = \lzoo{x}{\lzn{n-1}{y}{x}} = \lzn{n}{y}{x}=y^{(n)}\text{.} \end{equation*}
Figure 2.3.13. Video explanation of Definition 2.3.12
In general, when finding the fourth derivative and on, we resort to the \(f\,^{(4)}(x)\) notation, not \(\fp'''(x)\text{;}\) after a while, too many ticks is confusing.
Let’s practice using this new concept.

Example 2.3.14. Finding higher order derivatives.

Find the first four derivatives of the following functions:
  1. \(\displaystyle f(x) = 4x^2\)
  2. \(\displaystyle f(x) = \sin(x)\)
  3. \(\displaystyle f(x) = 5e^x\)
Solution 1. Video solution
Solution 2.
  1. Using the Power and Constant Multiple Rules, we have: \(\fp(x) = 8x\text{.}\) Continuing on, we have
    \begin{align*} \fp'(x)\amp=\lzoo{x}{8x}=8\amp\fp''(x)\amp=0\amp f^{(4)}(x)\amp=0\text{.} \end{align*}
    Notice how all successive derivatives will also be \(0\text{.}\)
  2. We employ Theorem 2.3.1 repeatedly.
    \begin{align*} \fp(x)\amp=\cos(x)\amp \fp''(x)\amp= -\cos(x)\\ \fp'(x)\amp= -\sin(x)\amp f^{(4)}(x)\amp = \sin(x) \end{align*}
    Note how we have come right back to \(f(x)\) again. (Can you quickly figure what \(f^{(23)}(x)\) is?)
  3. Employing Theorem 2.3.1 and the Constant Multiple Rule, we can see that
    \begin{equation*} \fp(x) = \fp'(x) = \fp''(x) = f^{(4)}(x) = 5e^x\text{.} \end{equation*}

Subsection 2.3.2 Interpreting Higher Order Derivatives

What do higher order derivatives mean? What is the practical interpretation?
Our first answer is a bit wordy, but is technically correct and beneficial to understand. That is,
The second derivative of a function \(f\) is the rate of change of the rate of change of \(f\text{.}\)
One way to grasp this concept is to let \(f\) describe a position function. Then, as stated in Key Idea 2.2.3, \(\fp\) describes the rate of position change: velocity. We now consider \(\fp'\text{,}\) which describes the rate of velocity change. Sports car enthusiasts talk of how fast a car can go from \(0\) to 60 mph; they are bragging about the acceleration of the car.
We started this chapter with amusement park riders free-falling with position function \(f(t) = -16t^2+150\text{.}\) It is easy to compute \(\fp(t)=-32t\) ft/s and \(\fp'(t) = -32\) (ft/s)/s. We may recognize this latter constant; it is the acceleration due to gravity. In keeping with the unit notation introduced in the previous section, we say the units are “feet per second per second.” This is usually shortened to “feet per second squared,” written as “ft/s\(^2\text{.}\)
It can be difficult to consider the meaning of the third, and higher order, derivatives. The third derivative is “the rate of change of the rate of change of the rate of change of \(f\text{.}\)” That is essentially meaningless to the uninitiated. In the context of our position/velocity/acceleration example, the third derivative is the “rate of change of acceleration,” commonly referred to as “jerk.”
Make no mistake: higher order derivatives have great importance even if their practical interpretations are hard (or “impossible”) to understand. The mathematical topic of series makes extensive use of higher order derivatives.

Exercises 2.3.3 Exercises

Terms and Concepts

1.
What is the name of the rule which states that \(\lzoo{x}{x^n} = nx^{n-1}\text{,}\) where \(n \gt 0\) is an integer?
2.
What is \(\lzoo{x}{\ln(x)}\text{?}\)
3.
Give an example of a function \(f(x)\) where \(\fp(x) = f(x)\text{.}\)
4.
Give an example of a function \(f(x)\) where \(\fp(x) = 0\text{.}\)
5.
The derivative rules introduced in Section 2.3 explain how to compute the derivative of which of the following functions?
  • \(\displaystyle \frac{3}{x^2}\)
  • \(\displaystyle 3x^2-x+17\)
  • \(\displaystyle e^{x^2}\)
  • \(\displaystyle \sin(x) \cos(x)\)
  • \(\displaystyle \sqrt{x}\)
  • \(\displaystyle 5\ln(x)\)
6.
Explain in your own words how to find the third derivative of a function \(f(x)\text{.}\)
7.
Give an example of a function where \(\fp(x) \neq 0\) and \(\fpp(x) = 0\text{.}\)
8.
Explain in your own words what the second derivative “means”.
9.
If \(f(x)\) describes a position function, then \(\fp(x)\) describes what kind of function? What kind of function is \(\fpp(x)\text{?}\)
10.
Let \(f(x)\) be a function measured in pounds (lb), where \(x\) is measured in feet (ft). What are the units of \(\fpp(x)\text{?}\)

Problems

Exercise Group.
Compute the derivative of the given function.
11.
\(f(x) = {-\left(7x^{2}+8x+7\right)}\)
12.
\(g(x) = {14x^{2}-16x^{3}+5x+2}\)
13.
\(m(t) = {9t-\left(4t^{5}+{\frac{1}{4}}t^{3}\right)-6}\)
14.
\(f(\theta) = {-\left(3\sin\mathopen{}\left(\theta\right)+19\cos\mathopen{}\left(\theta\right)\right)}\)
15.
\(f(r) = {3e^{r}}\)
16.
\(g(t) = {7t^{3}-5\cos\mathopen{}\left(t\right)-2\sin\mathopen{}\left(t\right)}\)
17.
\(f(x) = {6\ln\mathopen{}\left(x\right)+9x}\)
18.
\(p(s) = {{\frac{1}{4}}s^{4}+{\frac{1}{3}}s^{3}+{\frac{1}{2}}s^{2}+s+1}\)
19.
\(h(t) = {-\left(e^{t}+\sin\mathopen{}\left(t\right)+\cos\mathopen{}\left(t\right)\right)}\)
20.
\(f(x) = {\ln\mathopen{}\left(3x^{8}\right)}\)
21.
\(f(t) = {\ln\mathopen{}\left(6\right)+e^{6}+\sin\mathopen{}\left(\frac{\pi }{2}\right)}\)
22.
\(g(t) = {\left(4+3t\right)^{2}}\)
23.
\(g(x) = {\left(2x+4\right)^{3}}\)
24.
\(f(x) = {\left(3+x\right)^{3}}\)
25.
\(f(x) = {\left(7+2x\right)^{2}}\)
26.
A property of logarithms is that \(\log_a(x) = \frac{\log_b(x)}{\log_b(a)}\text{,}\) for all bases \(a,b \gt 0,\neq 1\text{.}\)
(a)
Rewrite this identity when \(b=e\text{,}\) i.e., using \(\log_e(x) =\ln(x)\text{,}\) with \(a=10\text{.}\)
(b)
Use part (a) to find the derivative of \(y=\log_{10}(x)\text{.}\)
(c)
Find the derivative of \(y=\log_a(x)\) for any \(a\gt0,\neq1\text{.}\)
Exercise Group.
Compute the first four derivatives of the given function.
27.
\(f(x) = {x^{9}}\)
28.
\(g(x) = {8\cos\mathopen{}\left(x\right)}\)
29.
\(h(t) = {-\left(4t^{2}+3t+e^{t}\right)}\)
30.
\(p(\theta) = {\theta^{2}+\theta^{8}}\)
31.
\(f(\theta) = {-\left(\sin\mathopen{}\left(\theta\right)+\cos\mathopen{}\left(\theta\right)\right)}\)
32.
\(f(x) = {692}\)
Exercise Group.
Find the equations of the tangent and normal lines to the graph of the function at the given point.
33.
\(f(x)={x^{3}+8x}\) at \(x=2\)
34.
\(f(t)={e^{t}-2}\) at \(t=0\)
35.
\(g(x)=\ln(x)\) at \(x=1\)
36.
\(f(x)={4\sin\mathopen{}\left(x\right)}\) at \(x=\pi/6\)
37.
\(f(x)={-2\cos\mathopen{}\left(x\right)}\) at \(x=\pi/6\)
38.
\(f(x)={9-9x}\) at \(x=-9\)
You have attempted of activities on this page.