I am puzzled at the following question: Let p be a polynomial of degree n and let $$E = \{x | e^x = p(x)\}.$$ Prove that the cardinality $|E|$ of E satisfies $|E| \le n+1$.
Known The hint in the question says to use the Generalized Mean Value Theorem, which states: Let $f$ and $g$ be continuous functions on $[a,b]$ and suppose that $f$ and $g$ are differentiable at least on $(a,b)$, with $g'(x) \not= 0$ on $(a,b)$. Then $\exists c \in (a,b)$ such that $$\frac{f(b)-f(a)}{g(b)-g(a)}=\frac{f'(c)}{g'(c)}.$$
Where I am confused I am confused as to were to apply the Mean Value Theorem (i.e. - which functions to pick for $f$ and $g$). I want to use a counting argument, but that is not working either. Any help, hints, guidance, etc. are well appreciated.