Chapter 5: Basic Derivatives
Basic Derivatives
Beginner
5.1 Differentiating Power Functions
One of the most fundamental and important differentiation rules is the power rule.
For a positive integer $n$:
$$\dfrac{d}{dx}x^n = nx^{n-1}$$We begin with the definition of the derivative:
$$\dfrac{d}{dx}x^n = \lim_{h \to 0} \dfrac{(x+h)^n - x^n}{h}$$Step 1: Expand $(x+h)^n$ using the binomial theorem.
By the binomial theorem:
$$(x+h)^n = \displaystyle\sum_{k=0}^{n} \binom{n}{k} x^{n-k} h^k$$ $$= \binom{n}{0}x^n + \binom{n}{1}x^{n-1}h + \binom{n}{2}x^{n-2}h^2 + \cdots + \binom{n}{n}h^n$$ $$= x^n + nx^{n-1}h + \dfrac{n(n-1)}{2}x^{n-2}h^2 + \cdots + h^n$$Step 2: Subtract $x^n$.
$$(x+h)^n - x^n = nx^{n-1}h + \dfrac{n(n-1)}{2}x^{n-2}h^2 + \cdots + h^n$$Step 3: Divide by $h$.
$$\dfrac{(x+h)^n - x^n}{h} = nx^{n-1} + \dfrac{n(n-1)}{2}x^{n-2}h + \cdots + h^{n-1}$$Step 4: Take the limit as $h \to 0$.
Every term containing $h$ approaches $0$, so:
$$\lim_{h \to 0} \dfrac{(x+h)^n - x^n}{h} = nx^{n-1}$$Examples
Using the power rule:
$$f'(x) = 2x^{2-1} = 2x$$Using the power rule:
$$f'(x) = 3x^{3-1} = 3x^2$$Using the power rule:
$$f'(x) = 5x^{5-1} = 5x^4$$5.2 Constant Multiple and Sum Rules
Let $c$ be a constant and let $f(x)$ be a differentiable function. Then:
$$\dfrac{d}{dx}[c \cdot f(x)] = c \cdot f'(x)$$By the definition of the derivative:
$$\dfrac{d}{dx}[c \cdot f(x)] = \lim_{h \to 0} \dfrac{c \cdot f(x+h) - c \cdot f(x)}{h}$$Factor out $c$:
$$= \lim_{h \to 0} c \cdot \dfrac{f(x+h) - f(x)}{h}$$A constant can be taken outside the limit:
$$= c \cdot \lim_{h \to 0} \dfrac{f(x+h) - f(x)}{h}$$By the definition of $f'(x)$, this is:
$$= c \cdot f'(x)$$If $f(x)$ and $g(x)$ are differentiable, then:
$$\dfrac{d}{dx}[f(x) + g(x)] = f'(x) + g'(x)$$By the definition of the derivative:
$$\dfrac{d}{dx}[f(x) + g(x)] = \lim_{h \to 0} \dfrac{[f(x+h) + g(x+h)] - [f(x) + g(x)]}{h}$$Rearrange the terms:
$$= \lim_{h \to 0} \dfrac{[f(x+h) - f(x)] + [g(x+h) - g(x)]}{h}$$Separate the sum:
$$= \lim_{h \to 0} \left[ \dfrac{f(x+h) - f(x)}{h} + \dfrac{g(x+h) - g(x)}{h} \right]$$The limit distributes over addition:
$$= \lim_{h \to 0} \dfrac{f(x+h) - f(x)}{h} + \lim_{h \to 0} \dfrac{g(x+h) - g(x)}{h}$$By the definition of the derivatives:
$$= f'(x) + g'(x)$$Apply the constant multiple and sum rules:
$$f'(x) = \dfrac{d}{dx}(3x^2) + \dfrac{d}{dx}(5x)$$ $$= 3 \cdot \dfrac{d}{dx}(x^2) + 5 \cdot \dfrac{d}{dx}(x)$$ $$= 3 \cdot 2x + 5 \cdot 1$$ $$= 6x + 5$$5.3 Differentiating Polynomials
By combining the rules we have learned so far, we can differentiate any polynomial.
The derivative of a polynomial $f(x) = a_n x^n + a_{n-1} x^{n-1} + \cdots + a_1 x + a_0$ is:
$$f'(x) = na_n x^{n-1} + (n-1)a_{n-1} x^{n-2} + \cdots + a_1$$Apply the sum rule and constant multiple rule repeatedly:
$$f'(x) = \dfrac{d}{dx}(a_n x^n) + \dfrac{d}{dx}(a_{n-1} x^{n-1}) + \cdots + \dfrac{d}{dx}(a_1 x) + \dfrac{d}{dx}(a_0)$$Apply the constant multiple rule to each term:
$$= a_n \dfrac{d}{dx}(x^n) + a_{n-1} \dfrac{d}{dx}(x^{n-1}) + \cdots + a_1 \dfrac{d}{dx}(x) + 0$$Apply the power rule:
$$= a_n \cdot nx^{n-1} + a_{n-1} \cdot (n-1)x^{n-2} + \cdots + a_1 \cdot 1$$Simplifying gives:
$$= na_n x^{n-1} + (n-1)a_{n-1} x^{n-2} + \cdots + a_1$$Step 1: Differentiate each term.
$$f'(x) = \dfrac{d}{dx}(x^4) - \dfrac{d}{dx}(2x^3) + \dfrac{d}{dx}(3x^2) - \dfrac{d}{dx}(x) + \dfrac{d}{dx}(7)$$Step 2: Apply the power rule and the rule for differentiating constants.
$$= 4x^3 - 2 \cdot 3x^2 + 3 \cdot 2x - 1 + 0$$Step 3: Simplify the result.
$$= 4x^3 - 6x^2 + 6x - 1$$One approach is to expand the expression first and then differentiate.
Step 1: Expand the expression.
$$f(x) = (x+1)(x-2) = x^2 - 2x + x - 2 = x^2 - x - 2$$Step 2: Differentiate the polynomial.
$$f'(x) = 2x - 1$$5.4 Differentiating Negative Powers
The power rule also holds for negative integer exponents.
For a positive integer $n$ (when $x \neq 0$):
$$\dfrac{d}{dx}x^{-n} = -nx^{-n-1}$$Equivalently:
$$\dfrac{d}{dx}\dfrac{1}{x^n} = \dfrac{-n}{x^{n+1}}$$For $f(x) = x^{-n} = \dfrac{1}{x^n}$, the definition of the derivative gives:
$$f'(x) = \lim_{h \to 0} \dfrac{\dfrac{1}{(x+h)^n} - \dfrac{1}{x^n}}{h}$$Step 1: Combine the fractions in the numerator.
$$= \lim_{h \to 0} \dfrac{1}{h} \cdot \dfrac{x^n - (x+h)^n}{(x+h)^n \cdot x^n}$$Step 2: Expand $(x+h)^n$ in the numerator using the binomial theorem.
$$(x+h)^n = x^n + nx^{n-1}h + \text{(terms involving $h^2$ and higher powers)}$$Therefore:
$$x^n - (x+h)^n = -nx^{n-1}h - \text{(terms involving $h^2$ and higher powers)}$$Step 3: Substitute the expansion and divide by $h$.
$$f'(x) = \lim_{h \to 0} \dfrac{-nx^{n-1}h - (\text{terms involving $h^2$ and higher powers})}{h \cdot (x+h)^n \cdot x^n}$$ $$= \lim_{h \to 0} \dfrac{-nx^{n-1} - (\text{terms involving $h$ and higher powers})}{(x+h)^n \cdot x^n}$$Step 4: Take the limit as $h \to 0$.
$$= \dfrac{-nx^{n-1}}{x^n \cdot x^n} = \dfrac{-nx^{n-1}}{x^{2n}} = -nx^{n-1-2n} = -nx^{-n-1}$$Rewrite it as $f(x) = x^{-1}$:
$$f'(x) = -1 \cdot x^{-1-1} = -x^{-2} = -\dfrac{1}{x^2}$$Rewrite it as $f(x) = x^{-3}$:
$$f'(x) = -3 \cdot x^{-3-1} = -3x^{-4} = -\dfrac{3}{x^4}$$Rewrite it as $f(x) = 2x^{-2} + 3x^{-1}$:
$$f'(x) = 2 \cdot (-2)x^{-3} + 3 \cdot (-1)x^{-2}$$ $$= -4x^{-3} - 3x^{-2}$$ $$= -\dfrac{4}{x^3} - \dfrac{3}{x^2}$$5.5 Generalizing the Power Rule
The power rule can be extended to real-number exponents.
For any real number $\alpha$ (when $x > 0$):
$$\dfrac{d}{dx}x^\alpha = \alpha x^{\alpha - 1}$$This formula can also be derived using the chain rule and the identity $x^\alpha=e^{\alpha\ln x}$ (for $x>0$). A detailed proof will be given in a later chapter. For now, we will use it as a formula.
Since $\sqrt{x} = x^{1/2}$:
$$f'(x) = \dfrac{1}{2}x^{1/2 - 1} = \dfrac{1}{2}x^{-1/2} = \dfrac{1}{2\sqrt{x}}$$Since $\sqrt[3]{x} = x^{1/3}$:
$$f'(x) = \dfrac{1}{3}x^{1/3 - 1} = \dfrac{1}{3}x^{-2/3} = \dfrac{1}{3\sqrt[3]{x^2}}$$5.6 Summary of Basic Rules
| Function $f(x)$ | Derivative $f'(x)$ |
|---|---|
| $c$ (constant) | $0$ |
| $x$ | $1$ |
| $x^n$ | $nx^{n-1}$ |
| $x^{-n} = \dfrac{1}{x^n}$ | $-nx^{-n-1} = -\dfrac{n}{x^{n+1}}$ |
| $\sqrt{x} = x^{1/2}$ | $\dfrac{1}{2\sqrt{x}}$ |
| $c \cdot f(x)$ | $c \cdot f'(x)$ |
| $f(x) + g(x)$ | $f'(x) + g'(x)$ |
Frequently Asked Questions
Why does the power rule $(x^n)' = nx^{n-1}$ hold?
Using the binomial theorem, expand $(x+h)^n = x^n + nx^{n-1}h + \text{(terms involving $h^2$ and higher powers)}$. Subtract $x^n$ and divide by $h$. Then, as $h \to 0$, all terms containing $h$ vanish, leaving only $nx^{n-1}$.
Why is the condition $x > 0$ required when differentiating $\sqrt{x}$?
The function $\sqrt{x}$ is not defined as a real-valued function for $x < 0$. At $x=0$, the average rate of change from the right, $\dfrac{\sqrt{h}-0}{h}=\dfrac{1}{\sqrt{h}}$ (for $h>0$), grows without bound as $h$ approaches $0$. Therefore the derivative at $x=0$ does not exist, and the function is not differentiable there. The derivative $f'(x) = \dfrac{1}{2\sqrt{x}}$ exists as a finite value only for $x > 0$.
Why is the derivative of a constant equal to $0$?
A constant function $f(x) = c$ has the same value $c$ for every $x$, so it does not change. This can be verified from the definition, $\lim_{h \to 0}\dfrac{c - c}{h} = 0$, which agrees with the intuition that the rate of change of something that does not change is $0$.
Exercises
Differentiate the following functions.
- $f(x) = x^6$
- $f(x) = 4x^3 - 2x + 5$
- $f(x) = x^4 + 3x^3 - 2x^2 + x - 1$
- $f(x) = \dfrac{5}{x^2}$
Differentiate the following functions.
- $f(x) = \sqrt{x}$
- $f(x) = x^{3/2}$
- $f(x) = \dfrac{1}{\sqrt{x}}$
Given $f(x) = x^2 + 2x - 3$:
- Find $f'(x)$.
- Find the value of $f'(1)$.
- Find the equation of the tangent line at $x = 1$.
Show Answers
Answers to Exercise 1
- $f'(x) = 6x^5$
- $f'(x) = 12x^2 - 2$
- $f'(x) = 4x^3 + 9x^2 - 4x + 1$
- Since $f(x) = 5x^{-2}$, $f'(x) = -10x^{-3} = -\dfrac{10}{x^3}$
Answers to Exercise 2
- $f'(x) = \dfrac{1}{2}x^{-1/2} = \dfrac{1}{2\sqrt{x}}$
- $f'(x) = \dfrac{3}{2}x^{1/2} = \dfrac{3\sqrt{x}}{2}$
- Since $f(x) = x^{-1/2}$, $f'(x) = -\dfrac{1}{2}x^{-3/2} = -\dfrac{1}{2x\sqrt{x}}$
Answers to Exercise 3
- $f'(x) = 2x + 2$
- $f'(1) = 2(1) + 2 = 4$
- Since $f(1) = 1 + 2 - 3 = 0$, the tangent line passes through $(1, 0)$ and has slope $4$: $$y - 0 = 4(x - 1)$$ $$y = 4x - 4$$