整数指数的幂法则

Read · 2 min

Power rule for integer exponents proved in 2 methods

One of the most basic differentiation formulas is ddxxn=nxn−1.\frac{d}{dx} x^n = n x^{n-1}. (For example, ddxx1=1\frac{d}{dx} x^1 = 1.) Since derivatives distribute across sums (from linearity of derivatives), and the derivative of any constant is zero, this lets us differentiate any polynomial. For example, ddx(10x4+2x+1)=ddx(10x4)+ddx(2x)+ddx(1)=10(4x3)+2(1)+0=40x3+2.\begin{align*} \frac{d}{dx}(10x^4 + 2x + 1) &= \frac{d}{dx}(10x^4) + \frac{d}{dx}(2x) + \frac{d}{dx}(1) \\ &= 10(4x^3) + 2(1) + 0 \\ &= 40x^3 + 2. \end{align*} The formula works for any value of nn for which we can even say what xnx^n means. We'll begin by proving the formula when nn is a positive integer, in two ways.

Method 1: The product rule

We already know that ddxx1=1\frac{d}{dx} x^1 = 1 and ddxx0=0\frac{d}{dx} x^0 = 0. So the first place to start is x2x^2, which we can conveniently write as x⋅xx \cdot x.

By the product rule, ddx(x⋅x)=ddx(x)⋅x+x⋅ddx(x)=1⋅x+x⋅1=2x.\frac{d}{dx}(x \cdot x) = \frac{d}{dx}(x) \cdot x + x \cdot \frac{d}{dx}(x) = 1 \cdot x + x \cdot 1 = 2x. So the formula ddxxn=nxn−1\frac{d}{dx} x^n = n x^{n-1} checks out when n=2n=2.

What about n=3n=3, the next case? We can write x3x^3 as x⋅x2x \cdot x^2, and we know the derivative of both xx and x2x^2. By using the product rule again, we get ddx(x⋅x2)=ddx(x)⋅x2+x⋅ddx(x2)=1⋅x2+x⋅2x=3x2.\frac{d}{dx}(x \cdot x^2) = \frac{d}{dx}(x) \cdot x^2 + x \cdot \frac{d}{dx}(x^2) = 1 \cdot x^2 + x \cdot 2x = 3x^2. So the formula ddxxn=nxn−1\frac{d}{dx} x^n = n x^{n-1} checks out when n=3n=3.

We could also find the derivative of x4x^4 in almost exactly the same way... but if we have to write a separate proof for each value of nn, we'll be at it for a while. So let's just write xnx^n as x⋅xn−1x \cdot x^{n-1} and do the general case: ddx(xn)=ddx(x⋅xn−1)=ddx(x)⋅xn−1+x⋅ddx(xn−1)=1⋅xn−1+x⋅(n−1)xn−1=nxn−1.\begin{align*} \frac{d}{dx}(x^n) &= \frac{d}{dx}(x \cdot x^{n-1}) \\ &= \frac{d}{dx}(x) \cdot x^{n-1} + x \cdot \frac{d}{dx}(x^{n-1}) \\ &= 1 \cdot x^{n-1} + x \cdot (n-1)x^{n-1} \\ &= nx^{n-1}. \end{align*} Is it okay that we used the formula to find ddxxn−1\frac{d}{dx} x^{n-1} when we were deriving ddxxn\frac{d}{dx} x^n? Normally, that would be a little sketchy. In this case, it's okay, because to prove that the formula works for nn, we use the fact that it works for n−1n-1. For example, to prove that ddx(x100)=100x99\frac{d}{dx}(x^{100}) = 100 x^{99}, we need to know that the formula works for n=99n=99... which requires the formula for n=98n=98... which uses the formula for n=97n=97... and eventually we get down to n=1n=1, which we know.

This "bootstrapping" technique is known as a proof by induction.

Method 2: The Binomial Theorem

We can also try applying the limit definition directly. For example, to find the derivative of x2x^2, we find ddx(x2)=lim⁡h→0(x+h)2−x2h=lim⁡h→0x2+2xh+h2−x2h=lim⁡h→02x+h=2x.\begin{align*} \frac{d}{dx}(x^2) &= \lim_{h\to 0} \frac{(x+h)^2 - x^2}{h} \\ &= \lim_{h\to 0} \frac{x^2 + 2xh + h^2 - x^2}{h} \\ &= \lim_{h\to 0} 2x+h = 2x. \end{align*} All we needed to know was that (x+h)2(x+h)^2 expands as x2+2xh+h2x^2 + 2xh + h^2.

To differentiate xnx^n, we will need to expand (x+h)n(x + h)^n, instead. The Binomial Theorem tells us that if we do, we'll get (x+h)n=(n0)xn+(n1)xn−1h+(n2)xn−2h2+⋯+(nn)hn,(x+h)^n = {n \choose 0}x^n + {n\choose 1}x^{n-1}h + {n \choose 2}x^{n-2} h^2 + \cdots + {n \choose n}h^n, where (nk){n \choose k} is the binomial coefficient, equal to n!k!(n−k)!\frac{n!}{k!(n-k)!}.

