Simplify each term.

Simplify the denominator.

Rewrite as .

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

Simplify the denominator.

Rewrite as .

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

Combine the numerators over the common denominator.

Apply the distributive property.

Multiply by .

Multiply by .

Simplify (z^2)/(z^2-1)-(3z+2)/(z^2-1)