So I'm trying to simplify this problem $c = \operatorname{mean}\left(\frac{a_i}{a_i+b_ix}\right)$ to solve for $x$. Right now the way I'm doing it is basically trying a bunch of $x$ values and seeing which one is closest to $c$, but I was wondering if there's a way to solve for $x$ directly. I tried this: $$ c = \frac 1 n \sum_i^n \frac{a_i}{a_i+b_ix} \\ cn = \sum_i^n \frac{a_i}{a_i+b_ix} \\ cn = \sum_i^n a_i \prod_{j \neq i} (a_j + b_jx) $$
But for large $i$ this would be a large, intractable polynomial, right? Are there any other ideas that might help? Thanks.