Algebra 2Rational Functions2 of 4
Rational Functions · 2

Multiplying and Dividing Rational Expressions

To multiply or divide fractions with variables in them, we break the expressions into factors so matching pieces can cancel out before we multiply anything together.

1

Factoring before multiplying

Suppose we want to multiply these two rational expressions (fractions whose numerators and denominators are polynomials):

x2+5x+6x2−9⋅x−3x+2\displaystyle \frac{x^2 + 5x + 6}{x^2 - 9} \cdot \frac{x - 3}{x + 2}

Since xx is just a number we haven't picked yet, fractions with variables follow the exact same rules as regular fractions like 1514⋅2110\frac{15}{14} \cdot \frac{21}{10}.

Multiplying fractions by factoring first
1514⋅2110\displaystyle \frac{15}{14} \cdot \frac{21}{10} =  ?\displaystyle = \;?
Text solution
Break each number into factorsInstead of multiplying straight across into big numbers, break each number on top and bottom into its prime factors:
1514⋅2110\displaystyle \frac{15}{14} \cdot \frac{21}{10} =3⋅5⋅3⋅72⋅7⋅2⋅5\displaystyle = \frac{3 \cdot \firstpair{5} \cdot 3 \cdot \secondpair{7}}{2 \cdot \secondpair{7} \cdot 2 \cdot \firstpair{5}}
Cancel matching factors of 5 and 7Pair each factor on top with the same factor on the bottom so 55=1\frac{\firstpair{5}}{\firstpair{5}} = \firstpair{1} and 77=1\frac{\secondpair{7}}{\secondpair{7}} = \secondpair{1}, then multiply what's left:
=3⋅5⋅3⋅72⋅7⋅2⋅5\displaystyle = \frac{3 \cdot \cancel{\firstpair{5}} \cdot 3 \cdot \cancel{\secondpair{7}}}{2 \cdot \cancel{\secondpair{7}} \cdot 2 \cdot \cancel{\firstpair{5}}} =3⋅32⋅2\displaystyle = \frac{3 \cdot 3}{2 \cdot 2} =94\displaystyle = \frac{9}{4}

So the product is 94\frac{9}{4}, found without ever multiplying 15⋅2115 \cdot 21 or 14⋅1014 \cdot 10.

2

Multiplying monomial expressions

Before bringing in addition or subtraction, let's multiply two fractions where everything is already multiplied together:

6x3y57y2⋅14xy9x6\displaystyle \frac{6\xcopy{x^3}\ycopy{y^5}}{7\ycopy{y^2}} \cdot \frac{14\xcopy{x}\ycopy{y}}{9\xcopy{x^6}}
Multiplying monomial rational expressions
6x3y57y2⋅14xy9x6\displaystyle \frac{6\xcopy{x^3}\ycopy{y^5}}{7\ycopy{y^2}} \cdot \frac{14\xcopy{x}\ycopy{y}}{9\xcopy{x^6}} =  ?\displaystyle = \;?
Text solution
Reduce the numbersDivide 1414 and 77 by 77, and divide 66 and 99 by 33, then multiply the remaining numbers on top and bottom:
67⋅149\displaystyle \frac{6}{7} \cdot \frac{14}{9} =21⋅23\displaystyle = \frac{2}{1} \cdot \frac{2}{3} =43\displaystyle = \frac{4}{3}
Combine the variable powers on top and bottomMultiply the x\xcopy{x} and y\ycopy{y} powers across the top and across the bottom:
6x3y57y2⋅14xy9x6\displaystyle \frac{6\xcopy{x^3}\ycopy{y^5}}{7\ycopy{y^2}} \cdot \frac{14\xcopy{x}\ycopy{y}}{9\xcopy{x^6}} =4x4y63x6y2\displaystyle = \frac{4\xcopy{x^4}\ycopy{y^6}}{3\xcopy{x^6}\ycopy{y^2}}
Cancel matching copies of x\xcopy{x} and y\ycopy{y}Four copies of x\xcopy{x} cancel between top and bottom (leaving x2\xcopy{x^2} on the bottom), and two copies of y\ycopy{y} cancel (leaving y4\ycopy{y^4} on top):
=4⋅x4⋅y2⋅y43⋅x4⋅x2⋅y2\displaystyle = \frac{4 \cdot \cancel{\xcopy{x^4}} \cdot \cancel{\ycopy{y^2}} \cdot \ycopy{y^4}}{3 \cdot \cancel{\xcopy{x^4}} \cdot \xcopy{x^2} \cdot \cancel{\ycopy{y^2}}} =4y43x2,x≠0,  y≠0\displaystyle = \frac{4\ycopy{y^4}}{3\xcopy{x^2}}, \quad \allowed{x \neq 0, \; y \neq 0}

