Some func­tions turn up so often that they have their own names. In this les­son you will meet four of them: poly­no­mial func­tions, con­stant func­tions, the iden­tity func­tion and lin­ear func­tions. For each one you will see its def­i­n­i­tion, an exam­ple, and what its graph looks like. You will also learn the rule for find­ing the domain of a func­tion when nobody tells you what it is.

Poly­no­mial func­tions

A func­tion f:R→Rf : \mathbb{R} \to \mathbb{R} defined by

f(x)=a0xn+a1xn−1+a2xn−2+⋯+anf(x) = a_0 x^n + a_1 x^{n-1} + a_2 x^{n-2} + \cdots + a_n

where a0≠0a_0 \neq 0, the coef­fi­cients a1,a2,…,ana_1, a_2, \ldots, a_n are real num­bers and nn is a whole num­ber (n∈Wn \in W, so n=0,1,2,…n = 0, 1, 2, \ldots), is called a poly­no­mial func­tion of degree nn in xx.

The degree is the high­est power of xx that actu­ally appears. The con­di­tion a0≠0a_0 \neq 0 makes sure that the lead­ing term is really there.

For exam­ple, f(x)=x2+3x+5f(x) = x^2 + 3x + 5 is a poly­no­mial func­tion of degree 22, and g(x)=4x3−x+7g(x) = 4x^3 - x + 7 is a poly­no­mial func­tion of degree 33.

Each power of xx must be a whole num­ber. So x+1\sqrt{x} + 1 is not a poly­no­mial func­tion (the power of xx is 12\displaystyle \frac{1}{2}), and nei­ther is 1x+2\displaystyle \frac{1}{x} + 2 (the power is −1-1).

Exam­ple 1

For f(x)=2x3−5x+1f(x) = 2x^3 - 5x + 1, find f(2)f(2) and f(−1)f(-1).

f(2)=2(8)−5(2)+1=16−10+1=7f(2) = 2(8) - 5(2) + 1 = 16 - 10 + 1 = 7

f(−1)=2(−1)−5(−1)+1=−2+5+1=4f(-1) = 2(-1) - 5(-1) + 1 = -2 + 5 + 1 = 4

The domain when it is not given

Often a func­tion is writ­ten only as a for­mula, such as f(x)=3x+5f(x) = 3x + 5, with no domain stated. In that case we use this rule.

Note. If the domain of a func­tion is not given, its domain is taken as the set of all real val­ues of xx for which f(x)f(x) is defined.

For f(x)=3x+5f(x) = 3x + 5 we can put in any real num­ber at all, so the domain is R=(−∞,∞)\mathbb{R} = (-\infty, \infty).

The same is true of every poly­no­mial: you only mul­ti­ply, add and sub­tract, and these can always be done.

Note. The domain of a poly­no­mial func­tion is R\mathbb{R}.

Later in this chap­ter you will meet for­mu­las that can­not accept every xx, such as x−2\sqrt{x - 2} or log⁡2x\log_2 x, and then this rule does real work.

Con­stant func­tions

A func­tion f:A→Bf : A \to B is called a con­stant func­tion if its range con­tains only one ele­ment. Every ele­ment of the domain is sent to the same image.

For exam­ple, take A={1,2,3,4}A = \{1, 2, 3, 4\} and B={a,b,c}B = \{a, b, c\} with 1→a1 \to a, 2→a2 \to a, 3→a3 \to a, 4→a4 \to a. Then the range of ff is {a}\{a\}, a sin­gle ele­ment, so ff is a con­stant func­tion.

On the real num­bers, a con­stant func­tion has the form f(x)=kf(x) = k for a fixed num­ber kk.

Graph. The graph of a con­stant func­tion is a straight line par­al­lel to the xx-axis.

For y=f(x)=2y = f(x) = 2, every point of the graph has yy-coor­di­nate 22: the points (0,2)(0, 2), (1,2)(1, 2), (2,2)(2, 2), (−3,2)(-3, 2) all lie on it. Join­ing them gives a hor­i­zon­tal line two units above the xx-axis. Sim­i­larly y=1y = 1 is the hor­i­zon­tal line one unit above the xx-axis, and y=0y = 0 is the xx-axis itself.

The iden­tity func­tion

Let AA be a non-empty set. The func­tion f:A→Af : A \to A defined by

f(x)=xfor all x∈Af(x) = x \quad \text{for all } x \in A

is called the iden­tity func­tion on AA and is writ­ten IAI_A. It sends every ele­ment to itself.

For A={1,2,3,4}A = \{1, 2, 3, 4\}, the iden­tity func­tion is IA={(1,1),(2,2),(3,3),(4,4)}I_A = \{(1, 1), (2, 2), (3, 3), (4, 4)\}.

Graph. On the real num­bers the iden­tity func­tion is y=xy = x. A table of val­ues:

xx −1-1 00 11 22
yy −1-1 00 11 22

The points (−1,−1)(-1, -1), (0,0)(0, 0), (1,1)(1, 1), (2,2)(2, 2) lie on one straight line. The graph of the iden­tity func­tion is a straight line pass­ing through the ori­gin and inclined at an angle of 45°45° with the xx-axis. It cuts the first and third quad­rants exactly in half.

Lin­ear func­tions

A func­tion of the form

y=f(x)=ax+b(a≠0)y = f(x) = ax + b \quad (a \neq 0)

is called a lin­ear func­tion. Its graph is a straight line.

