How is this possible and what's its relationship with the second derivative of a cubic equation because the second derivative of a cubic equation, which is $-\frac{a}{3}$ for $x^3+ax^2+bx+c=0$, gives the inflection point on the graph and used as a substitute to solve cubic equations by removing the quadratic term.
Thanks in advance.
For the root of any polynomial to be at zero, it must have no constant term. The quadratic term in a cubic provides the constant term to the second derivative.
The inflection point is the point at which the second derivative is zero. The second derivative of your cubic function is a line: $$f’’(x) = 6x + 2a$$
The root of this line is $-a/3$. To put the inflection point on zero you can do a horizontal shift of the whole function. As suggested by Mohammed, the substitution happens to cancel the quadratic term. This makes sense, as the root of the second derivative of a cubic equation with no quadratic term is a line passing through zero:
$$g(x) = x^3 + \beta x + \gamma$$ $$ g’’(x) = 6x $$