So the expression simplifies to 4y43x2\frac{4\ycopy{y^4}}{3\xcopy{x^2}}, where neither xx nor yy can be 00 because both were in the original denominator.

In 4x4y63x6y2\frac{4\xcopy{x^4}\ycopy{y^6}}{3\xcopy{x^6}\ycopy{y^2}}, each x\xcopy{x} on top pairs up with an x\xcopy{x} on the bottom to make 11. The leftover x\xcopy{x}'s stay on whichever side started with more (or leave 11 if both sides had the same number).

Matching copies of nonzero xx on top and bottom cancel to 1 one-for-one, leaving the remaining power on whichever side started with more.
3

Why you cannot cancel across addition

When a fraction has a sum like x+5x\frac{x + 5}{x}, it is tempting to cross out the xx's. So we need to see when a variable is allowed to cancel and when addition or subtraction keeps it from canceling.

(x+5)\firstpair{(x + 5)}
xx
single factorlocked by +\begin{array}{c}\text{single factor}\\ \text{locked by } +\end{array}
x=2:x = 2\text{:}
2+52=3.5\dfrac{2 + 5}{2} = 3.5
33
(x+5)\htmlClass{lc-mute}{\cancel{\firstpair{(x + 5)}}}
1\firstpair{1}
(x+5)\htmlClass{lc-mute}{\cancel{\firstpair{(x + 5)}}}
1\firstpair{1}
=3= 3
x≠−5\allowed{x \neq -5}
Why you cannot cancel across addition
x+5x=?5\displaystyle \frac{x + 5}{x} \overset{\textstyle ?}{=} 5

When terms are added or subtracted, parentheses keep the whole sum or difference together as a single factor:

(x+5)⏞single factorx=72≠5when x=2,3(x+5)(x+5)=3for x≠−5\displaystyle \begin{aligned} \frac{\overbrace{\firstpair{(x + 5)}}^{\text{single factor}}}{x} &= \frac{7}{2} \neq 5 \quad \text{when } x = 2, \\ \frac{3\cancel{\firstpair{(x + 5)}}}{\cancel{\firstpair{(x + 5)}}} &= 3 \quad \text{for } \allowed{x \neq -5} \end{aligned}
4

Multiplying polynomials and finding excluded values

Now we can return to our opening problem and multiply the two rational expressions by factoring first:

