Pretty straightforward problem, I have a summation and no idea how to find its zeroes.
I need to find the zeroes in terms of $x$ for any array of positive constants $a_0, a_1, ..., a_n$.
Summation:
$$\sum_{i=0}^{n}\frac{-x^2+3a_ix-2(a_i)^2}{(a_i)^2 \lvert x-a_i\rvert}$$
Note that the upper polynomial is factorable as $(x-a_i)(-x+2a_i)$, if that helps.
For convenience, sort the $a_i$ in increasing order. The $a_i$ divide the real line into $n+1$ intervals, on each of which your summand is linear, since $(x - a_i)/|x - a_i| = \pm 1$. It's easy to find the zeros of a linear function.