\(1,=\left(x-y\right)\left(x^2+1\right)\\ 2,=\left(x+y\right)\left(2a-1\right)\\ 3,=x\left(x-y\right)+\left(x-y\right)=\left(x+1\right)\left(x-y\right)\\ 4,=\left(x-y\right)\left(x+y\right)-5\left(x+y\right)=\left(x+y\right)\left(x-y-5\right)\\ 5,=x\left(x-y\right)+2\left(x-y\right)=\left(x+2\right)\left(x-y\right)\\ 6,=5a\left(2x-y\right)-\left(2x-y\right)=\left(5a-1\right)\left(2x-y\right)\)