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 .

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

Factor by Grouping x^2-26x+169-y^2