For the first problem you simply need to combine like terms. x^2 + x^2 = 2x^2
-x + -x = -2x
1+1=2
your answer would be 2x^2 + -2x + 2
For the second you need to distribute the first term into the second
x times x^2 = x^3
x timex x = x^2
x times 1 = x
1 times x^2 = x^2
1 times -x = -x
1 times 1 = 1
Then combine all like terms
x^3 + x^2 + x^2 + x - x + 1
x^3 + 2x^2 + 1