The function f\displaystyle {f} is given by the equation f(x)=x+2x2\displaystyle {f{{\left({x}\right)}}}={\left|{x}+{2}\right|}-{\left|{x}-{2}\right|}. The graph of the function g(x)\displaystyle {g{{\left({x}\right)}}} is shown below. Express the function g(x)\displaystyle {g{{\left({x}\right)}}} in terms of f(x)\displaystyle {f{{\left({x}\right)}}}.



g(x)=\displaystyle {g{{\left({x}\right)}}}=