Multiply the numerator by the reciprocal of the denominator.

Rewrite as .

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

Rewrite as .

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 .

Cancel the common factor of .

Cancel the common factor.

Rewrite the expression.

Cancel the common factor of .

Factor out of .

Cancel the common factor.

Rewrite the expression.

Cancel the common factor of .

Cancel the common factor.

Divide by .

Simplify ((x^2-25)/(x^2-10x+25))/((x+5)/(x-5))