If f(x)={x+a,∣x−4∣,x≤0x>0 and g(x)={x+1,(x−4)2+b,x<0x≥0 are continuous on R, then (g∘f)(2)+(f∘g)(−2) is equal to:
Solutions · 1
Official solution
Continuity of f at 0: a=∣−4∣=4. Continuity of g at 0: 1=(0−4)2+b⇒b=1−16=−15.
(g∘f)(2)=g(f(2))=g(∣2−4∣)=g(2)=(2−4)2−15=4−15=−11.
(f∘g)(−2)=f(g(−2))=f(−2+1)=f(−1)=−1+a=−1+4=3.
Sum =−11+3=−8.