I came across this question in a book - and I've been trying to solve it. I am only familiar with the integration using standard formulae, substitution and by parts. I'm not familiar with the other methods yet - so please show me a way to solve it using the above methods.
My work:

I couldn't find a way to substitute a function or simplify the equation in any way.
Using partial fractions, you can decompose the integrand into
$$ \frac{2x+7}{(x+1)(x^2+1)} = \frac{A}{x+1} + \frac{Bx+C}{x^2+1} $$
which gives $$ \begin{align} 2x+7 &= A(x^2+1) + (Bx+C)(x+1) \\ &= (A+B)x^2 + (B+C)x + (A+C) \end{align} $$
Comparing coefficients gives $$ A+B = 0 \\ B+C = 2 \\ A+C = 7 $$
solving the above system we obtain $A = \frac52, \ B = -\frac52, C = \frac92$
Integrating $$ \begin{align} \int \frac{2x+7}{(x+1)(x^2+1)}dx &= \frac52\int \frac{1}{x+1}dx - \frac52\int \frac{x}{x^2+1} + \frac92 \int \frac{1}{x^2+1}dx \\ &= \color{blue}{\frac52\ln|x+1| - \frac54 \ln|x^2+1| + \frac92 \arctan x + C} \end{align} $$