Integral of $$$\frac{1}{2 - x^{2}}$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int \frac{1}{2 - x^{2}}\, dx$$$.
Solution
Perform partial fraction decomposition (steps can be seen »):
$${\color{red}{\int{\frac{1}{2 - x^{2}} d x}}} = {\color{red}{\int{\left(\frac{\sqrt{2}}{4 \left(x + \sqrt{2}\right)} - \frac{\sqrt{2}}{4 \left(x - \sqrt{2}\right)}\right)d x}}}$$
Integrate term by term:
$${\color{red}{\int{\left(\frac{\sqrt{2}}{4 \left(x + \sqrt{2}\right)} - \frac{\sqrt{2}}{4 \left(x - \sqrt{2}\right)}\right)d x}}} = {\color{red}{\left(- \int{\frac{\sqrt{2}}{4 \left(x - \sqrt{2}\right)} d x} + \int{\frac{\sqrt{2}}{4 \left(x + \sqrt{2}\right)} d x}\right)}}$$
Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=\frac{\sqrt{2}}{4}$$$ and $$$f{\left(x \right)} = \frac{1}{x - \sqrt{2}}$$$:
$$\int{\frac{\sqrt{2}}{4 \left(x + \sqrt{2}\right)} d x} - {\color{red}{\int{\frac{\sqrt{2}}{4 \left(x - \sqrt{2}\right)} d x}}} = \int{\frac{\sqrt{2}}{4 \left(x + \sqrt{2}\right)} d x} - {\color{red}{\left(\frac{\sqrt{2} \int{\frac{1}{x - \sqrt{2}} d x}}{4}\right)}}$$
Let $$$u=x - \sqrt{2}$$$.
Then $$$du=\left(x - \sqrt{2}\right)^{\prime }dx = 1 dx$$$ (steps can be seen »), and we have that $$$dx = du$$$.
So,
$$\int{\frac{\sqrt{2}}{4 \left(x + \sqrt{2}\right)} d x} - \frac{\sqrt{2} {\color{red}{\int{\frac{1}{x - \sqrt{2}} d x}}}}{4} = \int{\frac{\sqrt{2}}{4 \left(x + \sqrt{2}\right)} d x} - \frac{\sqrt{2} {\color{red}{\int{\frac{1}{u} d u}}}}{4}$$
The integral of $$$\frac{1}{u}$$$ is $$$\int{\frac{1}{u} d u} = \ln{\left(\left|{u}\right| \right)}$$$:
$$\int{\frac{\sqrt{2}}{4 \left(x + \sqrt{2}\right)} d x} - \frac{\sqrt{2} {\color{red}{\int{\frac{1}{u} d u}}}}{4} = \int{\frac{\sqrt{2}}{4 \left(x + \sqrt{2}\right)} d x} - \frac{\sqrt{2} {\color{red}{\ln{\left(\left|{u}\right| \right)}}}}{4}$$
Recall that $$$u=x - \sqrt{2}$$$:
$$- \frac{\sqrt{2} \ln{\left(\left|{{\color{red}{u}}}\right| \right)}}{4} + \int{\frac{\sqrt{2}}{4 \left(x + \sqrt{2}\right)} d x} = - \frac{\sqrt{2} \ln{\left(\left|{{\color{red}{\left(x - \sqrt{2}\right)}}}\right| \right)}}{4} + \int{\frac{\sqrt{2}}{4 \left(x + \sqrt{2}\right)} d x}$$
Apply the constant multiple rule $$$\int c f{\left(x \right)}\, dx = c \int f{\left(x \right)}\, dx$$$ with $$$c=\frac{\sqrt{2}}{4}$$$ and $$$f{\left(x \right)} = \frac{1}{x + \sqrt{2}}$$$:
$$- \frac{\sqrt{2} \ln{\left(\left|{x - \sqrt{2}}\right| \right)}}{4} + {\color{red}{\int{\frac{\sqrt{2}}{4 \left(x + \sqrt{2}\right)} d x}}} = - \frac{\sqrt{2} \ln{\left(\left|{x - \sqrt{2}}\right| \right)}}{4} + {\color{red}{\left(\frac{\sqrt{2} \int{\frac{1}{x + \sqrt{2}} d x}}{4}\right)}}$$
Let $$$u=x + \sqrt{2}$$$.
Then $$$du=\left(x + \sqrt{2}\right)^{\prime }dx = 1 dx$$$ (steps can be seen »), and we have that $$$dx = du$$$.
The integral can be rewritten as
$$- \frac{\sqrt{2} \ln{\left(\left|{x - \sqrt{2}}\right| \right)}}{4} + \frac{\sqrt{2} {\color{red}{\int{\frac{1}{x + \sqrt{2}} d x}}}}{4} = - \frac{\sqrt{2} \ln{\left(\left|{x - \sqrt{2}}\right| \right)}}{4} + \frac{\sqrt{2} {\color{red}{\int{\frac{1}{u} d u}}}}{4}$$
The integral of $$$\frac{1}{u}$$$ is $$$\int{\frac{1}{u} d u} = \ln{\left(\left|{u}\right| \right)}$$$:
$$- \frac{\sqrt{2} \ln{\left(\left|{x - \sqrt{2}}\right| \right)}}{4} + \frac{\sqrt{2} {\color{red}{\int{\frac{1}{u} d u}}}}{4} = - \frac{\sqrt{2} \ln{\left(\left|{x - \sqrt{2}}\right| \right)}}{4} + \frac{\sqrt{2} {\color{red}{\ln{\left(\left|{u}\right| \right)}}}}{4}$$
Recall that $$$u=x + \sqrt{2}$$$:
$$- \frac{\sqrt{2} \ln{\left(\left|{x - \sqrt{2}}\right| \right)}}{4} + \frac{\sqrt{2} \ln{\left(\left|{{\color{red}{u}}}\right| \right)}}{4} = - \frac{\sqrt{2} \ln{\left(\left|{x - \sqrt{2}}\right| \right)}}{4} + \frac{\sqrt{2} \ln{\left(\left|{{\color{red}{\left(x + \sqrt{2}\right)}}}\right| \right)}}{4}$$
Therefore,
$$\int{\frac{1}{2 - x^{2}} d x} = - \frac{\sqrt{2} \ln{\left(\left|{x - \sqrt{2}}\right| \right)}}{4} + \frac{\sqrt{2} \ln{\left(\left|{x + \sqrt{2}}\right| \right)}}{4}$$
Simplify:
$$\int{\frac{1}{2 - x^{2}} d x} = \frac{\sqrt{2} \left(- \ln{\left(\left|{x - \sqrt{2}}\right| \right)} + \ln{\left(\left|{x + \sqrt{2}}\right| \right)}\right)}{4}$$
Add the constant of integration:
$$\int{\frac{1}{2 - x^{2}} d x} = \frac{\sqrt{2} \left(- \ln{\left(\left|{x - \sqrt{2}}\right| \right)} + \ln{\left(\left|{x + \sqrt{2}}\right| \right)}\right)}{4}+C$$
Answer
$$$\int \frac{1}{2 - x^{2}}\, dx = \frac{\sqrt{2} \left(- \ln\left(\left|{x - \sqrt{2}}\right|\right) + \ln\left(\left|{x + \sqrt{2}}\right|\right)\right)}{4} + C$$$A