Piecewise Functions
Problem
Graph f(x) = {x² if x<0, 2x+1 if x≥0} and check continuity at the boundary.
Explanation
What is a piecewise function?
A piecewise function uses different formulas on different intervals of . To evaluate it at a specific , first determine which interval falls in, then use that piece's formula.
Example:
At : use → . At : use → .
Checking continuity at the boundary
At : left limit = ; right value = . Since , there's a jump discontinuity.
Graphing rules
- Draw each piece only on its interval.
- Use open circle (∘) at endpoints not included ( or ).
- Use closed circle (●) at endpoints included ( or ).
Try it in the visualization
Toggle each piece on/off. Open/closed dots at boundaries show ownership. Adjust the second piece's slope and intercept to make the function continuous (dots meet). Continuityrequires the left and right limits to agree at each boundary. Here at : left limit = , right value = . Gap of 1 → discontinuous.
Interactive Visualization
Parameters
Got your own math or physics problem?
Turn any problem into an interactive visualization like this one — powered by AI, generated in seconds. Free to try, no credit card required.