Factor out of .

Factor out of .

Factor out of .

Rewrite as .

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

Cancel the common factor of and .

Rewrite as .

Factor out of .

Factor out of .

Reorder terms.

Cancel the common factor.

Rewrite the expression.

Simplify the expression.

Move to the left of .

Move the negative in front of the fraction.

Simplify (3x-x^2)/(x^2-9)