This is LaTeX code:

[latex]
(g\circ f)(x_{1})=(g\circ f)(x_{2})\Longrightarrow g(f(x_{1}))=g(f(x_{2}))\Longrightarrow f(x_{1})=f(x_{2})\Longrightarrow x_{1}=x_{2}
[/latex]