x2+5x+6x2−9⋅x−3x+2\displaystyle \frac{x^2 + 5x + 6}{x^2 - 9} \cdot \frac{x - 3}{x + 2}
Multiplying polynomials and finding excluded values
x2+5x+6x2−9⋅x−3x+2\displaystyle \frac{x^2 + 5x + 6}{x^2 - 9} \cdot \frac{x - 3}{x + 2} =  ?\displaystyle = \;?
x≠  ?\displaystyle \allowed{x \neq \;?}
Text solution
Factor each numerator and denominatorFactor x2+5x+6x^2 + 5x + 6 on top and x2−9x^2 - 9 on the bottom, and put parentheses around x−3\firstpair{x - 3} and x+2\thirdpair{x + 2} so each sum or difference stays together as a single factor:
x2+5x+6x2−9⋅x−3x+2\displaystyle \frac{x^2 + 5x + 6}{x^2 - 9} \cdot \frac{x - 3}{x + 2} =(x+2)(x+3)(x−3)(x−3)(x+3)(x+2)\displaystyle = \frac{\thirdpair{(x + 2)}\secondpair{(x + 3)}\firstpair{(x - 3)}}{\firstpair{(x - 3)}\secondpair{(x + 3)}\thirdpair{(x + 2)}}
Find the excluded values from the factored denominatorBefore crossing anything out, write down the xx-values that make any factor on the bottom equal 00:
(x−3)(x+3)(x+2)=0  ⟹  x=3,−3,−2⏟excluded values: x≠3,−3,−2\displaystyle \underbrace{\begin{aligned} \firstpair{(x - 3)}\secondpair{(x + 3)}\thirdpair{(x + 2)} &= 0 \\ \implies \allowed{x} &\allowed{= 3, -3, -2} \end{aligned}}_{\text{excluded values: } \allowed{x \neq 3, -3, -2}}
Cancel matching factors to 1Divide each matching factor pair on top and bottom to get 11:
=(x+2)(x+3)(x−3)(x−3)(x+3)(x+2)\displaystyle = \frac{\cancel{\thirdpair{(x + 2)}}\cancel{\secondpair{(x + 3)}}\cancel{\firstpair{(x - 3)}}}{\cancel{\firstpair{(x - 3)}}\cancel{\secondpair{(x + 3)}}\cancel{\thirdpair{(x + 2)}}} =1⋅1⋅11⋅1⋅1\displaystyle = \frac{\thirdpair{1} \cdot \secondpair{1} \cdot \firstpair{1}}{\firstpair{1} \cdot \secondpair{1} \cdot \thirdpair{1}} =1,x≠3,−3,−2\displaystyle = 1, \quad \allowed{x \neq 3, -3, -2}

So the whole expression equals 11 for every number xx except 3\allowed{3}, −3\allowed{-3}, and −2\allowed{-2}, where the original expression divides by zero.

On the graph of yy == (x+2)(x+3)(x−3)(x−3)(x+3)(x+2)\frac{\thirdpair{(x + 2)}\secondpair{(x + 3)}\firstpair{(x - 3)}}{\firstpair{(x - 3)}\secondpair{(x + 3)}\thirdpair{(x + 2)}}, yy equals 11 everywhere except at x=−3\allowed{x = -3}, x=−2\allowed{x = -2}, and x=3\allowed{x = 3}, where a matching factor pair becomes 00\frac{0}{0} and leaves an open hole.

Canceling matching factors leaves 1 everywhere except where a factor pair turns into zero over zero.
5

Factoring out a GCF and canceling opposite factors

Now let's multiply two rational expressions where one numerator has a greatest common factor (GCF) and another factor has its subtraction reversed:

2x2+6xx2−16⋅4−xx+3\displaystyle \frac{2x^2 + 6x}{x^2 - 16} \cdot \frac{4 - x}{x + 3}
Factoring out a GCF and canceling opposite factors
2x2+6xx2−16⋅4−xx+3\displaystyle \frac{2x^2 + 6x}{x^2 - 16} \cdot \frac{4 - x}{x + 3} =  ?\displaystyle = \;?
Text solution
Factor out the GCF and factor the difference of squaresPull out the greatest common factor 2x\gcf{2x} from 2x2+6x2x^2 + 6x, and factor x2−16x^2 - 16 into (x−4)(x+4)\opposite{(x - 4)}(x + 4):
2x2+6xx2−16⋅4−xx+3\displaystyle \frac{2x^2 + 6x}{x^2 - 16} \cdot \frac{4 - x}{x + 3} =2x⏞GCF(x+3)(4−x)(x−4)(x+4)(x+3)\displaystyle = \frac{\overbrace{\gcf{2x}}^{\text{GCF}}\firstpair{(x + 3)}\opposite{(4 - x)}}{\opposite{(x - 4)}(x + 4)\firstpair{(x + 3)}}
Find the excluded values before cancelingSet each factor in the denominator to zero to see which numbers xx cannot equal:
(x−4)(x+4)(x+3)≠0  ⟹  x≠4,−4,−3\displaystyle \opposite{(x - 4)}(x + 4)\firstpair{(x + 3)} \neq 0 \implies \allowed{x \neq 4, -4, -3}
Cancel matching and opposite factorsCancel (x+3)\firstpair{(x + 3)} with (x+3)\firstpair{(x + 3)} to 1\firstpair{1}, and rewrite 4−x\opposite{4 - x} as −1(x−4)\opposite{-1}\opposite{(x - 4)} so 4−xx−4\frac{\opposite{4 - x}}{\opposite{x - 4}} cancels to −1\opposite{-1}:
=2x(x+3)⋅(−1)(x−4)(x−4)(x+4)(x+3)\displaystyle = \frac{\gcf{2x}\cancel{\firstpair{(x + 3)}} \cdot \opposite{(-1)}\cancel{\opposite{(x - 4)}}}{\cancel{\opposite{(x - 4)}}(x + 4)\cancel{\firstpair{(x + 3)}}} =−2xx+4,x≠4,−4,−3\displaystyle = \frac{\opposite{-}\gcf{2x}}{x + 4}, \quad \allowed{x \neq 4, -4, -3}

