Let $f$ be a twice-differentiable real-valued function satisfying $f(x)+f''(x)= -xg(x)f'(x)$, where $g(x) \geq 0$ for all real $x$. Prove that $|f(x)|$ is bound.
Honnestly I worked on this problem for a good while and I just don't know how to solve it.
Is anyone could give me the principal details how to solve it (hints)?