a, (x + y + z)(x - y - z)
= x^2 - xy - xz + xy - y^2 - zy + zx - zy - z^2
= x^2 + y^2 + z^2 + (xy - xy) + (xz - xz) - (zy + zy)
= x^2 + y^2 + z^2 - 2zy
b, (x - y + z)(x + y + z)
= x^2 + xy + xz - xy - y^2 - zy + zx + zy + z^2
= x^2 + y^2 + z^2 + (xy - xy) + xz + xz + (zy - zy)
= x^2 + y^2 + z^2 + 2zx