I have the following function:
And the statement says:
Find $A,B$ such that $f$ is differentiable at $x=0$
My attempt was:
$f$ will be differentiable at $0 \iff \lim_{h\to 0}\frac{f(x+h)-f(x)}{h}$ exists.
Solving the lateral limits, i got:
$\lim_{h\to 0^+}\frac{f(0+h)-f(0)}{h} = \lim_{h \to 0^+} -A\frac{1-\cos(3h)}{h} +\lim_{h \to 0^+}3A\frac{\sin(h)}{h} + \lim_{h\to 0^+}\frac{Bh}{h} = 3A+B $
$\lim_{h\to 0^-} \frac{f(0+h)-f(0)}{h} = \lim_{h\to0} h^4+h = 0$
So, if $3A + B = 0$ holds, the function is differentiable at $x = 0$.
However, this doesn't not work. Per example, the values $A = 2, B = -3$ holds the condition, but creates a discontinuity at $x = 0$. This is weird to me, since the conditions to be differentiable are $3A +B = 0$ they should also work for continuity of the function, since differentiability implies continuity.
So, what is wrong?
Thanks in advance.