So the product simplifies to −2xx+4\frac{\opposite{-}\gcf{2x}}{x + 4} for all x≠4,−4,−3\allowed{x \neq 4, -4, -3}. We cannot reduce the −2-2 and 44 because 44 is added to xx.

On the number line, 4−x\opposite{4 - x} and x−4\opposite{x - 4} are the same distance in opposite directions, so 4−xx−4\frac{\opposite{4 - x}}{\opposite{x - 4}} equals −1\opposite{-1} for every x≠4\allowed{x \neq 4}.

Wherever you move the point (except right on 4), the two arrows cover the exact same distance in opposite directions, so their ratio stays at −1-1.
6

Dividing rational expressions

Now suppose we are dividing one rational expression by another:

x2−25x2+3x−10÷x+5x2−4\displaystyle \frac{x^2 - 25}{x^2 + 3x - 10} \flip{\div} \frac{x + 5}{x^2 - 4}

Just like with regular fractions, dividing by a fraction is the same as multiplying by its reciprocal (the flipped fraction):

AB÷CD\displaystyle \frac{A}{B} \div \frac{C}{D} =AB⋅DC⏟reciprocal\displaystyle = \frac{A}{B} \cdot \underbrace{\frac{D}{C}}_{\text{reciprocal}}
AA
BB
÷\flip{\div}
CC
DD
in denominatorfrom the start(B≠0)\begin{array}{r}\text{in denominator}\\ \text{from the start}\\ (\allowed{B \neq 0})\end{array}
in denominatorbefore the flip(D≠0)\begin{array}{c}\text{in denominator}\\ \text{before the flip}\\ (\allowed{D \neq 0})\end{array}
==
AA
BB
⋅\flip{\cdot}
DD
CC
in denominatorafter the flip(C≠0)\begin{array}{c}\text{in denominator}\\ \text{after the flip}\\ (\allowed{C \neq 0})\end{array}
Dividing rational expressions
x2−25x2+3x−10÷x+5x2−4\displaystyle \frac{x^2 - 25}{x^2 + 3x - 10} \flip{\div} \frac{x + 5}{x^2 - 4} =  ?\displaystyle = \;?
Text solution
Flip the second fraction and multiplyKeep the first fraction, change division to multiplication, and flip the second fraction:
x2−25x2+3x−10÷x+5x2−4\displaystyle \frac{x^2 - 25}{x^2 + 3x - 10} \flip{\div} \frac{x + 5}{x^2 - 4} =x2−25x2+3x−10⋅x2−4x+5\displaystyle = \frac{x^2 - 25}{x^2 + 3x - 10} \flip{\cdot} \frac{x^2 - 4}{x + 5}
Factor every numerator and denominatorFactor x2−25x^2 - 25, x2+3x−10x^2 + 3x - 10, and x2−4x^2 - 4:
=(x−5)(x+5)(x+5)(x−2)⋅(x−2)(x+2)x+5\displaystyle = \frac{(x - 5)\firstpair{(x + 5)}}{\firstpair{(x + 5)}\secondpair{(x - 2)}} \flip{\cdot} \frac{\secondpair{(x - 2)}(x + 2)}{\firstpair{x + 5}}
Find the excluded values before and after the flipCheck the first denominator (x+5)(x−2)\firstpair{(x + 5)}\secondpair{(x - 2)}, the second denominator before the flip (x−2)(x+2)\secondpair{(x - 2)}(x + 2), and the second denominator after the flip (x+5)\firstpair{(x + 5)}:
x≠−5,2,−2\displaystyle \allowed{x \neq -5, 2, -2}
Cancel matching factors one-for-oneCancel the single (x+5)\firstpair{(x + 5)} on top with one of the two (x+5)\firstpair{(x + 5)} factors on the bottom, and cancel (x−2)\secondpair{(x - 2)} with (x−2)\secondpair{(x - 2)}:
=(x−5)(x+5)(x+5)(x−2)⋅(x−2)(x+2)x+5\displaystyle = \frac{(x - 5)\cancel{\firstpair{(x + 5)}}}{\cancel{\firstpair{(x + 5)}}\cancel{\secondpair{(x - 2)}}} \flip{\cdot} \frac{\cancel{\secondpair{(x - 2)}}(x + 2)}{\firstpair{x + 5}} =(x−5)(x+2)x+5,x≠−5,2,−2\displaystyle = \frac{(x - 5)(x + 2)}{\firstpair{x + 5}}, \quad \allowed{x \neq -5, 2, -2}

