<s>[INST] If $3x^2 -2x+7=0$ then $\left(x-\frac{1}{3}\right)^2 =$? If $\ 3x^{2}-2x+7=0$  then $$\left(x-\frac{1}{3}\right)^2 =\text{?} $$
I am so confused. It is a self taught algebra book.
The answer is: $ \large -\frac{20}{9}$ but I don't know how it was derived.
Please explain.
Thanks for everyone who commented! I understand it now.
 [/INST] Notice, $$3x^2-2x+7=0$$ $$3x^2-2x+\frac{1}{3}+7-\frac{1}{3}=0$$ $$3\left(x^2-\frac{2x}{3}+\frac{1}{9}\right)+7-\frac{1}{3}=0$$ $$3\left(x-\frac{1}{3}\right)^2+\frac{21-1}{3}=0$$
$$3\left(x-\frac{1}{3}\right)^2=-\frac{20}{3}$$
$$\left(x-\frac{1}{3}\right)^2=-\frac{20}{9}$$
Hence, we get 
$$\bbox[5px, border:2px solid #C0A000]{\color{red}{\left(x-\frac{1}{3}\right)^2=\color{blue}{-\frac{20}{9}}}}$$
</s>