e) \(=x^2\left(x+1\right)-2x\left(x+1\right)+3\left(x+1\right)=\left(x+1\right)\left(x^2-2x+3\right)\)
g) \(=x^2\left(3x-1\right)-x\left(3x-1\right)+4\left(3x-1\right)=\left(3x-1\right)\left(x^2-x+4\right)\)
h) \(=3x^2\left(2x+1\right)-x\left(2x+1\right)+\left(2x+1\right)=\left(2x+1\right)\left(3x^2-x+1\right)\)
i) \(=2x^2\left(2x+1\right)+2x\left(2x+1\right)+\left(2x+1\right)=\left(2x+1\right)\left(2x^2+2x+1\right)\)