As we know that a2−b2=(a+b)(a−b)
Then using this formula we simplify this expression as:
x4−y4=(x2)2−(y2)2=(x2+y2)(x2−y2)=(x2+y2)(x+y)(x−y)
Then dividing the expression by x+y we have:
(x2+y2)(x+y)(x−y)x+y=(x2+y2)(x−y)