跳到正文

个人记录

∫1/(xⁿ+1) dx

__delta_epsilon__约 12 分钟
原文
文章信息与版本

文章信息

发布
2025年5月20日
收录
2025年12月12日
更新
2026年10月4日
篇幅
约 12 分钟

版本

  1. v1当前

出于某种原因,我们必须算出

∫1xn+1dx\int\frac{1}{x^n+1}\mathrm{d}x

其中 n∈Nn\in\N。

∫1x0+1dx\int\frac{1}{x^0+1}\mathrm{d}x

I=∫12dx=12x+CI=\int\frac{1}{2}\mathrm{d}x=\frac{1}{2}x+C

∫1x1+1dx\int\frac{1}{x^1+1}\mathrm{d}x

I=∫1x+1d(x+1)=ln⁡∣x+1∣+CI=\int\frac{1}{x+1}\mathrm{d}(x+1)=\ln|x+1|+C

∫1x2+1dx\int\frac{1}{x^2+1}\mathrm{d}x

令 tan⁡u=x\tan u=x。

I=∫1tan⁡2u+1d(tan⁡u)=∫sec⁡2usec⁡2udu=∫du=u+C=arctan⁡x+C\begin{aligned}I&=\int\frac{1}{\tan^2u+1}\mathrm{d}(\tan u)\\ &=\int\frac{\sec^2u}{\sec^2u}\mathrm{d}u\\ &=\int\mathrm{d}u=u+C=\arctan x+C\end{aligned}

∫1x3+1dx\int\frac{1}{x^3+1}\mathrm{d}x

I=∫1(x+1)(x2−x+1)dxI=\int \frac{1}{(x+1)(x^2-x+1)}\mathrm{d}x

设

Ax+1+Bx+Cx2−x+1=1x3+1\frac{A}{x+1}+\frac{Bx+C}{x^2-x+1}=\frac{1}{x^3+1}

即

A(x2−x+1)+(Bx+C)(x+1)=(A+B)x2+(−A+B+C)x+(A+C)=1A(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=0A+C=1\begin{cases} A+B=0\\-A+B+C=0\\A+C=1 \end{cases}

解得 (A,B,C)=(13,−13,23)(A,B,C)=(\frac{1}{3},-\frac{1}{3},\frac{2}{3})。

所以,

I=13∫1x+1dx+13∫−x+2x2−x+1dx=13ln⁡∣x+1∣+13∫−12(2x−1)+32x2−x+1dx=13ln⁡∣x+1∣−16∫d(x2−x+1)x2−x+1+12∫1x2−x+1dx=13ln⁡∣x+1∣−16ln⁡(x2−x+1)+12∫1(x−12)2+34dx=13ln⁡∣x+1∣−16ln⁡(x2−x+1)+33∫d(23x−12)(23x−13)2+1=13ln⁡∣x+1∣−16ln⁡(x2−x+1)+33arctan⁡(23x−13)+C\begin{aligned} 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}

∫1x4+1dx\int\frac{1}{x^4+1}\mathrm{d}x

I=∫1(x2−2x+1)(x2+2x+1)dxI=\int\frac{1}{(x^2-\sqrt2x+1)(x^2+\sqrt2x+1)}\mathrm{d}x

设

Ax+Bx2−2x+1+Cx+Dx2+2x+1=1x4+1\frac{Ax+B}{x^2-\sqrt2x+1}+\frac{Cx+D}{x^2+\sqrt2x+1}=\frac{1}{x^4+1}

即

(A+C)x3+(2A+B−2C+D)x2+(A+2B+C−2D)x+(B+D)=1(A+C)x^3+(\sqrt2A+B-\sqrt2C+D)x^2+(A+\sqrt2B+C-\sqrt2D)x+(B+D)=1

即

