Ta có \(\frac{x^2-2x+2018}{x^2}=1-\frac{2}{x}+\frac{2018}{x^2}=2018\left(\frac{1}{x^2}-\frac{2}{2018x}+\frac{1}{2018}\right)=2018\left(\frac{1}{x^2}-2.\frac{1}{2018x}+\frac{1}{2018^2}\right)+\frac{2017}{2018}=2018.\left(\frac{1}{x}-\frac{1}{2018}\right)^2+\frac{2017}{2018}\)
Nhận thấy \(2018\left(\frac{1}{x}-\frac{1}{2018}\right)^2\ge0\forall x=>2018\left(\frac{1}{x}-\frac{1}{2018}\right)^2+\frac{2017}{2018}\ge\frac{2017}{2018}\forall x\)
Dấu "=" xảy ra khi 1/x-1/2018=0=> x=2018
Vậy min A=2017/2018 <=> x=2018