So the quotient simplifies to (x−5)(x+2)x+5\frac{(x - 5)(x + 2)}{\firstpair{x + 5}} for x≠−5,2,−2\allowed{x \neq -5, 2, -2}. Leave the numerator factored unless you need standard form, because factored form makes it easy to see that nothing else cancels.

7

Dividing by a polynomial

What if we are dividing by a polynomial that isn't written as a fraction, like (x+3)(x + 3)? Let's divide:

x2+x−6x−1÷(x+3)\displaystyle \frac{x^2 + x - 6}{x - 1} \flip{\div} (x + 3)
Dividing by a polynomial and lesson review
x2+x−6x−1÷(x+3)\displaystyle \frac{x^2 + x - 6}{x - 1} \flip{\div} (x + 3) =  ?\displaystyle = \;?
Text solution
Write the polynomial over 1 and flip to multiplyWrite (x+3)\firstpair{(x + 3)} as x+31\frac{\firstpair{x + 3}}{1}, then flip it to 1x+3\frac{1}{\firstpair{x + 3}} and multiply:
x2+x−6x−1÷x+31\displaystyle \frac{x^2 + x - 6}{x - 1} \flip{\div} \frac{\firstpair{x + 3}}{1} =x2+x−6x−1⋅1x+3\displaystyle = \frac{x^2 + x - 6}{x - 1} \flip{\cdot} \frac{1}{\firstpair{x + 3}}
Factor the numerator and find the excluded valuesFactor x2+x−6x^2 + x - 6 into (x+3)(x−2)\firstpair{(x + 3)}(x - 2), and exclude the values that make either denominator zero:
=(x+3)(x−2)x−1⋅1x+3,x≠1,−3\displaystyle \begin{aligned} &= \frac{\firstpair{(x + 3)}(x - 2)}{x - 1} \flip{\cdot} \frac{1}{\firstpair{x + 3}}, \\ &\quad \allowed{x \neq 1, -3} \end{aligned}
Cancel the matching (x+3)\firstpair{(x + 3)} factorsDivide the matching (x+3)\firstpair{(x + 3)} factors on top and bottom to get 1\firstpair{1}:
=(x+3)(x−2)x−1⋅1(x+3)\displaystyle = \frac{\cancel{\firstpair{(x + 3)}}(x - 2)}{x - 1} \flip{\cdot} \frac{1}{\cancel{\firstpair{(x + 3)}}} =x−2x−1,x≠1,−3\displaystyle = \frac{x - 2}{x - 1}, \quad \allowed{x \neq 1, -3}

So dividing by (x+3)\firstpair{(x + 3)} puts (x+3)\firstpair{(x + 3)} into the denominator, where it cancels with (x+3)\firstpair{(x + 3)} on top and leaves x−2x−1\frac{x - 2}{x - 1} with x≠1,−3\allowed{x \neq 1, -3}.

Key concepts

Every multiplication and division problem with rational expressions works the same way: factor everything first, write down what xx cannot be, and then cancel matching factors one-for-one.

If it is division, flip the second fraction first

