Find the value of b, if any, that will make the function differentiable at x = 0

g(x)= { x+b, x<0
cos(x), x≥0

can you help, I got 0 but I don't know if that will make the function differential at x=0.