I have been trying to characterize the number of roots on $\theta$ for the following polynomial
$$ \sum_{i=1}^n \frac{\theta- x_i}{1+ \left(x_i - \theta \right)^2} = 0$$
If we were to put everything under a common denominator then we would see that the polynomial is of degree $2n -1 $ with coefficients depending on the $x_i$ for $i=1,2,...,n$ . Taking limits as $\theta \to \infty$ and $\theta \to -\infty$ we find that the polynomial has at least one real root as it tends to zero through positive and negative values respectively.
What I do not understand is how one reaches the conclusion that the number of real roots is odd in this case. I know that the complex roots are $2 n -1$ but I'm talking about the real roots. Is there a theorem that guarantees that or is that common sense hiding in plain sight, at least for me?
Thank you.