Piecewise Function Graph Calculator

Give each part of your function its own domain and equation. Build constant, linear and quadratic branches, then inspect any x to compare the assigned value with the two one-sided limits. The graph shows open and filled endpoints, and the boundary table explains what changes between branches. Use a narrower graph window to see small differences and export the checked values and graph points as CSV.

Functions and limits

Piecewise graph explorer

Set a rule for each interval. Compare the assigned value and the limits on either side of any point.

Define the branches

Set a, b and c for ax² + bx + c. Use -inf or +inf at an unbounded end.

Branch 1
Branch 2

Inspect a value and its limits

f(1)

1

Left-hand limit

3

Right-hand limit

1

At x 1, function value 1, left-hand limit 3, right-hand limit 1. Jump discontinuity · Branch 2 supplies the value

Piecewise function graphPlot from x=-5 to x=6. Hollow circles show excluded endpoints. Filled dots show included endpoints. The boundary table gives exact values and limits.yx
Excluded endpointIncluded endpointInspected x

x: -5 to 6 · y: -9.1333333333333333333333 to 27.1333333333333333333333

  • #1 2x + 1 · [-4, 1)
  • #2 x² · [1, 5]

Boundary analysis

No internal gaps between the entered branches.

Inspect xf(x)Left-hand limitRight-hand limitBehavior
-7Undefined-7One-sided continuity at endpoint
131Jump discontinuity
2525UndefinedOne-sided continuity at endpoint

How to use this calculator

  1. Choose Jump example or Removable example to see a worked case, or edit the Branch fields to enter your own function.
  2. Set the Lower bound and Upper bound for each branch. Choose Include lower bound or Include upper bound for endpoints that belong to that branch. Use -inf or +inf for unbounded ends.
  3. Enter the coefficients a · x², b · x and c · constant. Use zero for a term that is absent. Add branch if your function has more intervals.
  4. Enter Inspect x to check a value and its limits. Use Graph start and Graph end to zoom in on the part of the function you want to see.
  5. Use Boundary analysis to inspect any finite endpoint and check the internal gaps. Download graph and limits CSV to keep the branch details, limits, endpoint inclusion and plot samples.

The Formula

The mathematical logic powering this calculation is:

A branch gives a polynomial p(x) = ax² + bx + c on one interval. Set a to 0 for a line, or a and b to 0 for a constant. A bracket includes its endpoint and a parenthesis excludes it. To define a value at just one x, set both bounds to that x and include both. At each included x, the calculator evaluates the unique branch that owns that value. It flags overlapping branches, even when their values agree on the overlap. Gaps between branches remain undefined.

Let t be the x you inspect. The left-hand limit exists when a branch supplies values arbitrarily close to t on the left. Because a polynomial is continuous, evaluate that branch at t to get the limit, even if its interval ends with an open endpoint. Use the branch on the right in the same way for the right-hand limit. A branch consisting of just t can supply f(t) but never a one-sided limit.

If both one-sided limits exist and differ, the point is a jump. When both equal L, continuity at the point requires an assigned f(t) equal to L. A missing or mismatched value at such a point is a removable discontinuity. An endpoint with domain values on just one side can have one-sided continuity when its value agrees with that limit. The table labels the available cases and distinguishes a singleton from a gap.

Use 1–8 branches. Editable coefficients, finite bounds, the inspected x and graph bounds accept plain decimals from −1,000,000 to 1,000,000 with up to six decimal places. Type -inf at an unbounded lower end or +inf at an unbounded upper end. The calculator compares points and computes polynomial values with exact decimal arithmetic. Graph curves connect exact numerical samples across the visible portion of each branch. Endpoint circles and the inspected dot use the same calculations as the table. The viewport affects the graph, while the function values and limits use the full entered domain.

Worked Example

If you input:

  • Branch 1: 2x + 1 with lower bound −4 included and upper bound 1 excluded
  • Branch 2: x² with lower bound 1 included and upper bound 5 included
  • Inspect x: 1
  • Graph start: −5
  • Graph end: 6

Result:

At x = 1, only branch 2 owns the point, so f(1) = 1² = 1. The left-hand limit comes from branch 1 and equals 2(1) + 1 = 3. The right-hand limit comes from branch 2 and equals 1. The limits disagree, so the function has a jump at x = 1. The graph shows a hollow circle at (1, 3) and a filled dot at (1, 1).

Frequently Asked Questions

What does a hollow circle mean on the graph?

That branch approaches the circle but excludes the endpoint. A different branch may assign a value at the same x. A filled dot gives the value assigned by the branch that includes the point.

How do I enter a branch with no lower or upper bound?

Type -inf as the lower bound or +inf as the upper bound. The graph clips the unbounded branch to your finite Graph start and Graph end. Infinity is an interval marker and cannot be included as an endpoint.

Why does an overlap stop the calculation?

A piecewise function needs one rule for each x in its domain. To resolve a shared endpoint, uncheck one branch's inclusion box. If whole intervals overlap, edit their bounds to give each branch its own part of the domain.

When is a discontinuity removable?

Both one-sided limits must approach the same value. If the function is undefined at that x or assigns another value, assigning the common limit fills the hole. Changing one value at a jump leaves unequal limits.

Can a branch define only a single point?

Yes. Use equal finite bounds and include both sides. That row supplies the value at the point alone. Limits depend on the branches that approach the point on each side.

What does the CSV contain?

The CSV contains each branch's equation and interval, any internal gaps, the inspected value, boundary results, plotted endpoint inclusion and the curve samples in the selected window.

Similar Calculators