Assuming that the necessary conditions for case one are satisfied and \(z''=r z, r=\frac {s}{t}\). Let \(\Gamma \) be the set of all poles of \(r\). For each pole \(c\) in this set, three quantities are calculated: Rational function \(\left [ \sqrt {r}\right ]_{c}\) and two complex numbers \(\alpha _{c}^{+},\alpha _{c}^{-}\).
How this is done depends on the order of the pole as described below. If the set \(\Gamma \) is empty (when there are no poles), then this part is skipped.
If the pole \(c\) has order \(1\) then
If the pole \(c\) is of order \(2\) then
Where \(b\) is the coefficient of \(\frac {1}{(x-c)^{2}}\) in the partial fraction decomposition of \(r\).
If the pole is of order \(\{4,6,8,\dots \}\) (poles must be all even from the conditions of case one), then the computation is more involved. Let \(2v\) be the order of the pole. Hence if the pole was order 4, then \(v=2\). Let \(\left [ \sqrt {r}\right ]_{c}\) be the sum of terms involving \(\frac {1}{(x-c)^i}\) for \(2\leq i\leq v\) in the Laurent series expansion of \(\sqrt {r}\) (not \(r\)) at \(c\). Therefore
\(\alpha _{c}^{+},\alpha _{c}^{-}\) are found using
Where in the above \(a_v\) is the coefficient of the term \(\frac {a_v}{(x-c)^v}\) in (1) and \(b\) is the coefficient of the term \(\frac {1}{(x-c)^{v+1}}\) in \(r\) itself (found from the partial fraction decomposition), minus the coefficient of same term in the Laurent series expansion of \(\sqrt {r}\) at \(c\).
The coefficients in the Laurent series can be obtained as follows. Given \(r(x)\) with a pole of finite order \(N\) at \(x=c\), then its Laurent series expansion at \(c\) is given by the sum of the analytic part and the principal part of the of the Laurent series. The coefficients \(b_n\) are contained in the principal part of the series.
To obtain \(b_{1}\) (which is the residue of \(r\left ( x\right ) \) at \(c\)), both sides of the above are multiplied by \(\left (x-c\right )^{N}\) which gives
For the special case of the last term \(b_{N}\) the above simplifies to
The above is implemented in the function laurent_coeff() in the Kovacic
class.
This completes finding all the quantities \(\left \{\left [ \sqrt {r}\right ] _{c}, \alpha _{c}^{+},\alpha _{c}^{+}\right \}\) for each pole in the set \(\Gamma \) for case one.
The next step calculates the following three quantities for \(\mathcal {O}(\infty )\).
If \(\mathcal {O}(\infty )\leq 0\), which must be even, then let \(-2 v =\mathcal {O}(\infty )\) and \(\left [ \sqrt {r}\right ] _{\infty }\) is then the sum of all terms \(x^i\) for for \(0\leq i\leq v\) in the Laurent series expansion of \(\sqrt {r}\) at \(\infty \).
The coefficients \(a_i\) are found by setting \(x=\frac {1}{y}\) in \(r\) and then finding the Laurent series of \(\left [ \sqrt {r(y)}\right ]\)
expanded around \(y=zero\). The process for finding the coefficient is the same one used as
described earlier where now the limit is taken as \(y\) approaches zero from the
right. This gives all the terms of (6). This is implemented in the function
laurent_coeff() in the Kovacic class.
The corresponding \(\{\alpha _{\infty }^{+},\alpha _{\infty }^{-}\}\) are given by
Where \(a_v\) is coefficient of \(x^v\) in (6) and \(b\) is the coefficient of \(x^{v-1}\) in \(r\) itself (found using long division) minus the coefficient of \(x^{v-1}\) in \(\left (\left [ \sqrt {r}\right ] _{\infty }\right )^2\).
If \(\mathcal {O}(\infty )=2\) then \(\left [ \sqrt {r}\right ] _{\infty }=0\). The corresponding \(\{\alpha _{\infty }^{+},\alpha _{\infty }^{-}\}\) are given by
Here \(b=\frac {\operatorname {lcoef}(s)}{\operatorname {lcoeff}(t)}\) where \(r=\frac {s}{t}\). \(\operatorname {lcoef}(s)\) is the leading coefficient of \(s\) and similarly, \(\operatorname {lcoef}(t)\) is the leading coefficient of \(t\).
If \(\mathcal {O}(\infty )>2\) then