- 1. Ordered pairs and the Cartesian product
- 2. Counting and using A × B
- 3. What is a relation?
- 4. Domain, range and codomain of a relation
- 5. When is a relation a function?
- 6. Real functions: domain and range from a formula
- 7. Identity, constant and polynomial functions
- 8. Rational functions and the modulus function
- 9. Signum and greatest integer functions
- 10. Adding, multiplying and dividing functions
- Review
8 of 10·NCERT §2.4.1·5 min
Rational functions and the modulus function
The big ideaA rational function is one polynomial divided by another, defined wherever the bottom is not zero; the modulus function \( |x| \) keeps a number's size and throws away its sign.
In simple words
Share 1 roti among more and more people and each share gets smaller and smaller, but it never quite becomes nothing. Share it among fewer and fewer, a half, a tenth of a person, and the share becomes huge. Sharing among zero people makes no sense at all. That is the machine \( 1/x \). The other machine in this page just tells you how far a number is from zero, without caring which side it is on.
Rational functions
A rational function is a function of the form
\[ \frac{f(x)}{g(x)}, \qquad g(x) \ne 0 \]where \( f(x) \) and \( g(x) \) are polynomial functions of \( x \). The name comes from "ratio", just as a rational number is a ratio of two integers. Its domain is every real \( x \) where the denominator \( g(x) \) is not zero.
Examples: \( \dfrac{1}{x} \) (domain \( \mathbf{R} - \{0\} \)), \( \dfrac{x + 4}{x - 1} \) (domain \( \mathbf{R} - \{1\} \)), \( \dfrac{3}{x^2 + 1} \) (domain \( \mathbf{R} \), since \( x^2 + 1 \) is never 0).
The reciprocal function \( y = 1/x \)
Take \( f : \mathbf{R} - \{0\} \to \mathbf{R} \), \( f(x) = \dfrac{1}{x} \). Some values:
| \( x \) | \( -4 \) | \( -2 \) | \( -1 \) | \( -0.25 \) | \( 0.1 \) | \( 0.5 \) | \( 1 \) | \( 2 \) | \( 4 \) |
|---|---|---|---|---|---|---|---|---|---|
| \( 1/x \) | \( -0.25 \) | \( -0.5 \) | \( -1 \) | \( -4 \) | \( 10 \) | \( 2 \) | \( 1 \) | \( 0.5 \) | \( 0.25 \) |
Domain \( = \mathbf{R} - \{0\} \): 0 has no reciprocal. Range \( = \mathbf{R} - \{0\} \) too: \( 1/x \) is never 0, but any other number \( y \) is reached, at \( x = 1/y \).
Its graph: two separate smooth branches that never meet.
- For \( x \gt 0 \), the branch lies in the first quadrant. Near \( x = 0 \) it is very high up; it falls through \( (1, 1) \) and then flattens, getting closer and closer to the \( x \)-axis without ever touching it.
- For \( x \lt 0 \), the branch lies in the third quadrant: the first branch turned half a turn about the origin. It passes through \( (-1, -1) \).
- The curve never touches either axis. It is symmetric about the origin, since \( \tfrac{1}{-x} = -\tfrac{1}{x} \). This curve is called a rectangular hyperbola.
Try it: slide the point towards an axis and watch the rectangle keep its area.
The modulus function \( y = |x| \)
The modulus function \( f : \mathbf{R} \to \mathbf{R} \) is \( f(x) = |x| \), also called the absolute value function. For a non-negative \( x \), \( f(x) = x \). For a negative \( x \), \( f(x) \) is the negative of \( x \), which is positive:
\[ f(x) = |x| = \begin{cases} x, & x \ge 0 \\ -x, & x \lt 0 \end{cases} \]So \( |5| = 5 \), \( |0| = 0 \), \( |{-5}| = -(-5) = 5 \). The modulus is the distance of \( x \) from 0 on the number line.
Domain \( = \mathbf{R} \), range \( = [0, \infty) \).
Its graph: a V shape with its corner at the origin. For \( x \ge 0 \) it is the line \( y = x \), rising to the right at 45°. For \( x \lt 0 \) it is the line \( y = -x \), rising to the left at 45°. The two arms meet in a sharp point at \( (0, 0) \). The whole graph lies on or above the \( x \)-axis and is symmetric about the \( y \)-axis, since \( |{-x}| = |x| \).
Worked example
Let \( f(x) = |x - 2| \). Find \( f(5) \), \( f(2) \) and \( f(-1) \), and describe the graph.
- \( f(5) = |3| = 3 \), \( f(2) = |0| = 0 \), \( f(-1) = |{-3}| = 3 \).
- \( |x - 2| \) is the distance from \( x \) to 2. It is 0 at \( x = 2 \) and grows by 1 for each step away from 2.
- The graph is the V of \( y = |x| \) slid 2 units to the right: corner at \( (2, 0) \). Range \( = [0, \infty) \).
Now see the distance twice: as a height on the graph and as a gap on the number line.
Don't mix these up
- \( -x \) is not always negative. If \( x = -4 \), then \( -x = 4 \). That is why \( |x| = -x \) for negative \( x \).
- \( \dfrac{1}{x} \) has range \( \mathbf{R} - \{0\} \), not \( \mathbf{R} \). It never takes the value 0.
- A rational function whose denominator never vanishes, such as \( \dfrac{1}{x^2 + 1} \), has domain all of \( \mathbf{R} \).
Try it. (a) Find the domain of \( f(x) = \dfrac{2x}{x^2 - 4x} \). (b) Solve \( |x| = 7 \). (c) For which \( x \) is \( |x| = -x \)?
Answer
- Rational function
- \( f(x)/g(x) \) with \( f, g \) polynomials and \( g(x) \ne 0 \).
- Reciprocal function
- \( f(x) = 1/x \); domain and range \( \mathbf{R} - \{0\} \).
- Rectangular hyperbola
- The two-branch curve of \( y = 1/x \).
- Modulus \( |x| \)
- \( x \) if \( x \ge 0 \), and \( -x \) if \( x \lt 0 \): the distance from 0.
- Absolute value
- Another name for the modulus.
Words to know
What is the range of \( f(x) = \dfrac{1}{x} \), \( x \ne 0 \)?
- \( \mathbf{R} \)
- \( \mathbf{R} - \{0\} \)
- \( (0, \infty) \)
Which describes the graph of \( y = |x| \)?
- A smooth U through the origin
- A V with its corner at the origin
- A single straight line through the origin
What is \( |{-3}| - |2 - 7| \)?
- \( -2 \)
- \( 2 \)
- \( -8 \)
Picture and video credits