Prove that :
$$\int^{\pi/2}_0 \log|\sin x| \,dx = \int^{\pi/2}_0 \log|\cos x| \,dx $$
I tried to cut the integral into a sum of parts and changing variable but it didn't work out right, i dont know how to solve this kind of problems in any other way, any hint will be much appreciated!
Hint: Use the fact $$\int_0^a f(x)dx = \int_0^a f(a-x)dx$$ You can show this by letting $u = a-x$.