The functional equation to be solved is $$ f ( x + y ) + f ( x ) f( y ) = f ( x ) +f ( y ) + f ( x y ) $$ for $ f : \mathbb R \to \mathbb R $.
I found about four possible solutions to the equation but ran into a fundamental problem with all of them. For example I found one of the solutions to be $ f ( x + 1 ) = f ( x ) + 1 $ with $ f ( 0 ) = 0 $. By induction I proved that $ f ( x ) = x $ for all integers and by setting $ x = \frac m n $, $ y = n $ in the original equation with $ m $ and $ n $ integers, I proved that $ f ( x ) = x $ for all rational numbers. My main problem is that I am not able to think of any way to extend the argument to all real numbers. A search on the internet told me that one way to prove this would be using the density of rational numbers but this method requires the function to be continuous, too. Could anyone help me in extending the argument to real numbers? Maybe if we could prove the continuity of the function?