Mercury Lamp

mathmasf1-zxf-c5.md

数学分析(I) Chapter.5 不定积分

最后更新于

分类专业课笔记数学分析TODO

不定积分

定义 5.1 不定积分

若在某个区间 II 上,函数 f,Ff, F 满足以下关系:

F′(x)=f(x),x∈IF^{\prime}(x) = f(x), x\in I。

或者等价地: dF(x)=f(x)dx\text{d} F(x) = f(x) \text{d} x。

则称 FF 为 ff 在 II 上的一个原函数。

函数 ff 的全体原函数称为 ff 的不定积分

记作 ∫f(x)dx\displaystyle\int f(x)\text{d}x,由此:F(x)=∫f(x)dx+CF(x) = \displaystyle\int f(x) \text{d}x + C,其中 CC 为任意常数。

例:∫xdx=12x2+C\displaystyle\int x \text{d} x = \dfrac{1}{2}x^2 + C

原函数求导得到导函数

导函数求不定积分得到原函数

所以求导和不定积分一定程度上是逆运算(由于 CC 所以不完全是)

命题 5.1

若 f(x),g(x)f(x), g(x) 的原函数都存在,则 ∀α,β∈R;  αf(x)+βg(x)\forall \alpha,\beta \in \mathbb R; \; \alpha f(x) + \beta g(x) 的原函数也存在。

且满足:∫[αf(x)+βg(x)]dx=α∫f(x)dx+β∫g(x)dx\displaystyle\int [\alpha f(x) + \beta g(x)] \text{d} x= \alpha \displaystyle\int f(x)\text{d}x + \beta \displaystyle\int g(x)\text{d}x

证明:假设 ∫f(x)dx+C1=F(x),∫g(x)dx+C2=G(x)\displaystyle\int f(x)\text{d}x + C_1 = F(x), \displaystyle\int g(x)\text{d}x + C_2 = G(x)

所以 [αF(x)+βG(x)]′=αf(x)+βg(x)[\alpha F(x) + \beta G(x)]^{\prime} = \alpha f(x) + \beta g(x)

那么 αF(x)+βG(x)\alpha F(x) + \beta G(x) 是 αf(x)+βg(x)\alpha f(x) + \beta g(x) 的一个原函数

也就是 ∫[αf(x)+βg(x)]dx+C=αF(x)+βG(x)\displaystyle\int[\alpha f(x) + \beta g(x)]\text{d}x + C = \alpha F(x) + \beta G(x)

所以 ∫[αf(x)+βg(x)]dx+C=α∫f(x)dx+αC1+β∫g(x)dx+βC2\displaystyle\int[\alpha f(x) + \beta g(x)]\text{d}x + C = \alpha \displaystyle\int f(x)\text{d}x + \alpha C_1 + \beta \displaystyle\int g(x)\text{d}x + \beta C_2

=α∫f(x)dx+β∫g(x)dx= \alpha \displaystyle\int f(x)\text{d}x + \beta \displaystyle\int g(x)\text{d}x

这里不是在消掉 CC 而是因为本身就带常数给扔到里面去了。

