Power rule for integer exponents proved in 2 methods
One of the most basic differentiation formulas is
dxdxn=nxn−1.
(For example, dxdx1=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,
dxd(10x4+2x+1)=dxd(10x4)+dxd(2x)+dxd(1)=10(4x3)+2(1)+0=40x3+2.
The formula works for any value of n for which we can even say what xn means. We'll begin by proving the formula when n is a positive integer, in two ways.
Method 1: The product rule
We already know that dxdx1=1 and dxdx0=0. So the first place to start is x2, which we can conveniently write as x⋅x.
By the product rule,
dxd(x⋅x)=dxd(x)⋅x+x⋅dxd(x)=1⋅x+x⋅1=2x.
So the formula dxdxn=nxn−1 checks out when n=2.
What about n=3, the next case? We can write x3 as x⋅x2, and we know the derivative of both x and x2. By using the product rule again, we get
dxd(x⋅x2)=dxd(x)⋅x2+x⋅dxd(x2)=1⋅x2+x⋅2x=3x2.
So the formula dxdxn=nxn−1 checks out when n=3.
We could also find the derivative of x4 in almost exactly the same way... but if we have to write a separate proof for each value of n, we'll be at it for a while. So let's just write xn as x⋅xn−1 and do the general case:
dxd(xn)=dxd(x⋅xn−1)=dxd(x)⋅xn−1+x⋅dxd(xn−1)=1⋅xn−1+x⋅(n−1)xn−1=nxn−1.
Is it okay that we used the formula to find dxdxn−1 when we were deriving dxdxn? Normally, that would be a little sketchy. In this case, it's okay, because to prove that the formula works for n, we use the fact that it works for n−1. For example, to prove that dxd(x100)=100x99, we need to know that the formula works for n=99... which requires the formula for n=98... which uses the formula for n=97... and eventually we get down to n=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 x2, we find
dxd(x2)=h→0limh(x+h)2−x2=h→0limhx2+2xh+h2−x2=h→0lim2x+h=2x.
All we needed to know was that (x+h)2 expands as x2+2xh+h2.
To differentiate xn, we will need to expand (x+h)n, instead. The Binomial Theorem tells us that if we do, we'll get
(x+h)n=(0n)xn+(1n)xn−1h+(2n)xn−2h2+⋯+(nn)hn,
where (kn) is the binomial coefficient, equal to k!(n−k)!n!.
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
where P(x,h) is some polynomial in x and h. The coefficient of xn is 1 (we only get xn by choosing x from every (x+h) factor) and the coefficient of xn−1h is n (there are n ways to get xn−1h: choose h from one of the (x+h) factors, and x from the rest). Since (0n)=1 and (1n)=n, the Binomial Theorem supports us.
Therefore
dxd(xn)=h→0limh(x+h)n−xn=h→0limhxn+nxn−1h+P(x,h)⋅h2−xn=h→0limnxn−1+P(x,h)⋅h=nxn−1.
Negative exponents
Everything we've done so far only works when n≥0. What about x−1=x1 or x−2=x21?
We can show that the formula works here as well by writing x−n as xn1 and applying the quotient rule:
dxdx−n=dxd(xn1)=(xn)2dxd(1)⋅xn−1⋅dxd(xn)=x2n0−nxn−1=−nx−n−1.