Since both terms are perfect squares, factor using the difference of squares formula, where and .

Factor out of .

Factor out of .

Factor out of .

Factor out of .

Cancel the common factor of .

Factor out of .

Cancel the common factor.

Rewrite the expression.

Multiply and .

Cancel the common factor of .

Cancel the common factor.

Rewrite the expression.

Cancel the common factor of .

Cancel the common factor.

Divide by .

Multiply (x^2-y^2)/(x-y)*(2xy)/(x^2+xy)