D[5x^2-2x,x]

Simplify[  -2+10x]

Simplify[  3x + x^2 - x ]