Factor x+z^2-2ax-2az^2