A cubic equation has three linear factors.

in this case,two are same

hence

comparing the coefficients,

we solve first two equations for p and q

from 1st equation

substituting in second

hence,after rearraging and simplifying

which gives

hence from first equation, or

if we substitute in third equation,we get

Keep Smiling

Malay