We need to find values of a and b that make the following true:
x→1+limf′(x)=x→1−limf′(x)
Differentiate each side of the piecewise function:
f(x)={x+bax2if x≤1if x>1
f′(x)={12axif x≤1if x>1
2ax=1
When x=1,
2a(1)=1
a=21
Though we might be tempted to disregard the value of b, we need to make sure the function is continuous at x=1. For this we need:
x→1+limf(x)=x→1−limf(x)
ax2=x+b
Using our values for a and x:
(21)(1)2=1+b
b=−21