Let $a,b,c$ be integers with $a$ positive. Is there a criterion for $ax^2+bx+c$ with $x$ integer being a square number? That is, is there a criterion for the equation $ax^2+bx+c=y^2$ has an integer solution $(x,y)$?
For example if $(a,b,c)=(1,0,0)$ then there will be infinitely many solutions, but if $(a,b,c)=(2,0,0)$ then there will be no solution.
Also I wonder that if there is a solution, then there are infinitely many.
P.S. There is a similar question number of solutions of a quadric diophantine equation here, but I'm not sure that it is equivalent to my question. We can complete the square $ax^2+bx+c=a(x+\frac{b}{2a})^2+(c-\frac{b^2}{4a})$ and substitute $x'=x+\frac{b}{2a}$, but $\frac{b}{2a}$ and $\frac{b^2}{4a}$ may not be integers.