(i)$(f \circ g)(x) = f(g(x)) =f(-\frac {x-1} 2)
= -2*(-\frac {x-1} 2) + 1 = (x-1) +1= x$.
(ii)$(g \circ f)(x) = g(f(x)) =g(- 2x + 1) = -\frac {(-2x
+ 1)-1} 2 = x$.
We check (i) visually both with the graph and the Mapping
Diagram.
Which do you find more convincing visually?