a, Phương trình có hai nghiệm khi
\(\Delta'=m^2-2\left(m^2-2\right)=-m^2+4\ge0\Leftrightarrow-2\le m\le2\)
b, Theo định lí Viet \(\left\{{}\begin{matrix}x_1+x_2=-m\\x_1x_2=\dfrac{m^2-2}{2}\end{matrix}\right.\)
\(A=\left|2x_1x_2+x_1+x_2-4\right|\)
\(=\left|m^2-2-m-4\right|\)
\(=\left|\left(m-\dfrac{1}{2}\right)^2-\dfrac{25}{4}\right|\)
\(=\left|-\left(m-\dfrac{1}{2}\right)^2+\dfrac{25}{4}\right|\le\dfrac{25}{4}\)
\(maxA=\dfrac{25}{4}\Leftrightarrow m=\dfrac{1}{2}\)