\(P=2x^2+x+1\)
\(P=\left(\sqrt{2}.x\right)^2+2.\sqrt{2}.\frac{1}{2}x+\frac{1}{2}-\frac{1}{2}+1\)
\(P=\left(\sqrt{2}.x+\sqrt{\frac{1}{2}}\right)^2-\left(\frac{1}{2}-1\right)\)
\(P=\left(x\sqrt{2}+\sqrt{\frac{1}{2}}\right)^2-\left(-\frac{1}{2}\right)\)
\(P=\left(x\sqrt{2}+\sqrt{\frac{1}{2}}\right)^2-\left(-\sqrt{\frac{1}{2}}\right)^2\)
\(P=\left(x\sqrt{2}+\sqrt{\frac{1}{2}}-\sqrt{\frac{1}{2}}\right)\left(x\sqrt{2}+\sqrt{\frac{1}{2}}-\sqrt{\frac{1}{2}}\right)\)
\(P=\left(x\sqrt{2}\right)\left(x\sqrt{2}\right)\)
\(P=\left(x\sqrt{2}\right)^2\)
\(P=2x^2\)