[tex]\bf x^2-x-6\div x^2-4\implies \cfrac{x^2-x-6}{x^2-4}\implies \cfrac{(x-3)(x+2)}{\underset{\textit{difference of squares}}{x^2-2^2}} \\\\\\ \cfrac{(x-3)~~\begin{matrix} (x+2) \\[-0.7em]\cline{1-1}\\[-5pt]\end{matrix}~~}{(x-2)~~\begin{matrix} (x+2) \\[-0.7em]\cline{1-1}\\[-5pt]\end{matrix}~~}\implies \cfrac{x-3}{x-2}[/tex]