Using the definition of the limit I tried to find the derivative of $f(x)=|x^3|$. I came up with: $$f'(x)=\frac{3x^5}{|x^3|}$$
Question: Why is the derivative (according to this answer) not defined for $x=0$ (division by zero) while $f'(0)$ actually exists, since: $$f'(0)=\lim_{x\to 0}\frac{|x^3|-|0^3|}{x-0}=0$$
Elaboration using the definition of the limit:
$$f'(x)=\lim_{h\to 0}\frac{|(x+h)^3|-|x^3|}{h}$$ $$=\lim_{h\to 0}\frac{\sqrt{(x+h)^6}-\sqrt{x^6}}{h}$$ $$=\lim_{h\to 0}\frac{(x+h)^6-x^6}{h(\sqrt{(x+h)^6}+\sqrt{x^6})}$$ $$=\lim_{h\to 0}\frac{h^5 + 6 h^4 x + 15 h^3 x^2 + 20 h^2 x^3 + 15 h x^4 + 6 x^5}{(\sqrt{(x+h)^6}+\sqrt{x^6})}$$ $$=\frac{6x^5}{2\sqrt{x^6}}=\frac{3x^5}{|x^3|}$$ Which is not defined for $x=0$.
Consider the limit from below ($x$ tending from negative to zero) and from above separately. They both evaluate to zero.