Simplifying $\frac{1}{x} + \frac{5+x}{x+1} - \frac{7x^2 + 3}{(x+2)^2}$ I'm having trouble simplifying this expression:
$$\frac{1}{x} + \frac{5+x}{(x+1)} - \frac{7x^2 + 3}{(x+2)^2}$$
Would you first do the addition or subtraction?
What's the steps to solve this?
The final answer is
$$\frac{-6x^4 + 3x^3 + 26x^2 + 25x + 4}{x^4 + 5x^3 + 8x^2 + 4x}.$$
Thanks.

Or, if you set $I=\frac{1}x+\frac{x+5}{x+1}-\frac{7x^2+3}{(x+2)^2}$, then by multiplying $I$ by $x(x+1)(x+2)^2$, you get:
$$x(x+1)(x+2)^2\times I=x(x+1)(x+2)^2\left(\frac{1}x+\frac{x+5}{x+1}-\frac{7x^2+3}{(x+2)^2}\right)\\=(x+1)(x+2)^2+(x+5)x(x+2)^2-(7x^2+3)x(x+1)\\=3x^3+26x^2+25x+4-6x^4$$
