\(a,-3x^2+7x-9+\left(x-1\right)\left(x+2\right)\\ =-3x^2+7x-9+x^2-x+2x-2\\ =\left(-3x^2+x^2\right)+\left(7x-x+2x\right)-\left(9+2\right)\\ =-2x^2+8x-11\\ b,x\left(x-5\right)-2x\left(x+1\right)\\ =x^2-5x-2x^2-2x\\ =\left(x^2-2x^2\right)-\left(5x+2x\right)\\ =-3x^2-7x\\ c,4x\left(x^2-x+1\right)-\left(x-1\right)\left(x^2-x\right)\\ =4x^3-4x^2+4x-x\left(x^2-x\right)+x^2-x\\ =4x^3-4x^2+4x-x^3+x^2+x^2-x\\ =\left(4x^3-x^3\right)+\left(-4x^2+x^2+x^2\right)+\left(4x-x\right)\\ =3x^3-2x^2+3x\\ =x\left(3x^2-2x+3\right)\)
\(d,-5x\left(x-5\right)+\left(x-3\right)\left(x^2-7\right)\\ =-5x^2+25x+x\left(x^2-7\right)-3\left(x^2-7\right)\\ =-5x^2+25x+x^3-7x-3x^2+21\\ =\left(-5x^2-3x^2\right)+\left(25x-7x\right)+x^3+21\\ =-8x^2+x^3+18x+21\)