MHB How to Differentiate y=x^x by First Principles?

  • Thread starter Thread starter jiasyuen
  • Start date Start date
  • Tags Tags
    Principle
jiasyuen
Messages
25
Reaction score
0
Anyone know how to differentiate $$y=x^x$$ by first principles?
 
Physics news on Phys.org
That requires using the definition of the derivative:

$$f'(a)=\lim_{{x}\to{a}}\frac{f(x)-f(a)}{x-a}$$
 
Last edited:
I know this. But can you show me the solution? Thanks.
 
Are you trying to compute the derivative on a given point, or the general formula? I am saying this because the latter is quite tricky.
 
Yea. Because I can't find the answer by using first principles.
The question also states that to simplify ur solution, assume x is integer and the function lie on first quadrant only (means no complex number here).
 
We can use either definitions:

$$f'(a)=\lim_{{x}\to{a}}\frac{x^x-a^a}{x-a}$$
or
$$f'(x)=\lim_{{h}\to{0}}\frac{(x+h)^{x+h}-x^x}{h}$$

The rest is just simplifying...what is the actual question, exactly? (Wondering)
 
Differentiate $$y=x^x$$ by using first principles. Assume x is integer and the function lie on first quadrant only.

Can you show the whole solution to me? Thanks.
 
$$f'(x)=\lim_{{h}\to{0}}\frac{(x+h)^{x+h}-x^x}{h}$$
$$=\lim_{{h}\to{0}}\frac{(x+h)^{x+h}-(x+h)^x+(x+h)^x-x^x}{h}$$
$$=\lim_{{h}\to{0}}\frac{(x+h)^x\left[(x+h)^h-1\right]}{h}+\lim_{{h}\to{0}}\frac{(x+h)^x-x^x}{h}$$
$$=x^x\ln\left({x}\right)+\lim_{{h}\to{0}}\frac{((x+h)-x)\left[x^{x-1}+x^{x-2}\cdot x+...+x\cdot x^{x-2}+x^{x-1}\right]}{h}$$

Can you finish this?
 
Last edited:
The last step seems complicated to me. How to simplify it?
How the ln(x) comes from?
 
  • #10
Notice that $(x+h)-x=h$, so how can you simply the fraction? Also, each term in the larger parenthesis simplifies to $x^{x-1}$, so we have $x$ terms of $x^{x-1}$.

It is known that $\lim_{{h}\to{0}}\frac{x^h-1}{h}=\ln\left({x}\right)$.
 
  • #11
So the final answer is $$x^x(\ln x+1)$$?
 
  • #12
Yes, that is correct! (Cool)
 
  • #13
How to prove that $$\lim_{{h}\to{0}}\frac{x^h-1}{h}=\ln\left({x}\right)$$
 
  • #14
How to prove it by not using L'Hopital rule ?
 
  • #15
Hi jiasyuen,

This is also not an easy limit to evaluate. Although it is tempting to use L'Hopital's rule or invoke the definition of the derivative, that is circular logic.

I am now unable to come up with a proof off the top of my head, and so if anyone has any ideas, feel free to comment.
 
Last edited:
  • #16
Here's a different approach:
$$x^x = e^{\ln x^x} = e^{x\ln x}$$
Apply the chain rule followed by the product rule to get the derivative:
$$\d {} x \left({x^x}\right) = \d {} x \left(e^{x\ln x}\right) = e^{x\ln x}\cdot \d {} x(x\ln x) = e^{x\ln x}\cdot \left(1\cdot \ln x + x \cdot \frac 1 x\right) = x^x(\ln x + 1)$$
 
  • #17
Can anyone show it ? Thanks.
 
  • #18
jiasyuen said:
Can anyone show it ? Thanks.
How is the natural logarithm defined in your course?
 

Similar threads

Back
Top