The vertical asymptote is determined by equating the denominator to zero and solve for x.
The equation of the vertical asymptote is
The numerator has the same degree as the denominator.
The equation of the horizontal asymptote is the coefficient of the leading term in the numerator expressed over the coefficient of the leading term in the denominator.