Field Guide/Functions/Piecewise functions
Core3 min

Graph a piecewise function

A function has different rules over different intervals.

01

Press these keys

ALPHAY=piecewise2ndMATH

Step 1 of 5. Press ALPHA.

02

Walkthrough

  1. 1
    Open template

    In Y= press ALPHA → Y= (shortcut menu) and choose the piecewise template available on current CE OS versions.

  2. 2
    Enter rules

    Fill each expression and its condition; use 2nd → MATH (TEST) for <, ≤, > or ≥.

  3. 3
    Check endpoints

    Use TRACE or TABLE to verify included and excluded boundary values.

03

Worked example

Graph f(x)=x+2 for x<0 and x² for x≥0.

AnswerThe filled value at x=0 comes from the second rule.