The two periods $\omega_1,\omega_2$ are given by the following two contour integrals:
By contracting the contour $\gamma_1$ infinitesimally tightly around the branch cut $[-1,1]$, and noticing that there is a sign reversal as $z$ traverses the path from a point on the upper side of the cut to the corresponding point on the lower side of the cut, we find that Similarly, as we contract $\gamma_2$ around $[1,k^{-1}]$, there is a sign change as the upper and lower sides of the path lie on opposite leaves of the Riemann surface, so that rather than cancelling each other, their values are doubled. We have: Next, to express this in terms of the complete elliptic integral of the first kind, we perform the following substitution: so that and, after simplification, Which gives our final expressions for the elliptic periods: