f(x) = If[-1 ≤ x ≤ 1, 1, If[x > 1, (-0.25 * (x - 1)^(2)) + 1, If[x < -1, (-0.25 * (x + 1)^(2)) + 1]]]