For the following function:
$$f(x)=\frac{2}{2x^2}-\frac{x}{3}+\frac{4}{5}+\frac{x+1}{x}$$
I got the individual derivatives below:
$$\frac{d}{dx}(\frac{2}{2x^2}) = \frac{d}{dx}(\frac{1}{x^2}) = \frac{-2}{x^3}$$ $$\frac{d}{dx}(\frac{x}{3}) = \frac{3}{9} =\frac{1}{3}$$ $$\frac{d}{dx}(\frac{x+1}{x}) = -\frac{1}{x^2}$$
Then I just put them all togheter like:
$$f'(x)=-\frac{2}{x^3}-\frac{1}{3}-\frac{1}{x^2}$$
But I ran it on WolframAlpha and it says the correct derivative for that function would be:
$$f'(x)=\frac{2}{3}-\frac{2}{x^3}-\frac{1}{x}$$
I'm quite sure I got the individual derivatives correctly. Is it not the right way to do it? Doesn't it work if I add each derivative together, like, there is this sum rule right?