Integral of $$$\frac{\sqrt{2} r}{2 \left(- a + r\right)}$$$ with respect to $$$r$$$

The calculator will find the integral/antiderivative of $$$\frac{\sqrt{2} r}{2 \left(- a + r\right)}$$$ with respect to $$$r$$$, 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{\sqrt{2} r}{2 \left(- a + r\right)}\, dr$$$.

Solution

Apply the constant multiple rule $$$\int c f{\left(r \right)}\, dr = c \int f{\left(r \right)}\, dr$$$ with $$$c=\frac{\sqrt{2}}{2}$$$ and $$$f{\left(r \right)} = \frac{r}{- a + r}$$$:

$${\color{red}{\int{\frac{\sqrt{2} r}{2 \left(- a + r\right)} d r}}} = {\color{red}{\left(\frac{\sqrt{2} \int{\frac{r}{- a + r} d r}}{2}\right)}}$$

Rewrite and split the fraction:

$$\frac{\sqrt{2} {\color{red}{\int{\frac{r}{- a + r} d r}}}}{2} = \frac{\sqrt{2} {\color{red}{\int{\left(\frac{a}{- a + r} + 1\right)d r}}}}{2}$$

Integrate term by term:

$$\frac{\sqrt{2} {\color{red}{\int{\left(\frac{a}{- a + r} + 1\right)d r}}}}{2} = \frac{\sqrt{2} {\color{red}{\left(\int{1 d r} + \int{\frac{a}{- a + r} d r}\right)}}}{2}$$

Apply the constant rule $$$\int c\, dr = c r$$$ with $$$c=1$$$:

$$\frac{\sqrt{2} \left(\int{\frac{a}{- a + r} d r} + {\color{red}{\int{1 d r}}}\right)}{2} = \frac{\sqrt{2} \left(\int{\frac{a}{- a + r} d r} + {\color{red}{r}}\right)}{2}$$

Apply the constant multiple rule $$$\int c f{\left(r \right)}\, dr = c \int f{\left(r \right)}\, dr$$$ with $$$c=a$$$ and $$$f{\left(r \right)} = \frac{1}{- a + r}$$$:

$$\frac{\sqrt{2} \left(r + {\color{red}{\int{\frac{a}{- a + r} d r}}}\right)}{2} = \frac{\sqrt{2} \left(r + {\color{red}{a \int{\frac{1}{- a + r} d r}}}\right)}{2}$$

Let $$$u=- a + r$$$.

Then $$$du=\left(- a + r\right)^{\prime }dr = 1 dr$$$ (steps can be seen »), and we have that $$$dr = du$$$.

Therefore,

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

The integral of $$$\frac{1}{u}$$$ is $$$\int{\frac{1}{u} d u} = \ln{\left(\left|{u}\right| \right)}$$$:

$$\frac{\sqrt{2} \left(a {\color{red}{\int{\frac{1}{u} d u}}} + r\right)}{2} = \frac{\sqrt{2} \left(a {\color{red}{\ln{\left(\left|{u}\right| \right)}}} + r\right)}{2}$$

Recall that $$$u=- a + r$$$:

$$\frac{\sqrt{2} \left(a \ln{\left(\left|{{\color{red}{u}}}\right| \right)} + r\right)}{2} = \frac{\sqrt{2} \left(a \ln{\left(\left|{{\color{red}{\left(- a + r\right)}}}\right| \right)} + r\right)}{2}$$

Therefore,

$$\int{\frac{\sqrt{2} r}{2 \left(- a + r\right)} d r} = \frac{\sqrt{2} \left(a \ln{\left(\left|{a - r}\right| \right)} + r\right)}{2}$$

Add the constant of integration:

$$\int{\frac{\sqrt{2} r}{2 \left(- a + r\right)} d r} = \frac{\sqrt{2} \left(a \ln{\left(\left|{a - r}\right| \right)} + r\right)}{2}+C$$

Answer

$$$\int \frac{\sqrt{2} r}{2 \left(- a + r\right)}\, dr = \frac{\sqrt{2} \left(a \ln\left(\left|{a - r}\right|\right) + r\right)}{2} + C$$$A