I want to check my answers concerning the derivative of the following functions: $\displaystyle f(x)= \frac{1}{x}$ and of $\displaystyle j(x)= x^3-x$
$$\displaystyle f(x)= \frac{1}{x}$$ $$\begin{align} f'(x) & = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h} \\ & = \lim_{h \to 0} \frac{\frac{1}{x+h} - \frac{1}{x}}{h} \\ & = \lim_{h \to 0} \frac{\frac{x}{x(x+h)} - \frac{(x+h)}{x(x+h)}}{h} \\ & = \lim_{h \to 0} \frac{\frac{x - (x+h)}{x^2+hx}}{h} \\ & = \lim_{h \to 0} \frac{\frac{-h}{x^2+hx}}{h} \\ & = \lim_{h \to 0} \frac{-h}{x^2+hx} \times \frac{1}{h} \\ & = \lim_{h \to 0} \frac{-1}{x^2+hx} \\ & = -\frac{1}{x^2} \end{align}$$
$$j(x) = x^3 - x$$ $$\begin{align} j'(x) & = \lim_{h \to 0} \frac{f(x+h) - f(x)}{h} \\ & = \lim_{h \to 0} \frac{(x+h)^3 - x^3 - x}{h} \\ & = \lim_{h \to 0} \frac{x^3 + 3x^2h + 3xh^2 + h^3 - x - h - x^3 + x}{h} \\ & = \lim_{h \to 0} \frac{3x^2h + 3xh^2 + h^3 - h}{h} \\ & = \lim_{h \to 0} \frac{h(3x^2 + 3xh + h^2 - 1)}{h} \\ & = \frac{3x^2 - 1}{1} \\ & = 3x^2 - 1 \end{align}$$
Please, be rude, if you see any error correct me.