p

q

a = 1 (slider from -5 to 5, step 0.1)
A = Point(xAxis)
p: x(A)
B = Point(xAxis)
q: x(B)
f(x) = ((a * (x - p)) * (x - q))
text2: "y=" + (LaTeX[f]) + ""