a: \(x^2-y^2+3x+3y\)
\(=\left(x^2-y^2\right)+\left(3x+3y\right)\)
\(=\left(x-y\right)\left(x+y\right)+3\left(x+y\right)\)
\(=\left(x+y\right)\left(x-y+3\right)\)
b: Sửa đề: \(x^2-4y^2+4x+4\)
\(=\left(x^2+4x+4\right)-4y^2\)
\(=\left(x+2\right)^2-\left(2y\right)^2\)
\(=\left(x+2+2y\right)\left(x+2-2y\right)\)