\(x^2-2\left(m+2\right)x+m^2+3m-2=0\)
\(\left(a=1;b'=-\left(m+2\right);c=m^2+3m-2\right)\)
\(\Delta'=b'^2-ac\)
\(=\left[-\left(m+2\right)\right]^2-1.\left(m^2+3m-2\right)\)
\(=m^2+4m+4-m^2-3m+2\)
\(=m+6>0,\forall m\)
Vì \(\Delta'>0\) với mọi m , nên áp dụng hệ thức vi - ét :
\(x_1+x_2=-\frac{b}{a}=2m+4\)
\(x_1.x_2=\frac{c}{a}=m^2+3m-2\)
Theo đề bài ta có :
\(A=2018+3x_1x_2-x_1^2-x_2^2\)
\(A=2018+3x_1x_2-\left(x_1^2+x_2^2\right)\)
\(A=2018+3.x_1x_2-\left[\left(x_1+x_2\right)^2-2x_1x_2\right]\)
\(A=2018+3.\left(m^2+3m-2\right)-\left[\left(2m+4\right)^2-2.\left(m^2+3m-2\right)\right]\)
\(A=2018+3m^2+9m-6-\left[\left(4m^2+16m+16\right)-2m^2-6m+4\right]\)
\(A=2018+3m^2+9m-6-4m^2-16m-16+2m^2+6m-4\)
\(A=m^2-m+1992\)
Đến đây thì bạn tự làm nha