whats a and b such that f is differentiable everywhere?
cosx, x<0 ax+b, x>0 (symbol should have line under it)