2.4 Graphing the Basic Functions

Learning Objectives

  1. Define and graph seven basic functions.
  2. Define and graph piecewise functions.
  3. Evaluate piecewise defined functions.
  4. Define the greatest integer function.

Basic Functions

In this section we graph seven basic functions that will be used throughout this course. Each function is graphed by plotting points. Remember that f(x)=y and thus f(x) and y can be used interchangeably.

Any function of the form f(x)=c, where c is any real number, is called a constant functionAny function of the form f(x)=c where c is a real number.. Constant functions are linear and can be written f(x)=0x+c. In this form, it is clear that the slope is 0 and the y-intercept is (0,c). Evaluating any value for x, such as x = 2, will result in c.

The graph of a constant function is a horizontal line. The domain consists of all real numbers and the range consists of the single value {c}.

We next define the identity functionThe linear function defined by f(x)=x. f(x)=x. Evaluating any value for x will result in that same value. For example, f(0)=0 and f(2)=2. The identity function is linear, f(x)=1x+0, with slope m=1 and y-intercept (0, 0).

The domain and range both consist of all real numbers.

The squaring functionThe quadratic function defined by f(x)=x2., defined by f(x)=x2, is the function obtained by squaring the values in the domain. For example, f(2)=(2)2=4 and f(2)=(2)2=4. The result of squaring nonzero values in the domain will always be positive.

The resulting curved graph is called a parabolaThe curved graph formed by the squaring function.. The domain consists of all real numbers and the range consists of all y-values greater than or equal to zero [0,).

The cubing functionThe cubic function defined by f(x)=x3., defined by f(x)=x3, raises all of the values in the domain to the third power. The results can be either positive, zero, or negative. For example, f(1)=(1)3=1, f(0)=(0)3=0, and f(1)=(1)3=1.

The domain and range both consist of all real numbers .

Note that the constant, identity, squaring, and cubing functions are all examples of basic polynomial functions. The next three basic functions are not polynomials.

The absolute value functionThe function defined by f(x)=|x|., defined by f(x)=|x|, is a function where the output represents the distance to the origin on a number line. The result of evaluating the absolute value function for any nonzero value of x will always be positive. For example, f(2)=|2|=2 and f(2)=|2|=2.

The domain of the absolute value function consists of all real numbers and the range consists of all y-values greater than or equal to zero [0,).

The square root functionThe function defined by f(x)=x., defined by f(x)=x, is not defined to be a real number if the x-values are negative. Therefore, the smallest value in the domain is zero. For example, f(0)=0=0 and f(4)=4=2.

The domain and range both consist of real numbers greater than or equal to zero [0,).

The reciprocal functionThe function defined by f(x)=1x., defined by f(x)=1x, is a rational function with one restriction on the domain, namely x0. The reciprocal of an x-value very close to zero is very large. For example,

f(1/10)=1(110)=1101=10f(1/100)=1(1100)=11001=100f(1/1,000)=1(11,000)=11,0001=1,000

In other words, as the x-values approach zero their reciprocals will tend toward either positive or negative infinity. This describes a vertical asymptoteA vertical line to which a graph becomes infinitely close. at the y-axis. Furthermore, where the x-values are very large the result of the reciprocal function is very small.

f(10)=110=0.1f(100)=1100=0.01f(1000)=11,000=0.001

In other words, as the x-values become very large the resulting y-values tend toward zero. This describes a horizontal asymptoteA horizontal line to which a graph becomes infinitely close where the x-values tend toward ±∞. at the x-axis. After plotting a number of points the general shape of the reciprocal function can be determined.

Both the domain and range of the reciprocal function consists of all real numbers except 0, which can be expressed using interval notation as follows: (,0)(0,).

 

In summary, the basic polynomial functions are:

The basic nonpolynomial functions are:

Piecewise Defined Functions

A piecewise functionA function whose definition changes depending on the values in the domain., or split functionA term used when referring to a piecewise function., is a function whose definition changes depending on the value in the domain. For example, we can write the absolute value function f(x)=|x| as a piecewise function:

