# Integral Trouble

$$\int \frac {x+4}{x^2+2x+5}$$

I have no idea where to start on this. I cant see any substitutions that would work. I tried completing the square. I also tried to split up the fraction. It isn't getting any simpler. Any help is appreciated.

Related Introductory Physics Homework Help News on Phys.org
TD
Homework Helper
Integrals of this type can always be split into an "ln-part" and an "arctan-part".

First, calculate the derivative of the denominator and adjust your nominator to get this and split the rest.

$$\left( {x^2 + 2x + 5} \right)^\prime = 2x + 2$$

The integral then becomes

$$\int {\frac{{x + 4}}{{x^2 + 2x + 5}}} dx = \frac{1}{2}\int {\frac{{2x + 2 + 6}}{{x^2 + 2x + 5}}} dx = \frac{1}{2}\int {\frac{{2x + 2}}{{x^2 + 2x + 5}}} dx + 3\int {\frac{{dx}}{{x^2 + 2x + 5}}}$$

Now the first integral simply becomes the ln of the denominator, because that's how we 'made' it, it's now of the form f'(x)/f(x).
The second one no longer has an x in the nominator and you can complete a square in the denominator to get an arctan.

I understand that and it makes sense. I just don't get how you determine that's what you do.

TD
Homework Helper
Well, this is a standard way for these integrals.
When the degree of the nominator isn't lower that the one of the denominator, you can divide first (euclidean division on the polynomials) to get this case again.

Alright, I think I got this better now. Thanks.