Determine the relative extrema and inflection points of $f(x)=|1+x^{\frac{1}{3}}|$.
After breaking the modulus function we get a piecewise function such that $f(x)=1+x^{\frac{1}{3}}$ when $x>-1$ and $f(x)=-1-x^{\frac{1}{3}}$ when $x<-1$. By inspection,we can see $f(-1)<f(-1-h)$ and $f(-1)<f(-1+h)$ implying $-1$ gives local minima at $x=-1$. But derivative of first piecewise function is $\frac{x^{\frac{-2}{3}}}{3}$ and that of the second piecewise function is $-\frac{x^{\frac{-2}{3}}}{3}$. When set both equal to zero, we get $+\infty$ for the first piecewise function and $-\infty$ for the second piecewise function. Now I am confused about these answers. Also, when I get to calculate the second derivative to calculate inflection points,again I am getting $\pm \infty$. So, it will be very helpful if someone provides a solution to it.