Let f(x)={ax,x<2ax2−bx+3,x≥2
If f(x) is differentiable for all x, then
f(x) is differentiable ⇒ f(x) is continuous
f(x) is continuous at x = 2 ⇒ 2a = 4a - 2b + 3 ⇒ 2a - 2b + 3 = 0 . . . .(1)
f(x) is differentiable at x = 2 ⇒ a = 4a - b ⇒ 3a - b = 0 . . . .(2)
solving (1) and (2), we have a=34,b=94