In deriving the formula of cubic equations, Vieta substituted the following $$y = z-\frac {p}{3z}$$
for the depressed cubic equation
$$y^3+py +q=0$$
and transformed it into a quadratic one.
My question: How did he get that substitution, or how did he know that by substituting $y = z-\frac {p}{3z}$, he could turn cubic into quadratic?
Please help me!