Integral of $$$\frac{x^{2} + 1}{\left(x^{2} + 2\right) \left(x^{2} + 3\right)}$$$

The calculator will find the integral/antiderivative of $$$\frac{x^{2} + 1}{\left(x^{2} + 2\right) \left(x^{2} + 3\right)}$$$, 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{x^{2} + 1}{\left(x^{2} + 2\right) \left(x^{2} + 3\right)}\, dx$$$.

Solution

Perform partial fraction decomposition (steps can be seen »):

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

Integrate term by term:

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

Let $$$u=\frac{\sqrt{2}}{2} x$$$.

Then $$$du=\left(\frac{\sqrt{2}}{2} x\right)^{\prime }dx = \frac{\sqrt{2}}{2} dx$$$ (steps can be seen »), and we have that $$$dx = \sqrt{2} du$$$.

The integral can be rewritten as

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

Apply the constant multiple rule $$$\int c f{\left(u \right)}\, du = c \int f{\left(u \right)}\, du$$$ with $$$c=\frac{\sqrt{2}}{2}$$$ and $$$f{\left(u \right)} = \frac{1}{u^{2} + 1}$$$:

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

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

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

Recall that $$$u=\frac{\sqrt{2}}{2} x$$$:

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

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

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

Let $$$u=\frac{\sqrt{3}}{3} x$$$.

Then $$$du=\left(\frac{\sqrt{3}}{3} x\right)^{\prime }dx = \frac{\sqrt{3}}{3} dx$$$ (steps can be seen »), and we have that $$$dx = \sqrt{3} du$$$.

The integral can be rewritten as

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

Apply the constant multiple rule $$$\int c f{\left(u \right)}\, du = c \int f{\left(u \right)}\, du$$$ with $$$c=\frac{\sqrt{3}}{3}$$$ and $$$f{\left(u \right)} = \frac{1}{u^{2} + 1}$$$:

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

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

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

Recall that $$$u=\frac{\sqrt{3}}{3} x$$$:

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

Therefore,

$$\int{\frac{x^{2} + 1}{\left(x^{2} + 2\right) \left(x^{2} + 3\right)} d x} = - \frac{\sqrt{2} \operatorname{atan}{\left(\frac{\sqrt{2} x}{2} \right)}}{2} + \frac{2 \sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3} x}{3} \right)}}{3}$$

Add the constant of integration:

$$\int{\frac{x^{2} + 1}{\left(x^{2} + 2\right) \left(x^{2} + 3\right)} d x} = - \frac{\sqrt{2} \operatorname{atan}{\left(\frac{\sqrt{2} x}{2} \right)}}{2} + \frac{2 \sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3} x}{3} \right)}}{3}+C$$

Answer

$$$\int \frac{x^{2} + 1}{\left(x^{2} + 2\right) \left(x^{2} + 3\right)}\, dx = \left(- \frac{\sqrt{2} \operatorname{atan}{\left(\frac{\sqrt{2} x}{2} \right)}}{2} + \frac{2 \sqrt{3} \operatorname{atan}{\left(\frac{\sqrt{3} x}{3} \right)}}{3}\right) + C$$$A