\(\frac{1}{x - x^3}\)
Show solutionHide solution
We integrate
\[ \int \frac{1}{x-x^3}\,dx. \]Factor the denominator:
\[ x-x^3=x(1-x^2)=x(1-x)(1+x). \]Use partial fractions:
\[ \frac{1}{x(1-x)(1+x)} =\frac{A}{x}+\frac{B}{1-x}+\frac{C}{1+x}. \]Multiplying by \(x(1-x)(1+x)\), we get
\[ 1=A(1-x^2)+Bx(1+x)+Cx(1-x). \]Comparing coefficients:
\[ A=1,\qquad B+C=0,\qquad -A+B-C=0. \]Thus \(B+C=0\) and \(B-C=1\), so
\[ B=\frac12,\qquad C=-\frac12. \]Therefore
\[ \frac{1}{x-x^3} =\frac1x+\frac{1/2}{1-x}-\frac{1/2}{1+x}. \]Integrating term by term, using \(\int \frac{dx}{1-x}=-\ln|1-x|\) and \(\int \frac{dx}{1+x}=\ln|1+x|\),
\[ \int \frac{dx}{x-x^3} =\ln|x|-\frac12\ln|1-x|-\frac12\ln|1+x|+C. \]Combine the logarithms:
\[ \int \frac{dx}{x-x^3} =\ln|x|-\frac12\ln|1-x^2|+C. \]Equivalently,
\[ \int \frac{dx}{x-x^3} =\frac12\ln\frac{x^2}{|1-x^2|}+C. \]This is valid on any interval contained in the domain of the integrand, namely \(x\ne 0,\, x\ne \pm 1\).