Simplify (5x^4-9x^3+7x-1)+(-8x^4+4x^2-3x+2)-(-4x^3+5x-1)(2x-7)