Chapter II · Functions of real variables
Rational functions
Quotients of polynomials, why cancelling a common factor changes the function, why rational functions of rational functions are rational, and how asymptotes come from long division.
Why this matters
After polynomials, the next simplest functions are their quotients. Rational functions (§24) bring two new phenomena: values of where the function is not defined at all, near which the graph shoots off to infinity, and the subtle fact that “simplifying” a formula can change the function it defines. Their graphs (§25) are organised by asymptotes, lines the graph approaches far out or near a zero of the denominator. Hardy says these graphs really belong to the differential calculus, but a surprising amount can be seen with algebra alone.
The idea
A rational function is with and polynomials. Where the formula is meaningless and is not defined. Two things then shape the graph:
- Near a zero of (that is not also cancelled by ), is small while is not, so is large: the graph runs up or down alongside a vertical line, a vertical asymptote.
- Far out, long division writes with a polynomial and of lower degree than . The fraction is small for large , so the graph runs alongside the graph of : a horizontal line if , an oblique line if , a curve otherwise.
Try this. Start with and compare even and odd . Then try (make too), and . For each, use “zoom out” and move the trace point far to the right, reading .
- the function
- far-out asymptote
- vertical asymptotes (denominator = 0)
What to notice
Every vertical asymptote sits at a zero of the denominator, and the graph goes off to on each side of it, with the same sign on both sides when the factor is squared (, ) and opposite signs when it is not. Far out, shrinks roughly like a constant over , so the graph merges with its asymptote, which for is the parabola . With the function is the line with one point missing.
Precise statements
A rational function of is a quotient of two polynomials, not identically zero. It is defined wherever . When is a constant, is a polynomial. We usually suppose that and have no common factor (other than constants), any such factor having been removed by division; is then in standard form.
“Rational” refers to how enters, not to the coefficients: is a rational function. The name comes from the way is generated from by finitely many additions, multiplications and divisions, just as every rational number is generated from .
Hardy makes a point that is easy to skip and important to keep: removing a common factor changes the function. The function equals for every , but at it is , which is meaningless. So is not the function : it is undefined at one point. In the same way Hardy’s example
but the original is undefined at , while the reduced form is defined (and equal to ) at and . Try “Hardy’s reduction” and “” in the explorer: the holes are the points where the two functions differ.
By agreement, once we have noted such exceptional points we work with the reduced, standard form. Then the familiar operations stay inside the class.
Sums, differences, products and quotients of rational functions are rational functions. Moreover a rational function of a rational function is a rational function: if and , then, after simplification, for some polynomials , .
Let with of degree . There are polynomials and , with or , such that wherever . Moreover there are numbers and such that
Proofs
For the arithmetic operations, use the usual rules for fractions. For composition, substitute and clear the inner denominators by multiplying top and bottom by a suitable power of .
Sums and products
and . Sums and products of polynomials are polynomials, so these are rational.
Quotients
, provided is not identically zero. (This is where the agreement about exceptional points is used: at zeros of the left side is meaningless, the right side may not be.)
Substitute into
Let be the larger of the degrees of and . A term with becomes . So and , where and are polynomials in .
Cancel the common denominator
Then , a rational function of (with the usual exceptional points, where or , set aside).
Long division gives and . Then bound above and below for large , using the estimate of the last lesson: for the lower terms of a polynomial are at most (sum of their coefficients) .
Divide
Dividing by (long division, as in algebra) gives with or . Dividing by where it is not zero, . If there is nothing more to prove.
Bound the numerator
Let be the sum of the absolute values of the coefficients of . Since , for every term of is at most its coefficient times , so .
Bound the denominator from below
Write and let be the sum of the absolute values of the lower coefficients. For , the lower terms are at most , so . If also , then and .
Combine
For we get with .
In the language of Chapters IV and V this says as . If then and the axis of is the asymptote; if , is the constant ; if , is an oblique line.
Worked examples and exercises
Describe the graphs of for , distinguishing odd and even , and say what shape they approach as grows.
Hint
Solution
All are undefined at and pass through . For even the function is even and positive, so the graph lies above the axis in two symmetric pieces, rising to infinity on both sides of and approaching the axis of far out. For odd it is odd: positive for , negative for , with the two pieces symmetric about the origin, going to on the right of and on the left. As grows, gets larger for and smaller for : the graph approaches the vertical lines inside (shooting up, or down for odd on the left) and the axis of outside, with the points and fixed. The limiting shape is a pair of “walls” at joined to the axis.
Show that for every , with equality only at , and describe the graph of when and when .
Hint
Hint
Solution
For , , with equality only at . So on the graph of has its lowest point at ; it is asymptotic to (going up) and to the line (from above). Since the function is odd, the left half is the right half turned through two right angles, with highest point .
For (odd, asymptotes and ): if , the two terms have the same sign for , so there (by the same argument with in place of ), and the graph has two separate U-shaped pieces as for . If , the terms have opposite signs; the function then takes every real value on (it goes from near to far out, through a single crossing of the axis at ), and each half of the graph is a single rising or falling branch, as for .
Write and in the form , and use this to describe their graphs.
Hint
Solution
. The graph is the hyperbola moved one unit right and one up: asymptotes and , in the two quadrants (relative to ) where and have the same sign.
. It is even, with vertical asymptotes and horizontal asymptote . For the fraction is positive, so the graph is above , falling towards it. For it is negative, with its highest point at , and runs down to at both .
Let . Describe the graph of , and find its highest point between and (where it is negative, “highest” means nearest the axis).
Hint
Solution
The denominator is positive for and for , negative between. So the graph is positive outside , approaching the axis far out and going to at the asymptotes (from the left) and (from the right); and negative between, going to at both ends. Between and , lies between (at ) and , so , with equality at . The highest point of the middle branch is , and the graph is symmetric about the line .
Verify Hardy’s reduction above, and list the values of at which the original expression and the reduced one differ.
Hint
Solution
and . The quotient is . The original is meaningless at and (zero denominators inside), and at and (the terms and ). The reduced form is also meaningless at , but at and it equals . So the two functions differ exactly at and , where one is defined and the other is not.
Check yourself
The functions and are the same function.
False. They agree for every , but is not defined at (the formula gives ), while is. Two functions are the same only if they are defined at the same points and agree there. In practice we often agree to ignore such exceptional points, but we must know we are doing it.
What are the asymptotes of ?
The zeros of the denominator give . Numerator and denominator have the same degree, so the polynomial part is the ratio of leading coefficients, : the graph approaches . The asymptote is only when the numerator has lower degree.
The graph of has an oblique asymptote . What is ?
Long division: , so and the asymptote is .
Is a rational function?
Hardy stresses this in §24 (6). A rational function is a quotient of polynomials in ; the constants in them are arbitrary real numbers.
Hardy’s language
It should however be observed that this removal of common factors does as a rule change the function.
Summary
- A rational function is ; it is undefined where , and “rational” refers to , not to the coefficients.
- Cancelling a common factor changes the function at the cancelled zeros: is not at .
- Sums, products, quotients and compositions of rational functions are rational (after setting aside exceptional points).
- Long division gives ; for large , , so the graph approaches the graph of . Zeros of that survive cancellation give vertical asymptotes.