{A+C=02A+B−2C+D=0A+2B+C−2D=0B+D=1\begin{cases} A+C=0\\ \sqrt2A+B-\sqrt2C+D=0\\ A+\sqrt2B+C-\sqrt2D=0\\ B+D=1 \end{cases}

解得 (A,B,C,D)=(−24,12,24,12)(A,B,C,D)=(-\frac{\sqrt2}{4},\frac{1}{2},\frac{\sqrt2}{4},\frac{1}{2})。

所以

I=14∫−2x+2x2−2x+1dx+14∫2x+2x2+2x+1dx=14∫−22(2x−2)+1x2−2x+1dx+14∫22(2x+2)+1x2+2x+1dx=−28∫d(x2−2x+1)x2−2x+1+14∫dxx2−2x+1+28∫d(x2+2x+1)x2+2x+1+14∫dxx2+2x+1=−28ln⁡(x2−2x+1)+28ln⁡(x2+2x+1)+14∫1(x−22)2+12dx+14∫1(x+22)2+12dx=−28ln⁡(x2−2x+1)+28ln⁡(x2+2x+1)+24∫d(2x−1)(2x−1)2+1+24∫d(2x+1)(2x+1)2+1=−28ln⁡(x2−2x+1)+28ln⁡(x2+2x+1)+24arctan⁡(2x−1)+24arctan⁡(2x+1)+C\begin{aligned} 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}

∫1x5+1dx\int \frac{1}{x^5+1}\mathrm{d}x

终于来到这儿了吗。

之所以写这一篇,就是冲着这个来的。

首先对 x5+1x^5+1 进行因式分解。

我们只需要将其分解成一个一次式和两个二次式的乘积就好了。这个一次式显然为 x+1x+1。

剩下两个二次式,如果你知道五次单位根的话可以反推出来,但是我不喜欢这么写。所以我们待定系数。

(x2+Ax+B)(x2+Cx+D)=x4−x3+x2−x+1(x^2+Ax+B)(x^2+Cx+D)=x^4-x^3+x^2-x+1 {A+C=−1B+AC+D=1BC+AD=−1BD=1\begin{cases} A+C=-1\\ B+AC+D=1\\ BC+AD=-1\\ BD=1 \end{cases}

不难解得

(A,B,C,D)=(−1−52,1,−1+52,1)(A,B,C,D)=\left(\frac{-1-\sqrt5}{2},1,\frac{-1+\sqrt5}{2},1\right)

或 A,CA,C 交换一下。我们只需要一组解。

接下来设

1x5+1=Fx+1+Gx+Hx2+−1−52x+1+Kx+Lx2+−1+52x+1\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+1+52G+H+1−52K+L=0F+1+52G+1+52H+1−52K+1−52L=0−F+G+1+52H+K+1−52L=0F+H+L=1\begin{cases} 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)=(15,−1−510,25,−1+510,25)(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=∫(15x+1+−1−510x+25x2+−1−52x+1+−1+510x+25x2+−1+52x+1)dx=15∫1x+1dx+∫−1−520(2x+−1−52)+5−520x2+−1−52x+1dx+∫−1+520(2x+−1+52)+5+520x2+−1+52x+1dx=15ln⁡∣x+1∣+−1−520ln⁡(x2+−1−52x+1)+−1+520ln⁡(x2+−1+52x+1)+5−520∫dxx2+−1−52x+1+5+520∫dxx2+−1+52x+1=15ln⁡∣x+1∣+−1−520ln⁡(x2+−1−52x+1)+−1+520ln⁡(x2+−1+52x+1)+5−520∫dx(x+−1−54)2+5−58+5+520∫dx(x+−1+54)2+5+58=15ln⁡∣x+1∣+−1−520ln⁡(x2+−1−52x+1)+−1+520ln⁡(x2+−1+52x+1)+25∫dx(50+1055x−25+1055)2+1+25∫dx(50−1055x+25−1055)2+1=15ln⁡∣x+1∣+−1−520ln⁡(x2+−1−52x+1)+−1+520ln⁡(x2+−1+52x+1)+10−2510arctan⁡(50+1055x−25+1055)+10+2510arctan⁡(50−1055x+25−1055)+C\begin{aligned} 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 里面的式子是我的两倍。

因为 ln⁡2x=ln⁡2+ln⁡x\ln 2x=\ln 2+\ln x,常数直接给它扔了。

原文
存档评论1 条抓取于