(a-1)x2+a2xy+(a+1)y2
ans (x+ay+y)(ax-x+y)
(a-1)x^2+a^2xy+(a+1)y^2
Solve for x and y
ax + by = 2ab
bx + ay = a2 + b2