Find all functions $f:\mathbb{R}\to{\mathbb{R}}$ such that
$f(x+y)+f(x)f(y)=f(xy)+f(x)+f(y)$ for all $x,y\in{\mathbb{R}}$
first I put $x=y=0$ so I got $f(0)=0$ or $f(0)=2$.
For the case $f(0)=2$, putting $y=0$, I got $f(x)=2$ for all real $x$.
For the case $f(0)=0$ I am not able to proceed. Pre-calculus method is preferred.
Set $y = 1$ and you can get $f(x+1)$ expressed in terms of $f(x)$, therefore if you know $f(1)$ you know $f(n)$ for all $n \in \mathbb N$.
As a few people already mentioned set $y=-x$ and you get $f(-n)$ in terms of $f(n)$ and $f(n^2)$, hence $f(1)$ determines $f(n)$ for all $n\in \mathbb Z$.
I don't see the way to go from $\mathbb Z$ to $\mathbb Q$ or $\mathbb R$. I think you need to assume continuity at some point to get the final answer.