Piecewise Function Calculator

Evaluate a piecewise function with two or three pieces, check continuity at the break points and see a table of values.

Results

Enter your details and click Calculate to see your results.
About This Calculator

Each piece applies on its own interval; at a break point the next piece takes over. Type expressions with x as the variable: + − * / ^, brackets, sqrt, sin, cos, tan, ln, log (base 10), exp, abs, pi, e.

Example

Example: with x² for x < 0, 2x for 0 ≤ x < 3 and 9 − x for x ≥ 3, f(1) = 2.

Assumptions

Left piece is open at each break point, right piece closed.

Frequently Asked Questions

When is a piecewise function continuous?

When the pieces meet — the left and right values agree at every break point.

Related Calculators

About the Author

Imran Hossain
Imran Hossain

Professional SEO, Digital Marketer Specialist

I am a Certified Google Ads Expert And Professional SEO, Digital Marketing Specialist

View full profile