Factor out of .

Factor out of .

Factor out of .

Simplify the expression.

Move a negative from the denominator of to the numerator.

Reorder terms.

Combine the numerators over the common denominator.

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

Cancel the common factor.

Divide by .

Simplify (a^2)/(a-b)+(b^2)/(b-a)