For the elliptic integral of first kind, $K(m)=\int_0^{\pi/2}\frac{d\theta}{\sqrt{1-m^2sin^2\theta}} $, it is well-known that $K(m)$ can be expressed in what Chowla and Selberg call "finite terms" (i.e. algebraic numbers and a finite product of Gamma functions of rational values) whenever $i\frac{K(\sqrt{1-m^2})}{K(m)}$ belongs to an imaginary quadratic field $\mathbb Q(\sqrt{d})$ (see Theorem 7 in S. Chowla and A. Selberg, On Epstein's zeta function, J. reine angew. Math. 227, 86-110, 196).
Examples for these so called elliptic integral singular values are given on this Wolfram page (with some small typos) and in the note of J.M. Borwein and I.J. Zucker, "Elliptic integral evaluation of the Gamma function at rational values of small denominator," IMA Journal on Numerical Analysis, 12 (1992), 519- 526.
See also what Tito Piezas has to say about this in his pleasant-to-read Collection of Algebraic Identities.
The following question arises:
- For these singular values, is there (always, or, if not always: when?) a polynomial $P(t)$ of degree 3 with integer coefficients such that $K(m)=c\int\limits_{t_0}^\infty\dfrac{dt}{\sqrt{P(t)}} $ with $c\in\mathbb Q$?
(EDIT: After Noam Elkies' remark, introduced $t_0$, the biggest real zero of $P$, instead of $0$ as the lower limit. Only "complete" integrals make sense here.)
In particular for $d=-7$, we have by the Carlson symmetric form $$\frac12\int\limits_0^\infty\dfrac{dt}{\sqrt{t(t+1)(t+\frac{8+3\sqrt 7}{16})}} =K(k_7)=\dfrac1{7^{1/4}4\pi}\Gamma\left(\dfrac17\right)\Gamma\left(\dfrac27\right)\Gamma\left(\dfrac47\right),$$ on the other hand I have seen somewhere (I can't remember the reference) $$\int\limits_0^\infty\dfrac{dt}{\sqrt{t(t^2+21t+112)}} =\dfrac1{4\pi\sqrt{7}}\Gamma\left(\dfrac17\right)\Gamma\left(\dfrac27\right)\Gamma\left(\dfrac47\right)=\frac{K(k_7)}{7^{1/4}}.$$
I would like to get it straight at least for this example:
Can the polynomial in the first integral be transformed into one with integer coefficients? And is there any sort of relationship between both above polynomials?
Note that the ratio of the discriminants of the two above polynomials is $-2^{24}\cdot7^3$, and both of them do not yield affirmative answers, as the second one would have to be divided by $\sqrt7$ to obtain $K(k_7)$ directly!EDIT: Follow-up question: If $P(t)$ is an integer cubic polynomial such that $\int\limits_{t_0}^\infty\dfrac{dt}{\sqrt{P(t)}} $ (with $t_0$ its biggest real zero) can be written in "finite terms", is this value always an algebraic multiple of an elliptic integral singular value $K(m)$?