Rewrite AB÷CD\frac{A}{B} \flip{\div} \frac{C}{D} as AB⋅DC\frac{A}{B} \flip{\cdot} \frac{D}{C}. If you are dividing by a polynomial like (x+3)\firstpair{(x + 3)} with no denominator shown, write it as x+31\frac{\firstpair{x + 3}}{1} so it flips to 1x+3\frac{1}{\firstpair{x + 3}}.

Factor before you multiply or cancel

Pull out any GCF first (2x2+6x=2x(x+3)2x^2 + 6x = \gcf{2x}\firstpair{(x + 3)}) and factor quadratics and differences of squares (x2−9=(x−3)(x+3)x^2 - 9 = (x - 3)(x + 3)). If terms are added or subtracted, like x+5x\frac{x + 5}{x} or −2xx+4\frac{-2x}{x + 4}, do not cancel across the ++ sign.

Write down excluded values before crossing anything out

Any factor that is ever in a denominator, both before and after flipping in a division problem, cannot be zero.

Cancel matching factors one-for-one
  • Variable powers: cancel matching variable copies and leave the remaining power on the side that started with the larger exponent (x4x6=1x2\frac{\xcopy{x^4}}{\xcopy{x^6}} = \frac{1}{\xcopy{x^2}}).
  • Identical polynomial factors: cancel to 1\firstpair{1} (x+3x+3=1\frac{\firstpair{x + 3}}{\firstpair{x + 3}} = \firstpair{1}). If every factor on top and bottom cancels, the result is 11, not 00.
  • Opposite subtraction factors: cancel to −1\opposite{-1} (4−xx−4=−1\frac{\opposite{4 - x}}{\opposite{x - 4}} = \opposite{-1}).
8

Practice

1

Multiply and simplify:

8x2y55y2⋅15xy14x6\displaystyle \frac{8\xcopy{x^2}\ycopy{y^5}}{5\ycopy{y^2}} \cdot \frac{15\xcopy{x}\ycopy{y}}{14\xcopy{x^6}}

After combining the variable powers on top and bottom, compare the exponents on x\xcopy{x} and y\ycopy{y}. Which side of the fraction bar started with more copies of x\xcopy{x}?

Reduce the numbers (814=47\frac{8}{14} = \frac{4}{7} and 155=31\frac{15}{5} = \frac{3}{1}) and combine the variable powers on top and bottom:
12x3y67x6y2\displaystyle \frac{12\xcopy{x^3}\ycopy{y^6}}{7\xcopy{x^6}\ycopy{y^2}}
Cancel x3\xcopy{x^3} from top and bottom and y2\ycopy{y^2} from top and bottom. Be careful not to put the leftover x3\xcopy{x^3} on top to get 12x3y47\frac{12x^3y^4}{7}. Since the denominator started with x6\xcopy{x^6} and the numerator only had x3\xcopy{x^3}, the three leftover copies of x\xcopy{x} stay on the bottom:
12y47x3,x≠0,  y≠0\displaystyle \frac{12\ycopy{y^4}}{7\xcopy{x^3}}, \quad \allowed{x \neq 0, \; y \neq 0}
2

Multiply and simplify:

x2+7x+12x2−16⋅x−4x+3\displaystyle \frac{x^2 + 7x + 12}{x^2 - 16} \cdot \frac{x - 4}{x + 3}

Factor x2+7x+12x^2 + 7x + 12 and x2−16x^2 - 16 first, and remember what a factor divided by itself equals when everything cancels.

