Let $f: \mathbb{R} \to \mathbb{R}$ and let's define $f$ such that the following property holds $$f(a+b)=f(a)+f(b)+2ab \text{ for all } a,b.$$ Also let the function be differentiable at $0$ and $f'(0) = 3.$
Show that the function is differentiable everywhere and determine the derivative $f'(x)$.
Since $f(0) = 0$ and we have that $\lim_{h\to0} \frac{f(h)}{h} = 3$.
So $$\frac{f(x+h)-f(h)}{h} = \frac{f(x)+f(h)+2xh}{h} = \frac{f(h)}{h}+2xh = 3+2xh$$
so it's differentiable and the derivative is $f'(x)=3+2xh$? I feel like i should have gotten rid of the $h$?