Integral of $$$\sqrt{\frac{1 - x}{x}}$$$

The calculator will find the integral/antiderivative of $$$\sqrt{\frac{1 - x}{x}}$$$, 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 \sqrt{\frac{1 - x}{x}}\, dx$$$.

Solution

The input is rewritten: $$$\int{\sqrt{\frac{1 - x}{x}} d x}=\int{\frac{\sqrt{1 - x}}{\sqrt{x}} d x}$$$.

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

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

The integral can be rewritten as

$${\color{red}{\int{\frac{\sqrt{1 - x}}{\sqrt{x}} d x}}} = {\color{red}{\int{2 \sqrt{1 - u^{2}} d u}}}$$

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

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

Let $$$u=\sin{\left(v \right)}$$$.

Then $$$du=\left(\sin{\left(v \right)}\right)^{\prime }dv = \cos{\left(v \right)} dv$$$ (steps can be seen »).

Also, it follows that $$$v=\operatorname{asin}{\left(u \right)}$$$.

Therefore,

$$$\sqrt{1 - u ^{2}} = \sqrt{1 - \sin^{2}{\left( v \right)}}$$$

Use the identity $$$1 - \sin^{2}{\left( v \right)} = \cos^{2}{\left( v \right)}$$$:

$$$\sqrt{1 - \sin^{2}{\left( v \right)}}=\sqrt{\cos^{2}{\left( v \right)}}$$$

Assuming that $$$\cos{\left( v \right)} \ge 0$$$, we obtain the following:

$$$\sqrt{\cos^{2}{\left( v \right)}} = \cos{\left( v \right)}$$$

So,

$$2 {\color{red}{\int{\sqrt{1 - u^{2}} d u}}} = 2 {\color{red}{\int{\cos^{2}{\left(v \right)} d v}}}$$

Apply the power reducing formula $$$\cos^{2}{\left(\alpha \right)} = \frac{\cos{\left(2 \alpha \right)}}{2} + \frac{1}{2}$$$ with $$$\alpha= v $$$:

$$2 {\color{red}{\int{\cos^{2}{\left(v \right)} d v}}} = 2 {\color{red}{\int{\left(\frac{\cos{\left(2 v \right)}}{2} + \frac{1}{2}\right)d v}}}$$

Apply the constant multiple rule $$$\int c f{\left(v \right)}\, dv = c \int f{\left(v \right)}\, dv$$$ with $$$c=\frac{1}{2}$$$ and $$$f{\left(v \right)} = \cos{\left(2 v \right)} + 1$$$:

$$2 {\color{red}{\int{\left(\frac{\cos{\left(2 v \right)}}{2} + \frac{1}{2}\right)d v}}} = 2 {\color{red}{\left(\frac{\int{\left(\cos{\left(2 v \right)} + 1\right)d v}}{2}\right)}}$$

Integrate term by term:

$${\color{red}{\int{\left(\cos{\left(2 v \right)} + 1\right)d v}}} = {\color{red}{\left(\int{1 d v} + \int{\cos{\left(2 v \right)} d v}\right)}}$$

Apply the constant rule $$$\int c\, dv = c v$$$ with $$$c=1$$$:

$$\int{\cos{\left(2 v \right)} d v} + {\color{red}{\int{1 d v}}} = \int{\cos{\left(2 v \right)} d v} + {\color{red}{v}}$$

Let $$$w=2 v$$$.

Then $$$dw=\left(2 v\right)^{\prime }dv = 2 dv$$$ (steps can be seen »), and we have that $$$dv = \frac{dw}{2}$$$.

Therefore,

$$v + {\color{red}{\int{\cos{\left(2 v \right)} d v}}} = v + {\color{red}{\int{\frac{\cos{\left(w \right)}}{2} d w}}}$$

Apply the constant multiple rule $$$\int c f{\left(w \right)}\, dw = c \int f{\left(w \right)}\, dw$$$ with $$$c=\frac{1}{2}$$$ and $$$f{\left(w \right)} = \cos{\left(w \right)}$$$:

$$v + {\color{red}{\int{\frac{\cos{\left(w \right)}}{2} d w}}} = v + {\color{red}{\left(\frac{\int{\cos{\left(w \right)} d w}}{2}\right)}}$$

The integral of the cosine is $$$\int{\cos{\left(w \right)} d w} = \sin{\left(w \right)}$$$:

$$v + \frac{{\color{red}{\int{\cos{\left(w \right)} d w}}}}{2} = v + \frac{{\color{red}{\sin{\left(w \right)}}}}{2}$$

Recall that $$$w=2 v$$$:

$$v + \frac{\sin{\left({\color{red}{w}} \right)}}{2} = v + \frac{\sin{\left({\color{red}{\left(2 v\right)}} \right)}}{2}$$

Recall that $$$v=\operatorname{asin}{\left(u \right)}$$$:

$$\frac{\sin{\left(2 {\color{red}{v}} \right)}}{2} + {\color{red}{v}} = \frac{\sin{\left(2 {\color{red}{\operatorname{asin}{\left(u \right)}}} \right)}}{2} + {\color{red}{\operatorname{asin}{\left(u \right)}}}$$

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

$$\frac{\sin{\left(2 \operatorname{asin}{\left({\color{red}{u}} \right)} \right)}}{2} + \operatorname{asin}{\left({\color{red}{u}} \right)} = \frac{\sin{\left(2 \operatorname{asin}{\left({\color{red}{\sqrt{x}}} \right)} \right)}}{2} + \operatorname{asin}{\left({\color{red}{\sqrt{x}}} \right)}$$

Therefore,

$$\int{\frac{\sqrt{1 - x}}{\sqrt{x}} d x} = \frac{\sin{\left(2 \operatorname{asin}{\left(\sqrt{x} \right)} \right)}}{2} + \operatorname{asin}{\left(\sqrt{x} \right)}$$

Using the formulas $$$\sin{\left(2 \operatorname{asin}{\left(\alpha \right)} \right)} = 2 \alpha \sqrt{1 - \alpha^{2}}$$$, $$$\sin{\left(2 \operatorname{acos}{\left(\alpha \right)} \right)} = 2 \alpha \sqrt{1 - \alpha^{2}}$$$, $$$\cos{\left(2 \operatorname{asin}{\left(\alpha \right)} \right)} = 1 - 2 \alpha^{2}$$$, $$$\cos{\left(2 \operatorname{acos}{\left(\alpha \right)} \right)} = 2 \alpha^{2} - 1$$$, $$$\sinh{\left(2 \operatorname{asinh}{\left(\alpha \right)} \right)} = 2 \alpha \sqrt{\alpha^{2} + 1}$$$, $$$\sinh{\left(2 \operatorname{acosh}{\left(\alpha \right)} \right)} = 2 \alpha \sqrt{\alpha - 1} \sqrt{\alpha + 1}$$$, $$$\cosh{\left(2 \operatorname{asinh}{\left(\alpha \right)} \right)} = 2 \alpha^{2} + 1$$$, $$$\cosh{\left(2 \operatorname{acosh}{\left(\alpha \right)} \right)} = 2 \alpha^{2} - 1$$$, simplify the expression:

$$\int{\frac{\sqrt{1 - x}}{\sqrt{x}} d x} = \sqrt{x} \sqrt{1 - x} + \operatorname{asin}{\left(\sqrt{x} \right)}$$

Add the constant of integration:

$$\int{\frac{\sqrt{1 - x}}{\sqrt{x}} d x} = \sqrt{x} \sqrt{1 - x} + \operatorname{asin}{\left(\sqrt{x} \right)}+C$$

Answer

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


Please try a new game Rotatly