Bài 4:
\(P=\dfrac{x^2-2x+2022}{x^2}=\dfrac{2022x^2-2.2022x+2022^2}{2022x^2}=\dfrac{\left(x^2-2.2022x+2022^2\right)+2021x^2}{2022x^2}=\dfrac{\left(x-2022\right)^2}{2022x^2}+\dfrac{2021}{2022}\ge\dfrac{2021}{2022}\)\(P_{min}=\dfrac{2021}{2022}\Leftrightarrow x=2022\)