Does there exist a function $f : \mathbb { R } \rightarrow \mathbb { R }$ such that $f ( x ) \cdot f ( y ) = f ( x + y )$ $\forall$ $x , y \in \mathbb { R }$ , but such that $f$ is not everywhere continuous?
I have this problem for my undergraduate Real Analysis class and have not been able to make any progress whatsoever. I have talked to postdocs and PhD students and none of them have been able to help.
I was thinking that it might be something like $f(x) = a^x$ if $x\in\mathbb{Q}$ and $f(x) = 0$ if $x\in\mathbb{I}$, but then I realized that this did not work due to cases like $x=\pi$ and $y=-\pi$.
Does anyone have any input on this problem?
If $f(a)=0$ for some $a\in\mathbb{R}$, then $$f(x)=f\big((x-a)+a\big)=f(x-a)\,f(a)=0\text{ for all }x\in\mathbb{R}\,.$$ If $f(x)\neq 0$ for any $x\in\mathbb{R}$, then $$f(x)=f\left(\frac{x}{2}+\frac{x}{2}\right)=f\left(\frac{x}{2}\right)\,f\left(\frac{x}{2}\right)=\Biggl(f\left(\frac{x}{2}\right)\Biggr)^2>0$$ for every $x\in\mathbb{R}$. Therefore, we may define $g:\mathbb{R}\to\mathbb{R}$ via $$g(x):=\ln\big(f(x)\big)\text{ for each }x\in\mathbb{R}\,.$$ Now, $$g(x+y)=\ln\big(f(x+y)\big)=\ln\big(f(x)\,f(y)\big)=\ln\big(f(x)\big)+\ln\big(f(y)\big)=g(x)+g(y)$$ for any $x,y\in\mathbb{R}$. This is known as Cauchy's Functional Equation, where solutions are known (with the Axiom of Choice).
If $g$ is continuous anywhere, or bounded in some bounded open set, then it is continuous everywhere and given by $g(x)=kx$ for all $x\in\mathbb{R}$, and $k$ is a fixed constant. That is, $f(x)=\exp(kx)=a^x$ for all $x\in\mathbb{R}$, where $a:=\exp(k)$.
However, there are uncountably many totally discontinuous solutions $g:\mathbb{R}\to\mathbb{R}$ (whence $g$ is not bounded in any bounded open interval, so good luck plotting such a solution). To be exact, there are as many choices of $g$ as the choices of functions from $\mathbb{R}$ to $\mathbb{R}$. (That is, the cardinality of the set of $g:\mathbb{R}\to\mathbb{R}$ such that $g(x+y)=g(x)+g(y)$ for all $x,y\in\mathbb{R}$ is precisely $\left|\mathbb{R}^\mathbb{R}\right|=2^{|\mathbb{R}|}$.)
Let $\mathcal{B}$ be a basis of $\mathbb{R}$ as a vector space over $\mathbb{Q}$. For each $b\in\mathcal{B}$, let $t_b\in\mathbb{R}$. Define $$g\left(\sum_{b\in\mathcal{B}}\,\lambda_b \,b\right):=\sum_{b\in\mathcal{B}}\,\lambda_b\,t_b$$ for all $\left(\lambda_b\right)_{b\in\mathcal{B}}\in\bigoplus\limits_{b\in\mathcal{B}}\,\mathbb{Q}$. That is, $$f\left(\sum_{b\in\mathcal{B}}\,\lambda_b \,b\right)=\prod_{b\in\mathcal{B}}\,\exp(\lambda_b\,t_b)=\prod_{b\in\mathcal{B}}\,\alpha_b^{\lambda_b}$$ for all $\left(\lambda_b\right)_{b\in\mathcal{B}}\in\bigoplus\limits_{b\in\mathcal{B}}\,\mathbb{Q}$, where $\alpha_b:=\exp\left(t_b\right)$.