\(f\left(x\right)=x^7-3x^2-x^5+x^4-x^2+2x-7\)
\(g\left(x\right)=x-2x^2+x^4-x^5-x^7-4x^2-1\)
\(f\left(x\right)-g\left(x\right)=\left(x^7-3x^2-x^5+x^4-x^2+2x-7\right)-\left(x-2x^2+x^4-x^5-x^7-4x^2-1\right)\)
\(=x^7-3x^2-x^5+x^4-x^2+2x-7-x+2x^2-x^4+x^5+x^7+4x^2+1\)