Stuck on this? Solve it with AI
Calculus · real student question

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

Question

Evaluate the indefinite integral

∫21−x2 dx\int\frac{2}{1-x^2}\,dx

Step-by-step solution

  1. Factor the denominator. 1−x2=(1−x)(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 (1−x)(1-x), not (x−1)(x-1) — keeping the signs as written avoids an extra minus later.

  2. Set up the partial-fraction split. Write

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

    and clear denominators:

    2=A(1+x)+B(1−x)=(A+B)+(A−B)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

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

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

  4. Integrate each piece, watching the inner derivative.

    ∫dx1−x=−ln⁡∣1−x∣,∫dx1+x=ln⁡∣1+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 1−x1-x has derivative −1-1. Forgetting it is the main pitfall of this integral.

  5. Combine the logarithms.

    ∫21−x2 dx=ln⁡∣1+x∣−ln⁡∣1−x∣+C=ln⁡∣1+x1−x∣+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(ln⁡∣1+x∣−ln⁡∣1−x∣)=11+x+11−x=(1−x)+(1+x)(1+x)(1−x)=21−x2\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

∫21−x2 dx=ln⁡∣1+x1−x∣+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 →