What is the derivative of #x^n#?

2 Answers
Oct 10, 2014

For the function #f(x)=x^n#, n should not equal 0, for reasons which will become clear. n should also be an integer or a rational number (i.e. a fraction).

The rule is:
#f(x) = x^n => f'(x) = nx^(n-1)#

In other words, we "borrow" the power of x and make it the coefficient of the derivative, and then subtract 1 from the power.

#f(x) = x^2 => f'(x) = 2x^1#
#f(x) = x^7 => f'(x) = 7x^6#
#f(x) = x^(1/2) => f'(x) = 1/2*x^(-1/2)#

As I mentioned, the special case is where n=0. This means that
#f(x)=x^0=1#
We can use our rule and technically get the right answer:
#f'(x) = 0x^-1=0#
However, later on down the track, we will run into complications when we try to use the inverse of this rule.

Oct 9, 2015

#y^' = nx^(n-1)#

Below are the proofs for every numbers, but only the proof for all integers use the basic skillset of the definition of derivatives. The proof for all rationals use the chain rule and for irrationals use implicit differentiation.

Explanation:

That being said, I'll show them all here, so you can understand the process. Beware that it #will# be fairly long.

From #y = x^(n)#, if #n = 0# we have #y = 1# and the derivative of a constant is alsways zero.

If #n# is any other positive integer we can throw it in the derivative formula and use the binomial theorem to solve the mess.

#y = lim_(h rarr 0)((x+h)^n - x^n)/h#
#y = lim_(h rarr 0)(x^n + Sigma_(i=1)^n(K_i*x^(n-i)h^i) - x^n)/h#

Where #K_i# is the appropriate constant

#y = lim_(h rarr 0)Sigma_(i=1)^n(K_i*x^(n-i)h^i)/h#

Dividing that #h#

#y = lim_(h rarr 0)Sigma_(i=1)^nK_i*x^(n-i)h^(i-1)#

We can take out the first term from the sum

#y = lim_(h rarr 0) K_1*x^(n-1) + Sigma_(i=2)^nK_ix^(n-i)h^(i-1)#

Taking the limit, everything else still in the sum goes to zero. Calculating #K_1# we see that it equals #n#, so

#y = K_1*x^(n-1) = nx^(n-1)#

For #n# that are negative integers it's a bit more complicated. Knowing that #x^-n = 1/x^b#, such that #b = -n# and therefore is positive.

#y = lim_(h rarr 0)1/h(1/(x+h)^b - 1/x^b)#
#y = lim_(h rarr 0)1/h((x^b - (x+h)^b)/(x^b(x+h)^b))#
#y = lim_(h rarr 0)1/h((x^b - x^b - Sigma_(i=1)^bK_ix^(b-i)h^i)/(x^b(x+h)^b))#
#y = lim_(h rarr 0)((- Sigma_(i=1)^bK_ix^(b-i)h^(i-1))/(x^b(x+h)^b))#

Take out the first term

#y = lim_(h rarr 0)((-K_1x^(b-1) - Sigma_(i=2)^bK_ix^(b-i)h^(i-1))/(x^b(x+h)^b))#

Take the limit, Where #K_1 = b#, subsituting that back to #n#

#y = -K_1x^(b-1)/(x^b*x^b) = -K_1x^(b-1-2b) = -K_1x^(-b-1) = nx^(n-1)#

For rationals we need to use the chain rule. I.e.: #[f(g(x))]^' = f^'(g(x))g^'(x)#

So, knowing that #x^(1/n) = root(n)(x)# and assuming #n = 1/b# we have

#(x^n)^b = x#

If #b# is even, the answer is technically #|x|# but this is close enough for our purposes

So, using the chain rule we have

#[x^n]^' = 1/(bx^(nb-n)) = 1/(bx^(1-n)) = nx^(n - 1)#

And last but not least, using implicit differentiation we can prove for all real numbers, including the irrationals.

#y = x^n#
#ln(y) = n*ln(x)#

#y^'/y = n/x#

#y^' = (nx^n)/x = nx^(n-1)#