girgit.org

Relations and Functions

Identity, constant and polynomial functions

The big ideaThe graph of a real function \( f \) is the set of all points \( (x, f(x)) \) in the plane, and the simplest functions draw simple pictures: a slanting line, a flat line, a U and an S.

In simple words

To draw a number machine, try many inputs. Each input and its answer give one dot on graph paper: go right by the input, go up by the answer. Join the dots and you see the shape of the machine. A machine that gives back what you put in draws a straight slanting line. A machine that always says the same thing draws a flat line. A machine that multiplies a number by itself draws a U.

What a graph is

For a real function \( f \), each input \( x \) and its output \( y = f(x) \) make an ordered pair \( (x, f(x)) \), a point of \( \mathbf{R} \times \mathbf{R} \). The graph of \( f \) is the set of all these points:

\[ \text{graph of } f = \{\, (x, f(x)) : x \in \text{domain of } f \,\} \]

To sketch one, make a table of values, plot the points and join them smoothly. Because each \( x \) has only one \( f(x) \), any vertical line meets the graph of a function at most once.

The identity function

The identity function \( f : \mathbf{R} \to \mathbf{R} \) is

\[ y = f(x) = x \quad \text{for each } x \in \mathbf{R} \]

It sends every number to itself: \( f(3) = 3 \), \( f(-2.5) = -2.5 \). Domain \( = \mathbf{R} \) and range \( = \mathbf{R} \).

Its graph: a straight line through the origin \( (0, 0) \), passing through \( (1, 1) \), \( (2, 2) \), \( (-1, -1) \) and so on. It runs from the bottom left to the top right, cutting the angle between the positive \( x \)- and \( y \)-axes exactly in half, so it makes 45° with the \( x \)-axis. Every point on it has equal coordinates.

The constant function

The constant function \( f : \mathbf{R} \to \mathbf{R} \) is

\[ y = f(x) = c \quad \text{for each } x \in \mathbf{R} \]

where \( c \) is a fixed number, a constant. Whatever goes in, \( c \) comes out. Domain \( = \mathbf{R} \); range \( = \{c\} \), a single number.

Its graph: a horizontal line, parallel to the \( x \)-axis, at height \( c \). For \( f(x) = 4 \) it is the flat line through \( (0, 4) \), \( (5, 4) \), \( (-3, 4) \), 4 units above the \( x \)-axis. For \( c = 0 \) it is the \( x \)-axis itself.

Polynomial functions

A function \( f : \mathbf{R} \to \mathbf{R} \) is a polynomial function if, for each \( x \in \mathbf{R} \),

\[ y = f(x) = a_0 + a_1 x + a_2 x^2 + \dots + a_n x^n \]

where \( n \) is a non-negative integer and the coefficients \( a_0, a_1, \dots, a_n \) are real numbers. In plain words: only whole-number powers of \( x \), \( x^0, x^1, x^2, \dots \), each multiplied by a real number and added up.

  • Polynomials: \( 5x^4 - x + 7 \), \( x^3 + \sqrt{3}\,x^2 \), \( 2 \) (a constant), \( x \) (the identity), \( mx + c \) (a linear function). A \( \sqrt{3} \) as a coefficient is fine.
  • Not polynomials: \( x^{1/2} + 1 \) (power \( \tfrac{1}{2} \) is not an integer), \( \sqrt{x} \) (the same thing), \( x^{-1} = \tfrac{1}{x} \) (negative power), \( x^{3/4} + x \).

The square function \( y = x^2 \)

\( x \)\( -3 \)\( -2 \)\( -1 \)\( 0 \)\( 1 \)\( 2 \)\( 3 \)
\( x^2 \)9410149

Domain \( = \mathbf{R} \). Range \( = \{\, x^2 : x \in \mathbf{R} \,\} = [0, \infty) \), all non-negative reals.

Its graph: a U-shaped curve called a parabola. Its lowest point is the origin. It is symmetric about the \( y \)-axis: \( x \) and \( -x \) give the same height, so the left half is the mirror image of the right half. It never dips below the \( x \)-axis, and it climbs more and more steeply as you move away from 0 on either side.

The cube function \( y = x^3 \)

Values: \( f(0) = 0 \), \( f(1) = 1 \), \( f(-1) = -1 \), \( f(2) = 8 \), \( f(-2) = -8 \), \( f(3) = 27 \), \( f(-3) = -27 \). So \( f = \{\, (x, x^3) : x \in \mathbf{R} \,\} \).

Domain \( = \mathbf{R} \), range \( = \mathbf{R} \): a cube can be any real number, negative too.

Its graph: a curve that always rises from left to right, passing through the origin. It lies below the \( x \)-axis for negative \( x \) (in the third quadrant) and above it for positive \( x \) (in the first quadrant). Near the origin it is almost flat, then it shoots up steeply on the right and down steeply on the left, like a stretched letter S lying on its side. It is symmetric about the origin: turning it upside down about \( (0, 0) \) gives the same curve, since \( (-x)^3 = -x^3 \).

Try it: move along each curve and watch the partner point at \( -x \). Then compare all four at the same \( x \).

Worked example

Is each of these a polynomial function? (a) \( f(x) = 4x^3 - \tfrac{1}{2}x \) (b) \( g(x) = x^2 + 3\sqrt{x} \) (c) \( h(x) = (x + 1)^2 \)

  1. (a) Yes. Powers 3 and 1 are non-negative integers; \( -\tfrac{1}{2} \) is just a coefficient.
  2. (b) No. \( \sqrt{x} = x^{1/2} \), and \( \tfrac{1}{2} \) is not an integer.
  3. (c) Yes. Expand: \( x^2 + 2x + 1 \).

Remember

  • Identity \( f(x) = x \): line through the origin at 45°; domain and range \( \mathbf{R} \).
  • Constant \( f(x) = c \): horizontal line at height \( c \); range \( \{c\} \).
  • Polynomial: only powers \( x^0, x^1, x^2, \dots \) with real coefficients.
  • \( x^2 \): U-shaped parabola, range \( [0, \infty) \). \( x^3 \): rising S-curve, range \( \mathbf{R} \).

Try it. (a) What is the range of \( f(x) = -x^2 \)? Describe its graph. (b) Is \( f(x) = 7 \) a polynomial function?

Answer
(a) \( x^2 \ge 0 \), so \( -x^2 \le 0 \): range \( = (-\infty, 0] \). The graph is the U of \( y = x^2 \) flipped upside down, an upside-down U with its highest point at the origin. (b) Yes: it is \( 7x^0 \), a polynomial with \( n = 0 \). It is also a constant function.

Words to know

Graph of \( f \)
The set of all points \( (x, f(x)) \).
Identity function
\( f(x) = x \): sends every number to itself.
Constant function
\( f(x) = c \): the same output for every input.
Polynomial function
\( a_0 + a_1x + \dots + a_nx^n \), \( n \) a non-negative integer, \( a_i \) real.
Coefficient
The real number multiplying a power of \( x \).
Parabola
The U-shaped graph of \( y = x^2 \).

Which of these is not a polynomial function?

  1. \( \sqrt{5}\,x^2 + 1 \)
  2. \( x^{3/2} - x \)
  3. \( 9 \)

Which describes the graph of \( f(x) = -2 \)?

  1. A vertical line through \( (-2, 0) \)
  2. A horizontal line 2 units below the \( x \)-axis
  3. A line through the origin

What is the range of \( f(x) = x^3 \), \( x \in \mathbf{R} \)?

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