∫1/(xⁿ+1) dx
__delta_epsilon__
·
·
个人记录
出于某种原因,我们必须算出
\int\frac{1}{x^n+1}\mathrm{d}x
其中 n\in\N。
\int\frac{1}{x^0+1}\mathrm{d}x
I=\int\frac{1}{2}\mathrm{d}x=\frac{1}{2}x+C
\int\frac{1}{x^1+1}\mathrm{d}x
I=\int\frac{1}{x+1}\mathrm{d}(x+1)=\ln|x+1|+C
\int\frac{1}{x^2+1}\mathrm{d}x
令 \tan u=x。
&=\int\frac{\sec^2u}{\sec^2u}\mathrm{d}u\\
&=\int\mathrm{d}u=u+C=\arctan x+C\end{aligned}
\int\frac{1}{x^3+1}\mathrm{d}x
I=\int \frac{1}{(x+1)(x^2-x+1)}\mathrm{d}x
设
\frac{A}{x+1}+\frac{Bx+C}{x^2-x+1}=\frac{1}{x^3+1}
即
A(x^2-x+1)+(Bx+C)(x+1)=(A+B)x^2+(-A+B+C)x+(A+C)=1
即
A+B=0\\-A+B+C=0\\A+C=1
\end{cases}
解得 (A,B,C)=(\frac{1}{3},-\frac{1}{3},\frac{2}{3})。
所以,
I&=\frac{1}{3}\int\frac{1}{x+1}\mathrm{d}x+\frac{1}{3}\int\frac{-x+2}{x^2-x+1}\mathrm{d}x\\
&=\frac{1}{3}\ln|x+1|+\frac{1}{3}\int\frac{-\frac{1}{2}(2x-1)+\frac{3}{2}}{x^2-x+1}\mathrm{d}x\\
&=\frac{1}{3}\ln|x+1|-\frac{1}{6}\int\frac{\mathrm{d}(x^2-x+1)}{x^2-x+1}+\frac{1}{2}\int\frac{1}{x^2-x+1}\mathrm{d}x\\
&=\frac{1}{3}\ln|x+1|-\frac{1}{6}\ln\left(x^2-x+1\right)+\frac{1}{2}\int\frac{1}{(x-\frac{1}{2})^2+\frac{3}{4}}\mathrm{d}x\\
&=\frac{1}{3}\ln|x+1|-\frac{1}{6}\ln\left(x^2-x+1\right)+\frac{\sqrt3}{3}\int\frac{\mathrm{d}(\frac{2}{\sqrt3}x-\frac{1}{2})}{(\frac{2}{\sqrt3}x-\frac{1}{\sqrt3})^2+1}\\
&=\frac{1}{3}\ln|x+1|-\frac{1}{6}\ln\left(x^2-x+1\right)+\frac{\sqrt3}{3}\arctan\left(\frac{2}{\sqrt3}x-\frac{1}{\sqrt3}\right)+C
\end{aligned}
\int\frac{1}{x^4+1}\mathrm{d}x
I=\int\frac{1}{(x^2-\sqrt2x+1)(x^2+\sqrt2x+1)}\mathrm{d}x
设
\frac{Ax+B}{x^2-\sqrt2x+1}+\frac{Cx+D}{x^2+\sqrt2x+1}=\frac{1}{x^4+1}
即
(A+C)x^3+(\sqrt2A+B-\sqrt2C+D)x^2+(A+\sqrt2B+C-\sqrt2D)x+(B+D)=1
即
A+C=0\\
\sqrt2A+B-\sqrt2C+D=0\\
A+\sqrt2B+C-\sqrt2D=0\\
B+D=1
\end{cases}
解得 (A,B,C,D)=(-\frac{\sqrt2}{4},\frac{1}{2},\frac{\sqrt2}{4},\frac{1}{2})。
所以
I&=\frac{1}{4}\int\frac{-\sqrt2x+2}{x^2-\sqrt2x+1}\mathrm{d}x+\frac{1}{4}\int\frac{\sqrt2x+2}{x^2+\sqrt2x+1}\mathrm{d}x\\
&=\frac{1}{4}\int\frac{-\frac{\sqrt2}{2}(2x-\sqrt2)+1}{x^2-\sqrt2x+1}\mathrm{d}x+\frac{1}{4}\int\frac{\frac{\sqrt2}{2}(2x+\sqrt2)+1}{x^2+\sqrt2x+1}\mathrm{d}x\\
&=-\frac{\sqrt2}{8}\int\frac{\mathrm{d}(x^2-\sqrt2x+1)}{x^2-\sqrt2x+1}+\frac{1}{4}\int\frac{\mathrm{d}x}{x^2-\sqrt2x+1}+\frac{\sqrt2}{8}\int\frac{\mathrm{d}(x^2+\sqrt2x+1)}{x^2+\sqrt2x+1}+\frac{1}{4}\int\frac{\mathrm{d}x}{x^2+\sqrt2x+1}\\
&=-\frac{\sqrt2}{8}\ln(x^2-\sqrt2x+1)+\frac{\sqrt2}{8}\ln(x^2+\sqrt2x+1)+\frac{1}{4}\int\frac{1}{(x-\frac{\sqrt2}{2})^2+\frac{1}{2}}\mathrm{d}x+\frac{1}{4}\int\frac{1}{(x+\frac{\sqrt2}{2})^2+\frac{1}{2}}\mathrm{d}x\\
&=-\frac{\sqrt2}{8}\ln(x^2-\sqrt2x+1)+\frac{\sqrt2}{8}\ln(x^2+\sqrt2x+1)+\frac{\sqrt2}{4}\int\frac{\mathrm{d}(\sqrt2x-1)}{(\sqrt2x-1)^2+1}+\frac{\sqrt2}{4}\int\frac{\mathrm{d}(\sqrt2x+1)}{(\sqrt2x+1)^2+1}\\
&=-\frac{\sqrt2}{8}\ln(x^2-\sqrt2x+1)+\frac{\sqrt2}{8}\ln(x^2+\sqrt2x+1)+\frac{\sqrt2}{4}\arctan(\sqrt2x-1)+\frac{\sqrt2}{4}\arctan(\sqrt2x+1)+C
\end{aligned}
\int \frac{1}{x^5+1}\mathrm{d}x
终于来到这儿了吗。
之所以写这一篇,就是冲着这个来的。
首先对 x^5+1 进行因式分解。
我们只需要将其分解成一个一次式和两个二次式的乘积就好了。这个一次式显然为 x+1。
剩下两个二次式,如果你知道五次单位根的话可以反推出来,但是我不喜欢这么写。所以我们待定系数。
(x^2+Ax+B)(x^2+Cx+D)=x^4-x^3+x^2-x+1
A+C=-1\\
B+AC+D=1\\
BC+AD=-1\\
BD=1
\end{cases}
不难解得
(A,B,C,D)=\left(\frac{-1-\sqrt5}{2},1,\frac{-1+\sqrt5}{2},1\right)
或 A,C 交换一下。我们只需要一组解。
接下来设
\frac{1}{x^5+1}=\frac{F}{x+1}+\frac{Gx+H}{x^2+\frac{-1-\sqrt5}{2}x+1}+\frac{Kx+L}{x^2+\frac{-1+\sqrt5}{2}x+1}
所以有
F+G+K=0\\
-F+\frac{1+\sqrt5}{2}G+H+\frac{1-\sqrt5}{2}K+L=0\\
F+\frac{1+\sqrt5}{2}G+\frac{1+\sqrt5}{2}H+\frac{1-\sqrt5}{2}K+\frac{1-\sqrt5}{2}L=0\\
-F+G+\frac{1+\sqrt5}{2}H+K+\frac{1-\sqrt5}{2}L=0\\
F+H+L=1
\end{cases}
不难注意到
(F,G,H,K,L)=\left(\frac{1}{5},\frac{-1-\sqrt5}{10},\frac{2}{5},\frac{-1+\sqrt5}{10},\frac{2}{5}\right)
也即
I&=\int\left(\frac{\frac{1}{5}}{x+1}+\frac{\frac{-1-\sqrt5}{10}x+\frac{2}{5}}{x^2+\frac{-1-\sqrt5}{2}x+1}+\frac{\frac{-1+\sqrt5}{10}x+\frac{2}{5}}{x^2+\frac{-1+\sqrt5}{2}x+1}\right)\mathrm{d}x\\
&=\frac{1}{5}\int\frac{1}{x+1}\mathrm{d}x+\int\frac{\frac{-1-\sqrt5}{20}(2x+\frac{-1-\sqrt5}{2})+\frac{5-\sqrt5}{20}}{x^2+\frac{-1-\sqrt5}{2}x+1}\mathrm{d}x+\int\frac{\frac{-1+\sqrt5}{20}(2x+\frac{-1+\sqrt5}{2})+\frac{5+\sqrt5}{20}}{x^2+\frac{-1+\sqrt5}{2}x+1}\mathrm{d}x\\
&=\frac{1}{5}\ln|x+1|+\frac{-1-\sqrt5}{20}\ln\left(x^2+\frac{-1-\sqrt5}{2}x+1\right)+\frac{-1+\sqrt5}{20}\ln\left(x^2+\frac{-1+\sqrt5}{2}x+1\right)\\&\quad+\frac{5-\sqrt5}{20}\int\frac{\mathrm{d}x}{x^2+\frac{-1-\sqrt5}{2}x+1}+\frac{5+\sqrt5}{20}\int\frac{\mathrm{d}x}{x^2+\frac{-1+\sqrt5}{2}x+1}\\
&=\frac{1}{5}\ln|x+1|+\frac{-1-\sqrt5}{20}\ln\left(x^2+\frac{-1-\sqrt5}{2}x+1\right)+\frac{-1+\sqrt5}{20}\ln\left(x^2+\frac{-1+\sqrt5}{2}x+1\right)\\&\quad+\frac{5-\sqrt5}{20}\int\frac{\mathrm{d}x}{(x+\frac{-1-\sqrt5}{4})^2+\frac{5-\sqrt5}{8}}+\frac{5+\sqrt5}{20}\int\frac{\mathrm{d}x}{(x+\frac{-1+\sqrt5}{4})^2+\frac{5+\sqrt5}{8}}\\
&=\frac{1}{5}\ln|x+1|+\frac{-1-\sqrt5}{20}\ln\left(x^2+\frac{-1-\sqrt5}{2}x+1\right)+\frac{-1+\sqrt5}{20}\ln\left(x^2+\frac{-1+\sqrt5}{2}x+1\right)\\&\quad+\frac{2}{5}\int\frac{\mathrm{d}x}{\left(\frac{\sqrt{50+10\sqrt5}}{5}x-\frac{\sqrt{25+10\sqrt5}}{5}\right)^2+1}+\frac{2}{5}\int\frac{\mathrm{d}x}{\left(\frac{\sqrt{50-10\sqrt5}}{5}x+\frac{\sqrt{25-10\sqrt5}}{5}\right)^2+1}\\
&=\frac{1}{5}\ln|x+1|+\frac{-1-\sqrt5}{20}\ln\left(x^2+\frac{-1-\sqrt5}{2}x+1\right)+\frac{-1+\sqrt5}{20}\ln\left(x^2+\frac{-1+\sqrt5}{2}x+1\right)\\&\quad+\frac{\sqrt{10-2\sqrt5}}{10}\arctan\left(\frac{\sqrt{50+10\sqrt5}}{5}x-\frac{\sqrt{25+10\sqrt5}}{5}\right)+\frac{\sqrt{10+2\sqrt5}}{10}\arctan\left(\frac{\sqrt{50-10\sqrt5}}{5}x+\frac{\sqrt{25-10\sqrt5}}{5}\right)+C
\end{aligned}
做完了。
你可能会问,为什么 Integral Calculator 计算结果和我的不一样,为什么它 \ln 里面的式子是我的两倍。
因为 \ln 2x=\ln 2+\ln x,常数直接给它扔了。