# Simplify ((8m^2+4m-7)-(2m^2-5m+2))(m^2+m+1)

((8m2+4m-7)-(2m2-5m+2))(m2+m+1)
Simplify terms.
Simplify each term.
Apply the distributive property.
(8m2+4m-7-(2m2)-(-5m)-1⋅2)(m2+m+1)
Simplify.
Multiply 2 by -1.
(8m2+4m-7-2m2-(-5m)-1⋅2)(m2+m+1)
Multiply -5 by -1.
(8m2+4m-7-2m2+5m-1⋅2)(m2+m+1)
Multiply -1 by 2.
(8m2+4m-7-2m2+5m-2)(m2+m+1)
(8m2+4m-7-2m2+5m-2)(m2+m+1)
(8m2+4m-7-2m2+5m-2)(m2+m+1)
Subtract 2m2 from 8m2.
(6m2+4m-7+5m-2)(m2+m+1)
(6m2+9m-7-2)(m2+m+1)
Subtract 2 from -7.
(6m2+9m-9)(m2+m+1)
(6m2+9m-9)(m2+m+1)
(6m2+9m-9)(m2+m+1)
Expand (6m2+9m-9)(m2+m+1) by multiplying each term in the first expression by each term in the second expression.
6m2m2+6m2m+6m2⋅1+9m⋅m2+9m⋅m+9m⋅1-9m2-9m-9⋅1
Simplify terms.
Simplify each term.
Multiply m2 by m2 by adding the exponents.
Move m2.
6(m2m2)+6m2m+6m2⋅1+9m⋅m2+9m⋅m+9m⋅1-9m2-9m-9⋅1
Use the power rule aman=am+n to combine exponents.
6m2+2+6m2m+6m2⋅1+9m⋅m2+9m⋅m+9m⋅1-9m2-9m-9⋅1
6m4+6m2m+6m2⋅1+9m⋅m2+9m⋅m+9m⋅1-9m2-9m-9⋅1
6m4+6m2m+6m2⋅1+9m⋅m2+9m⋅m+9m⋅1-9m2-9m-9⋅1
Multiply m2 by m by adding the exponents.
Move m.
6m4+6(m⋅m2)+6m2⋅1+9m⋅m2+9m⋅m+9m⋅1-9m2-9m-9⋅1
Multiply m by m2.
Raise m to the power of 1.
6m4+6(m1m2)+6m2⋅1+9m⋅m2+9m⋅m+9m⋅1-9m2-9m-9⋅1
Use the power rule aman=am+n to combine exponents.
6m4+6m1+2+6m2⋅1+9m⋅m2+9m⋅m+9m⋅1-9m2-9m-9⋅1
6m4+6m1+2+6m2⋅1+9m⋅m2+9m⋅m+9m⋅1-9m2-9m-9⋅1
6m4+6m3+6m2⋅1+9m⋅m2+9m⋅m+9m⋅1-9m2-9m-9⋅1
6m4+6m3+6m2⋅1+9m⋅m2+9m⋅m+9m⋅1-9m2-9m-9⋅1
Multiply 6 by 1.
6m4+6m3+6m2+9m⋅m2+9m⋅m+9m⋅1-9m2-9m-9⋅1
Multiply m by m2 by adding the exponents.
Move m2.
6m4+6m3+6m2+9(m2m)+9m⋅m+9m⋅1-9m2-9m-9⋅1
Multiply m2 by m.
Raise m to the power of 1.
6m4+6m3+6m2+9(m2m1)+9m⋅m+9m⋅1-9m2-9m-9⋅1
Use the power rule aman=am+n to combine exponents.
6m4+6m3+6m2+9m2+1+9m⋅m+9m⋅1-9m2-9m-9⋅1
6m4+6m3+6m2+9m2+1+9m⋅m+9m⋅1-9m2-9m-9⋅1
6m4+6m3+6m2+9m3+9m⋅m+9m⋅1-9m2-9m-9⋅1
6m4+6m3+6m2+9m3+9m⋅m+9m⋅1-9m2-9m-9⋅1
Multiply m by m by adding the exponents.
Move m.
6m4+6m3+6m2+9m3+9(m⋅m)+9m⋅1-9m2-9m-9⋅1
Multiply m by m.
6m4+6m3+6m2+9m3+9m2+9m⋅1-9m2-9m-9⋅1
6m4+6m3+6m2+9m3+9m2+9m⋅1-9m2-9m-9⋅1
Multiply 9 by 1.
6m4+6m3+6m2+9m3+9m2+9m-9m2-9m-9⋅1
Multiply -9 by 1.
6m4+6m3+6m2+9m3+9m2+9m-9m2-9m-9
6m4+6m3+6m2+9m3+9m2+9m-9m2-9m-9
Combine the opposite terms in 6m4+6m3+6m2+9m3+9m2+9m-9m2-9m-9.
Subtract 9m2 from 9m2.
6m4+6m3+6m2+9m3+9m+0-9m-9
6m4+6m3+6m2+9m3+9m-9m-9
Subtract 9m from 9m.
6m4+6m3+6m2+9m3+0-9