If $x,y \in \mathbb Z$ , then find all the solutions of
$$y^2=3x^4+3x^2+1$$
I was asked this question by my friend who said that he encountered this while solving another problem. I have tried several things but am unable to solve this question. Moreover, this has to be done using elementary methods only. So far, I have tried to factorize and use Pell's equation. At the end, I'm getting
$$2y_{n} + (2x^2_{n}+1)\sqrt{3}=(2+\sqrt{3})^{n}$$
where $n \in \mathbb Z^{+}$
But I'm not able to figure out how to show a contradiction from here. Can anyone please help me out?
Thanks.
The only solutions are $(x,y)=(0,-1)$ and $(x,y)=(0,+1)$. I gave an elementary proof here.