Integral of $$$\sqrt{\frac{a - x}{x}}$$$ with respect to $$$x$$$

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

Solution

The input is rewritten: $$$\int{\sqrt{\frac{a - x}{x}} d x}=\int{\frac{\sqrt{a - 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$$$.

Therefore,

$${\color{red}{\int{\frac{\sqrt{a - x}}{\sqrt{x}} d x}}} = {\color{red}{\int{2 \sqrt{a - 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{a - u^{2}}$$$:

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

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

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

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

Integrand becomes

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

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

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

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

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

Integral becomes

$$2 {\color{red}{\int{\sqrt{a - u^{2}} d u}}} = 2 {\color{red}{\int{a \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{a \cos^{2}{\left(v \right)} d v}}} = 2 {\color{red}{\int{\frac{a \left(\cos{\left(2 v \right)} + 1\right)}{2} 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)} = a \left(\cos{\left(2 v \right)} + 1\right)$$$:

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

Expand the expression:

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

Integrate term by term:

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

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

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

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

$$a v + {\color{red}{\int{a \cos{\left(2 v \right)} d v}}} = a v + {\color{red}{a \int{\cos{\left(2 v \right)} d 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}$$$.

So,

$$a v + a {\color{red}{\int{\cos{\left(2 v \right)} d v}}} = a v + a {\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)}$$$:

$$a v + a {\color{red}{\int{\frac{\cos{\left(w \right)}}{2} d w}}} = a v + a {\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)}$$$:

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

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

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

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

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

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

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

Therefore,

$$\int{\frac{\sqrt{a - x}}{\sqrt{x}} d x} = \frac{a \sin{\left(2 \operatorname{asin}{\left(\frac{\sqrt{x}}{\sqrt{a}} \right)} \right)}}{2} + a \operatorname{asin}{\left(\frac{\sqrt{x}}{\sqrt{a}} \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{a - x}}{\sqrt{x}} d x} = \sqrt{a} \sqrt{x} \sqrt{1 - \frac{x}{a}} + a \operatorname{asin}{\left(\frac{\sqrt{x}}{\sqrt{a}} \right)}$$

Simplify further:

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

Add the constant of integration:

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

Answer

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


Please try a new game StackedWords