We have,
P(x)=x3+px+q
If P(x)=0 has three real roots.
Then it must cut x−axis.
So,
P(x)=x3+px+q
On differentiating and we get,
P′(x)=3x2+p
For maxima and minima,
P′(x)=0
3x2+p=0
x2=−p3
Since equation P(x)=0 has three real roots
.
x=±√−p3
Now,
P′′(x)=6x
At x=√−p3
P′′(x)=6√−p3>0
It is minima.
So,
27q2+4p3<0
Hence proved.