Continuity Calculator
Test cases replayed : 4 of 4 match · Methodology · No outside source listed
Enter a piecewise function made of two quadratic (or linear) pieces that meet at x = a, and the value of f at a. The calculator runs the three-part continuity test and names the type of discontinuity.
Result
Result
Left-hand limit, x → a⁻
- Right-hand limit, x → a⁺
- f(a)
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Point where the pieces meet (a): enter a number.
- Left piece, x < a — coefficient of x²: enter a number.
- Left piece — coefficient of x: enter a number.
- Left piece — constant: enter a number.
- Is f(a) defined?: choose Yes, f(a) has a value or No, f(a) is undefined (hole).
- Value of f(a): enter a number.
- Right piece, x > a — coefficient of x²: enter a number.
- Right piece — coefficient of x: enter a number.
- Right piece — constant: enter a number.
- Read the result: Result; the panel also shows Left-hand limit, x → a⁻, Right-hand limit, x → a⁺ and f(a).
How this calculator works
A function f is continuous at x = a when three conditions hold: f(a) is defined, the limit of f(x) as x → a exists, and that limit equals f(a) (definition of continuity at a point, for example OpenStax Calculus Volume 1, section 2.4).
Each piece is a polynomial, so its one-sided limit at a is its value there: left limit = a₁a² + b₁a + c₁, right limit = a₂a² + b₂a + c₂. The limit exists when the two are equal.
Verdict: limits differ → jump discontinuity; limits agree but f(a) is undefined or different → removable discontinuity; limits agree and equal f(a) → continuous. Values equal within 10⁻⁹ (relative) count as equal.
For a linear piece, set its x² coefficient to 0. Infinite discontinuities (vertical asymptotes) cannot occur with polynomial pieces.
Worked example
| Point where the pieces meet (a) | 2 |
|---|---|
| Left piece, x < a — coefficient of x² | 1 |
| Left piece — coefficient of x | 0 |
| Left piece — constant | 0 |
| Is f(a) defined? | Yes, f(a) has a value |
| Value of f(a) | 4 |
| Right piece, x > a — coefficient of x² | 0 |
| Right piece — coefficient of x | 2 |
| Right piece — constant | 0 |
| Result | Continuous at x = 2 |
|---|---|
| Left-hand limit, x → a⁻ | 4 |
| Right-hand limit, x → a⁺ | 4 |
| f(a) | 4 |
Frequently asked questions
What is a removable discontinuity?
The limit exists but f(a) is missing or has another value. Redefining f(a) as the limit removes the break, which is why it is called removable.
What is a jump discontinuity?
The left and right limits are both finite but different, so the graph jumps from one height to another at x = a.
How do I make a piecewise function continuous?
Choose the constants so the left limit, the right limit and f(a) are equal. For example, x² for x < 2 and 2x for x ≥ 2 meet at 4, so the function is continuous at 2.