結果 : piecewise function example with solution