Let $f: \mathbb R \to \mathbb R$ be a function such as $$f(x)\cdot f(y)=f(x-y).$$ Find all possible values for $f(2018)$.
All I got is that $f(x)=0$ or $f(0)=1$ (when I put $y=0$) and $f^2(x)=f^2(y)$ (when I put $x=y$).
Let $f: \mathbb R \to \mathbb R$ be a function such as $$f(x)\cdot f(y)=f(x-y).$$ Find all possible values for $f(2018)$.
All I got is that $f(x)=0$ or $f(0)=1$ (when I put $y=0$) and $f^2(x)=f^2(y)$ (when I put $x=y$).
On
In continuation to 5xum's answer I want highlight something that might not be that obvious. It might appear that
$$f(2018)=±1$$
But when proceeded as follows:
Put $x=2$ and $y=1$
$$f(2).f(1)=f(1)$$
$$f(2)=1$$
Now similarly putting $x=3$ and $y=2$ we obtain $f(3)=1$. Now it can easily be proven that $\forall x\in \mathbb{N}$ and $x>1$
$$f(x)=1$$
Therefore, $f(2018)$ is either $0$ or $1$ and not $-1$.
First of all, yes, one option is that $f(x)=0$ for all $x$. That's one candidate for $f$.
Now, let's assume $f\neq 0$ (i.e., $\exists x: f(x)\neq 0$). From there you can conclude that $f(0)=1$.
Now, actually, if you plug in $x=y$, you should get
$$f(x)f(x)=f(x-x)=f(0) = 1$$
so $$f^2(x)=f(0) = 1$$
meaning that $f(x)=\cdots$ well, you can probably finish from here.