Given : f(x)={ax, x<2ax2−bx+3, x≥2
Since, f is differentiable for all x, so it will be also continuous.
Therefore,
f(2)=f(2−)⇒4a−2b+3=2a
⇒2a−2b+3=0⋯(1)
Now,
f′(x)={a x<22ax−b x>2
For differentiablity at x=2,
L.H.D.=R.H.D.⇒a=4a−b⇒3a=b⋯(2)
From equations (1) and (2), we get
a=34, b=94∴a+b=124=3