Show that $$\int_0^{\frac{\pi}{2}}\ln(\sin^2 x+k^2\cos^2 x)dx=\pi\ln \frac{1+k}{2}$$
This is an exercise from Edwards Treatise on Integral Calculus II pg.188.
What solution to this problem can be given ?
In the chapter in Edwards he introduces the technique of substitution $x\mapsto \frac{\pi}{2}-x$. And proves Euler's formulas $$\int_0^{\frac{\pi}{2}}\ln \sin x dx =\int_0^{\frac{\pi}{2}}\ln \cos x dx=-\frac{\pi}{2}\ln 2$$ The problem can be written as
$$\int_0^{\frac{\pi}{2}}\ln(\tan^2 x+k^2 )dx+2\int_0^{\frac{\pi}{2}}\ln(\cos x)dx=\pi\ln(1+k)-\pi\ln 2$$
Which reduces the question to $$\int_0^{\frac{\pi}{2}}\ln(\tan^2 x+k^2 )dx=\pi\ln(1+k)$$
What proof can people give of this equation ?
The only success I have had is to differentiate with respect to $k$, and the result is easy to evaluate. However, it seems that Edwards has at this stage not discussed that method, (although he lists it as a technique, and there is a chapter on it in part I) so is there another solution ? Of course, these old books may be playing by different rules. And the Tripos type questions dont follow any pedagogical pattern. But I guess I really want to know if someone has another solution.