To draw a straight line you need only two points. The eas­i­est two are where the line crosses the axes.

  • Put x=0x = 0 to find where the line cuts the yy-axis (the yy-inter­cept).
  • Put y=0y = 0 to find where the line cuts the xx-axis (the xx-inter­cept).

Exam­ple 2

Draw the graph of y=x+2y = x + 2.

Put x=0x = 0: then y=2y = 2. The line cuts the yy-axis at (0,2)(0, 2).

Put y=0y = 0: then x+2=0x + 2 = 0, so x=−2x = -2. The line cuts the xx-axis at (−2,0)(-2, 0).

Mark (0,2)(0, 2) and (−2,0)(-2, 0) and draw the straight line through them. It rises as you move to the right.

Which way does the line lean?

For y=ax+by = ax + b, the num­ber aa decides the direc­tion.

  1. If a>0a > 0, the line rises from left to right. The angle it makes with the pos­i­tive direc­tion of the xx-axis (its incli­na­tion) is less than 90°90°.
  2. If a<0a < 0, the line falls from left to right. Its incli­na­tion is greater than 90°90°.

In Exam­ple 2, a=1>0a = 1 > 0, so the line rises.

Exam­ple 3

Find the inter­cepts of y=3x−6y = 3x - 6 and y=−2x+4y = -2x + 4, and say whether each line rises or falls.

For y=3x−6y = 3x - 6: x=0x = 0 gives y=−6y = -6, so the yy-inter­cept is (0,−6)(0, -6). y=0y = 0 gives 3x=63x = 6, so x=2x = 2 and the xx-inter­cept is (2,0)(2, 0). Here a=3>0a = 3 > 0, so the line rises.

For y=−2x+4y = -2x + 4: x=0x = 0 gives y=4y = 4, so the yy-inter­cept is (0,4)(0, 4). y=0y = 0 gives 2x=42x = 4, so x=2x = 2 and the xx-inter­cept is (2,0)(2, 0). Here a=−2<0a = -2 < 0, so the line falls.

Both lines pass through (2,0)(2, 0), one going up and one going down.

Exam­ple 4

Find the lin­ear func­tion with f(0)=3f(0) = 3 and f(2)=7f(2) = 7.

Write f(x)=ax+bf(x) = ax + b. Then f(0)=b=3f(0) = b = 3. Next f(2)=2a+3=7f(2) = 2a + 3 = 7, so 2a=42a = 4 and a=2a = 2. The func­tion is f(x)=2x+3f(x) = 2x + 3.

Prac­tice

  1. Which of these are poly­no­mial func­tions? Give the degree of each one that is: (a) 4x3−x+74x^3 - x + 7 (b) 55 (c) x+1\sqrt{x} + 1 (d) 1x+2\displaystyle \frac{1}{x} + 2.
  2. For f(x)=x2−3x+2f(x) = x^2 - 3x + 2, find f(0)f(0), f(−1)f(-1) and f(3)f(3).
  3. Write the domain of f(x)=7x4−2x+9f(x) = 7x^4 - 2x + 9.
  4. A func­tion f:{1,2,3}→{4,5,6}f : \{1, 2, 3\} \to \{4, 5, 6\} sends every ele­ment to 55. What kind of func­tion is it, and what is its range?
  5. Find the inter­cepts of y=2x+6y = 2x + 6.
  6. Find the inter­cepts of y=−3x+9y = -3x + 9. Is its incli­na­tion less than or greater than 90°90°?
  7. Describe the graph of y=4y = 4.
  8. Write the iden­tity func­tion on A={p,q,r}A = \{p, q, r\} as a set of ordered pairs.
  9. Find the lin­ear func­tion with f(0)=−1f(0) = -1 and f(3)=5f(3) = 5.
  10. A lin­ear func­tion f(x)=ax+bf(x) = ax + b has f(1)=5f(1) = 5 and f(3)=−1f(3) = -1. Find aa and bb, and say whether the graph rises or falls.

Answers

Show answers
  1. (a) Poly­no­mial, degree 33. (b) Poly­no­mial, degree 00 (a con­stant). (c) Not a poly­no­mial: the power 12\displaystyle \frac{1}{2} is not a whole num­ber. (d) Not a poly­no­mial: the power −1-1 is not a whole num­ber.
  2. f(0)=2f(0) = 2, f(−1)=1+3+2=6f(-1) = 1 + 3 + 2 = 6, f(3)=9−9+2=2f(3) = 9 - 9 + 2 = 2.
  3. R\mathbb{R}, as for every poly­no­mial.
  4. A con­stant func­tion. Range ={5}= \{5\}.
  5. yy-inter­cept (0,6)(0, 6); xx-inter­cept (−3,0)(-3, 0).
  6. yy-inter­cept (0,9)(0, 9); xx-inter­cept (3,0)(3, 0). Since a=−3<0a = -3 < 0, the incli­na­tion is greater than 90°90°.
  7. A hor­i­zon­tal line, par­al­lel to the xx-axis, four units above it, through (0,4)(0, 4).
  8. IA={(p,p),(q,q),(r,r)}I_A = \{(p, p), (q, q), (r, r)\}.
  9. b=f(0)=−1b = f(0) = -1; then 3a−1=53a - 1 = 5 gives a=2a = 2. So f(x)=2x−1f(x) = 2x - 1.
  10. a+b=5a + b = 5 and 3a+b=−13a + b = -1. Sub­tract­ing, 2a=−62a = -6, so a=−3a = -3 and b=8b = 8. Since a<0a < 0, the graph falls.