The horizontal asymptote of a function is the value of y when x -> ∞
and the vertical asymptote of a function is the x-value when y -> ∞.
For a rational function, the y approaches infinity when the denominator vanishes. In other words, when in q/p, p --> 0.
Using this fact we see that the denominator of our function must vanish at x = -3. This happens when the denominator has the form
because
is the vertical asymptote.
For the horizontal asymptote, the function can be of the form
because
Hence the function is