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$?
You almost get it correctly, except that the definition of $f'(x)$ should be:
$$\lim_{h\to0}\frac{f(x+h)-f(x)}{h}$$
So, the argument should look like this: $$\lim_{h\to0}\frac{f(x+h)-f(x)}{h} = \lim_{h\to0}\frac{(f(x)+f(h)+2xh)-f(x)}{h} = \lim_{h\to0}\left(\frac{f(h)}h + 2x\right)$$