Consider the zeros of the polynomial as a−d,a,a+d.
a−d+a+a+d=−3p1
p=−a
And,
a(a−d)+a(a+d)+(a−d)(a+d)=3q1
3q=3a2−d2
d2=3p2−3q
(a−d)a(a+d)=−r1
r=ad2−a3
r=(−p)(3p2−3q)−(−p)3
r=3pq−2p3