I am trying to solve a more general question and I have the following subproblem: Find $x>0$ that satisfies for fixed $ i \geq 3$, $$\left(1 + \frac{1}{b^2}\right) x = \frac{\sum_i a_i^2} {b^2} + \frac{1}{b} \sum_i \sqrt{-a_i^2 + x + b^2x}.$$
I have tried commercial solvers (Mathematica) but they can't find a solution (they stop running after an hour or so). I have tried several transformations, for example using the identity $\sqrt{p} + \sqrt{q} = \sqrt{p+q + \sqrt{4pq}}$ or taking squares of both sides, but the equation becomes more intractable.
Do you have any pointers or ideas?