Factor the numerator and denominator and check the denominator factors for excluded values before canceling:
(x+3)(x+4)(x−4)(x+4)⋅x−4x+3,x≠4,−4,−3\displaystyle \frac{\firstpair{(x + 3)}\secondpair{(x + 4)}}{\thirdpair{(x - 4)}\secondpair{(x + 4)}} \cdot \frac{\thirdpair{x - 4}}{\firstpair{x + 3}}, \quad \allowed{x \neq 4, -4, -3}
Every factor on top cancels with the same factor on the bottom. Be careful not to write 00 when everything crosses out (or drop the excluded values because no xx's are left), since each pair divides to 11:
1,x≠4,−4,−3\displaystyle 1, \quad \allowed{x \neq 4, -4, -3}
3

Multiply and simplify:

3x2+15xx2−9⋅3−xx+5\displaystyle \frac{3x^2 + 15x}{x^2 - 9} \cdot \frac{3 - x}{x + 5}

Pull out the GCF from 3x2+15x3x^2 + 15x first, then compare the subtraction order in 3−x3 - x and x−3x - 3.

Factor out the GCF 3x\gcf{3x} on top and factor the difference of squares x2−9x^2 - 9 on the bottom:
3x(x+5)(x−3)(x+3)⋅3−xx+5,x≠3,−3,−5\displaystyle \frac{\gcf{3x}\firstpair{(x + 5)}}{\opposite{(x - 3)}(x + 3)} \cdot \frac{\opposite{3 - x}}{\firstpair{x + 5}}, \quad \allowed{x \neq 3, -3, -5}
Cancel (x+5)\firstpair{(x + 5)} with (x+5)\firstpair{(x + 5)}, and cancel the opposite subtraction factors 3−xx−3\frac{\opposite{3 - x}}{\opposite{x - 3}} to −1\opposite{-1}. Watch out for canceling 3−x\opposite{3 - x} and x−3\opposite{x - 3} to +1+1 (which gives the wrong sign 3xx+3\frac{3x}{x + 3}), and don't cancel the 33's across the addition in x+3x + 3:
−3xx+3,x≠3,−3,−5\displaystyle \opposite{-}\frac{\gcf{3x}}{x + 3}, \quad \allowed{x \neq 3, -3, -5}
4

Divide and simplify:

x2−2x−8x+1÷(x−4)\displaystyle \frac{x^2 - 2x - 8}{x + 1} \flip{\div} (x - 4)

Write x−4x - 4 as a fraction over 11 before flipping it to multiply.

Write (x−4)\firstpair{(x - 4)} as x−41\frac{\firstpair{x - 4}}{1}, flip it to 1x−4\frac{1}{\firstpair{x - 4}}, and factor x2−2x−8x^2 - 2x - 8:
(x−4)(x+2)x+1⋅1x−4\displaystyle \frac{\firstpair{(x - 4)}(x + 2)}{x + 1} \flip{\cdot} \frac{1}{\firstpair{x - 4}}
Don't forget to include x≠4\allowed{x \neq 4} along with x≠−1\allowed{x \neq -1}. Even though x−4\firstpair{x - 4} didn't start in a denominator, flipping puts it into the denominator:
x+2x+1,x≠−1,4\displaystyle \frac{x + 2}{x + 1}, \quad \allowed{x \neq -1, 4}
5

Divide and simplify:

x2−36x2+4x−12÷x+6x2−4\displaystyle \frac{x^2 - 36}{x^2 + 4x - 12} \flip{\div} \frac{x + 6}{x^2 - 4}

Check every denominator both before and after flipping the second fraction, and count how many (x+6)(x + 6) factors are on top and on the bottom.

Flip the second fraction to multiply and factor all four parts:
(x−6)(x+6)(x+6)(x−2)⋅(x−2)(x+2)x+6\displaystyle \frac{(x - 6)\firstpair{(x + 6)}}{\firstpair{(x + 6)}\secondpair{(x - 2)}} \flip{\cdot} \frac{\secondpair{(x - 2)}(x + 2)}{\firstpair{x + 6}}
Check the denominators before and after the flip: don't miss x≠−2\allowed{x \neq -2} just because x2−4=(x−2)(x+2)x^2 - 4 = \secondpair{(x - 2)}(x + 2) moved to the top after flipping. Then cancel (x−2)\secondpair{(x - 2)} with (x−2)\secondpair{(x - 2)}, and cancel the single (x+6)\firstpair{(x + 6)} on top with only one (x+6)\firstpair{(x + 6)} on the bottom (crossing out both (x+6)\firstpair{(x + 6)} factors on the bottom wrongly gives (x−6)(x+2)(x - 6)(x + 2)):
(x−6)(x+2)x+6,x≠−6,2,−2\displaystyle \frac{(x - 6)(x + 2)}{\firstpair{x + 6}}, \quad \allowed{x \neq -6, 2, -2}