Lời giải:
\(M=\sqrt{(x+1)^2}-\sqrt{x^2+2x+1+\frac{x^2}{(x+1)^2}-2x}=|x+1|-\sqrt{(x+1)^2+\frac{x^2}{(x+1)^2}-2(x+1).\frac{x}{(x+1)}}\)
\(=|x+1|-\sqrt{(x+1-\frac{x}{x+1})^2}=|x+1|-|x+1-\frac{x}{x+1}|\)
\(=|2020+1|-|2020+1-\frac{2020}{2021}|=\frac{2020}{2021}\)