For continuity at x=3,
x→3−limf(x)=x→3+limf(x)=f(3)
Left hand limit:
x→3−limf(x)=x→3−lim(ax+1)
Putting x=3,
=3a+1(1)
Right hand limit:
x→3+limf(x)=x→3+lim(bx+3)
Putting x=3,
=3b+3(2)
Also,
f(3)=3a+1(3)
Since the function is continuous at x=3,
3a+1=3b+3
⇒3a=3b+2
⇒a=b+32
a=b+32