0

I am trying to integrate $\frac{1-x}{(x+1)^2}$, but I get to answers for two different methods:

First, $\frac{1-x}{(x+1)^2} = \frac{1-x+1-1}{(x+1)^2} = \frac{2}{(x+1)^2} - \frac{x+1}{(x+1)^2} = \frac{2}{(x+1)^2} - \frac{1}{(x+1)}$. Integrating this easily gives $\frac{-2}{(x+1)} - \ln|x+1|$.

Second method: Integration by parts. $u = (1-x)$, $dv = \frac{1}{(1+x)^2}$. $uv - \int v du$ is then equal to $\frac{x-1}{(x+1)} - \ln|x+1|$.

How do I resolve this contradictory conclusions?

2 Answers2

0

One of your answers is wrong. The way to verify an integration is to differentiate the alleged antiderivative, and see that it is the integrand.

Robert Israel
  • 470,583
0

You made a mistake in the second method:

For the integration by parts you calculated $udv -\int v du $ instead of $uv -\int v du $.

Added: After fixing this error the answers are the same:

$$\frac{x-1}{(x+1)} - \ln|x+1|+ C=1-\frac{2}{(x+1)}- \ln|x+1| +C=-\frac{2}{(x+1)}- \ln|x+1| +C$$

N. S.
  • 134,609