I have to find the derivative of y=x + 1/x. I understand finding the derivative.

I split up the two terms and I am using [f(a+h) - f(a)]/h.

so for the first one it was [(x+h) - (x)]/h = h/h = 1

the second part was {[1/(x+h)] - [1/x]}/h = {[x/(x(x+h))] - [(x+h)/(x(x+h)]} = {[h/(x(x+h))]}/h then I go to [h/(x(x+h))] * 1/h but from there it messes me up because I get [h/(x^2h +xh^2)]

I know the final answer is 1-(1/x^2)

thank you