Explore

Writing Piecewise Functions Solutions

  •    Piecewise    functions are functions that are constructed from two or more expressions over defined intervals of the domain.  

  • These functions allow you to model    real-life    situations more realistically because real-life scenarios can rarely be represented by just one function.

  • The    inequality    symbols for the domain intervals determine whether the function will have open points, closed points, or arrows (for continuous functions).

 fx=–2if –5<x≤–2x2–4if –2<x<2–1.5x+6if  x≥2.5

Note

Remember to use the VLT to check if a graph is a function. If an open and closed point are aligned vertically, then the piecewise graph is a function. 

  • To determine if an    ordered pair    is a solution to a piecewise function:

    • First check what part of the domain inequality interval the    x-value    is in.

    • Then substitute the x-value in the corresponding expression to find    f(x)    . 

Example 1

Write the expressions for the piecewise function given the graph and the intervals for the domain.

 fx=2x+5if x<–1xif –1≤x<30.5x–2.5if x≥3


Determine f (x) when x=– 0.5, 2.99, 3
–1≤–0.5<3

 f–0.5=–0.5 f–0.5=0.5 –1≤2.99<3 f2.99=2.99 f2.99=2.99 3≥3 f3=0.53–2.5 f3=–1

Example 2

Write the intervals for the domain given the graph and the expressions for the piecewise function.

 px=–x+3+2–1–x–32+3if –5<x≤–1if –1<x≤1if x≥2

Note

Pay careful attention to the open and closed points and the VLT to ensure that the domain inequalities result in a function.

Example 3

Write the piecewise function using the given graph.

 y=x+4if –4≤x<053x–2if 0≤x<33if x>3

Customer Service

Monday–Thursday 8:30am–6pm ET