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