3

I am trying to understand the behavior of $y = x^x$ when $x$ approaches zero. When $x \le 1$, $y$ initally decreases but becomes larger at some point (around $x = 0.35$) and starts approaching one as $x\to0$ (see graph below).

This might likely be a simple/obvious answer but I don't have a huge math background and also couldn't find any help otherwise.

So my question is why does $y$ get larger at $x \approx 0.35$?

enter image description here

HeroZhang001
  • 2,201
Stefan
  • 133
  • 2
    Take the derivative and set it equal to zero. – Nicolas Bourbaki Feb 12 '23 at 06:10
  • The minimum occurs at $x = \frac 1e$, with the minimum value being $\frac 1{e^{\frac 1e}}$. The limit of the function as $x$ goes to zero from the right is $1$. You need calculus to explain this behaviour. Would you be able to understand such an answer with your current knowledge? "I don't have a huge math background" is not specific enough. – Deepak Feb 12 '23 at 06:22
  • For what it's worth, I've posted the answer I had typed out (even before I made my first comment). Hope it helps. – Deepak Feb 12 '23 at 06:31
  • Thanks @Deepak - Really appreciate it! – Stefan Feb 12 '23 at 06:35

2 Answers2

2

Derivative of $x^x$ can be calculated by using log functions. $$ y=x^x \\ \ln{y}=x\ln{x}\\ \frac{y'}{y}=\ln{x}+1\\ y'=(\ln{x}+1)\times x^x $$ The derivative of the formula becomes $0$ when $\ln{x}+1=0$, which means the graph will have the minimum value when $x=\frac{1}{e}=0.367879...$.

lukek1101
  • 170
  • 2
    Thanks! I accepted Deepak's answer as he also addressed the limiting behavior of the function as $x$ approaches zero from the right hand side. – Stefan Feb 12 '23 at 06:45
1

You need calculus to understand the behaviour of the function fully.

$y = f(x) = x^x$

$f'(x) = x^x(1+\ln x)$

For stationary point(s), set $f'(x) = 0$ to get $x^x(1+\ln x)$. Since the first term is always non-zero for real $x$, that leaves us with $(1+\ln x) = 0 \implies \ln x = -1 \implies x = e^{-1}$. At this point, $y = e^{-\frac 1e}$. You can show this is a minimum using the second derivative test.

As to the limiting behaviour of the function as $x$ approaches zero from the right hand side, that is also best addressed through calculus. Noting that $f(x) = e^{x\ln x}$, we set $g(x) = x\ln x$. This can be transformed into a form suitable for analysis with L'Hopital's Rule (LHR) for the limit $x \rightarrow 0^+$ by rewriting it $g(x) = \frac{\ln x}{\frac 1x}$. By LHR, that limit is equivalent to that of $\frac{\frac 1x}{-\frac 1{x^2}} = -x$, which is $0$. So the limit $\lim_{x \to 0^+}f(x) = e^0 = 1$.

Deepak
  • 26,801