Piecewise-defined functions

分段函数

How do piecewise functions work?

A piecewise function uses a different rule on each interval; evaluate by deciding which piece the input falls in; and graph each piece while watching the endpoints.

SkillKP000322

Sign in to read the whole lesson, with 1 interactive aid, 6 exercises

Sign in / Sign up

Mastery goals

  • Can evaluate a piecewise-defined function at given inputs
  • Can sketch the graph of a piecewise-defined function
  • Can write a piecewise formula for a function given by a graph or description

Draw the graph of . By the meaning of absolute value,

so the graph is made of two rays:

xyO−4−3−2−11234−112345
The graph of : for it is the ray , for it is the ray , and the two meet at the origin.

A function like , which is given by different formulas on different ranges of the variable, is called a piecewise function. Many real problems can be described by piecewise functions, such as taxi fares or income-tax amounts.

Example 6

Given the functions , , :

(1) draw the graphs of and in the same coordinate system;

(2) for every let be the greater of and , written . For example, at , . Represent by a graph and by a formula.

Solution: (1) The graphs of and in the same coordinate system:

xyO−4−3−2−11234−22468
The line and the parabola meet at two points.

(2) From the values of the two functions in the figure and the definition of we get the graph of (the bold part below):

xyO−4−3−2−11234−22468
The graph of : at each place, take the higher of the two curves.

From we get , so or . Combining with the graph, the formula for is

Can you find the formula for in another way?

Related points

All points in this topic

Cite this page: Piecewise-defined functions · KnowledgeTree (知识树), https://www.knowledgetree.world/en/kp/KP000322