\(\text{GIẢI :}\)
ĐKXĐ : \(a\ne\pm1\).
\(M=\frac{1}{a^2-2a+1}-\left(\frac{a}{a^2-1}-\frac{1}{a^3-a}\right):\frac{a^2-2a+1}{a+a^3}\)
\(=\frac{1}{a^2-2a+1}-\left(\frac{a}{a^2-1}-\frac{1}{a\left(a^2-1\right)}\right):\frac{a^2-2a+1}{a+a^3}\)
\(=\frac{1}{a^2-2a+1}-\left(\frac{a^2}{a\left(a^2-1\right)}-\frac{1}{a\left(a^2-1\right)}\right):\frac{a^2-2a+1}{a+a^3}\)
\(=\frac{1}{a^2-2a+1}-\frac{a^2-1}{a\left(a^2-1\right)}:\frac{\left(a-1\right)^2}{a\left(1+a^2\right)}\)
\(=\frac{1}{a^2-2a+1}-\frac{\left(a-1\right)^2}{a\left(a^2-1\right)}\cdot\frac{a\left(a^2+1\right)}{1+a^2}\)
\(=\frac{1}{a^2-2a+1}-\frac{\left(a-1\right)^2}{1+a^2}=\frac{-a^2}{\left(a-1\right)^2}\).