Trick, or Indefinite Integration? 
Evaluate $$\int_{0}^{\pi/2}\dfrac{\sin^6 x}{\sin x + \cos x}\text{ d}x$$

Is there a nice, elegant way of solving the above integral? 
Here's what I did - 
Replaced $f(x)$ by $f(\pi/2-x)$, added and got rid of some common factors in numerator and denominator. This was followed by indefinite integration, and ultimately substituting the limits in the final expression. 
The above method is kind of long, though - and I'm wondering if there's a quicker, shorter and rather elegant way of getting around this integral. Could someone post a solution, and share ideas? 
Thanks a lot. 
 A: A standard way for dealing with trigonometric integrals is to exploit the substitution $x=2\arctan\frac{t}{2}$.
Here it leads to
$$ \int_{0}^{\pi/2}\frac{\sin^6 x}{\sin x+\cos x}\,dx = 128\int_{0}^{1}\frac{t^6}{(2t+1-t^2)(t^2+1)^6}\,dt$$
and the last integral can be computed by partial fraction decomposition. It equals
$$ \frac{1}{8}\left(2+\sqrt{2}\,\text{arctanh}\frac{1}{\sqrt{2}}\right)\approx\frac{28}{69}. $$
This also follows from $\sin x+\cos x=\sqrt{2}\cos\left(x-\frac{\pi}{4}\right)$ and
$$ \int_{-\pi/4}^{\pi/4}\frac{\sin^6\left(x+\frac{\pi}{4}\right)}{\sqrt{2}\cos x}\,dx=\frac{1}{8\sqrt{2}}\sum_{k=0}^{6}\binom{6}{k}\int_{-\pi/4}^{\pi/4}\sin^k(x)\cos^{5-k}(x)\,dx $$
where the contribution provided by odd $k$s is zero and
$$ 2\int_{0}^{\pi/4}\cos(x)^5\,dx =\frac{43}{30\sqrt{2}},\qquad 2\int_{0}^{\pi/4}\sin(x)^2\cos(x)^3\,dx =\frac{7}{30\sqrt{2}}$$
$$ 2\int_{0}^{\pi/4}\sin(x)^4\cos(x)^1\,dx =\frac{3}{30\sqrt{2}}$$ 
$$2\int_{0}^{\pi/4}\sin(x)^6\cos(x)^{-1}\,dx =-\frac{73}{30\sqrt{2}}+4\,\text{arctanh}\tan\frac{\pi}{8}.$$
A: Hint:
$$2I=\int_0^{\pi/2}\dfrac{\sin^6x+\cos^6x}{\sin x+\cos x}dx$$
Now $\sin^6x+\cos^6x=(\sin^2x+\cos^2x)^3-3\sin^2x\cos^2x(\sin^2x+\cos^2x)=1-3\sin^2x\cos^2x$
and $\sin^2x\cos^2x=\dfrac{\sin^22x}4=\dfrac{1-\cos4x}8$
For $J=\displaystyle\int_0^{\pi/2}\dfrac{\cos4x}{\sin x+\cos x}dx=\int_0^{\pi/2}\dfrac{\cos4x}{\sqrt2\cos\left(x-\dfrac\pi4\right)}dx,$ 
set $x-\dfrac\pi4=y,\cos4x=\cos4\left(y+\dfrac\pi4\right)=\cos(4y+\pi)=-\cos4y$
$\implies-\sqrt2J=\displaystyle\int_{-\pi/4}^{\pi/4}\dfrac{\cos4ydy}{\cos y}=\int_{-\pi/4}^{\pi/4}\dfrac{1-8\cos^2y+8\cos^4y}{\cos y}dy$
Now use $\cos3y=4\cos^3y-3\cos y $
A: I have solved it first as a indefinite integral and then as a definite integral.  I am not sure how different it is with yours.  Good luck.  Let me know if you have any questions.

