I have been trying to solve a problem where OP seeks Integer roots to cubic equation. There are similar problems ( see 1, 2, 3, 4, 5, 6, 7) in this forum.
To solve the general cubic$$x^3+ax^2+bx+c=0\tag{i}$$, Remove the $ax^2$ term by substituting $x=\dfrac {y-a}3$. Let the transformed equation be$$y^3+py+q=0\tag{ii}$$,we get a root as
$$y=\left(-\frac q2+\sqrt{\frac {q^2}4+\frac {p^3}{27}}\right)^{\frac 13}+\left(-\frac q2-\sqrt{\frac {q^2}4+\frac {p^3}{27}}\right)^{\frac 13}\tag{iii}$$
If the the root is integer then the surds $\sqrt{\frac {q^2}4+\frac {p^3}{27}}$, and $\left(-\frac q2-\sqrt{\frac {q^2}4+\frac {p^3}{27}}\right)^{\frac 13}$ has to be integer. If $\sqrt{\frac {q^2}4+\frac {p^3}{27}}$ is integer we can write, $\sqrt{\frac {q^2}4+\frac {p^3}{27}}=c \implies \frac {q^2}4+\frac {p^3}{27}=c^2$. Now, from this post we know, that if $p/3=n$ and $q=n(n-1)$ then $\sqrt{\frac {q^2}4+\frac {p^3}{27}}$ is an integer, then we get-
$$y=n^{\frac13}-(n^2)^{\frac13}$$
If we substitute $n=n_1^3$, then we get, $y=n_1-n_1^2$, which is a negative number.
Is it a correct solution? Is the integer solution of a cubic always negative? This seems not to be true, but then what am I missing?
If this solution is correct but gives some integer solution, then , how we get all the integer solutions of cubic putting constrain on $p,q$ like $p/3=n$ and $q=n(n-1)$? Note, $p, q$ are nonzero.