If α, β are the roots of x2+px+q=0 and γ, δ are the roots of x2+px+r=0 then (α−γ)(α−δ)(β−γ)(β−δ)=
1
q
r
q + r
α, β be the roots of x2+px+q=0
γ, δ be the roots of x2+px+r=0
α+β=−pαβ=qγ+δ=−pγδ=r
Now, (α−γ)(α−δ)=α2−α(γ+δ)+γδ
=α2−α(α+β)+r=−αβ+r=−q+r
By symmetry (β−γ)(β−δ)=−q+r
Hence, (α−γ)(α−δ)(β−γ)(β−δ)=1