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.

Theorem (Power Rule)

For a positive integer $n$:

$$\dfrac{d}{dx}x^n = nx^{n-1}$$
Proof

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}$$
A Power Function and Its Derivative x y 1 2 3 1 2 3 4 5 f(x) = x² f'(x) = 2x The slope is 2 at x = 1 and 4 at x = 2
Figure 1: $f(x) = x^2$ (blue) and its derivative $f'(x) = 2x$ (red dashed). The slope of the tangent line is $2$ at $x = 1$ and $4$ at $x = 2$, matching the values of the derivative.

Examples

Example 1: Differentiating $f(x) = x^2$

Using the power rule:

$$f'(x) = 2x^{2-1} = 2x$$
Example 2: Differentiating $f(x) = x^3$

Using the power rule:

$$f'(x) = 3x^{3-1} = 3x^2$$
Example 3: Differentiating $f(x) = x^5$

Using the power rule:

$$f'(x) = 5x^{5-1} = 5x^4$$

5.2 Constant Multiple and Sum Rules

Theorem (Constant Multiple Rule)

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)$$
Proof

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)$$
Theorem (Sum Rule)

If $f(x)$ and $g(x)$ are differentiable, then:

$$\dfrac{d}{dx}[f(x) + g(x)] = f'(x) + g'(x)$$
Proof

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)$$
Visualizing the Sum Rule f(x) Differentiate ↓ f'(x) + + g(x) Differentiate ↓ g'(x) = = f(x)+g(x) Differentiate ↓ f'(x)+g'(x)
Figure 2: Differentiating a sum. The derivative of $f(x) + g(x)$ is the sum of the derivatives, $f'(x) + g'(x)$.
Example: Differentiating $f(x) = 3x^2 + 5x$

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.

Theorem (Differentiation of Polynomials)

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$$
Proof

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$$
Steps for Differentiating a Polynomial f(x) = 2x³ + 3x² - 4x + 5 Differentiate each term d/dx(2x³) + d/dx(3x²) - d/dx(4x) + d/dx(5) Apply the rules 2·3x² + 3·2x - 4·1 + 0 f'(x) = 6x² + 6x - 4
Figure 3: Differentiating the polynomial $f(x) = 2x^3 + 3x^2 - 4x + 5$. Differentiating each term with the power rule gives $f'(x) = 6x^2 + 6x - 4$.
Example 1: $f(x) = x^4 - 2x^3 + 3x^2 - x + 7$

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$$
Example 2: Differentiating $f(x) = (x+1)(x-2)$

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.

Theorem (Differentiation of Negative Powers)

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}}$$
Proof

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}$$
y = 1/x and Its Derivative y = -1/x² x y -1 1 2 y = 1/x y = -1/x² The derivative is always negative
Figure 4: $y = \dfrac{1}{x}$ (blue) and its derivative $y = -\dfrac{1}{x^2}$ (red dashed). The derivative is negative for every $x \ne 0$, so $\dfrac{1}{x}$ is decreasing on each of the intervals $x \gt 0$ and $x \lt 0$.
Example 1: Differentiating $f(x) = \dfrac{1}{x}$

Rewrite it as $f(x) = x^{-1}$:

$$f'(x) = -1 \cdot x^{-1-1} = -x^{-2} = -\dfrac{1}{x^2}$$
Example 2: Differentiating $f(x) = \dfrac{1}{x^3}$

Rewrite it as $f(x) = x^{-3}$:

$$f'(x) = -3 \cdot x^{-3-1} = -3x^{-4} = -\dfrac{3}{x^4}$$
Example 3: Differentiating $f(x) = \dfrac{2}{x^2} + \dfrac{3}{x}$

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.

Theorem (Power Rule for Real 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.

Example 1: Differentiating $f(x) = \sqrt{x}$

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}}$$
Example 2: Differentiating $f(x) = \sqrt[3]{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}}$$
Example 3: Differentiating $f(x) = x^{3/2}$
$$f'(x) = \dfrac{3}{2}x^{3/2 - 1} = \dfrac{3}{2}x^{1/2} = \dfrac{3\sqrt{x}}{2}$$
y = √x and Its Derivative x y 1 2 3 4 1 2 y = √x y = 1/(2√x) Tangent at x=1
Figure 5: $y = \sqrt{x}$ (blue), its derivative $y = \dfrac{1}{2\sqrt{x}}$ (red dashed), and the tangent line at $x = 1$ (green). The slope of the tangent line, $\dfrac{1}{2}$, equals the value of the derivative at $x = 1$.

5.6 Summary of Basic Rules

Basic Differentiation 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

Exercise 1

Differentiate the following functions.

  1. $f(x) = x^6$
  2. $f(x) = 4x^3 - 2x + 5$
  3. $f(x) = x^4 + 3x^3 - 2x^2 + x - 1$
  4. $f(x) = \dfrac{5}{x^2}$
Exercise 2

Differentiate the following functions.

  1. $f(x) = \sqrt{x}$
  2. $f(x) = x^{3/2}$
  3. $f(x) = \dfrac{1}{\sqrt{x}}$
Exercise 3

Given $f(x) = x^2 + 2x - 3$:

  1. Find $f'(x)$.
  2. Find the value of $f'(1)$.
  3. Find the equation of the tangent line at $x = 1$.
Show Answers

Answers to Exercise 1

  1. $f'(x) = 6x^5$
  2. $f'(x) = 12x^2 - 2$
  3. $f'(x) = 4x^3 + 9x^2 - 4x + 1$
  4. Since $f(x) = 5x^{-2}$, $f'(x) = -10x^{-3} = -\dfrac{10}{x^3}$

Answers to Exercise 2

  1. $f'(x) = \dfrac{1}{2}x^{-1/2} = \dfrac{1}{2\sqrt{x}}$
  2. $f'(x) = \dfrac{3}{2}x^{1/2} = \dfrac{3\sqrt{x}}{2}$
  3. Since $f(x) = x^{-1/2}$, $f'(x) = -\dfrac{1}{2}x^{-3/2} = -\dfrac{1}{2x\sqrt{x}}$

Answers to Exercise 3

  1. $f'(x) = 2x + 2$
  2. $f'(1) = 2(1) + 2 = 4$
  3. 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$$