x2 + 10x + 26 + y2 + 2y
= x2 + 10 + 25 + 1 + y2 + 2y
= (x2 + 10x + 25) + (y2 + 2y + 1)
= (x + 5)2 + (y + 1)2
x2 - 2xy + 2y2 + 2y + 1
= x2 - 2xy + y2 + y2 + 2y + 1
= (x2 - 2xy + y2) + (y2 + 2y + 1)
= (x - y)2 + (y + 1)2
4x2 + 2z2 - 4xz - 2z + 1
= 4x2 + z2 + z2 - 4xz - 2z + 1
= (4x2 - 4xz + z2) + (z2 - 2z + 1)
= (2x + z)2 + (z - 1)2