a) \(ĐKXĐ:m\ne0,m\ne\pm1\)
Ta có : \(P=\left(\frac{1+m}{m\left(m-1\right)}\right):\frac{m+1}{\left(m-1\right)^2}\)
\(=\frac{1+m}{m\left(m-1\right)}\cdot\frac{\left(m-1\right)^2}{m+1}\)
\(=\frac{m-1}{m}\)
Vây \(P=\frac{m-1}{m}\) thỏa mãn ĐKXĐ.
b) Khi \(m=\frac{1}{2}\) ( thỏa mãn ĐKXĐ ) thì \(P=\frac{\frac{1}{2}-1}{\frac{1}{2}}=\frac{1}{2}:\frac{1}{2}=\frac{1}{2}.2=1\)
Vậy : \(P=1\) khi \(m=\frac{1}{2}\)