I'll state the question from my textbook below:
A function $f: \mathbb{R} \to \mathbb{R}$ satisfies the equation $f(x+y) = f(x) f(y)$ for all $x,y \in \mathbb{R}, f(x) \ne 0$. Suppose that the function is differentiable at $x = 0$ and $f'(0) = 2$. Prove that $f'(x) = 2f(x)$.
Firstly, I don't understand the first sentence completely. Does it mean that this equation holds true whenever $f(x) \ne 0$ or does it mean to say that $f(x) \ne 0, \forall x \in \mathbb{R}$. If it's the latter then $f(y) \ne 0$ too, right?
And then I proceeded in many different ways to find $f'(x)$. I tried replacing $y$ by $0$ in the given equation and then differentiated it, first differentiated the equation and then replaced $y$ by $0$ and tried a few other things. None of these got me anywhere.
Here's something I proved while trying to solve the question:
Putting $x,y = 0$ in the given equation we have:
$f(0) = f(0) f(0) \implies f(0)[f(0) - 1] = 0$
Since $f(x) \ne 0, \forall x \in \mathbb{R}$ (I'm not really sure if this is what the question meant, let's say it did),
$f(0) - 1 =0 \implies f(0) = 1$
I don't know if this is even useful but it seems to be so, since we also have been given $f'(0) = 2$.
Please help me prove the required equation. Any help would be appreciated.