結果 : define linear function and quadratic function