Integral of $$$\frac{1}{\sqrt{- x^{2} + x}}$$$
Related calculator: Definite and Improper Integral Calculator
Your Input
Find $$$\int \frac{1}{\sqrt{- x^{2} + x}}\, dx$$$.
Solution
Complete the square (steps can be seen »): $$$- x^{2} + x = \frac{1}{4} - \left(x - \frac{1}{2}\right)^{2}$$$:
$${\color{red}{\int{\frac{1}{\sqrt{- x^{2} + x}} d x}}} = {\color{red}{\int{\frac{1}{\sqrt{\frac{1}{4} - \left(x - \frac{1}{2}\right)^{2}}} d x}}}$$
Let $$$u=x - \frac{1}{2}$$$.
Then $$$du=\left(x - \frac{1}{2}\right)^{\prime }dx = 1 dx$$$ (steps can be seen »), and we have that $$$dx = du$$$.
The integral can be rewritten as
$${\color{red}{\int{\frac{1}{\sqrt{\frac{1}{4} - \left(x - \frac{1}{2}\right)^{2}}} d x}}} = {\color{red}{\int{\frac{1}{\sqrt{\frac{1}{4} - u^{2}}} d u}}}$$
Let $$$u=\frac{\sin{\left(v \right)}}{2}$$$.
Then $$$du=\left(\frac{\sin{\left(v \right)}}{2}\right)^{\prime }dv = \frac{\cos{\left(v \right)}}{2} dv$$$ (steps can be seen »).
Also, it follows that $$$v=\operatorname{asin}{\left(2 u \right)}$$$.
Thus,
$$$\frac{1}{\sqrt{\frac{1}{4} - u ^{2}}} = \frac{1}{\sqrt{\frac{1}{4} - \frac{\sin^{2}{\left( v \right)}}{4}}}$$$
Use the identity $$$1 - \sin^{2}{\left( v \right)} = \cos^{2}{\left( v \right)}$$$:
$$$\frac{1}{\sqrt{\frac{1}{4} - \frac{\sin^{2}{\left( v \right)}}{4}}}=\frac{2}{\sqrt{1 - \sin^{2}{\left( v \right)}}}=\frac{2}{\sqrt{\cos^{2}{\left( v \right)}}}$$$
Assuming that $$$\cos{\left( v \right)} \ge 0$$$, we obtain the following:
$$$\frac{2}{\sqrt{\cos^{2}{\left( v \right)}}} = \frac{2}{\cos{\left( v \right)}}$$$
So,
$${\color{red}{\int{\frac{1}{\sqrt{\frac{1}{4} - u^{2}}} d u}}} = {\color{red}{\int{1 d v}}}$$
Apply the constant rule $$$\int c\, dv = c v$$$ with $$$c=1$$$:
$${\color{red}{\int{1 d v}}} = {\color{red}{v}}$$
Recall that $$$v=\operatorname{asin}{\left(2 u \right)}$$$:
$${\color{red}{v}} = {\color{red}{\operatorname{asin}{\left(2 u \right)}}}$$
Recall that $$$u=x - \frac{1}{2}$$$:
$$\operatorname{asin}{\left(2 {\color{red}{u}} \right)} = \operatorname{asin}{\left(2 {\color{red}{\left(x - \frac{1}{2}\right)}} \right)}$$
Therefore,
$$\int{\frac{1}{\sqrt{- x^{2} + x}} d x} = \operatorname{asin}{\left(2 x - 1 \right)}$$
Add the constant of integration:
$$\int{\frac{1}{\sqrt{- x^{2} + x}} d x} = \operatorname{asin}{\left(2 x - 1 \right)}+C$$
Answer
$$$\int \frac{1}{\sqrt{- x^{2} + x}}\, dx = \operatorname{asin}{\left(2 x - 1 \right)} + C$$$A