Divide each term in by .

Cancel the common factor.

Divide by .

Multiply the numerator by the reciprocal of the 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.

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.

Combine fractions.

Multiply and .

Move to the left of .

Solve for g g(5)=(x^2+x-12)/(x^2-4x-12)