Calculus · real student question

Find the indefinite integral of 2 divided by 1 minus x squared.

Question

Evaluate the indefinite integral

21x2dx\int\frac{2}{1-x^2}\,dx

Step-by-step solution

  1. Factor the denominator. 1x2=(1x)(1+x)1-x^2=(1-x)(1+x): two distinct linear factors, which is exactly the case where partial fractions produces two simple constants. Note the order (1x)(1-x), not (x1)(x-1) — keeping the signs as written avoids an extra minus later.

  2. Set up the partial-fraction split. Write

    2(1x)(1+x)=A1x+B1+x\frac{2}{(1-x)(1+x)}=\frac{A}{1-x}+\frac{B}{1+x}

    and clear denominators:

    2=A(1+x)+B(1x)=(A+B)+(AB)x2=A(1+x)+B(1-x)=(A+B)+(A-B)x

  3. Match coefficients. The left side has no xx term and constant 22, so

    AB=0,A+B=2A=B=1A-B=0,\qquad A+B=2\quad\Rightarrow\quad A=B=1

    Hence 21x2=11x+11+x\dfrac{2}{1-x^2}=\dfrac{1}{1-x}+\dfrac{1}{1+x}.

  4. Integrate each piece, watching the inner derivative.

    dx1x=ln1x,dx1+x=ln1+x\int\frac{dx}{1-x}=-\ln|1-x|,\qquad \int\frac{dx}{1+x}=\ln|1+x|

    The minus sign on the first comes from the chain rule: the inside 1x1-x has derivative 1-1. Forgetting it is the main pitfall of this integral.

  5. Combine the logarithms.

    21x2dx=ln1+xln1x+C=ln1+x1x+C\int\frac{2}{1-x^2}\,dx=\ln|1+x|-\ln|1-x|+C=\ln\left|\frac{1+x}{1-x}\right|+C

    On the interval x<1|x|<1 this is the same as 2artanh(x)+C2\operatorname{artanh}(x)+C.

  6. Differentiate to check.

    ddx(ln1+xln1x)=11+x+11x=(1x)+(1+x)(1+x)(1x)=21x2\frac{d}{dx}\left(\ln|1+x|-\ln|1-x|\right)=\frac{1}{1+x}+\frac{1}{1-x}=\frac{(1-x)+(1+x)}{(1+x)(1-x)}=\frac{2}{1-x^2}

    The original integrand is recovered, confirming the answer.

Answer

21x2dx=ln1+x1x+C\int\frac{2}{1-x^2}\,dx=\ln\left|\frac{1+x}{1-x}\right|+C

Need to solve a different problem like this? Open the solver →