I have to solve numerically an equation of the following form:
$$ \sum_{n=0}^m c_n x^n = f(x) x^k $$
Where the $c_n$ are real values, $k$ is an integer and $f$ can only be evaluated numerically.
The current implementation in our code is using a numerical approach (specifically using scipy.optimize.brentq
) but I wondered:
- If I could find all the roots somehow
- If there was known strategies that exploit the polynomial parts.
EDIT: I realized I have a few properties on $f$:
- $f$ is in $C^\infty(\Bbb{R}, \Bbb{R})$
- $f$ is monotonous (non increasing)
- $\lim_{x\rightarrow+\infty} f(x) = -\infty$
- $\lim_{x\rightarrow-\infty} f(x) = +\infty$