a) \(=3x\left(x+y\right)-\left(x+y\right)=\left(x+y\right)\left(3x-1\right)\)
c) \(2x\left(y-x\right)+3y\left(x-y\right)=\left(2x-3y\right)\left(y-x\right)\)
d) \(=3\left(x^2+2x+1-y^2\right)=3\left[\left(x+1\right)^2-y^2\right]=3\left(x-y+1\right)\left(x+y+1\right)\)