Find the derivative of $\frac{2}{x^2}$ directly from definition I have to find the derivative of $\frac{2}{x^2}$ using only the definition. I have tried to do this several times but I always get the wrong answer - could you tell me where I made an error?
$$\frac{d}{dx}[\frac{2}{x^2}] = \lim_{h \to 0} \frac{\frac{2}{(x+h)^2}- \frac{2}{x^2}}{h} = \lim_{h \to 0} \frac{2x^2-2(x+h)^2}{x^2(x+h)^2h} = \lim_{h \to 0} \frac{-4xh -2h^2}{x^4h + 2x^3h^2 + x^2h^3} = \lim_{h \to 0} \frac{-4x -2h}{x^4+2x^3h +x^2h^2} = \frac{-4}{x^4}$$
As you see, I keep getting $x^4$ instead of $x^3$ but I simply cannot see where I made a mistake - any suggestions?

You missed an $x$$$\lim_{h \to 0} \frac{-4x -2h}{x^4+2x^3h +x^2h^2} = \frac{-4}{x^4}$$ It should have been $$\lim_{h \to 0} \frac{-4x -2h}{x^4+2x^3h +x^2h^2} = \frac{-4x}{x^4}= \frac{-4}{x^3}$$
