Compute $\int\frac{x}{x+1}dx$
Note that
$$\int \frac{x}{x+1} dx = \int \frac{x +1-1}{x+1}dx=\int \left(1-\frac{1}{x+1}\right)dx=x-\ln|x+1|\color{red}{+C}$$
Note that
$$\int \frac{x}{x+1} dx = \int \frac{x +1-1}{x+1}dx=\int \left(1-\frac{1}{x+1}\right)dx=x-\ln|x+1|\color{red}{+C}$$