d = 0 (slider from -5 to 5, step 0.1)
q(x) = x^(2.0)
f(x) = (x - d)^(2.0)