Suppose the common roots are a,b and the third root of g is c. Using Vieta's formulas, or comparing coefficients in
g(x)=x3−γx−6=(x−a)(x−b)(x−c)=x3−(a+b+c)x2+(ab+bc+ca)x−abc
give a+b+c=0 and abc=6. Hence, −c=a+b and so
ab(a+b)=−6.(15)
The roots a,b are the roots of the quadratic polynomial g−f:
g(x)−f(x)=3x2+(γ−α)x−(β+6)=3(x−a)(x−b)(16)
hence
α−γ=3(a+b)(17)
β+6=−3ab.
To prove the equation (α−γ)3+9γ(α−γ)+162=0, we use (17) to write this in equivalent form as
(a+b)3+(a+b)γ+6=0or
a3+aγ+b3+bγ+3ab(a+b)+6=0.
Because g(a)=g(b)=0, we have a3+γa=b3+γb=6. Using (15) we see now that the above equation indeed holds true. Finally, from (18) we obtain
54=(α−γ)(β+6)=(β+6)(α−γ−9)+9(β+6)
which simplifies to
−(β+6)(α−γ−9)=9β.
Using this and multiplying the expression for g(x)−f(x) in (16) by α−γ−9, we obtain
3(α−γ−9)x2+(α−γ−9)(γ−α)x+9β=0
which has a and b as its roots, as required.