Sorry guys! I have been too lazy to write down the solution here.

Anyways, here is the full solution I wrote down in my papers (I also remind you that English is not my native so have forgiveness for any language errors):
When we expand the expression Δ = (x
1 - x
2)
2(x
2 - x
3)
2(x
3 - x
1)
2 we get a polynomial with terms of degree 6 in x
1, x
2, x
3. Now, p has degree 1, q has degree 2 and r has degree 3 so no other terms than the following are possible in the expression:
p
6, q
3, r
2, pqr, p
3r, p
4q, p
2q
2
Furthermore, when we expand the above expression we never get a term where a single variable x
1, x
2, x
3 has a degree higher than 4. Thus, we may exclude the terms p
6 and p
4q as possible terms in the expression since they require the variables to have a degree higher than 4. We can now write:
Δ = Aq
3 + Br
2 + Cp
2q
2 + Dp
3r + Epqr where A,...,E are constants.
Consider the expression x
3 - x = x(x+1)(x-1). If we compare it to the general expression x
3 + px
2 + qx + r we see that p=0, r=0 so the discriminant only contains the term Aq
3 = -A since q = -1. We compute the discriminant to 4, so -A = 4, or A = 4.
Now consider x
3 - 7x - 6 = (x-1)(x-2)(x+3). p = 0 so Δ = -4q
3 + Br
2 = -4(-7)
3 + 36B, since q = -7, r = -6. We compute the discriminant to 400, so 36B = 400 + Aq
3, hence B = -27.
Consider x
3 - 3x
2 + 2x = x(x-1)(x-2). r = 0 so Δ = -4q
3 + Cp
2q
2 = -4*2
3 + C(-3)
2*2
2. We compute that Δ = 4, so 36C = 36, hence C = 1.
Consider x
3 - 7x
2 + 36 = (x+2)(x-3)(x-6). q = 0 so Δ = -27r
2 + Dp
3r = -27*36
2 + D(-7)
3*36. We compute that Δ = 14400, so -12348D = 49392D, hence D = -4.
Until now we know that Δ = -4q
3 - 27r
2 + p
2q
2 - 4p
3r + Epqr where E is some constant which remains to be determined.
Consider x
3 - 2x
2 - x + 2 = (x-1)(x+1)(x-2). We see that Δ = -4(-1)
3 - 27*2
2 + (-2)
2(-1)
2 - 4(-2)
3*2 + E(-2)(-1)*2 = 4E - 36. Furthermore, we compute that Δ = 36, so 4E = 72, hence E = 18.
We conclude that Δ = -4q
3 - 27r
2 + p
2q
2 - 4p
3r + 18pqr.