The given function is, f(x)=⎩⎨⎧sinx,x2+a2,bx+2,0,if x≤0if 0<x<1if 1≤x≤2if x>2 The value of a is calculated as, x→0−limf(x)=x→0+limf(x)x→0−limsinx=x→0+limx2+a20=0+a2a=0 The value of b is calculated as, x→2−limf(x)=x→2+limf(x)x→2−limbx+2=x→2+lim02b+2=0b=−1 The value of a+b+ab is calculated as, a+b+ab=0+(−1)+0=−1