girgit.org

Relations and Functions

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.

  1. \( f(5) = |3| = 3 \), \( f(2) = |0| = 0 \), \( f(-1) = |{-3}| = 3 \).
  2. \( |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.
  3. 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
(a) \( x^2 - 4x = x(x - 4) = 0 \) at \( x = 0 \) and \( x = 4 \), so the domain is \( \mathbf{R} - \{0, 4\} \). (b) \( x = 7 \) or \( x = -7 \). (c) For all \( x \le 0 \) (at 0 both sides are 0).

Words to know

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.

What is the range of \( f(x) = \dfrac{1}{x} \), \( x \ne 0 \)?

  1. \( \mathbf{R} \)
  2. \( \mathbf{R} - \{0\} \)
  3. \( (0, \infty) \)

Which describes the graph of \( y = |x| \)?

  1. A smooth U through the origin
  2. A V with its corner at the origin
  3. A single straight line through the origin

What is \( |{-3}| - |2 - 7| \)?

  1. \( -2 \)
  2. \( 2 \)
  3. \( -8 \)