分部积分法又称作部分积分法(英语:Integration by parts),是一种积分的技巧。它是由微分的乘法定则和微积分基本定理推导而来的。其基本思路是将不易求得结果的积分形式,转化为等价的但易于求出结果的积分形式。
假设
与
是两个连续可导函数。由乘积法则可知

对上述等式两边求不定积分,得

移项整理,得不定积分形式的分部积分方程

由以上等式我们可以推导出分部积分法在区间
的定积分形式
![{\displaystyle \int _{a}^{A}{\frac {{\rm {d}}h}{{\rm {d}}x}}k\ {\rm {d}}x={\big [}hk{\big ]}_{a}^{A}-\int _{a}^{A}h{\frac {{\rm {d}}k}{{\rm {d}}x}}\ {\rm {d}}x}](https://wikimedia.org/api/rest_v1/media/math/render/svg/c212cf5b6e2c0d26b05d7b13466a33cdb5d983cc)
已经积出的部分
可以代入上下限
表示为以下等式,
![{\displaystyle {\big [}hk{\big ]}_{a}^{A}=h(A)k(A)-h(a)k(a)}](https://wikimedia.org/api/rest_v1/media/math/render/svg/be74fe408ac45cefd85ac6ea1d7cf7439a8267bc)
而以上这条等式可以通过函数求导乘积法则,以及微积分基本定理通过以下方式倒推并得以验证

在传统的微积分教材里分部积分法通常写成不定积分形式:

如果更简单些,令
、
,微分
和
,,就可以得到更常见到的形式:
。
注意,上面的原式中含有g的导数;在使用这个规则时必须先找到不定积分g,并且积分
必须是可积的。
在级数的离散分析中也可以用到类似的公式表达,称为分部求和。
另一可用的表达方式可以将原表达方式里的因子仅写成f和g,但缺点是引进了镶套积分:
。
这个表达方式只有当f是连续可导而且g是连续的时才有效。
在黎曼-斯蒂尔吉斯积分和勒贝格-斯蒂尔吉斯积分有更多分部积分的公式。
提示:部分积分下面这样更复杂一点的积分运算里也是有效的:
。
用分部积分法求积分:

先设:
- u = x,故du = dx,
- dv = cos(x) dx,故v = sin(x).
代入原积分:

这里C是任意积分常数。
连续使用分部积分可以求解这类积分:

每次分部积分后x的幂减低1次。
下面这个例子需要用点技巧:

和其他例题不同的是分部积分之后得出的结果里含有要求解的积分式,在这时不必再按积分做下去。
此题要使用两次分部积分。先令:
- u = cos(x);故du = −sin(x) dx
- dv = ex dx;故v = ex
于是有:

对余下的积分式再用分部积分,设:
- u = sin(x); du = cos(x) dx
- v = ex; dv = ex dx
得到:
|
|
把两次分部积分的结果合在一起:

注意,要求解的积分式同时出现在等式两边。我们只要把它移到等式一边就可以得到积分结果:


同样, C在这里是积分常数。
同样的技巧用在求解正割函数的立方的积分里。
另外两个很有用的分部积分范例是分部积分法用在函数本身和1的乘积。这里的前提是函数的导数是已知的,而且这个导数和x的乘积的积分已知。
第一个范例是∫ ln(x) dx.我们把它写成:

设:
- u = ln(x); du = 1/x dx
- v = x; dv = 1·dx
于是:
|
|
|
|


同样, C是积分常数。
第二个范例是∫ arctan(x) dx,这里arctan(x)是反三角函数。成重写入下:

令:
- u = arctan(x); du = 1/(1+x2) dx
- v = x; dv = 1·dx
代入后有:
|
|
|
|
其中用到换元积分法和自然对数积分。
LIATE法则是一条经验法则,由选择以下列表中首先出现的函数为u组成:[1]
- L: 对数函数:
等。
- I: 反三角函数:
等。
- A: 代数函数:
等。
- T: 三角函数:
等。
- E: 指数函数:
等。
要成为dv的函数以这个列表中的后一个为准,因为求列在后面的函数的不定积分比列在前面的更容易。LIATE这个口诀代表优先选择的顺序。该法则有时候会写作"DETAIL",其中D代表dv。
为了展示LIATE法则,以下面这个积分作示范:

根据LIATE法则,u = x和dv = cos x dx,于是du = dx和v = sin x ,这个积分就变成

等同于

总的来说,在选u和dv时都是选得du比u 简单,并且dv容易被积。如果选cos x为u,x为dv,就要求这样的积分

在递归应用分部积分法后,会陷入一个无限循环产生无意义的结果。
LIATE法则尽管很有用,也还是会有例外。所以有时可以用"ILATE"顺序替换。另外,在个别情况要将指数项拆开。例如,求积分

要拆成

所以有

然后

最终的积分结果为

分部积分法通常被用作数学分析中证明定理的工具。