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

  • Context: MHB 
  • Thread starter Thread starter jiasyuen
  • Start date Start date
  • Tags Tags
    Principle
Click For Summary
SUMMARY

The differentiation of the function $$y=x^x$$ using first principles results in the derivative $$f'(x)=x^x(\ln x + 1)$$. This is derived through the limit definition of the derivative, specifically using the expression $$f'(x)=\lim_{{h}\to{0}}\frac{(x+h)^{x+h}-x^x}{h}$$. The discussion emphasizes the importance of simplifying the limit and recognizing that $$\lim_{{h}\to{0}}\frac{x^h-1}{h}=\ln(x)$$ to arrive at the final result. The participants also explore alternative methods, including the chain and product rules, to verify the derivative.

PREREQUISITES
  • Understanding of limits and the definition of the derivative
  • Familiarity with exponential functions and logarithms
  • Knowledge of the chain rule and product rule in calculus
  • Basic algebraic manipulation skills for simplifying expressions
NEXT STEPS
  • Study the limit definition of the derivative in depth
  • Learn how to apply the chain rule and product rule effectively
  • Explore proofs of the limit $$\lim_{{h}\to{0}}\frac{x^h-1}{h}=\ln(x)$$ without using L'Hopital's rule
  • Practice differentiating other exponential functions using first principles
USEFUL FOR

Students and educators in calculus, mathematicians, and anyone interested in advanced differentiation techniques, particularly those focusing on exponential functions.

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

  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 8 ·
Replies
8
Views
924
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 49 ·
2
Replies
49
Views
7K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 15 ·
Replies
15
Views
17K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 20 ·
Replies
20
Views
3K