a = 0.95 (slider from -1 to 1, step 0.05)
f(x) = If[0 ≤ x ≤ 500, (a * x^(2)) + (172 * x) - 4800]