I wonder if the answer to this question is true:
Having two functions $f(x)$, $g(x)$ where $f(x)$ has $N$ real roots, and $g(x)$ is positive for all $x$ (no real roots), does the product of $f(x)g(x)$ also have exactly $N$ roots?
For example. Let $f(x)$ is a polynomial and $g(x)=e^x$, then clearly roots of $$f(x)e^x=c(x-a_1)(x-a_2)\dots(x-a_N)e^x=0$$ are again only $a_1,a_2,\dots,a_N$.
Does this hold for general functions $f(x)$, $g(x)$ ($f(x)$ not necessarily a polynomial, $g(x)$ any positive function)? Thanks.