Integral in question
$$ \int\frac{dx}{\sqrt{\cos(x)}\sin(x)}$$
(If it helps, the original question in my textbook is to find the definite integral corresponding to this antiderivative with the limits being $0$ to $\frac{\pi}{2}$)*
Things I've tried
- Multiplying and dividing by $\sin(x)$, (and using the Pythagorean identity,) and reaching at this integral: $$ \int{\frac{-du}{\sqrt{u}\cdot(1-u^2)}}$$ where $u = \cos(x)$. No idea how to proceed ahead; trying to use partial fractions doesn't exactly work, at least based on my knowledge of it.
- Going by the standard approach: to write the sines and cosines in terms of tangents using the identities $$ \sin(x) = \frac{2\tan(x/2)}{1+\tan^2(x/2)}, \cos(x) = \frac{1-\tan^2(x/2)}{1+\tan^2(x/2)}$$ But this doesn't yield anything helpful either.
The question(s)
- Any hints on how to proceed?
- Can the approach 1 be dealt with using partial fractions?
*The question is actually the following definite integral: $$ \int_{-\pi/2}^{\pi/2}{\frac{dx}{\sqrt{\cos(x)\sin^2(x)}}} \bigg(= \int_{-\pi/2}^{\pi/2}{\frac{dx}{\sqrt{\cos(x)}\cdot|\sin(x)|}}\ = 2\int_{0}^{\pi/2}{\frac{dx}{\sqrt{\cos(x)}\cdot\sin(x)}}\bigg)$$
Rewrite the integral as
$$ I=\int \frac{\sin x}{\sqrt{\cos x} \sin ^{2} x} d x $$
Let $y=\sqrt{\cos x}$, then $y^{2}=\cos x \Rightarrow 2 y d y=-\sin x d x$
Resolving into partial fractions yields $$ \begin{aligned} \int \frac{d y}{1-y^{4}} &=\int \frac{1}{2 }\left(\frac{1}{1+y^{2}}+\frac{1}{1-y^{2}}\right) d y \\ &=\int\left[\frac{1}{2\left(1+y^{2}\right)}+\frac{1}{4}\left(\frac{1}{1-y}+\frac{1}{1+y}\right)\right] d y \\ &=\frac{1}{2} \tan ^{-1} y+\frac{1}{4} \ln \left|\frac{1+y}{1-y}\right|+c \\ \therefore I&=-\tan ^{-1}(\sqrt{\cos x})+\frac{1}{2} \ln \left|\frac{1-\sqrt{\cos x}}{1+\sqrt{\cos x}}\right|+C \end{aligned} $$