不定積分(英語:Indefinite Integration),也可稱反導函數(Antiderivative)或原函数。在微积分中,函数
的不定积分是一个可微函數
,其导数等于原來的函數
,即
。
不定積分在原先的定義上並沒有設定區間,會與導函數間相差一常数
[註 1][1]。若導函數的定義是有區間的,請參照定積分。
不定积分和定积分间的关系係由微积分基本定理聯繫起來,函数的定积分可以透過先求得不定積分再帶入數字来運算。
有一函數
與其自變數
。當
並在區間
中滿足所有自變數
,這時我們稱
為
的反導函數。
函数
是函数
的一个反導函數,但实际上
的反導函數有无穷多个。与
相差一个常数的函数都是
的反導函數,這是因为常数函数的导数为零,例如:
都為函數
的反導函數。函数族
是
的所有可能的反導函數的集合,其中
叫做积分常数。从图像上来看,这是
向上或向下平移后得到的一组函数,由定義可知它们在
轴同一点的斜率都是一样的。
不定积分的一个重要应用是计算定积分,微积分基本定理建立了两者间的关系。
微积分基本定理:如果函數
是闭区间
上的连续函数,
是
在
上的一个反導函数,那么有
![{\displaystyle \int _{a}^{b}f(x)\,\mathrm {d} x=F(b)-F(a)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e272c5ec268675124f4f31b6c551aebe450fa6ab)
证明:取区间
的一个分割:
,又设
,根据均值定理有
, 使得
![{\displaystyle F(x_{i+1})-F(x_{i})=F^{\prime }(\xi _{i})\cdot \Delta x_{i}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/73e60e423724232f5a9b8b8c973bc246b17ae8d8)
所以
![{\displaystyle {\begin{aligned}F(b)-F(a)&=\sum _{i=0}^{n-1}(F(x_{i+1})-F(x_{i}))\\&=\sum _{i=0}^{n-1}F^{\prime }(\xi _{i})\cdot \Delta x_{i}\\&=\sum _{i=0}^{n-1}f(\xi _{i})\cdot \Delta x_{i}\\\end{aligned}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b2ee956138faa5da04e51a4c7c5fc36fb0bb38fb)
在闭区间
上连续,故可使用黎曼可积,讓
于是當
,也就是分割越來越細時有
![{\displaystyle \lim _{\lambda \to 0}\sum _{i=0}^{n-1}f(\xi _{i})\cdot \Delta x_{i}=\int _{a}^{b}f(x)\,\mathrm {d} x}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c70b4c61d43f9ab382b16734e48263b8f0336d71)
于是有
。
的每个反導函数都可以叫做
的不定积分,简写作
,因为在计算定积分时,积分常数在相减时消掉了。如果
定义在几个不同的区间上,那么每个区间上的积分常数可以互不相同。例如
![{\displaystyle F(x)={\begin{cases}-{\frac {1}{x}}+C_{1}\qquad x<0\\-{\frac {1}{x}}+C_{2}\qquad x>0\end{cases}}}](https://wikimedia.org/api/rest_v1/media/math/render/svg/8f38278bac5102eec3f0cf1df6601e78e9f40552)
就是函數
的不定积分的一般形式。其定義域為
。
什么样的函数具有反導函数是微积分基本定理中的基本问题。首先,每个连续函数都有反導函数,并且由上面可知,任一函數的反導函数如果存在的話會有无限多个。其次,由微分基本性質可知,对于一个有反導函数的函数,其反導函数在某点取某特定值的只有一个。要證明存在性,假設函數
的反導函數在
點为零,則它可以表示为如下的由积分定義的函数:
![{\displaystyle \Phi (x)=\int _{a}^{x}f(t)\,\mathrm {d} t}](https://wikimedia.org/api/rest_v1/media/math/render/svg/dbd8ed36552dac4f2d3098173999773da5cb3f80)
且
。
下面给出這函数是
的反導函数的证明:
证明:
![{\displaystyle \Phi (x+\Delta x)-\Phi (x)=\int _{a}^{x+\Delta x}f(t)\,\mathrm {d} t-\int _{a}^{x}f(t)\,\mathrm {d} t}](https://wikimedia.org/api/rest_v1/media/math/render/svg/65a97c335b0b72c27a7d2b657d0cf05547204bbe)
![{\displaystyle =\int _{x}^{x+\Delta x}f(t)\,\mathrm {d} t}](https://wikimedia.org/api/rest_v1/media/math/render/svg/d496766c2fa0cba30e9276c4564a6e3c574534db)
,其中
,当
时,
趋向于
。
- 所以有
。
進一步可知:
的反導函数中在点
上取值为
的只有一个,就是
。
这也可以看作是微积分基本定理另一个表达形式。
不连续的函数也可以有反導函數,例如考虑函数
:
- 当
时
,![{\displaystyle \displaystyle f(0)=0}](https://wikimedia.org/api/rest_v1/media/math/render/svg/41a3057c2811223d08022bcd947f1db57b0d51f5)
这个函数在0上不连续,但可以验证函数:
(
时),
是
的反導函數。
许多看似很“简单”的函数的反導函數是无法用初等函数[註 2]来表达,比如说如下几个不定积分:
。
它们的积分同样存在,定义为:
![{\displaystyle \int e^{-x^{2}}\,\mathrm {d} x={\frac {\sqrt {\pi }}{2}}\operatorname {erf} (x)+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c700523c44d0f1954f4d23ecd55431f446db63d0)
![{\displaystyle \int {\frac {\sin(x)}{x}}\,\mathrm {d} x=\operatorname {Si} (x)+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/bb6f9e8af5a9959f0b434964da7fc6ca81056c64)
![{\displaystyle \int {\frac {1}{\ln x}}\,\mathrm {d} x=\operatorname {Li} (x)+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/06b8ba0636b04840358b01598b7567885ea2e58c)
其中erf函数为误差函数,Si函数为三角积分,Li函数为对数积分。
关于什么时候反導函數可以用初等函数表达,可参见刘维尔定理。
求初等函数的不定积分比求它们的导数要困难得多。如上面所看到的,有些初等函数的反導函數无法用初等函数来表达。以下是求不定积分的一些技巧。
- 积分的线性性质使得我们可以把较为复杂的函数分成几个较为简单的函数的和来计算
- 换元积分法可以把被积函数转换成比较容易积分的形式,但对换元函数有一定要求。
- 分部積分法,用于函数乘积的积分。
- 对于实值分式函数的积分,可以先将函数展开成若干一次分式函数以及二次分式函数的幂的和,再进行积分。
- Risch算法。
- 对于常见的不定积分,可以查看积分表
- 当函数的不定积分不能用初等函数表达时,可以采用其他办法计算函数的定积分,比如数值积分。
微积分基本定理要求
为连续函数,但是,对于不连续的函数,我们仍然可以考虑求不定积分。对于什么函数有反導函數,现在仍存在着未解决的问题。如今已知的结论有:
- 一些很不“规则”的函数,尽管在“非常多”的点上并不连续,但仍有原函数。
- 在某些情况下,一些不“规则”的函数的不定积分可以通过黎曼积分求得。当然更多的不“规则”的函数不是黎曼可积的。
在以下公式中,
為任意常數。
![{\displaystyle \int a\,\mathrm {d} x=ax+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/706e86fb3a7da72390e6834ce3550c6968257f09)
,其
是常数![{\displaystyle a\neq -1}](https://wikimedia.org/api/rest_v1/media/math/render/svg/711cc92c0fdad33ceefe70c0284ab1ccddef6e74)
![{\displaystyle \int {\frac {1}{x}}\,\mathrm {d} x=\ln \left|x\right|+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/be86e176dd8858b26f6bf70e6435a3e3a7006058)
,其
,![{\displaystyle a\neq 1}](https://wikimedia.org/api/rest_v1/media/math/render/svg/b2f695917fb11ae0ee8cd0bf647ba8557133a783)
![{\displaystyle \int \sin x\,\mathrm {d} x=-\cos x+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c06113dfb524765ebcb9e4d98b419c4b68096b34)
![{\displaystyle \int \cos x\,\mathrm {d} x=\sin x+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/e661b7bf984634e6231301fcc41bd05c99152f32)
![{\displaystyle \int \tan x\,\mathrm {d} x=-\ln \left|\cos x\right|+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/9ec11d8f26396a5b99edaade1fe5519109d6b89e)
![{\displaystyle \int \cot x\,\mathrm {d} x=\ln \left|\sin x\right|+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/65960c285a56567a52cb0931ab9f9b967a7cc8a0)
![{\displaystyle \int \sec x\,\mathrm {d} x={\rm {Re}}{\rm {Arth}}\tan {\frac {x}{2}}+C=\ln \left|\sec x+\tan x\right|+C={\frac {1}{2}}\ln \left|{\frac {1+\sin x}{1-\sin x}}\right|+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/a4516a3e61f0aca5859bab3afc310dee4280b440)
![{\displaystyle \int \csc x\,\mathrm {d} x={\rm {Re}}{\rm {Ln}}\tan {\frac {x}{2}}+C=\ln \left|\csc x-\cot x\right|+C={\frac {1}{2}}\ln \left|{\frac {1-\cos x}{1+\cos x}}\right|+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/f3db79c09a17562a95f2881332d77790ffc99b93)
![{\displaystyle \int \sec ^{2}x\,\mathrm {d} x=\tan x+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/7b6936984852e5398ca7e0f87261af4037f67a3c)
![{\displaystyle \int \csc ^{2}x\,\mathrm {d} x=-\cot x+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/8330cbc9510df941ed3bc6d582859036a4686a2e)
![{\displaystyle \int {\frac {1}{\sqrt {1-x^{2}}}}\,\mathrm {d} x=\arcsin x+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/151db005e39846ccba1c93107590639bb425c6e4)
![{\displaystyle \int {\frac {1}{\sqrt {a^{2}-x^{2}}}}\,\mathrm {d} x=\arcsin {\frac {x}{a}}+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/d7451e1c553b4bf888e106edb4b402084f427a12)
![{\displaystyle \int {\frac {1}{1+x^{2}}}\,\mathrm {d} x=\arctan x+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/3efa69ff4e27e464b4b0f53edc5b2bea150d4d4d)
![{\displaystyle \int {\frac {1}{a^{2}+x^{2}}}\,\mathrm {d} x={\frac {1}{a}}\arctan {\frac {x}{a}}+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/a619faec27434ce0a3d5227226de84777775726b)
![{\displaystyle \int \operatorname {sinh} \,x\,\mathrm {d} x=\operatorname {cosh} \,x\,+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/513a9828a4f4722c6955aadadcef46f1edb8ae7d)
![{\displaystyle \int \operatorname {cosh} \,x\,\mathrm {d} x=\operatorname {sinh} \,x\,+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/23a85331c9778146d1135f7c6f6cec5eee1ae483)
![{\displaystyle \int {\frac {1}{\sqrt {x^{2}+a^{2}}}}\mathrm {d} x=\operatorname {ln} (x+{\sqrt {x^{2}+a^{2}}})+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/593471f2e1f7d9626296d82e5ff101c666fb1e1d)
![{\displaystyle \int {\frac {1}{\sqrt {x^{2}-a^{2}}}}\mathrm {d} x=\operatorname {ln} |x+{\sqrt {x^{2}-a^{2}}}|+C}](https://wikimedia.org/api/rest_v1/media/math/render/svg/680af88201f7f8a3942afcb22dcd613631edb5b8)