Possible discrepancy between two forms of the derivative of $|x|^{3/2}$

algebra-precalculuscalculusderivatives

I've come across what seems to be a discrepancy between two different ways of representing the derivative of the function $f:\mathbb{R}\to\mathbb{R}$ defined by $f(x)=|x|^{3/2}$. I started by using the definition of the absolute value function:

$$
f(x) = |x|^{3/2} =
\begin{cases}
x^{3/2}, & x\geq 0 \\
(-x)^{3/2}, & x<0 \\
\end{cases}.
$$

Then using the chain rule, we have

$$
f'(x) =
\begin{cases}
\frac{3}{2}x^{1/2}, & x>0 \\
-\frac{3}{2}(-x)^{1/2}, & x<0 \\
\end{cases}.
$$

Based on the graph of the function, it seemed reasonable to check if the derivative existed at zero. Thus I made the following computations:

\begin{equation*}
\begin{split}
f_+'(0)&=\lim_{h\to 0^+}\frac{f(h)-f(0)}{h} = \lim_{h\to 0^+}\frac{h^{3/2}}{h}=\lim_{h\to 0^+}h^{1/2}=0 \\
f_-'(0)&=\lim_{h\to 0^-}\frac{f(h)-f(0)}{h} = \lim_{h\to 0^-}\frac{(-h)^{3/2}}{h}=-\lim_{h\to 0^-}\frac{(-h)^{3/2}}{(-h)}=-\lim_{h\to 0^-}(-h)^{1/2}=0.
\end{split}
\end{equation*}

From this, it seems that the derivative exists at $x=0$ and that $f'(0)=0$. However, if we find the derivative using the chain rule and the fact that we can write the derivative of the absolute value function as

$$
\frac{d}{dx}\left[\,|x|\,\right ]=\frac{x}{|x|},
$$

we obtain

$$
f'(x)=\frac{3}{2}|x|^{1/2}\cdot \frac{x}{|x|} = \frac{3x}{2\sqrt{|x|}},
$$

which should be undefined at $x=0$. So the question is, should the derivative be defined at $0$ or should it not? If so, is this just an issue with the notation we use for the derivative of the absolute value function or a sign error or something? Thanks for any input.

Best Answer

We have

  • for $x>0$

$$f'(x)= \frac{3x}{2\sqrt{|x|}}=\frac{3x}{2\sqrt{x}}=\frac32\sqrt x$$

  • for $x<0$

$$f'(x)= \frac{3x}{2\sqrt{|x|}}=-\frac{3|x|}{2\sqrt{|x|}}=-\frac32\sqrt {|x|}$$

which agrees with your initial evaluation.

Therefore since $f(x)$ is continuos and

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

we have that $f'(0)=0$ according to what you have already found directly from the definition.

Refer also to the related: Suppose $f(x)$ exists for all $x\neq0$, and $\lim_{x\rightarrow0}f'(x)$ exists. Show that $f'(0)$ exists.