結果 : how to write a piecewise function using a graph