TeX source:
g(x)= \begin{cases}1 & \text { if } x \leq 2 \\ 8 / x & \text { if } 2 < x < 4 \qquad \\ 6-x & \text { if } 4 < x \end{cases}