Tutorials › Real Analysis › Power Rule

Differentiation · Tutorial 397 of 1000

Power Rule

Use algebraic identities and limits to differentiate integer powers, and see why negative powers require excluding zero.

Advanced 9 min read

What You'll Learn

  • Derive the derivative of a positive integer power from the difference quotient
  • Apply the power rule at zero, including the special case of the identity function
  • Prove the rule for negative integer powers at nonzero inputs
  • Track the domain restrictions that come with negative exponents
  • Distinguish the integer power rule from a rule for arbitrary real exponents

From the Identity to Higher Powers

In “Derivative of the Identity,” the difference quotient simplified exactly to one. For a higher power, the quotient does not usually stay constant, but its algebraic structure can still be exposed before taking a limit. The key is to factor a difference of powers. This gives the power rule for integer exponents directly from the definition of the derivative.

We begin with nonnegative integer powers. For a positive integer \(n\), the function \(x\mapsto x^n\) is defined on all of \(\mathbb{R}\), so its derivative can be considered at every real input. Negative integer powers are also covered, but their domains exclude zero. The rule for arbitrary real exponents is not established here; it requires additional results about how such powers are defined and how they vary.

Definition: For a positive integer \(n\), the \(n\)th power function is \(p_n:\mathbb{R}\to\mathbb{R}\), defined by \(p_n(x)=x^n\). We also use \(p_0(x)=1\) for every \(x\in\mathbb{R}\). For a positive integer \(m\), the negative power function \(x\mapsto x^{-m}\) is defined on \(\mathbb{R}\setminus\{0\}\) by \(x^{-m}=1/x^m\).

The algebraic identity we need is the difference-of-powers factorization. If \(u\) and \(v\) are real numbers and \(n\) is a positive integer, then

$$ u^n-v^n=(u-v)\sum_{j=0}^{n-1}u^{n-1-j}v^j. $$

To check the identity, multiply out the right-hand side. The terms \(u^{n-j}v^j\) from the first product cancel with the matching terms \(-u^{n-1-j}v^{j+1}\) from the second. Only \(u^n\) and \(-v^n\) remain. This factorization turns the difference quotient into a finite sum whose limit is straightforward to evaluate.

The Power Rule for Nonnegative Integer Exponents

Theorem (Power Rule for Nonnegative Integer Exponents): Let \(n\) be a nonnegative integer and define \(p_n(x)=x^n\) for \(x\in\mathbb{R}\), with \(p_0(x)=1\). Then \(p_n\) is differentiable at every \(a\in\mathbb{R}\). If \(n=0\), then \(p_0'(a)=0\). If \(n\geq1\), then \(p_n'(a)=n a^{n-1}\).

Proof. If \(n=0\), \(p_0\) is the constant function with value \(1\). By the Derivative of a Constant Function Theorem, its derivative is \(0\) at every interior point of its domain, and every real number is an interior point of \(\mathbb{R}\).

Now let \(n\geq1\) and fix \(a\in\mathbb{R}\). For every nonzero \(h\), apply the difference-of-powers identity with \(u=a+h\) and \(v=a\). Since \(u-v=h\), the difference quotient is

$$ \frac{(a+h)^n-a^n}{h} = \sum_{j=0}^{n-1}(a+h)^{n-1-j}a^j. $$

As \(h\to0\), each term in this finite sum tends to \(a^{n-1-j}a^j=a^{n-1}\). There are exactly \(n\) terms, so the limit of the sum is \(n a^{n-1}\). Thus the derivative exists and equals \(n a^{n-1}\). Since \(a\) was arbitrary, the result holds at every real input. \(\square\)

The proof includes the point \(a=0\); it does not require dividing by \(a\). This matters because factoring out a power of \(a\) in the quotient could create a division by zero and leave the derivative at zero unproved. The finite-sum argument works there just as it does elsewhere. When \(n=1\), the formula gives \(1\), in agreement with the Derivative of the Identity Theorem.

Worked Example: Differentiating a Fifth Power at a Negative Input

