333a

f(x) = If[x ≤ 3, (-x^(2)) + (4 * x), (-2 * x) + 9]