TITLE: Integrals of Trigonometry functions
QUESTION [6 upvotes]: Show that
$$\int^\pi_0 \frac{\sqrt{1+\cos x}}{\sqrt{1+\cos x}+\sqrt{1-\cos x}}\,dx =\int^\pi_0 \frac{\sqrt{1-\cos x}}{\sqrt{1+\cos x}+\sqrt{1-\cos x}}\,dx$$
I tried to use to check if
$$\int^\pi_0\left(\frac{\sqrt{1+\cos x}}{\sqrt{1+\cos x}+\sqrt{1-\cos x}} - \frac{\sqrt{1-\cos x}}{\sqrt{1+\cos x}+\sqrt{1-\cos x}}\right)\,dx=0$$
but it didn't turn out well. 
Please help.

REPLY [3 votes]: Your idea actually works; you just have to pursue it.  Abbreviating $\cos x$ to $c$ (and $\sin x$ to $s$), we have
$${\sqrt{1+c}-\sqrt{1-c}\over\sqrt{1+c}+\sqrt{1-c}}={(\sqrt{1+c}-\sqrt{1-c})^2\over(1+c)-(1-c)}={1+c-2\sqrt{1-c^2}+1-c\over2c}={1-s\over c}={c\over1+s}$$
(NB: $\sqrt{1-c^2}=s$ has the correct sign, since $s=\sin x\ge0$ for $0\le x\le\pi$.)  The substitution $u=1+\sin x$, $du=\cos x\ dx$ gives
$$\int_0^\pi{\sqrt{1+\cos x}-\sqrt{1-\cos x}\over\sqrt{1+\cos x}+\sqrt{1-\cos x}}dx=\int_0^\pi{\cos x\ dx\over1+\sin x}=\int_1^1{du\over u}=0$$