Let \(f(x)=x^5\), and find \(f'(-2)\). The power rule applies at every real input, so

$$ f'(-2)=5(-2)^4=5\cdot16=80. $$

The positive result is consistent with the formula: the exponent on the input in the derivative is \(4\), which is even. It is also possible to see the finite-sum limit directly. The quotient at \(-2\) is

$$ \frac{(-2+h)^5-(-2)^5}{h} = (-2+h)^4+(-2+h)^3(-2)+(-2+h)^2(-2)^2 +(-2+h)(-2)^3+(-2)^4. $$

As \(h\to0\), each of the five terms tends to \(16\), so the quotient tends to \(5\cdot16=80\).

Worked Example: The Derivative of a Power at Zero

Let \(g(x)=x^4\). At \(a=0\), the power rule gives

$$ g'(0)=4\cdot0^3=0. $$

Directly, for every \(h\ne0\),

$$ \frac{g(0+h)-g(0)}{h} = \frac{h^4-0}{h} =h^3. $$

As \(h\to0\), \(h^3\to0\), confirming that \(g'(0)=0\). No division by the base point was used, and the derivative exists even though the formula \(4x^3\) vanishes at zero.

Negative Integer Powers

For a negative exponent, zero must be excluded from the domain: \(x^{-m}=1/x^m\) is undefined when \(x=0\). At any nonzero point, however, the same difference-of-powers factorization yields the derivative. We give the argument directly from the difference quotient, so no quotient rule is needed.

Theorem (Power Rule for Negative Integer Exponents): Let \(m\) be a positive integer, and define \(q_m(x)=x^{-m}=1/x^m\) for \(x\in\mathbb{R}\setminus\{0\}\). Then \(q_m\) is differentiable at every \(a\ne0\), and \(q_m'(a)=-m a^{-m-1}\).

Proof. Fix \(a\ne0\). If \(|h|<|a|/2\), then \(|a+h|\geq |a|-|h|>|a|/2>0\), so \(a+h\) remains in the domain. For such \(h\ne0\), rewrite and factor the difference quotient:

$$ \begin{aligned} \frac{(a+h)^{-m}-a^{-m}}{h} &= \frac{1/(a+h)^m-1/a^m}{h}\\ &= -\frac{(a+h)^m-a^m}{h\,a^m(a+h)^m}\\ &= -\frac{\displaystyle\sum_{j=0}^{m-1}(a+h)^{m-1-j}a^j} {a^m(a+h)^m}. \end{aligned} $$

In the last equality we used the difference-of-powers identity. As \(h\to0\), each of the \(m\) terms in the numerator sum tends to \(a^{m-1}\), so the numerator tends to \(m a^{m-1}\). The denominator tends to \(a^m a^m=a^{2m}\), which is nonzero because \(a\ne0\). Therefore the quotient has limit

$$ -\frac{m a^{m-1}}{a^{2m}} = -m a^{-m-1}. $$

This is the derivative at \(a\), and \(a\) was any nonzero real number. \(\square\)

Worked Example: Differentiating a Reciprocal Cubic

Let \(f(x)=x^{-3}\), defined for \(x\ne0\). At \(x=2\), the negative-integer power rule gives

$$ f'(2)=-3\cdot2^{-4}=-\frac{3}{16}. $$

The value of the function is \(f(2)=2^{-3}=1/8\), while its derivative is \(-3/16\); these are different quantities. To verify the quotient calculation, for \(h\ne0\) with \(2+h\ne0\),

$$ \frac{(2+h)^{-3}-2^{-3}}{h} = -\frac{(2+h)^2+2(2+h)+2^2}{2^3(2+h)^3}. $$

As \(h\to0\), the numerator inside the fraction tends to \(4+4+4=12\), and the denominator tends to \(8\cdot8=64\). The limit is \(-12/64=-3/16\), as stated.

Worked Example: A Negative Exponent at a Negative Input

Let \(g(x)=x^{-2}\), with domain \(\mathbb{R}\setminus\{0\}\). At \(x=-1\),

$$ g'(-1)=-2(-1)^{-3} =-2\left(-1\right) =2. $$

The sign is positive because \((-1)^{-3}=1/(-1)^3=-1\). Checking through the quotient, for sufficiently small \(h\ne0\),

$$ \frac{(-1+h)^{-2}-(-1)^{-2}}{h} = -\frac{(-1+h)+(-1)}{(-1)^2(-1+h)^2}. $$

The numerator of this fraction tends to \(-2\), and its denominator tends to \(1\). Including the minus sign, the limit is \(2\).

Using the Rule Carefully

For integer exponents, the two results can be summarized as \( \frac{d}{dx}x^n=n x^{n-1}\), with the domain understood. If \(n\) is positive, \(x^n\) is defined for every real \(x\) and the formula holds everywhere. If \(n=0\), the function is constant and its derivative is \(0\); the expression \(0x^{-1}\) should not be used at zero, where \(x^{-1}\) is undefined. If \(n\) is negative, both the function and its derivative formula are restricted to nonzero inputs.

ExponentDomain of the functionDerivative
Positive integer \(n\)All real numbers\(n x^{n-1}\), for all real \(x\)
ZeroAll real numbers\(0\), for all real \(x\)
Negative integer \(-m\), with \(m>0\)Nonzero real numbers\(-m x^{-m-1}\), for \(x\ne0\)

A common pitfall is to treat the displayed formula as if it automatically applied to every exponent and every input. The proofs here use integer powers and, for negative powers, a denominator that stays nonzero near the point under consideration. They do not prove a differentiation rule for fractional or irrational exponents. Nor does the notation \(x^{n-1}\) remove a domain restriction: for negative powers, zero remains excluded.

The power rule is useful because it converts a limit problem into a short calculation once its hypotheses are checked. The difference quotient supplies the justification; the formula is not an independent shortcut detached from the definition. Later differentiation rules will let us combine power functions with other expressions, but this result is the basic calculation on which those methods build.

Check Your Understanding

Use the difference quotient arguments and domain conditions developed above to answer the following questions.

  1. Why does the factorization of \((a+h)^n-a^n\) turn the difference quotient for a positive integer power into a sum of \(n\) terms?
  2. What is the derivative of \(x^6\) at \(x=0\), and why does the proof of the power rule include this point?
  3. For \(x^{-m}\), why must the base point be nonzero, and how can a sufficiently small increment be chosen to keep \(a+h\) nonzero?
  4. Find the derivative of \(x^{-4}\) at \(x=1\), and state the domain restriction.
  5. Why do these arguments establish the rule for integer exponents but not, by themselves, for every real exponent?