Cauchy index

In mathematical analysis, the Cauchy index is an integer associated to a real rational function over an interval. By the Routh–Hurwitz theorem, we have the following interpretation: for two polynomials p,q, let the rational function

r(x) = p(x)/q(x),

and the complex polynomial f(z) be given by

f(iy) = q(y) + ip(y).

Then, the Cauchy index of r over the real line is the difference between the number of roots of f(z) located in the right half-plane and those located in the left half-plane. We must also assume that p has degree less than the degree of q.