TITLE: How many zeros does $z^{4}+z^{3}+4z^{2}+2z+3$ have in the first quadrant?
QUESTION [12 upvotes]: Let $f(z) = z^{4}+z^{3}+4z^{2}+2z+3$. I know that $f$ has no real roots and no purely imaginary roots. 
The number of zeros of $f(z)$ in the first quadrant is $\frac{1}{2\pi i}\int_{C}\frac{f'(z)}{f(z)}\, dz$ by the Argument Principle where $C = C_{1} + C_{2} + C_{3}$ with $C_{1}$ the line from origin to the point $(R, 0)$ on the $x$-axis, $C_{2}$ is the line $Re^{i\theta}$ where $0 \leq \theta \leq \pi/2$, and $C_{3}$ is the line segment from the point $(0, R)$ to the origin.
We have
$$\frac{1}{2\pi i}\int_{C_{2}}\frac{f'(z)}{f(z)}\, dz = \frac{1}{2\pi}\int_{0}^{\pi/2}4 + O(R^{-1})\, d\theta \rightarrow 1$$ as $R \rightarrow \infty$.
I am having an issue computing the integral for $C_{1}$ and $C_{3}$. For $C_{1}$, I want to compute
$$\lim_{R \rightarrow \infty} \frac{1}{2\pi i}\int_{0}^{R}\frac{4x^{3} + 3x^{2} + 8x + 2}{x^{4} + x^{3} + 4x^{2} + 2x + 3}\, dx$$ but doesn't this evaluate to $\infty$ since the inside is $O(1/x)$?

REPLY [4 votes]: There is another technique that is seldom shown to students in its full strength: the Rouche theorem, which says that if $f_t(z)$ ($0\le t\le 1$) is a continuous family of analytic functions and $G$ is a nice domain, then if no $f_t$ nas any zeroes on $\partial G$, the functions $f_0$ and $f_1$ have the same number of zeroes in $G$. 
Here we can take $G$ to be sufficiently large quarter-disk. The quarter circle is not a concern as long as we keep the term $z^4$ intact. The positive radius is not a problem either if we don't kill $3$ or introduce negative coefficients in our homotopy. Thus, the imaginary radius is the main part of the game. 
We need some obvious reason at least for the initial polynomial not to vanish there and we can find one: just notice that odd powers are imaginary and even ones real. So, the only chance for zero is to have both $z^3+2z=0$ and $z^4+4z^2+3=0$ simultaneously. However, if $z^2=2$ or $0$, the second expression is an odd integer. 
This strongly suggests keeping the roots of the first expression and the second expression intact, i.e., to take the homotopy $f_t(z)=z^4+4z^2+3+t(z^3+2z)$.
$f_1$ is what we need and $f_0(z)=z^4+4z^2+3$ is a biquadratic polinomial, whose roots are trivial to find since it factors as $(z^2+1)(z^2+3)$. Unfortunately, it has 4 roots right on the imaginary axis, so it cannot be used directly in the formal way. 
Fortunately, we've learned enough in the process to make an effective twist of the argument and finish. Our polynomial is $(z^2+1)(z^2+3)+z(z^2+2)$ and we can do any homotopy $(z^2+a(t))(z^2+c(t))+q(t)z(z^2+b(t))$ that keeps $0<a(t)<b(t)<c(t)$ and $q(t)>0$ all the way.
Now just note that $g(z)=z^4+6z^2+1+4z(z^2+1)$ has the same structure because $z^4+6z^2+1$ has two different real roots with product $1$, which both must be negative, so it factors as $(z^2+a(t))(z^2+c(t))$ with $a(t)<b(t)=1<c(t)$. Since we can continuously move any triple of positive numbers into any other such triple ordered the same way without violating the order on the way (the trivial linear homotopy will already do the trick), we see that our initial polynomial has as many roots in the first quadrant as $g(z)$. But $g(z)=(z+1)^4$, so we don't have to think too hard about its number of roots in the first quadrant.
As a byproduct, we've got a simple "human accessible" test for figuring out when a 4-th degree monic polynomial with real coefficients has all its roots in the left half-plane. The coefficients must, clearly, be positive (even in each quadratic factor) and after that all depends on the order of $a,b,c$ in the above notation.