1.
Let ff and gg be two functions defined by
f(x)={x+1,x<0x1,x>0f(x) = \begin{cases} x+1, & x < 0 \\ |x-1|, & x > 0 \end{cases}

and
g(x)={x+1,x<01,x0g(x) = \begin{cases} x+1, & x < 0 \\ 1, & x \geq 0 \end{cases}

Then (gf)(x)(g \circ f)(x) is