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