x+y=1=>y=1-x
\(Q=2x^2-y^2+x+\frac{1}{x}+2020\)\(=2x^2-\left(1-x\right)^2+x+\frac{1}{x}+2020\)\(=2x^2-\left(1-2x+x^2\right)+x+\frac{1}{x}+2020\)\(=2x^2-1+2x-x^2+x+\frac{1}{x}+2020\)
\(=\left(x^2+2x+1\right)+\left(x+\frac{1}{x}\right)+2018\)\(=\left(x+1\right)^2+\left(x+\frac{1}{x}\right)+2018\)
Ta có: \(\left(x+1\right)^2\ge0\forall x>0\)
Áp dụng BĐT Cô-si cho 2 số dương \(x\)và \(\frac{1}{x}\):
\(x+\frac{1}{x}\ge2\sqrt{x.\frac{1}{x}}=2\)
\(\Rightarrow Q\ge2+2018=2020\)
Dấu '=' xảy ra \(\Leftrightarrow\hept{\begin{cases}x+1=0\\x=\frac{1}{x}\end{cases}\Leftrightarrow x=-1}\)\(\Rightarrow y=1-\left(-1\right)=2\)
Vậy \(minQ=2020\Leftrightarrow x=-1;y=2\)