Integral of $$$\frac{\tan^{2}{\left(x \right)}}{2}$$$

The calculator will find the integral/antiderivative of $$$\frac{\tan^{2}{\left(x \right)}}{2}$$$, with steps shown.

Related calculator: Definite and Improper Integral Calculator

Please write without any differentials such as $$$dx$$$, $$$dy$$$ etc.
Leave empty for autodetection.

If the calculator did not compute something or you have identified an error, or you have a suggestion/feedback, please contact us.

Your Input

Find $$$\int \frac{\tan^{2}{\left(x \right)}}{2}\, dx$$$.

Solution

Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=\frac{1}{2}$$$ and $$$f{\left(x \right)} = \tan^{2}{\left(x \right)}$$$:

$${\color{red}{\int{\frac{\tan^{2}{\left(x \right)}}{2} d x}}} = {\color{red}{\left(\frac{\int{\tan^{2}{\left(x \right)} d x}}{2}\right)}}$$

Let $$$u=\tan{\left(x \right)}$$$.

Then $$$x=\operatorname{atan}{\left(u \right)}$$$ and $$$dx=\left(\operatorname{atan}{\left(u \right)}\right)^{\prime }du = \frac{du}{u^{2} + 1}$$$ (steps can be seen »).

Thus,

$$\frac{{\color{red}{\int{\tan^{2}{\left(x \right)} d x}}}}{2} = \frac{{\color{red}{\int{\frac{u^{2}}{u^{2} + 1} d u}}}}{2}$$

Rewrite and split the fraction:

$$\frac{{\color{red}{\int{\frac{u^{2}}{u^{2} + 1} d u}}}}{2} = \frac{{\color{red}{\int{\left(1 - \frac{1}{u^{2} + 1}\right)d u}}}}{2}$$

Integrate term by term:

$$\frac{{\color{red}{\int{\left(1 - \frac{1}{u^{2} + 1}\right)d u}}}}{2} = \frac{{\color{red}{\left(\int{1 d u} - \int{\frac{1}{u^{2} + 1} d u}\right)}}}{2}$$

Apply the constant rule $$$\int c\, du = c u$$$ with $$$c=1$$$:

$$- \frac{\int{\frac{1}{u^{2} + 1} d u}}{2} + \frac{{\color{red}{\int{1 d u}}}}{2} = - \frac{\int{\frac{1}{u^{2} + 1} d u}}{2} + \frac{{\color{red}{u}}}{2}$$

The integral of $$$\frac{1}{u^{2} + 1}$$$ is $$$\int{\frac{1}{u^{2} + 1} d u} = \operatorname{atan}{\left(u \right)}$$$:

$$\frac{u}{2} - \frac{{\color{red}{\int{\frac{1}{u^{2} + 1} d u}}}}{2} = \frac{u}{2} - \frac{{\color{red}{\operatorname{atan}{\left(u \right)}}}}{2}$$

Recall that $$$u=\tan{\left(x \right)}$$$:

$$- \frac{\operatorname{atan}{\left({\color{red}{u}} \right)}}{2} + \frac{{\color{red}{u}}}{2} = - \frac{\operatorname{atan}{\left({\color{red}{\tan{\left(x \right)}}} \right)}}{2} + \frac{{\color{red}{\tan{\left(x \right)}}}}{2}$$

Therefore,

$$\int{\frac{\tan^{2}{\left(x \right)}}{2} d x} = \frac{\tan{\left(x \right)}}{2} - \frac{\operatorname{atan}{\left(\tan{\left(x \right)} \right)}}{2}$$

Simplify:

$$\int{\frac{\tan^{2}{\left(x \right)}}{2} d x} = - \frac{x}{2} + \frac{\tan{\left(x \right)}}{2}$$

Add the constant of integration:

$$\int{\frac{\tan^{2}{\left(x \right)}}{2} d x} = - \frac{x}{2} + \frac{\tan{\left(x \right)}}{2}+C$$

Answer

$$$\int \frac{\tan^{2}{\left(x \right)}}{2}\, dx = \left(- \frac{x}{2} + \frac{\tan{\left(x \right)}}{2}\right) + C$$$A


Please try a new game Rotatly