Let a function f:R→R be defined as f(x)=⎩⎨⎧sinx−ex,a+[−x],2x−b,x≤00<x<1x≥1, where [x] is the greatest integer ≤x. If f is continuous on R, then (a+b) is
Solutions · 1
Official solution
At x=0: sin0−e0=−1; RHL as x→0+, [−x]→−1 (since −x is a small negative number, [−x]=−1), giving a−1. Continuity: a−1=−1⇒a=0.
At x=1: LHL =h→0lima+[−1+h]=a−1=−1. RHL =2−b. Continuity: 2−b=−1⇒b=3.
a+b=0+3=3.