命题 5.2 常用积分公式

  1. ∫xαdx={1α+1xα+1+C,α≠−1ln⁡∣x∣+C,α=−1\displaystyle\int x^\alpha \text{d}x = \begin{cases}\dfrac{1}{\alpha + 1}x^{\alpha + 1} + C,&\alpha\not=-1\\\ln |x| + C, &\alpha= -1\end{cases}

  2. ∫exdx=ex+C\displaystyle\int e^x \text{d}x = e^x + C

  3. ∫axdx=axln⁡a+C,(a>0,a≠1)\displaystyle\int a^x \text{d}x = \dfrac{a^x}{\ln a} + C,(a > 0, a\not= 1)

  4. ∫sin⁡xdx=−cos⁡x+C\displaystyle\int \sin x\text{d}x = -\cos x + C

  5. ∫cos⁡xdx=sin⁡x+C\displaystyle\int \cos x\text{d}x = \sin x + C

  6. ∫sec⁡2xdx=tan⁡x+C\displaystyle\int \sec^2 x\text{d}x = \tan x + C

  7. ∫csc⁡2xdx=−cot⁡x+C\displaystyle\int \csc^2 x\text{d}x = -\cot x + C

  8. ∫tan⁡xsec⁡xdx=sec⁡x+C\displaystyle\int \tan x \sec x \text{d}x =\sec x + C

  9. ∫cot⁡xcsc⁡xdx=−csc⁡x+C\displaystyle\int \cot x \csc x \text{d}x = -\csc x + C

  10. ∫11+x2dx=arctan⁡x+C\displaystyle\int \dfrac{1}{1 + x^2}\text{d}x = \arctan x + C

  11. ∫11−x2dx=arcsin⁡x+C\displaystyle\int \dfrac{1}{\sqrt{1-x^2}} \text{d}x = \arcsin x + C

  12. ∫−11−x2dx=arccos⁡x+C\displaystyle\int \dfrac{-1}{\sqrt{1-x^2}} \text{d}x = \arccos x + C

其中 CC 为任意常数

TODO 全算一遍

例题 5.1

求 ∫tan⁡2xdx=?\displaystyle\int \tan^2 x\text{d}x = ?

解:

tan⁡2x=sec⁡2x−1\tan^2 x = \sec^2 x - 1

∫(sec⁡2x−1)dx=∫sec⁡2xdx−∫1dx=tan⁡x−x+C\displaystyle\int (\sec^2 x - 1)\text{d}x = \displaystyle\int \sec^2x \text{d} x - \displaystyle\int 1 \text{d}x = \tan x - x + C

例题 5.2

求 ∫sin⁡2(x2)dx=?\displaystyle\int \sin^2 (\dfrac{x}{2})\text{d}x = ?

解:

sin⁡2(x2)=1−cos⁡x2\sin^2 (\dfrac{x}{2}) = \dfrac{1 - \cos x}{2}

于是原式 =∫12dx−∫cos⁡x2dx=12(x−sin⁡x)+C=\displaystyle\int \dfrac{1}{2}\text{d}x - \displaystyle\int \dfrac{\cos x}{2} \text{d}x = \dfrac{1}{2}\left(x - \sin x\right) + C

不定积分的计算方法

换元法 / 变量替换法

原理:

∫f(g(x))dx\displaystyle\int f(g(x))\text{d}x

令 g(x)=u,x=h(u)⇒=∫f(u)d[h(u)]g(x) = u, x = h(u) \Rightarrow = \displaystyle\int f(u) \text{d}[h(u)]

=∫f(u)h′(u)du= \displaystyle\int f(u) h^{\prime}(u) \text{d}u

例题 5.3

设 n≥1,n∈Zn \ge 1, n \in \mathbb Z。

求 ∫dx(x−a)n\displaystyle\int \dfrac{\text{d}x}{(x - a)^n}

解:令 x−a=t⇒dx=d(t−a)=dtx - a = t \Rightarrow \text{d}x = \text{d}(t - a) = \text{d}t

所以原式:∫t−ndt\displaystyle\int t^{-n}\text{d}t

若 n=1,ans=ln⁡∣t∣+C=ln⁡∣x−a∣+Cn = 1, \text{ans} = \ln|t| + C = \ln |x - a| + C

若 n≠1,ans=11−nt1−n+C=11−n(x−a)1−n+Cn \not= 1, \text{ans} = \dfrac{1}{1 - n}t^{1 - n} + C = \dfrac{1}{1 - n}(x - a)^{1 - n} + C

例题 5.4

求 ∫dxx2+a2,a∈R,a≠0\displaystyle\int \dfrac{\text{d}x}{x^2 + a^2}, a\in \mathbb{R}, a\not= 0。

有点像 arctan⁡\arctan,所以原式 =1a2∫dx1+(xa)2= \dfrac{1}{a^2} \displaystyle\int \dfrac{\text{d}x}{1 + (\dfrac{x}{a})^2}。

令 t=xa⇒dx=adtt = \dfrac{x}{a} \Rightarrow \text{d}x = a\text{d}t

所以原式=1a2∫dx1+t2adt=arctan⁡ta+C=arctan⁡(xa)a+C= \dfrac{1}{a^2}\displaystyle\int \dfrac{\text{d}x}{1 + t^2} a \text{d} t = \dfrac{\arctan t}{a} + C = \dfrac{\arctan(\dfrac{x}{a})}{a} + C

例题 5.5

求 ∫a2−x2dx,a≠0\displaystyle\int \sqrt{a^2 - x^2}\text{d}x, a\not= 0

令 x=asin⁡t⇒a2−x2=∣a∣⋅∣cos⁡t∣x = a\sin t \Rightarrow \sqrt{a^2 - x^2} = |a|\cdot|\cos t|

dx=acos⁡tdt\text{d}x = a\cos t\text{d}t

应该分讨(但其实直接做答案都一样)

  1. t∈[−π2,π2]t \in [-\dfrac{\pi}{2}, \dfrac{\pi}{2}],所以是:

∫∣a∣cos⁡t⋅acos⁡tdt=a⋅∣a∣∫cos⁡2tdt=a⋅∣a∣=a∣a∣∫1+cos⁡(2t)tdt\displaystyle\int |a|\cos t\cdot a\cos t\text{d} t = a \cdot |a| \displaystyle\int \cos^2 t \text{d}t = a\cdot |a| = a|a| \displaystyle\int \dfrac{1 + \cos (2t)}{t}\text{d}t

=a∣a∣2∫(1+cos⁡(2t))dt=a∣a∣2[t+12sin⁡(2t)]+C= \dfrac{a|a|}{2}\displaystyle\int (1 + \cos(2t))\text{d}t = \dfrac{a|a|}{2}[t + \dfrac{1}{2}\sin (2t)] + C

=a∣a∣2t+a∣a∣2sin⁡tcos⁡t+C=a∣a∣2t+∣a∣2xcos⁡t+C= \dfrac{a|a|}{2}t + \dfrac{a|a|}{2}\sin t\cos t + C =\dfrac{a|a|}{2}t + \dfrac{|a|}{2}x\cos t + C

=a∣a∣2t+12xa2−x2+C=\dfrac{a|a|}{2}t + \dfrac{1}{2}x \sqrt{a^2 - x^2} + C

注意到要想使用 arcsin⁡\arcsin,要满足 t∈[−π2,π2]t \in [-\dfrac{\pi}{2}, \dfrac{\pi}{2}],刚好满足

=a∣a∣2arcsin⁡(xa)+12xa2−x2+C=\dfrac{a|a|}{2}\arcsin(\dfrac{x}{a}) + \dfrac{1}{2}x\sqrt{a^2 - x^2} + C

那要不在这个范围怎么办?

TODO 手算一次,再导回去

凑微分

有理函数裂项

有理函数形如一个多项式除以一个多项式。

例子

∫4x3−13x2+3x+8(x+1)(x−2)(x−1)2dx=\displaystyle\int \dfrac{4x^3 - 13x^2 + 3x + 8}{(x + 1)(x - 2)(x - 1)^2}\text{d}x =?

设 4x3−13x2+3x+8(x+1)(x−2)(x−1)2=ax+1+bx−2+cx+d(x−1)2\dfrac{4x^3 - 13x^2 + 3x + 8}{(x + 1)(x - 2)(x - 1)^2} = \dfrac{a}{x + 1} + \dfrac{b}{x - 2} + \dfrac{cx + d}{(x - 1)^2}

待定的分子设成什么样完全根据多项式的阶数差决定。

4x3−13x2+3x+8=a(x−2)(x−1)2+b(x+1)(x−1)2+(cx+d)(x+1)(x−2)4x^3 - 13x^2 + 3x + 8 = a(x - 2)(x - 1)^2 + b(x + 1)(x - 1)^2 + (cx + d)(x + 1)(x - 2)

这样子写不需要考虑分母为 00 的问题,甚至可以把这些 xx 带进去快速得到结果。

x=1,x=2,x=−1x = 1, x = 2, x = -1 全部带入:

可以得到:

{a=1b=−2c+d=−1\begin{cases}a = 1\\ b = -2\\ c + d = -1\end{cases}

再取 x=0x = 0 可以知道 c=5,d=−6c = 5,d = -6

这个方法的正确性需要用一些多项式理论证明,这里略去。

例子

∫1x3+1dx\displaystyle\int\dfrac{1}{x^3 + 1}\text{d}x

可以用立方和公式 x3+1=(x+1)(x2−x+1)x^3 + 1 = (x + 1)(x^2 - x + 1)

于是可以有理函数裂项。

例子

∫x4+x3+3x2+1(x+1)2(x+1)dx\displaystyle\int\dfrac{x^4 + x^3 + 3x^2 + 1}{(x + 1)^2(x + 1)\text{d}x}

仍旧使用待定系数法

设 x4+x3+3x2+1(x+1)2(x+1)=ax+b+cx3+dx2+ex+f(x+1)2\dfrac{x^4 + x^3 + 3x^2 + 1}{(x + 1)^2(x + 1)} = ax + b + \dfrac{cx^3 + dx^2 + ex + f}{(x + 1)^2}

但是不需要这样假设,前面的高次可以扔到 ax+bax + b 这里。

所以设成 ax+b+cx+d(x+1)2+ex−1ax + b + \dfrac{cx + d}{(x + 1)^2} + \dfrac{e}{x - 1}

于是 x4+x3+3x2+1=(ax+b)(x+1)2(x−1)+(cx+d)(x−1)+e(x+1)2x^4 + x^3 + 3x^2 + 1 = (ax + b)(x+1)^2(x-1) + (cx + d)(x - 1) + e(x+1)^2

继续代值。不过其实这是个线性方程组,可以用高斯消元法做。

当然甚至可以求导做,毕竟两边求导也还是相等的。

于是可以得到:

{a=1b=0c=3d=2e=1\begin{cases}a = 1\\ b = 0\\ c = 3\\ d = 2\\ e = 1\end{cases}

例子

求 ∫1(x−1)2(x+1)43dx\displaystyle\int\dfrac{1}{\sqrt[3]{(x - 1)^2(x + 1)^4}}\text{d}x

这里下面是无理式,所以想要把它变成有理式

开一个出来:

=1x+11(x−1)2(x+1)3= \dfrac{1}{x + 1}\dfrac{1}{\sqrt[3]{(x - 1)^2(x + 1)}}

再开一个:=1(x+1)(x−1)x−1x+13= \dfrac{1}{(x + 1)(x - 1)} \sqrt[3]{\dfrac{x - 1}{x + 1}}

令 t=x−1x+13t = \sqrt[3]{\dfrac{x - 1}{x + 1}}。

然后尝试把前面写成 tt 的一个多项式。

由于 t3=x−1x+1t^3 = \dfrac{x - 1}{x + 1}

原式 =(1−t3)24t2= \dfrac{(1 - t^3)^2}{4t^2}

当然 dx\text{d}x 也需要改写:

dx=6t21−t3dt\text{d}x = \dfrac{6t^2}{1 - t^3}\text{d}t

然后就直接做完了,甚至没有用到有理函数裂项。