a)\(a^4+a^3+a^3b+a^2b=\left(a^4+a^3b\right)+\left(a^3+a^2b\right)\)
\(=a^3\left(a+b\right)+a^2\left(a+b\right)\)
\(=\left(a^3+a^2\right)\left(a+b\right)\)
\(=a^2\left(a+1\right)\left(a+b\right)\)
b)\(\left(x-y+4\right)^2-\left(2x+3y-1\right)^2\)
\(=\left[\left(x-y+4\right)-\left(2x+3y-1\right)\right]\left[\left(x-y+4\right)+\left(2x+3y-1\right)\right]\)
\(=\left(x-y+4-2x-3y+1\right)\left(x-y+4+2x+3y-1\right)\)
\(=\left(-x-4y+5\right)\left(4x+2y+3\right)\)
c)\(x^2\left(y-z\right)+y^2\left(z-x\right)+z^2\left(x-y\right)\)
\(=x^2\left(y-z\right)+y^2\left(z-y+y-x\right)+z^2\left(x-y\right)\)
\(=x^2\left(y-z\right)-y^2\left(y-z\right)-y^2\left(x-y\right)+z^2\left(x-y\right)\)
\(=\left(y-z\right)\left(x^2-y^2\right)-\left(x-y\right)\left(y^2-z^2\right)\)
\(=\left(y-z\right)\left(x-y\right)\left(x+y\right)-\left(x-y\right)\left(y-z\right)\left(y+z\right)\)
\(=\left(y-z\right)\left(x-y\right)\left(x+y-y-z\right)\)
\(=\left(y-z\right)\left(x-y\right)\left(x-z\right)\)