Theo hệ thức Viet: \(\left\{{}\begin{matrix}x_1+x_2=-1\\x_1x_2=-2+\sqrt{2}\end{matrix}\right.\)
\(A=\dfrac{1}{x_1}+\dfrac{1}{x_2}=\dfrac{x_1+x_2}{x_1x_2}=\dfrac{-1}{-2+\sqrt{2}}=\dfrac{2+\sqrt{2}}{2}\)
\(B=x_1^2+x_2^2=\left(x_1+x_2\right)^2-2x_1x_2=\left(-1\right)^2-2\left(-2+\sqrt{2}\right)=5-2\sqrt{2}\)