Let $y=f(x)$ be a function which is discontinuous for exactly $3$ values of $x$ but defined $\forall x~{\in}~\mathbb{R}$.
Let $y=g(x)$ is another differentiable function such that $y=f(x)g(x)$ is continuous $\forall x~{\in}~\mathbb{R}$.Then find the minimum number of distinct real roots of the equation $g(x)g'(x)=0$
How to do it with proof? With mathematical intuition?
And also, how should i approach like this problems when faced? Thank you.
My work:
I just assumed the function to be $\frac{1}{(x-1)(x-2)(x-3)}$ and then g(x) trivially to deal easily $g(x)=(x-1)(x-2)(x-3)$. But I could not think it mathematically.