Differentiating x^n where n is a negative integer
Theory
The power rule \(\dfrac{d}{dx}x^{n}=n\,x^{n-1}\) extends to negative integer powers, so reciprocal terms such as \(\dfrac{1}{x}\), \(\dfrac{1}{x^{2}}\) and \(\dfrac{3}{x^{3}}\) are first rewritten as \(x^{-1}\), \(x^{-2}\) and \(3x^{-3}\) before differentiating. Each term is differentiated separately and written back in fraction form; the function and its derivative are undefined at \(x=0\).
The power rule \(\dfrac{d}{dx}x^{n}=n\,x^{n-1}\) holds for every integer \(n\), not just positive ones. When \(n\) is a negative integer the same procedure applies — multiply by the index and reduce the index by one — so, for example, \(\dfrac{d}{dx}x^{-2}=-2x^{-3}\).
To use the rule on a fraction, first rewrite it as a power of \(x\) using the index law \(\dfrac{1}{x^{k}}=x^{-k}\). Thus \(\dfrac{1}{x}=x^{-1}\), \(\dfrac{1}{x^{2}}=x^{-2}\), and a constant on top is kept as a coefficient: \(\dfrac{3}{x^{3}}=3x^{-3}\). After differentiating, negative indices are usually converted back to fractions so the answer matches the original form.
A sum or difference of such terms is differentiated term by term, and a constant multiple is carried through: \(\dfrac{d}{dx}\big(a\,x^{n}\big)=a\,n\,x^{n-1}\). Because a term like \(\dfrac{1}{x}\) has no value at \(x=0\), the domain excludes \(x=0\), and the derivative gives the gradient only at points where \(x\neq 0\).
The power rule — valid for every integer \(n\), including negative integers:
Rewrite reciprocals as negative powers before differentiating, then convert back:
The two standard cases, written in fraction form:
How to differentiate a term with a negative index
- Rewrite as a power of \(x\). Use \(\dfrac{a}{x^{k}}=a\,x^{-k}\) so every term looks like \(a\,x^{n}\) — for example \(\dfrac{3}{x^{3}}=3x^{-3}\).
- Apply the power rule to each term. Multiply by the index and reduce the index by \(1\): \(\dfrac{d}{dx}\big(a\,x^{n}\big)=a\,n\,x^{n-1}\). Take care with signs when \(n\) is negative.
- Convert back to fractions. Rewrite negative indices as reciprocals, e.g. \(-9x^{-4}=-\dfrac{9}{x^{4}}\).
- Evaluate if required. For a gradient, substitute the \(x\)-value (\(x\neq 0\)); for a tangent, use \(y-y_{1}=m(x-x_{1})\) with that gradient and the point.
| \(y\) | \(=\) | \(x^{-1}\) |
| \(\dfrac{dy}{dx}\) | \(=\) | \(-1\,x^{-2}\) |
| \(=\) | \(-\dfrac{1}{x^{2}}\) |
| \(y\) | \(=\) | \(x^{-2}\) |
| \(\dfrac{dy}{dx}\) | \(=\) | \(-2x^{-3}=-\dfrac{2}{x^{3}}\) |
| \(y\) | \(=\) | \(3x^{-3}\) |
| \(\dfrac{dy}{dx}\) | \(=\) | \(3\times(-3)\,x^{-4}\) |
| \(=\) | \(-9x^{-4}=-\dfrac{9}{x^{4}}\) |
| \(y\) | \(=\) | \(x^{2}-4x^{-1}+2x^{-3}\) |
| \(\dfrac{dy}{dx}\) | \(=\) | \(2x-4(-1)x^{-2}+2(-3)x^{-4}\) |
| \(=\) | \(2x+4x^{-2}-6x^{-4}\) |
| \(\dfrac{dy}{dx}\) | \(=\) | \(2x+\dfrac{4}{x^{2}}-\dfrac{6}{x^{4}}\) |
| \(y\) | \(=\) | \(2x^{-1}\) |
| \(\dfrac{dy}{dx}\) | \(=\) | \(-2x^{-2}=-\dfrac{2}{x^{2}}\) |
| \(m\) | \(=\) | \(-\dfrac{2}{1^{2}}=-2\) |
| \(y-2\) | \(=\) | \(-2(x-1)\) |
| \(y\) | \(=\) | \(-2x+4\) |
Common pitfalls
Frequently asked questions
How do you differentiate 1 over x?
Rewrite \(\dfrac{1}{x}\) as \(x^{-1}\), then use the power rule: \(\dfrac{d}{dx}x^{-1}=-1\,x^{-2}=-\dfrac{1}{x^{2}}\).
Does the power rule work for negative powers?
Yes — \(\dfrac{d}{dx}x^{n}=n\,x^{n-1}\) holds for every integer \(n\). For example \(\dfrac{d}{dx}x^{-3}=-3x^{-4}\).
How do you rewrite a fraction like 3 over x cubed before differentiating?
Move the power into the numerator with a negative index: \(\dfrac{3}{x^{3}}=3x^{-3}\). Then \(\dfrac{dy}{dx}=3(-3)x^{-4}=-\dfrac{9}{x^{4}}\).
How do you differentiate a sum of reciprocal terms?
Rewrite each term as a power of \(x\), differentiate term by term, then convert back. For instance \(x^{2}-\dfrac{4}{x}\) gives \(2x+\dfrac{4}{x^{2}}\).
How do you find the gradient of y equals 1 over x at a point?
Differentiate to get \(\dfrac{dy}{dx}=-\dfrac{1}{x^{2}}\), then substitute the \(x\)-value. For \(y=\dfrac{2}{x}\) at \((1,2)\) the gradient is \(-2\) and the tangent is \(y=-2x+4\).
Why is the derivative undefined at x equals 0?
A term like \(\dfrac{1}{x}\) has no value at \(x=0\), so its derivative \(-\dfrac{1}{x^{2}}\) is undefined there too; the domain excludes \(x=0\).