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

Discussion Overview

The discussion revolves around differentiating the function $$y=x^x$$ using first principles. Participants explore various methods and steps involved in deriving the derivative, while also addressing specific conditions such as assuming that x is an integer and that the function lies in the first quadrant.

Discussion Character

  • Exploratory
  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • Some participants inquire about the method to differentiate $$y=x^x$$ using first principles, seeking clarity on whether to find a general formula or a derivative at a specific point.
  • One participant suggests using the definition of the derivative in two forms, prompting further discussion on the actual question being asked.
  • Another participant provides a detailed step of the differentiation process, breaking it down into limits and simplifications, but requests assistance in completing the solution.
  • Concerns are raised about the complexity of the last step in the differentiation process, with questions about how certain terms arise, such as $$\ln(x)$$.
  • It is noted that the limit $$\lim_{{h}\to{0}}\frac{x^h-1}{h}=\ln\left({x}\right)$$ is relevant to the discussion, with some participants expressing uncertainty about how to prove this without using L'Hopital's rule.
  • A different approach is introduced, using the exponential and logarithmic properties to derive the derivative, leading to the expression $$x^x(\ln x + 1)$$.
  • Several participants ask for further clarification or demonstration of the methods discussed, particularly regarding the natural logarithm's definition.

Areas of Agreement / Disagreement

While some participants agree on the final derivative expression, there is no consensus on the methods of proof for certain limits or the best approach to differentiate using first principles. The discussion remains unresolved on these points.

Contextual Notes

Participants express uncertainty regarding the simplification of certain steps in the differentiation process and the proof of limits, indicating potential limitations in their understanding or the complexity of the concepts involved.

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
1K
  • · Replies 49 ·
2
Replies
49
Views
7K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 15 ·
Replies
15
Views
18K
  • · Replies 9 ·
Replies
9
Views
2K