Usually, for a question involving products, my first approach would be to apply the product rule, giving $\frac{d}{dx}(x^2|x|)=x^2(\frac{d}{dx}|x|)+|x|2x$. Using methods discussed here (Finding the Derivative of |x| using the Limit Definition), I got $\frac{d}{dx}|x|=\frac{x}{|x|}$, so subsituting this in gives $\frac{d}{dx}(x^2|x|)=\frac{x^3}{|x|}+2x|x|$.
However, the derivative of $x^2|x|$ is in fact equal to $3x|x|$. Where have I gone wrong?
I also tried using $\frac{df(x)}{dx}=\lim_{x\to x_0}\frac{f(x)-f(x_0)}{x-x_0}$, which gave $\frac{x^2|x|-x_0^2|x_0|}{x-x_0}\rightarrow\frac{x^2_0|x_0|-x_0^2|x_0|}{x_0-x_0}=0$ as $x\rightarrow x_0$ - I need to get $3x|x|$, so this can't be right!
Any help would be much appreciated.
Note that$$\frac{x^2}{\lvert x\rvert}=\frac{\lvert x\rvert^2}{\lvert x\rvert}=\lvert x\rvert$$and that therefore $\dfrac{x^3}{\lvert x\rvert}=x\lvert x\rvert$.