We don't really need to know that, though. All we need to know is that (x+h)n=xn+nxn−1h+P(x,h)⋅h2(x+h)^n = x^n + n x^{n-1} h + P(x, h)\cdot h^2 where P(x,h)P(x, h) is some polynomial in xx and hh. The coefficient of xnx^n is 11 (we only get xnx^n by choosing xx from every (x+h)(x+h) factor) and the coefficient of xn−1hx^{n-1} h is nn (there are nn ways to get xn−1hx^{n-1}h: choose hh from one of the (x+h)(x+h) factors, and xx from the rest). Since (n0)=1{n \choose 0} = 1 and (n1)=n{n\choose 1} = n, the Binomial Theorem supports us.

Therefore ddx(xn)=lim⁡h→0(x+h)n−xnh=lim⁡h→0xn+nxn−1h+P(x,h)⋅h2−xnh=lim⁡h→0nxn−1+P(x,h)⋅h=nxn−1.\begin{align*} \frac{d}{dx}(x^n) &= \lim_{h\to 0} \frac{(x+h)^n - x^n}{h} \\ &= \lim_{h\to 0} \frac{x^n + n x^{n-1} h + P(x,h)\cdot h^2 - x^n}{h} \\ &= \lim_{h\to 0} n x^{n-1} + P(x,h) \cdot h \\ &= n x^{n-1}. \end{align*}

Negative exponents

Everything we've done so far only works when n≥0n \ge 0. What about x−1=1xx^{-1} = \frac{1}{x} or x−2=1x2x^{-2} = \frac{1}{x^2}?

We can show that the formula works here as well by writing x−nx^{-n} as 1xn\frac{1}{x^n} and applying the quotient rule: ddxx−n=ddx(1xn)=ddx(1)⋅xn−1⋅ddx(xn)(xn)2=0−nxn−1x2n=−nx−n−1.\begin{align*} \frac{d}{dx} x^{-n} &= \frac{d}{dx}\left(\frac{1}{x^n}\right) \\ &= \frac{\frac{d}{dx}(1) \cdot x^n - 1 \cdot \frac{d}{dx}(x^n)}{(x^n)^2} \\ &= \frac{0 - n x^{n-1}}{x^{2n}} \\ &= - n x^{-n-1}. \end{align*}

Read · 1 min

How can we find the derivative of f(x)=xnf(x)=x^n , where n is an integer?

We'll need to take a look at the definition of a derivative- It is the limit as h approaches 0 of f(x+h)−f(x)h\frac{f(x+h)-f(x)}{h}.

We plug in f(x)=xnf(x)=x^n to get (x+h)n−xnh\frac{(x+h)^n-x^n}{h}. We can't just plug in h=0h=0 because the fraction would become 00\frac{0}{0}.

By expanding the numerator, we obtain that the numerator equals xn+(n1)xn−1h+...+hn−xnx^n + \binom{n}{1} x^{n-1} h + ... + h^n - x^n.

So the numerator equals (n1)xn−1h+...+hn−1x(nn−1)+hn\binom{n}{1} x^{n-1} h + ... + h^{n-1} x \binom{n}{n-1} + h^n.

The denominator of the fraction is h, so we divide by h.

The derivative then becomes the limit, as h approaches 0, of (n1)xn−1+(n2)xn−2h+...+hn−1\binom{n}{1} x^{n-1} + \binom{n}{2} x^{n-2} h + ... + h^{n-1}.

We plug in h=0h=0, so the expression becomes nxn−1nx^{n-1}.

Therefore, (xn)′=nxn−1(x^n)' = nx^{n-1}.

This makes lots of sense too- The derivative of a constant becomes 0, and the derivative of f(x)=ax+bf(x)=ax+b is aa, the slope of the line.

Read · 1 min

How can we find the derivative of axa^x (with respect to a)?

First we take a look at the definition of a derivative: It is the limit as hh approaches 00 of f(a+h)−f(a)h\frac{f(a+h)-f(a)}{h}. We can't just plug in h=0h=0 right now, because then the expression becomes 00\frac{0}{0}.

Now we let f(a)=axf(a)=a^x.

Plugging it into the formula, we find the derivative of axa^x is (a+h)x−axh\frac{(a+h)^x - a^x}{h}.

We use binomial expansion on the numerator- it becomes ax+ax−1h(x1)+...+ahx−1(xx−1)+hx−axa^x + a^{x-1} h \binom{x}{1} + ... + ah^{x-1} \binom{x}{x-1} + h^x - a^x.

Therefore, f(a+h)−f(a)h=ax−1(x1)+ax−2h(x2)+...+hx\frac{f(a+h)-f(a)}{h} = a^{x-1} \binom{x}{1} + a^{x-2} h \binom{x}{2} + ... + h^x.

But remember, we want to find the value of this as h approaches 0! Then we can plug in h=0h=0 so that everything reduces to xax−1xa^{x-1}.

We have shown that the derivative of axa^x is xax−1xa^{x-1}.

This makes lots of sense: For example, the derivative of any constant like 5 becomes 0.0. Meanwhile, the derivative of f(x)=ax+bf(x)=ax+b is aa, which is the slope of the line.

Type a concept, like “slope” or “photosynthesis”.

↑ ↓ to choose · Enter to openSearch explanations and problems