On a math.stackechange this question was asked,
Does there exist a function $f: \mathbb{R} \rightarrow \mathbb{R}$ such that $f(x+y)=f(x)+f(y)$ for all $x,y \in\mathbb{R}$; $f(1)=1$; and $f(\sqrt 2)=3$?
I solved it as per this,
First of all we start by taking $x,y=0$ $$f(0+0)=f(0)+f(0)$$ $$f(0)=0\cdots (1)$$
Now $$f'(x)=\lim_{h\to 0} \frac{f(x+h)-f(x)}{h}$$ $$f'(x)=\lim_{h\to 0} \frac{f(x)+f(h)-f(x)}{h}$$ $$f'(x)=\lim_{h\to 0} \frac{f(h)}{h}$$ Now as $f(0)=0$ we can apply the L'Hospital rule, $$f'(x)=f'(0)$$
Now as f'(0) is const, Integrating both the sides, $$\int_{0}^{x} f'(x)dx=\int_{0}^{x} f'(0)dx$$ $$f(x)-f(0)=f'(0)x$$ $$f(x)=f'(0)x$$
Now if, $$f(1)=f'(0)=1$$ It cannot be that, $$f(\sqrt{2})=f'(0)\sqrt{2}=3$$ $$f'(0)=\frac{3}{\sqrt{2}}$$
But one of the answer says such function does exist, where did I go wrong?
Link:$\ref{https://math.stackexchange.com/questions/2428719/does-there-exist-a-function-f-mathbbr→-mathbbr-such-that-fxy-fxfy/2428750#2428750}{ here}$
And if f is non-differentiable, how do we solve these equations?
And can someone name a function if $f$ is non-úmgcos table and satisfies the above conditions?