If the function f(x)={ax+bx≤−1ax3+x+2bx>−1 is differentiable for all values of x then
f(x)={ax+bx≤−1ax3+x+2bx>−1
−a+b=−a−1+2b (As f(x) is continues at x=−1)
So b=1
f′(x)={ax≤−13ax2+1x>−1
So a=3a+1 as f(x) is differentiable at x=−1
a=−12