Let f,g:R→R be two real valued functions defined as f(x)={−∣x+3∣,ex,x<0x≥0 and g(x)={x2+k1x,4x+k2,x<0x≥0, where k1 and k2 are real constants. If (g∘f) is differentiable at x=0, then (g∘f)(−4)+(g∘f)(4) is equal to:
Solutions · 1
Official solution
For x<0 near 0, x+3>0, so f(x)=−(x+3), giving f(x)→−3 as x→0− (negative), so g(f(x))=f(x)2+k1f(x) there. For x≥0, f(x)=ex>0, so g(f(x))=4f(x)+k2.
Continuity at x=0: limx→0−[f(x)2+k1f(x)]=9−3k1, and limx→0+[4ex+k2]=4+k2. Equate: 9−3k1=4+k2 ...(a)
Differentiability at x=0: For x<0: g(f(x))=f(x)2+k1f(x) with f(x)=−x−3,f′(x)=−1, so dxd[g(f(x))]=f′(x)[2f(x)+k1]=−1[−2x−6+k1], which at x=0 gives 6−k1. For x>0: dxd[4ex+k2]=4ex→4 at x=0. Equate: 6−k1=4⟹k1=2.
From (a): 9−6=4+k2⟹k2=−1.
Evaluate: f(−4)=−∣−4+3∣=−1 (negative branch): (g∘f)(−4)=(−1)2+2(−1)=1−2=−1.
f(4)=e4 (positive branch): (g∘f)(4)=4e4+k2=4e4−1.
\[(g\circ f)(-4)+(g\circ f)(4)=-1+4e^4-1=4e^4-2=2(2e^4-1)\]