2: \(=a^2\left(a+3\right)+4\left(a+3\right)=\left(a+3\right)\left(a^2+4\right)\)
3: \(=\left(2a-1\right)^2-4b^2\)
\(=\left(2a-1-2b\right)\left(2a-1+2b\right)\)
4: \(=-\left(x^2+x-2\right)=-\left(x+2\right)\left(x-1\right)\)
5: \(=7\left(x^2-2xy^2+y^4\right)=7\left(x-y^2\right)^2\)
6: \(=\left(x+2\right)^2-y^2=\left(x+2+y\right)\left(x+2-y\right)\)