Let f:R→R and g:R→R be defined as f(x)={x+a,∣x−1∣,x<0x≥0 and g(x)={x+1,(x−1)2+b,x<0x≥0, where a,b are non-negative real numbers. If (g∘f)(x) is continuous for all x∈R, then a+b is equal to..........
Answer: 1
Solutions · 1
Official solution
\[g[f(x)]=⎩⎨⎧x+a+1,(x+a−1)2+b,(∣x−1∣−1)2+b,x<−a−a≤x<0x≥0\]
Continuity at x=−a: 1=1+b⇒b=0.
Continuity at x=0: (a−1)2+b=b⇒(a−1)2=0⇒a=1.
So a+b=1.