f(g(x))={\begin{matrix}g(x)+2, & g(x)<0 \\ {(g(x))}^{2}, & g(x)\geq 0\end{matrix}
={\begin{matrix}{x}^{3}+2, & x<0 \\ {x}^{6}, & x\in [0,1) \\ {(3x-2)}^{2}, & x\in [1,\infty )\end{matrix}
{(fog(x))}^{'}={\begin{matrix}3{x}^{2}, & x<0 \\ 6{x}^{5}, & x\in [0,1) \\ 2(3x-2)\times 3, & x\in [1,\infty )\end{matrix}
At x=0
L.H.L.=R.H.L. (Discontinuous)
At x=1
L.H.L.=R.H.L. (continuous)
L.H.D.=6=R.H.D.
⇒fog(x) is differentiable for all x∈R−0