\(P=\frac{\left(\frac{1}{4}x^2-\frac{1}{2}x+\frac{1}{4}\right)+\left(\frac{3}{4}x^2+\frac{3}{2}x+\frac{3}{4}\right)}{x^2-2x+1}=\frac{\frac{1}{4}\left(x-1\right)^2+\frac{3}{4}\left(x+1\right)^2}{\left(x-1\right)^2}=\frac{1}{4}+\frac{\frac{3}{4}\left(x+1\right)^2}{\left(x-1\right)^2}\)
Ta thấy : \(\frac{\frac{3}{4}\left(x+1\right)^2}{\left(x-1\right)^2}\ge0\forall x\) nên \(\frac{1}{4}+\frac{\frac{3}{4}\left(x+1\right)^2}{\left(x-1\right)^2}\ge\frac{1}{4}\forall x\) có GTNN là \(\frac{1}{4}\) tại x = - 1
Vậy \(P_{min}=\frac{1}{4}\) tại \(x=-1\)
\(P=\frac{\left(x^2-2x+1\right)+\left(3x-3\right)+3}{\left(x-1\right)^2}=\frac{\left(x-1\right)^2+3\left(x-1\right)+3}{\left(x-1\right)^2}=1+\frac{3}{x-1}+\frac{3}{\left(x-1\right)^2}\)
đặt \(y=\frac{1}{x-1}\Rightarrow P=1+3y+3y^2=3\left(y+\frac{1}{2}\right)^2+\frac{1}{4}\ge\frac{1}{4}\)
vậy \(MinP=\frac{1}{4}\Leftrightarrow y=-\frac{1}{2}\Leftrightarrow\frac{1}{x-1}=-\frac{1}{2}\Leftrightarrow x=-1\)