Alg - 4.7 BI Piecewise Functions
Alg - 4.7 BI Piecewise Functions
7      Piecewise Functions
                                                   Essential Question            How can you describe a function that is
                                                   represented by more than one equation?
                                                                                , if x ≤ 0
                                                           f(x) =
                                                                                , if x > 0
                                                                                , if −6 ≤ x < −3
                                                                                                         −6   −4   −2            2   4   6x
                                                                                , if −3 ≤ x < 0
                                                           f(x) =                                                       −2
                                                                                 , if 0 ≤ x < 3
                                                                                 , if 3 ≤ x < 6                         −4
−6
−4
−6
          Core Vocabul
               Vocabulary
                     larry                           Graph and write step functions.
                                                     Write absolute value functions.
          piecewise function, p. 218
          step function, p. 220
                                              Evaluating Piecewise Functions
          Previous
          absolute value function
          vertex form                             Core Concept
          vertex
                                                 Piecewise Function
                                                 A piecewise function is a function defined by two or more equations. Each
                                                 “piece” of the function applies to a different part of its domain. An example is
                                                 shown below.                                                    y
                                                     f(x) =   {
                                                              x − 2,    if x ≤ 0
                                                              2x + 1, if x > 0
                                                                                                               4
                                                                                                               2
                                                 ●
                                                   The expression x − 2 represents
                                                   the value of f when x is less than                             f(x) = 2x + 1, x > 0
                                                   or equal to 0.                                −4      −2           2     4 x
                                                 ●
                                                     The expression 2x + 1                    f(x) = x − 2, x ≤ 0
                                                     represents the value of f when
                                                     x is greater than 0.                                        −4
                                              SOLUTION
                                              a. f(x) = x − 2           Because 0 ≤ 0, use the first equation.
                                                 f(0) = 0 − 2           Substitute 0 for x.
                                                 f(0) = −2              Simplify.
                                                      {
                                                     3,     if x < −2
                                              f(x) = x + 2, if −2 ≤ x ≤ 5
                                                     4x,    if x > 5
                                                                                      1. f(−8)
                                                                                      3. f(0)
                                                                                                             2. f(−2)
                                                                                                             4. f(3)
                                                                                      5. f(5)                6. f(10)
                             Graph y =       {   −x − 4, if x < 0
                                                 x,      if x ≥ 0
                                                                  . Describe the domain and range.
                             SOLUTION
                                                                                                                          y
                             Step 1 Graph y = −x − 4 for x < 0. Because                                           4
                                    x is not equal to 0, use an open circle
                                    at (0, −4).                                                                   2
                             Step 2 Graph y = x for x ≥ 0. Because x is                                                       y = x, x ≥ 0
                                    greater than or equal to 0, use a closed                      −4   −2                     2     4 x
                                    circle at (0, 0).
                                                                                                                 −2
                                   The domain is all real numbers.
                                   The range is y > −4.                                 y = −x − 4, x < 0
                              7. y =
                                     −x, {
                                     x + 1, if x ≤ 0
                                              if x > 0
                                                                    8. y =
                                                                            x − 2, if x < 0
                                                                            4x,    if x ≥ 0   {
                                                            Writing a Piecewise Function
                                                                                                                          y
                             Write a piecewise function for the graph.                                            4
                             SOLUTION
                                                                                                                  2
                             Each “piece” of the function is linear.
                             Left Piece When x < 0, the graph is the line                         −4    −2                    2     4 x
                                        given by y = x + 3.
                                                                                                                 −2
                             Right Piece When x ≥ 0, the graph is the line
                                         given by y = 2x − 1.                                                    −4
                                         f(x) =     {   x + 3,  if x < 0
                                                        2x − 1, if x ≥ 0
                                                                         .
                              9.                            y                     10.                        y
                                                        4
                                                                                                        3
                                                        2
                                                                                                        1
−4 −2 2 4 x −4 −2 2 4 x
−2 −2
                                            You rent a karaoke machine for 5 days. The rental company charges $50 for the first
                                            day and $25 for each additional day. Write and graph a step function that represents
                                            the relationship between the number x of days and the total cost y (in dollars) of
                                            renting the karaoke machine.
                                            SOLUTION
                                            Step 1 Use a table to organize                                       Step 2 Write the step function.
                                                                                                                                     {
                                                   the information.
                                                                                                                                     50,      if 0   <   x   ≤   1
                                                         Number        Total cost                                                    75,      if 1   <   x   ≤   2
                                                         of days        (dollars)                                             f(x) = 100,     if 2   <   x   ≤   3
                                                         0<x≤1                  50                                                   125,     if 3   <   x   ≤   4
                                                                                                                                     150,     if 4   <   x   ≤   5
                                                         1<x≤2                  75
                                                         2<x≤3             100
                                                         3<x≤4             125
                                                         4<x≤5             150
                                                                                                  150
                                                                                                  125
                                                                                                  100
                                                                                                   75
                                                                                                   50
                                                                                                   25
                                                                                                    0
                                                                                                        0    1   2   3    4   5 x
                                                                                                            Number of days
                                            11. A landscaper rents a wood chipper for 4 days. The rental company charges
                                                $100 for the first day and $50 for each additional day. Write and graph a step
                                                function that represents the relationship between the number x of days and the
                                                total cost y (in dollars) of renting the chipper.
                                                          f(x) =   {−x,
                                                                    x,
                                                                              if x < 0
                                                                              if x ≥ 0
                                                      Similarly, the vertex form of an absolute value function g(x) = a∣ x − h ∣ + k can be
                       REMEMBER                       written as a piecewise function.
                       The vertex form of an
                       absolute value function is
                                                          g(x) =   {   a[−(x − h)] + k, if x − h < 0
                                                                       a(x − h) + k,    if x − h ≥ 0
                       g(x) = a∣ x − h ∣ + k, where
                       a ≠ 0. The vertex of the
                       graph of g is (h, k).                                     Writing an Absolute Value Function
                                                      SOLUTION
                                                      a. The vertex of the path of the reference beam is (5, 8). So, the function has the
                                                         form g(x) = a∣ x − 5 ∣ + 8. Substitute the coordinates of the point (0, 0) into
                                                         the equation and solve for a.
                                                              g(x) = a∣ x − 5 ∣ + 8             Vertex form of the function
                                                                   0 = a∣ 0 − 5 ∣ + 8           Substitute 0 for x and 0 for g(x).
                                                             −1.6 = a                           Solve for a.
                                                              So, the function g(x) = −1.6∣ x − 5 ∣ + 8 represents the path of the
                                                              reference beam.
                   STUDY TIP
                       Recall that the graph of       b. Write g(x) = −1.6∣ x − 5 ∣ + 8 as a piecewise function.
                       an absolute value function
                       is symmetric about the                g(x) =     {   −1.6[−(x − 5)] + 8, if x − 5 < 0
                                                                            −1.6(x − 5) + 8,    if x − 5 ≥ 0
                       line x = h. So, it makes
                       sense that the piecewise          Simplify each expression and solve the inequalities.
                       definition “splits” the               So, a piecewise function for g(x) = −1.6∣ x − 5 ∣ + 8 is
                                                                        {
                       function at x = 5.
                                                                     1.6x,          if x < 5
                                                             g(x) =                         .
                                                                     −1.6x + 16, if x ≥ 5
                                                      12. WHAT IF? The reference beam originates at (3, 0) and reflects off a mirror
                                                          at (5, 4).
                                                          a. Write an absolute value function that represents the path of the
                                                             reference beam.
                                                          b. Write the function in part (a) as a piecewise function.
              2. WRITING Use a graph to explain why you can write the absolute value function y = ∣ x ∣ as
                   a piecewise function.
                   g(x) = 3, {
                          −x + 4, if x ≤ −1
                                  if −1 < x < 2
                          2x − 5, if x ≥ 2
                                                                               16. y =   {   2x,  if x ≤ −3
                                                                                             −2x, if x > −3
          3. f(−3)                            4. f(−2)
                                                                               17. y =   {   −3x − 2, if x ≤ −1
                                                                                             x + 2,   if x > −1
7. g(−4)
          9. g(0)
                                              8. g(−1)
                                             10. g(1)
                                                                                         {
                                                                               19. y = x − 1,
                                                                                             1,       if x < −3
                                                                                                      if −3 ≤ x ≤ 3
                                                                                             −2x + 4, if x > 3
               distance (in miles) you travel in x hours is represented        21. ERROR ANALYSIS Describe and correct the error in
               by the piecewise function
                                                                                    finding f(5) when f(x) =        {   2x − 3, if x < 5
                                                                                                                                         .
                    d(x) =    {   55x,      if 0 ≤ x ≤ 2
                                                         .
                                                                                                                        x + 8, if x ≥ 5
                                                                                                   ✗
                                  65x − 20, if 2 < x ≤ 5
               How far do you travel in 4 hours?                                                                 f(5) = 2(5) − 3
                                                                                                                        =7
        14. MODELING WITH MATHEMATICS The total cost
               (in dollars) of ordering x custom shirts is represented
                                                                               22. ERROR ANALYSIS Describe and correct the error in
                                                                                                       {
               by the piecewise function
                                                                                                           x + 6, if x ≤ −2
                              {
                           17x + 20,    if 0 ≤ x < 25                               graphing y =                            .
                                                                                                           1,     if x > −2
                    c(x) = 15.80x + 20, if 25 ≤ x < 50.
                                                                                         ✗
                           14x + 20,    if x ≥ 50
                                                                                                                                        y
               Determine the total cost of ordering 26 shirts.
                                                                                                                                    4
−5 −3 −1 1x
−6
                    27.                        y                               28.                       y
                                          2
                                                                                                    2
                                 −2                        2           x
                                                                                           −2                                4x
                                                                                                −2                                In Exercises 37–46, write the absolute value function as
                                      −4                                                                                          a piecewise function.
                                                                                                                                  37. y = ∣ x ∣ + 1             38. y = ∣ x ∣ − 3
                   29.                                         y               30.                  y
                                                       1
                                                                                                4                                 39. y = ∣ x − 2 ∣             40. y = ∣ x + 5 ∣
                                 −4       −2                           x
                                               −2                                               2
                                                                                                                                  41. y = 2∣ x + 3 ∣            42. y = 4∣ x − 1 ∣
                                               −4
                                                                                                             2           4    x   43. y = −5∣ x − 8 ∣           44. y = −3∣ x + 6 ∣
                                                                                                                                  45. y = −∣ x − 3 ∣ + 2        46. y = 7∣ x + 1 ∣ − 5
                   In Exercises 31–34, graph the step function. Describe
                                                                                                                                  47. MO
                                                                                                                                      MODELING WITH MATHEMATICS You are sitting
                                      {
                   the domain and range.
                                                                                                                                       on a boat on a lake. You can get a sunburn from
                              3,                   if 0            ≤   x   <   2                                                       the sunligh
                                                                                                                                           sunlight that hits you directly and also from the
                              4,                   if 2            ≤   x   <   4                                                                that reflects off the water. (See Example 5.)
                   31. f(x) =                                                                                                          sunlight th
                              5,                   if 4            ≤   x   <   6
                              6,                   if 6            ≤   x   <   8
                                      {
                                                                                                                                             y
                              −4,  if 1 <                                  x       ≤   2
                              −6, if 2 <                                   x       ≤   3
                   32. f(x) =                                                                                                                5
                              −8, if 3 <                                   x       ≤   4
                              −10, if 4 <                                  x       ≤   5
                                      {
                                                                                                                                             3
                              9, if 1                          <       x   ≤   2
                              6, if 2                          <       x   ≤   4                                                             1
                   33. f(x) =
                              5, if 4                          <       x   ≤   9                                                                  1      3                           x
                              1, if 9                          <       x   ≤   12
                   34. f(x) =
                              0,
                              1,
                                      {
                              −2, if −6 ≤
                              −1, if −5 ≤
                                  if −3 ≤
                                  if −2 ≤
                                                                               x
                                                                               x
                                                                               x
                                                                               x
                                                                                   <
                                                                                   <
                                                                                   <
                                                                                   <
                                                                                       −5
                                                                                       −3
                                                                                       −2
                                                                                       0
                                                                                                                                       a. Write an absolute value function that represents
                                                                                                                                          the path of the sunlight that reflects off the water.
                                                                                                                                       b. Write the function in part (a) as a piecewise
                                                                                                                                          function.
                                    y                                                                                                           Making Photocopies
                              5
                                                                                                                                        C
                                                                                                                                       40
               a. f(x) =      {   x + 2,  if x < 2
                                  −x − 1, if x ≥ 2                                                 55. MAKING AN ARGUMENT During a 9-hour snowstorm,
51. USING STRUCTURE Graph a. Write and graph a piecewise function that
                             {∣ ∣
                                                                                                              represents the depth of the snow during the
                              −x + 2, if x ≤ −2
                     y=                         .                                                             snowstorm.
                              x,      if x > −2
                                                                                                           b. Your friend says 12 inches of snow accumulated
               Describe the domain and range.
                                                                                                              during the storm. Is your friend correct? Explain.
Maintaining Mathematical Proficiency Reviewing what you learned in previous grades and lessons
             56. A number r is greater than −12 and                                         57. A number t is less than or equal
                    no more than 13.                                                            to 4 or no less than 18.
             Graph f and h. Describe the transformations from the graph of f to the graph of h. (Section 3.6)
                                                                                                                                                               1
             58. f(x) = x; h(x) = 4x + 3                                     59. f(x) = x; h(x) = −x − 8                       60. f(x) = x; h(x) = −—2 x + 5