Graphing piecewise functions might appear challenging at first, but with a systematic approach, it can be simplified. A piecewise function is defined by multiple sub-functions, each applicable over certain segments of the domain.
The function given, \(f(x) = \begin{cases} 3x-1, & x \leq 1 \ x+1, & x>1 \end{cases}\), involves two distinct linear expressions. For \(x \leq 1\), the function is \(3x-1\), and for \(x > 1\), the function is \(x+1\).
Begin graphing by managing each segment separately:
- Start with \(3x-1\) when \(x \leq 1\). Plot by finding key points like \(x=1\) and check its corresponding \(y\)-value, which is 2.
- Next, graph \(x+1\) for \(x > 1\). Select \(x=2\) and place its point at \((2, 3)\).
Use these points and connect them to form linear sections for each part of the function. Ensure that you reflect any changes clearly at the breakpoint \(x=1\). This way, the complete picture of the piecewise function emerges clearly.