2
$\begingroup$

I am working on the following problem from the L’Hôpital’s Rule section of Stewart Calculus, and I would appreciate feedback on whether my approach is sound, as well as clarification on a few things.

Let $$f(x)= \begin{cases} |x|^x \, \text{ if } x \neq 0 \\ 1 \, \text{ if } x = 0 \end{cases}$$ (a) Show that $f$ is continuous at $0$.

(b) Investigate graphically whether $f$ is differentiable at $0$ by zooming in several times toward the point $(0,1)$ on the graph of $f$.

(c) Show that $f$ is not differentiable at $0$. How can you reconcile this fact with the appearance of the graphs in part (b)?

Part (a): Continuity

To show $f$ is continuous at $0$, we would like to show $\lim_{x \to 0}f(x) = f(0)$.

First we note that $f(0) = 1$, by definition.

To check $\lim_{x \to 0}f(x)$, we could consider left and right hand limits separately so remove absolute value signs, but I believe we can do it in one go if we use the result $\frac{d}{dx}|x| = \frac{x}{|x|}$. To that end, $$\begin{align} \lim_{x \to 0}f(x) &= \lim_{x \to 0} |x|^x \tag{indeterminate form of $0^0$}\\ &= \lim_{x \to 0} e^{x\ln|x|}\\ &= e^{\lim_{x \to 0} x\ln|x|} \tag{by continuity of $e^x$}\\ &= e^0 \tag{limit work show after}\\ &=1 \end{align}$$

Indeterminate Product Limit work: $$ \begin{align} \lim_{x \to 0} x\ln|x| &= \lim_{x \to 0} \frac{\ln|x|}{\frac{1}{x}} \tag{converting to indeterminate $\frac{-\infty}{\infty}$}\\ &= \lim_{x \to 0} \frac{\frac{1}{|x|}\cdot\frac{x}{|x|}}{-\frac{1}{x^2}} \tag{LH Rule}\\ &= \lim_{x \to 0} \frac{x}{|x|^2} \cdot \frac{x^2}{-1}\\ &= \lim_{x \to 0} -x \tag{since $|x|^2 = x^2$}\\ &=0 \end{align} $$ Hence, $\lim_{x \to 0}f(x) = 1 = f(0)$, completing part (a).

Questions about part (a):

  • My main question here is if I am allowed to do the limit in one go as I did here instead of considering the left and right hand limits separately. The reason for this is because technically the indeterminate product limit is not $\frac{-\infty}{\infty}$ since $\lim_{x \to 0} \frac{1}{x}$ DNE so maybe L’Hôpital’s Rule does not apply?

Part (b): Graph

On Desmos it seems the graph behaves quite nicely at $x=0$: graph of <span class=$y=|x|^x$" />

Part (c): Differentiability

We consider the limit $$\lim_{h \to 0} \frac{|h|^h-1}{h}$$

From part a) we know $\lim_{x \to 0}|x|^x = 1$, hence $\lim_{h \to 0} |h|^h - 1 = 0$ and the denominator also approaches $0$, so can I apply L’Hôpital’s Rule here?

Using logarithmic differentiation I found $\frac{d}{dx} |x|^x = |x|^x(\ln|x|+1)$, so $$ \begin{align} \lim_{h \to 0} \frac{|h|^h-1}{h} &= \lim_{h \to 0} \frac{|h|^h(\ln|h|+1)-0}{1} \tag{LH Rule?}\\ &= \lim_{h \to 0}|h|^h(\ln|h|+1)\\ &= -\infty \end{align} $$ For the last step, I cannot apply the basic limit laws (since one of the components doesn't exist), but can I still say the limit is $-\infty$? How do we justify that?

Moreover, I don't know how I can reconcile the fact $f'(0)$ DNE with the appearance of the graph in part (b)? Why does the graph look differentiable at $x=0$?

$\endgroup$
0

2 Answers 2

2
$\begingroup$

Since $f'(x)=\frac{d}{dx}|x|^x=|x|^x(\ln|x|+1)$, you simply take the limit of $f'(x)$ to zero to show that

$$\lim_{x\to0} f'(x) = 1+\lim_{x\to0} \ln|x|=-\infty$$

That is, no need to use the limit expression of the derivative at $x=0,$ since it is not defined there.

Here is a plot of the function and its derivative. The function is continuous, but at $x=0$, its slope is vertical. It's just that it is hard to see this vertical slope unless you really zoom in quite a bit.

$\endgroup$
0
$\begingroup$

You made L'Hôpital's Rule too complicated. Recall that $\frac{d}{dx} \ln |x| = \frac{1}{x}$. To confirm that it works for $x < 0$, let $x = -t$ and apply the chain rule.

$$\frac{d}{dx} \ln |x| = \frac{d}{dt} \ln(t) \cdot \frac{dt}{dx}$$ $$= \frac{1}{t} \cdot -1$$ $$= \frac{1}{-x} \cdot -1$$ $$= \frac{1}{x}$$

Having established that, we can use L'Hôpital to conclude.

$$\lim_{x \to 0} \frac{\ln|x|}{\frac{1}{x}} = \lim_{x \to 0} \frac{\frac{1}{x}}{-\frac{1}{x^2}} = \lim_{x \to 0} -x = 0$$

From which exponentiating gives $\lim_{x \to 0} |x|^x = 1$, as you correctly found.


As for differentiability, you did find the derivative correctly. (Note that $\frac{d}{dx} e^{g(x)} = e^{g(x)}g'(x)$, so if you can differentiate the logarithm, you can differentiate the function.)

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

What you failed to notice is that the tangent line is vertical at $x = 0$. Perhaps because you didn't zoom in far enough. You have to get very close to zero for the curve to get steep.

$$f'(0.1) \approx -1.03468$$ $$f'(0.01) \approx -3.44291$$ $$f'(0.001) \approx -5.86709$$ $$f'(0.0001) \approx -8.20278$$ $$f'(0.00001) \approx -10.5117$$ $$f'(10^{-323}) \approx -742.747$$

The plot you shared in your question has a horizonal resolution of $0.00703$ unit per pixel, so you literally can't see the part where $f'(x) < -4$.

Moral: A plot that “looks nice” isn't proof of differentiability.

$\endgroup$

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.