The complete elliptic integral of the first kind is defined as $$K(k)=\int_0^{\pi/2} \frac{dx}{\sqrt{1-k^2\sin^2{x}}}$$ and the complete elliptic integral of the second kind is defined as $$E(k)=\int_0^{\pi/2}\sqrt{1-k^2\sin^2{x}}~dx$$ for $0\leq k<1$.
I'm supposed to prove the following relation $$K'(k)=\frac{E(k)}{k(1-k^2)}-\frac{K(k)}{k}.$$
What I tried so far
Without much thought about the exchange of integration and differentiation I tried to compute \begin{align}K'(k)&=\int_0^{\pi/2} \frac{k\sin^2{x}}{(1-k^2\sin^2{x})^{3/2}}dx=-\frac{1}{k}\int_0^{\pi/2}\left(\frac{1-k^2\sin^2{x}}{(1-k^2\sin^2{x})^{3/2}}-\frac{1}{(1-k^2\sin^2{x})^{3/2}}\right)dx\\ &=-\frac{K(k)}{k}+\frac{1}{k}\int_0^{\pi/2}\frac{1}{(1-k^2\sin^2{x})^{3/2}} dx.\end{align} Comparing this with the result I'm supposed to obtain it would remain to show $$\int_0^{\pi/2}\frac{1}{(1-k^2\sin^2{x})^{3/2}} dx=\int_0^{\pi/2}\frac{\sqrt{1-k^2\sin^2{x}}}{1-k^2}dx.$$ Some numerical computations suggest that this identity is correct but I have know idea how to show it. Any hints or solutions would be appreciated!