$$$-1 + \frac{1}{\tan^{2}{\left(x \right)}}$$$ 的积分
您的输入
求$$$\int \left(-1 + \frac{1}{\tan^{2}{\left(x \right)}}\right)\, dx$$$。
解答
逐项积分:
$${\color{red}{\int{\left(-1 + \frac{1}{\tan^{2}{\left(x \right)}}\right)d x}}} = {\color{red}{\left(- \int{1 d x} + \int{\frac{1}{\tan^{2}{\left(x \right)}} d x}\right)}}$$
应用常数法则 $$$\int c\, dx = c x$$$,使用 $$$c=1$$$:
$$\int{\frac{1}{\tan^{2}{\left(x \right)}} d x} - {\color{red}{\int{1 d x}}} = \int{\frac{1}{\tan^{2}{\left(x \right)}} d x} - {\color{red}{x}}$$
设$$$u=\tan{\left(x \right)}$$$。
则 $$$x=\operatorname{atan}{\left(u \right)}$$$ 且 $$$dx=\left(\operatorname{atan}{\left(u \right)}\right)^{\prime }du = \frac{du}{u^{2} + 1}$$$(步骤见»)。
因此,
$$- x + {\color{red}{\int{\frac{1}{\tan^{2}{\left(x \right)}} d x}}} = - x + {\color{red}{\int{\frac{1}{u^{2} \left(u^{2} + 1\right)} d u}}}$$
进行部分分式分解(步骤可见»):
$$- x + {\color{red}{\int{\frac{1}{u^{2} \left(u^{2} + 1\right)} d u}}} = - x + {\color{red}{\int{\left(- \frac{1}{u^{2} + 1} + \frac{1}{u^{2}}\right)d u}}}$$
逐项积分:
$$- x + {\color{red}{\int{\left(- \frac{1}{u^{2} + 1} + \frac{1}{u^{2}}\right)d u}}} = - x + {\color{red}{\left(\int{\frac{1}{u^{2}} d u} - \int{\frac{1}{u^{2} + 1} d u}\right)}}$$
应用幂法则 $$$\int u^{n}\, du = \frac{u^{n + 1}}{n + 1}$$$ $$$\left(n \neq -1 \right)$$$,其中 $$$n=-2$$$:
$$- x - \int{\frac{1}{u^{2} + 1} d u} + {\color{red}{\int{\frac{1}{u^{2}} d u}}}=- x - \int{\frac{1}{u^{2} + 1} d u} + {\color{red}{\int{u^{-2} d u}}}=- x - \int{\frac{1}{u^{2} + 1} d u} + {\color{red}{\frac{u^{-2 + 1}}{-2 + 1}}}=- x - \int{\frac{1}{u^{2} + 1} d u} + {\color{red}{\left(- u^{-1}\right)}}=- x - \int{\frac{1}{u^{2} + 1} d u} + {\color{red}{\left(- \frac{1}{u}\right)}}$$
$$$\frac{1}{u^{2} + 1}$$$ 的积分为 $$$\int{\frac{1}{u^{2} + 1} d u} = \operatorname{atan}{\left(u \right)}$$$:
$$- x - {\color{red}{\int{\frac{1}{u^{2} + 1} d u}}} - \frac{1}{u} = - x - {\color{red}{\operatorname{atan}{\left(u \right)}}} - \frac{1}{u}$$
回忆一下 $$$u=\tan{\left(x \right)}$$$:
$$- x - \operatorname{atan}{\left({\color{red}{u}} \right)} - {\color{red}{u}}^{-1} = - x - \operatorname{atan}{\left({\color{red}{\tan{\left(x \right)}}} \right)} - {\color{red}{\tan{\left(x \right)}}}^{-1}$$
因此,
$$\int{\left(-1 + \frac{1}{\tan^{2}{\left(x \right)}}\right)d x} = - x - \operatorname{atan}{\left(\tan{\left(x \right)} \right)} - \frac{1}{\tan{\left(x \right)}}$$
化简:
$$\int{\left(-1 + \frac{1}{\tan^{2}{\left(x \right)}}\right)d x} = - 2 x - \frac{1}{\tan{\left(x \right)}}$$
加上积分常数:
$$\int{\left(-1 + \frac{1}{\tan^{2}{\left(x \right)}}\right)d x} = - 2 x - \frac{1}{\tan{\left(x \right)}}+C$$
答案
$$$\int \left(-1 + \frac{1}{\tan^{2}{\left(x \right)}}\right)\, dx = \left(- 2 x - \frac{1}{\tan{\left(x \right)}}\right) + C$$$A