Step-by-step explanation:
Distribute

-5x+7−(x2−3x+2)negative 5 x plus 7 minus open paren x squared minus 3 x plus 2 close paren
−5+7−2−3+2

-5x+7−x2+3x−2negative 5 x plus 7 minus x squared plus 3 x minus 2
−5+7−2+3−2
2
Subtract the numbers

-5x+7−x2+3x-2negative 5 x plus 7 minus x squared plus 3 x negative 2
−5+7−2+3−2

-5x+5−x2+3xnegative 5 x plus 5 minus x squared plus 3 x
−5+5−2+3
3
Combine like terms

-5x+5−x2+3xnegative 5 x plus 5 minus x squared plus 3 x
−5+5−2+3

-2x+5−x2negative 2 x plus 5 minus x squared
−2+5−2
4
Rearrange terms

-2x+5−x2negative 2 x plus 5 minus x squared
−2+5−2

−x2−2x+5negative x squared minus 2 x plus 5
−2−2+5
Solution