Integral of $(2-x)/(x-1)$

337 Views Asked by At

So I tried doing this:

I have $$\int \frac{2-x}{x-1} \mathrm{d} x$$ I used the substitution $u = x-1$, thus $x= u+1$ and $ \mathrm du = \mathrm dx$.

So then our integral becomes $$\int \frac{2-u-1}{u} \mathrm du = \int \left(\frac{1}{u} - 1\right)\mathrm du$$ Then I integrate and get $-u + \ln u$.

But when I substitute $x-1$ for $u$ I obtain $\ln(x-1)-(x-1)$ and that isn't right.

3

There are 3 best solutions below

1
On

$\displaystyle \frac{2-x}{x-1} = - \frac{x-1}{x-1} + \frac{1}{x-1}$

See what to do now?

1
On

$\frac{2-x}{x-1} = \frac{1}{x-1} -1$ so that a primitive is of the form $\ln(x-1) - x + c$, $c$ a constant

0
On

More explicitly, your two answers differ only by a constant. But the derivative of a constant is zero.