Dividing polynomials ---------------------
A classic problem for anyone studying functions is to find the non-vertical asymptotes of a rational function A / B, where A and B are polynomials of degree d1 and d2 respectively. Euclidean division of A by B yields a quotient Q (of degree d1d2) and a remainder R (of degree strictly less than d2) such that A = BQ + R. We thus have:
AB=X+RB.\frac{A}{B}=X+\frac{R}{B}.
In the cases where the difference d1d2 equals 0 or 1, the quotient Q can be written in the form mx + p; moreover, the term R / B then tends to 0 as the variable x tends to infinity (both toward + 3 and toward – 3). Thus, when the variable x becomes very large in absolute value, A / B behaves approximately like the function that maps x to mx + p. The line with equation y = mx + p is an asymptote to the rational function A / B. This line is horizontal when m = 0 (that is, when d1 = d2); it is oblique when m is nonzero (which occurs when d1 = d2 + 1).
Let's find the asymptotes of the function f defined by (2x3 – 3x2 + x – 1) / (x2 + 1). There is no vertical asymptote, since the denominator never vanishes, nor any horizontal asymptote, since the degrees of the numerator and denominator do not coincide. However, there is indeed an oblique asymptote: f (x) = 2x – 3 + (2 – x) / (x2 + 1). The line with equation y = 2x – 3 is an asymptote.