Ta có : \(M=7\sqrt{x-1}-\sqrt{x^3-x^2}+x-1\)
\(=7\sqrt{x-1}-\sqrt{x^2\left(x-1\right)}+x-1\)
\(=7\sqrt{x-1}-x\sqrt{x-1}+\left(\sqrt{x-1}\right)^2\)
\(=\sqrt{x-1}\left(7-x+\sqrt{x-1}\right)\)
\(=\sqrt{x-1}\left(\sqrt{x-1}+2\right)\left(\sqrt{x-1}-3\right)\)