# Integration Problem

## Homework Statement

How do i integrate:

$$\int\frac{1}{(x^2+1)^2}$$

?

## Homework Equations

The answer is:

$$\frac{1}{4}(\frac{-2x}{x^2-1}-log(x-1)+log(x+1))$$

## The Attempt at a Solution

I dont know which method to use.

## Answers and Replies

Dick
Science Advisor
Homework Helper

The answer you posted is correct if the integrand is 1/(1-x^2)^2. Is that what you meant? If so, try partial fractions.

Im sorry, the question is correct but the answer is:

1/2[x/(x^2+1)+arctan(x)]

here partial fractions wont work because i will still have a term with (x^2+1)^2 in the denominator

Mark44
Mentor

Have you tried a trig substitution? tan (theta) = x would be a good one to start with.

Dick
Science Advisor
Homework Helper

Im sorry, the question is correct but the answer is:

1/2[x/(x^2+1)+arctan(x)]

here partial fractions wont work because i will still have a term with (x^2+1)^2 in the denominator

Ok, then it's a trig substitution. Like x=tan(t).

how did you know what substitution to make??

Mark44
Mentor

Draw a right triangle and label the sides and hypotenuse according to the expression in your integral. Since you have x^2 + 1, that corresponds to the hypotenuse. Label the side opposite your acute angle as x, label the base as 1, and label the hypotenuse as sqrt(x^2 + 1). So tan(theta) = x/1, and sec^2(theta)d(theta) = dx. Use these two equations to completely convert you integral from expressions in x and dx to ones in theta and d(theta).

Mark44
Mentor

If you're asking how did we know to make a trig substitution, they are good bets when you have factors involving the sum or difference of squares, such as sqrt(x^2 + a^2), sqrt(a^2 - x^2), or sqrt(x^2 - a^2).

what if we have (5+x^2)^2 in the denominator?

Mark44
Mentor

Label the opposite side as x and the base as sqrt(x), so tan(theta) = x/sqrt(5)

thank you