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

To write as a fraction with a common denominator, multiply by .

Multiply and .

Combine the numerators over the common denominator.

Expand using the FOIL Method.

Apply the distributive property.

Apply the distributive property.

Apply the distributive property.

Simplify and combine like terms.

Simplify each term.

Multiply by .

Rewrite using the commutative property of multiplication.

Multiply by .

Multiply by .

Multiply by .

Subtract from .

Move .

Subtract from .

Subtract from .

Factor using the perfect square rule.

Check the middle term by multiplying and compare this result with the middle term in the original expression.

Simplify.

Factor using the perfect square trinomial rule , where and .

Factor out of .

Cancel the common factors.

Cancel the common factor.

Rewrite the expression.

Simplify (4xy)/(x^2-y^2)+(x-y)/(x+y)