\(a,=4\left(x-1\right)^2\\ b,=\left(x-y\right)\left(x+y\right)+3\left(x+y\right)=\left(x+y\right)\left(x-y+3\right)\)
a, 4x2 - 8x + 4 = (2x)2 - 2.2x.2 + 2 = (2x - 2)2
b, x2 - y2 + 3x + 3y = (x2 - y2) + (3x + 3y) = (x- y). (x + y) + 3.(x + y) = (x+y).(x- y + 3)