f(x)=|x|={xifx0xifx<0

In this case, the definition used depends on the sign of the x-value. If the x-value is positive, x0, then the function is defined by f(x)=x. And if the x-value is negative, x<0, then the function is defined by f(x)=x.

Following is the graph of the two pieces on the same rectangular coordinate plane:

Example 1

Graph: g(x)={x2ifx<0xifx0.

Solution:

In this case, we graph the squaring function over negative x-values and the square root function over positive x-values.

Notice the open dot used at the origin for the squaring function and the closed dot used for the square root function. This was determined by the inequality that defines the domain of each piece of the function. The entire function consists of each piece graphed on the same coordinate plane.

Answer:

When evaluating, the value in the domain determines the appropriate definition to use.

Example 2

Given the function h, find h(5), h(0), and h(3).

h(t)={7t+3ift<016t2+32tift0

Solution:

Use h(t)=7t+3 where t is negative, as indicated by t<0.

h(t)=7t+5h(5)=7(5)+3=35+3=32

Where t is greater than or equal to zero, use h(t)=16t2+32t.

h(0)=16(0)+32(0)h(3)=16(3)2+32(3)=0+0=144+96=0=48

Answer: h(5)=32, h(0)=0, and h(3)=48

Try this! Graph: f(x)={23x+1ifx<0x2ifx0.

Answer:

The definition of a function may be different over multiple intervals in the domain.

Example 3

Graph: f(x)={x3ifx<0xif0x46ifx>4.

Solution:

In this case, graph the cubing function over the interval (,0). Graph the identity function over the interval [0,4]. Finally, graph the constant function f(x)=6 over the interval (4,). And because f(x)=6 where x>4, we use an open dot at the point (4,6). Where x=4, we use f(x)=x and thus (4,4) is a point on the graph as indicated by a closed dot.

Answer:

The greatest integer functionThe function that assigns any real number x to the greatest integer less than or equal to x denoted f(x)=[[x]]., denoted f(x)=[[x]], assigns the greatest integer less than or equal to any real number in its domain. For example,

f(2.7)=[[2.7]]=2f(π)=[[π]]=3f(0.23)=[[0.23]]=0f(3.5)=[[3.5]]=4

This function associates any real number with the greatest integer less than or equal to it and should not be confused with rounding off.

Example 4

Graph: f(x)=[[x]].

Solution:

If x is any real number, then y=[[x]] is the greatest integer less than or equal to x.

1x<0y=[[x]]=10x<1y=[[x]]=01x<2y=[[x]]=1

Using this, we obtain the following graph.

Answer:

The domain of the greatest integer function consists of all real numbers and the range consists of the set of integers . This function is often called the floor functionA term used when referring to the greatest integer function. and has many applications in computer science.

Key Takeaways

  • Plot points to determine the general shape of the basic functions. The shape, as well as the domain and range, of each should be memorized.
  • The basic polynomial functions are: f(x)=c, f(x)=x, f(x)=x2, and f(x)=x3.
  • The basic nonpolynomial functions are: f(x)=|x|, f(x)=x, and f(x)=1x.
  • A function whose definition changes depending on the value in the domain is called a piecewise function. The value in the domain determines the appropriate definition to use.

Topic Exercises

    Part A: Basic Functions

      Match the graph to the function definition.

    1. f(x)=x

    2. f(x)=x2

    3. f(x)=x3

    4. f(x)=|x|

    5. f(x)=x

    6. f(x)=1x

      Evaluate.

    1. f(x)=x; find f(10), f(0), and f(a).

    2. f(x)=x2; find f(10), f(0), and f(a).

    3. f(x)=x3; find f(10), f(0), and f(a).

    4. f(x)=|x|; find f(10), f(0), and f(a).

    5. f(x)=x; find f(25), f(0), and f(a) where a0.

    6. f(x)=1x; find f(10), f(15), and f(a) where a0.

    7. f(x)=5; find f(10), f(0), and f(a).

    8. f(x)=12; find f(12), f(0), and f(a).

    9. Graph f(x)=5 and state its domain and range.

    10. Graph f(x)=9 and state its domain and range.

      Cube root function.

    1. Find points on the graph of the function defined by f(x)=x3 with x-values in the set {−8, −1, 0, 1, 8}.

    2. Find points on the graph of the function defined by f(x)=x3 with x-values in the set {−3, −2, 1, 2, 3}. Use a calculator and round off to the nearest tenth.

    3. Graph the cube root function defined by f(x)=x3 by plotting the points found in the previous two exercises.

    4. Determine the domain and range of the cube root function.

      Find the ordered pair that specifies the point P.

    Part B: Piecewise Functions

      Graph the piecewise functions.

    1. g(x)={2ifx<0xifx0
    2. g(x)={x2ifx<03ifx0
    3. h(x)={xifx<0xifx0
    4. h(x)={|x|ifx<0x3ifx0
    5. f(x)={|x|ifx<24ifx2
    6. f(x)={xifx<1xifx1
    7. g(x)={x2ifx1xifx>1
    8. g(x)={3ifx1x3ifx>1
    9. h(x)={0ifx01xifx>0
    10. h(x)={1xifx<0x2ifx0
    11. f(x)={x2ifx<0xif0x<22ifx2
    12. f(x)={xifx<1x3if1x<13ifx1
    13. g(x)={5ifx<2x2if2x<2xifx2
    14. g(x)={xifx<3|x|if3x<1xifx1
    15. h(x)={1xifx<0x2if0x<24ifx2
    16. h(x)={0ifx<0x3if0<x28ifx>2
    17. f(x)=[[x+0.5]]

    18. f(x)=[[x]]+1

    19. f(x)=[[0.5x]]

    20. f(x)=2[[x]]

      Evaluate.

    1. f(x)={x2ifx0x+2ifx>0

      Find f(5), f(0), and f(3).

    2. f(x)={x3ifx<02x1ifx0

      Find f(3), f(0), and f(2).

    3. g(x)={5x2ifx<1xifx1

      Find g(1), g(1), and g(4).

    4. g(x)={x3ifx2|x|ifx>2

      Find g(3), g(2), and g(1).

    5. h(x)={5ifx<02x3if0x<2x2ifx2

      Find h(2), h(0), and h(4).

    6. h(x)={3xifx0x3if0<x4xifx>4

      Find h(5), h(4), and h(25).

    7.  

      f(x)=[[x0.5]]

      Find f(2), f(0), and f(3).

    8.  

      f(x)=[[2x]]+1

      Find f(1.2), f(0.4), and f(2.6).

      Evaluate given the graph of f.

    1. Find f(4), f(2), and f(0).

    2. Find f(3), f(0), and f(1).

    3. Find f(0), f(2), and f(4).

    4. Find f(5), f(2), and f(2).

    5. Find f(3), f(2), and f(2).

    6. Find f(3), f(0), and f(4).

    7. Find f(2), f(0), and f(2).

    8. Find f(3), f(1), and f(2).

    9. The value of an automobile in dollars is given in terms of the number of years since it was purchased new in 1975:

      1. Determine the value of the automobile in the year 1980.
      2. In what year is the automobile valued at $9,000?
    10. The cost per unit in dollars of custom lamps depends on the number of units produced according to the following graph:

      1. What is the cost per unit if 250 custom lamps are produced?
      2. What level of production minimizes the cost per unit?
    11. An automobile salesperson earns a commission based on total sales each month x according to the function: g(x)={0.03xif0x<$20,0000.05xif$20,000x<$50,0000.07xifx$50,000

      1. If the salesperson’s total sales for the month are $35,500, what is her commission according to the function?
      2. To reach the next level in the commission structure, how much more in sales will she need?
    12. A rental boat costs $32 for one hour, and each additional hour or partial hour costs $8. Graph the cost of the rental boat and determine the cost to rent the boat for 412 hours.

    Part C: Discussion Board

    1. Explain to a beginning algebra student what an asymptote is.

    2. Research and discuss the difference between the floor and ceiling functions. What applications can you find that use these functions?

Answers

  1. b

  2. c

  3. a

  4. f(10)=10, f(0)=0, f(a)=a

  5. f(10)=1,000, f(0)=0, f(a)=a3

  6. f(25)=5, f(0)=0, f(a)=a

  7. f(10)=5, f(0)=5, f(a)=5

  8. Domain: ; range: {5}

  9. {(−8,−2), (−1,−1), (0,0), (1,1), (8,2)}

  10. (32,278)

  11. (52,52)

  1. f(5)=25, f(0)=0, and f(3)=5

  2. g(1)=7, g(1)=1, and g(4)=2

  3. h(2)=5, h(0)=3, and h(4)=16

  4. f(2)=3, f(0)=1, and f(3)=2

  5. f(4)=1, f(2)=1, and f(0)=0

  6. f(0)=0, f(2)=8, and f(4)=0

  7. f(3)=5, f(2)=4, and f(2)=2

  8. f(2)=1, f(0)=0, and f(2)=1

    1. $3,000;
    2. 2005
    1. $1,775;
    2. $14,500
  1. Answer may vary