Rewrite the equation as .

Divide each term in by .

Cancel the common factor of .

Cancel the common factor.

Divide by .

Simplify .

Combine the numerators over the common denominator.

Factor using the AC method.

Consider the form . Find a pair of integers whose product is and whose sum is . In this case, whose product is and whose sum is .

Write the factored form using these integers.

Cancel the common factor of .

Cancel the common factor.

Divide by .

Solve for z a^2+6a+5=(a+1)*z