Studying for a midterm, and one of the problems is: $$\frac{x^3+7}{x}$$ and we have to find the derivative.
My professor is getting: $$2x-\frac{7}{x^2}$$
But I got $$3x-\frac{x^3+7}{x^2}$$
I even tried using an online calculator to verify my results, and I indeed it got the same thing. Can someone tell me what I am doing wrong here? Or am I right?