We derive the constant rule, power rule, and sum rule.
It is tedious to compute a limit every time we need to know the derivative of a
function. Fortunately, we can develop a small collection of examples and rules that
allow us to quickly compute the derivative of almost any function we are
likely to encounter. We will start simply and build up to more complicated
examples.
First, we introduce a different notation for the derivative which may be more
convenient at times.
There are several different notations for the derivative. The two
we’ll mainly be using are
\[ f'(x)= \ddx f(x). \]
The value of the derivative at
\(x=a\) can also be written using
two different notations
\[ f'(a)= \eval {\ddx f(x)}_{x=a}. \]
1 The constant rule
The simplest examples of functions, hence the best place to start our investigation,
are constant functions. Recall that derivatives measure the rate of change of a
function at a given point. This means the derivative of a constant function is zero.
Here are some ways to think about this situation.
- The constant function plots a horizontal line—so the slope of the tangent
line is \(0\).
- If \(s(t)\) represents the position of an object with respect to time and \(s(t)\) is constant,
then the object is not moving, so its velocity is zero. Hence \(\dd {t} s(t) = 0\).
- If \(v(t)\) represents the velocity of an object with respect to time and \(v(t)\) is constant,
then the object’s acceleration is zero. Hence \(\dd {t} v(t) = 0\).
The examples above lead us to our next theorem. To gain intuition, you should
compute the derivative of \(f(x) = 6\) using the limit definition of the derivative.
The constant rule Given a constant
\(c\),
\[ \ddx c = 0. \]
From the limit definition of the derivative, write
\begin{align*} \ddx c &= \lim _{h\to 0}\frac {c-c}{\answer [given]{h}}\\ &= \lim _{h\to 0} \frac {0}{h}\\ &= \lim _{h\to 0} 0 = 0. \end{align*}
What is
\[ \ddx e \]
equal to?
Remember,
\[ e = 2.718281828459045\dots . \]
It equals
\(\answer [given]{0}\).
2 The power rule
Next, let’s examine derivatives of powers of a single variable. To gain intuition, you
should compute the derivative of \(f(x) = x^3\) using the limit definition of the derivative. Before
computing this derivative, we should recall the Binomial Theorem.
Binomial Theorem If
\(n\) is a nonnegative integer, then
\[ (a+b)^n = a^nb^0 + \binom {n}{1} a^{n-1}b^1 + \dots + \binom {n}{n-1} a^{1}b^{n-1} + a^{0}b^n \]
where
\[ \binom {n}{k} = \frac {n!}{k!(n-k)!}, \hspace {0.2in}k=0,1,...,n. \]
The Binomial Theorem tells us the pattern of the coefficients for the expanded form
of
\[ (a+b)^n, \]
which will help us prove our next derivative rule.
Expand
\((x+h)^3\) using the Binomial Theorem.
We apply the Binomial Theorem to the
expression in question, then simplify.
\begin{align*} (x+h)^3 &= x^3h^0 + \binom {3}{1} x^{3-1}h^1 + \binom {3}{2} x^{3-2}h^2 + x^{0}h^3\\ & = x^3 + \answer [given]{3} x^2 h + \answer [given]{3} xh^2 + h^3 \end{align*}
The power rule For any real number
\(n\),
\[ \ddx x^n = n x^{n-1}. \]
At this point we will only prove this theorem for values of
\(n\) which are
positive integers. Later we will give the complete explanation. From the
limit definition of the derivative, write with me
\[ \ddx x^n = \lim _{ h\to 0} \frac {\left (\answer [given]{x+ h}\right )^n-x^n}{h}. \]
Expand the term
\((x+h)^n\):
Note that we are using the Binomial Theorem to write
\(\binom {n}{k}\) for the
coefficients. Canceling the terms
\(x^n\) and
\(-x^n\), and noting
\(\binom {n}{1}= n\), write with me
since every term but the first has a factor of \(h\). Therefore,
\[ \ddx x^n = nx^{n-1}. \]
Let’s consider several examples. We begin with something basic.
Compute:
\[ \ddx x^{13} \]
Applying the power rule, we write
\[ \ddx x^{13} = \answer [given]{13x^{12}}. \]
Sometimes, it is not as obvious that one should apply the power rule.
Compute:
\[ \ddx \frac {1}{x^4} \]
Applying the power rule, we write
\[ \ddx \frac {1}{x^4} = \ddx x^{-4} = \answer [given]{-4x^{-5}}. \]
The power rule also applies to radicals once we rewrite them as exponents.
Compute:
\[ \ddx \sqrt [5]{x} \]
Applying the power rule, we write
\[ \ddx \sqrt [5]{x} = \ddx x^{1/5} = \answer [given]{\frac {x^{-4/5}}{5}}. \]
3 The sum rule
We want to be able to take derivatives of functions “one piece at a time.” The sum
rule allows us to do exactly this. The sum rule says that we can add the
rates of change of two functions to obtain the rate of change of the sum of
both functions. For example, viewing the derivative as the velocity of an
object, the sum rule states that to find the velocity of a person walking on a
moving bus, we add the velocity of the bus and the velocity of the walking
person.
The sum rule If
\(f(x)\) and
\(g(x)\) are differentiable and
\(c\) is a constant, then
-
(a)
- \(\ddx \big ( f(x) + g(x)\big ) = f'(x) + g'(x)\),
-
(b)
- \(\ddx \big ( f(x) - g(x)\big ) = f'(x) - g'(x)\),
-
(c)
- \(\ddx \big (c\cdot f(x)\big ) = c\cdot f'(x)\).
We will only prove part
(a) above; the rest are similar. Write with me
Using different notation for the derivative can be confusing. Which of the following
are the same as part (a) of the Sum Rule?
\((f(x) + g(x))' = f'(x) + g'(x)\) \((f(x) + g(x))' = \ddx f(x) + \ddx g(x)\) \(\ddx f(x) + \ddx g(x) = f'(x) + g'(x)\) \((f'(x) + g(x))' = \ddx ( f(x) + g(x))\)
Suppose we have two functions,
\(f\), and
\(g\), and we know that
\(f'(2) = 6\) and
\(g'(2) = -3\). What is the slope of
the tangent line to the graph
\(y=f(x) + g(x)\) at
\(x = 2\)?
The slope of the tangent line to the graph of the
function
\(f(x) + g(x)\) at
\(x = 2\) is the derivative
\( \eval {\ddx \left (f(x)+g(x)\right )}_{x=2}\). By the Sum Rule, this derivative is given by
\(f'(2) + g'(2)\). In this
case, we have
\(f'(2) + g'(2) = \answer [given]{3}\).
We now have the tools to work some more complicated examples.
Compute:
\[ \ddx \left ( x^5+\frac {1}{x}\right ) \]
Write with me
\begin{align*} \ddx \left (x^5+\frac {1}{x}\right ) &= \ddx x^5 + \ddx x^{-1} \\ &=\answer [given]{5x^4 - x^{-2}}. \end{align*}
Compute:
\[ \ddx \left (\frac {3}{\sqrt [3]{x}}-2\sqrt {x}+\frac {1}{x^7}\right ) \]
Write with me
\begin{align*} \ddx &\left (\frac {3}{\sqrt [3]{x}}-2\sqrt {x}+\frac {1}{x^7}\right )\\ &= 3\ddx x^{-1/3} -2\ddx x^{1/2}+\ddx x^{-7}\\ &=\answer [given]{-x^{-4/3} - x^{-1/2}-7x^{-8}}. \end{align*}