Simplify the expression.
(POL_1) SIGN (POL_2)
SOLUTION
POL_1.subtract( POL_2 )FAKE_ANSWERPOL_1.add( POL_2 )FAKE_ANSWERSince this is subtraction, when removing the parenthesis we must distribute the minus sign to all terms in the second polynomial.
POL_2 = POL_2.multiply( -1 ), nullPOL_1 + POL_2
Since this is addition, we can remove the parenthesis without any extra steps.
POL_1 + POL_2
Identify like terms.
( POL.coefs[ index ] < 0 ) ? "-" : ( n === 0 && POL === POL_1 ) ? "" : "+"\color{COLORS[ n ]}{abs( POL.coefs[ index ] ) === 1 ? "" : abs( POL.coefs[ index ] )X^index}
Combine like terms.
+\color{COLORS[ n ]}{(POL_1.coefs[ index ] + POL_2.coefs[ index ])X^index}
Add the coefficients.
POL_1.add(POL_2).text()