Let $ABC$ be a triangle such that $\angle ACB=\large\frac{\pi}{6}$.Let $a,b$ and $c$ denote the lengths of the sides opposite to $A,B$ and $C$ respectively.The value of $x$ for which $a=x^2+x+1,b=x^2-1$ and $c=2x+1$ is - Clay6.com, a Free resource for your JEE, AIPMT and Board Exam preparation

Let $ABC$ be a triangle such that $\angle ACB=\large\frac{\pi}{6}$.Let $a,b$ and $c$ denote the lengths of the sides opposite to $A,B$ and $C$ respectively.The value of $x$ for which $a=x^2+x+1,b=x^2-1$ and $c=2x+1$ is