Skip to content
FiftyCalc Free calculators for all 50 states

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

Sample figures

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.

Continuity Calculator

Point where the pieces meet (a): enter a number. Prefilled example: 2.

Left piece, x < a — coefficient of x²: enter a number. Prefilled example: 1.

Left piece — coefficient of x: enter a number. Prefilled example: 0.

Left piece — constant: enter a number. Prefilled example: 0.

Is f(a) defined?: choose Yes, f(a) has a value or No, f(a) is undefined (hole). Prefilled example: Yes, f(a) has a value.

Value of f(a): enter a number. Prefilled example: 4.

Right piece, x > a — coefficient of x²: enter a number. Prefilled example: 0.

Right piece — coefficient of x: enter a number. Prefilled example: 2.

Right piece — constant: enter a number. Prefilled example: 0.

How to use this calculator

Fill in the fields in this order; each step takes you to its field.

  1. Point where the pieces meet (a): enter a number.
  2. Left piece, x < a — coefficient of x²: enter a number.
  3. Left piece — coefficient of x: enter a number.
  4. Left piece — constant: enter a number.
  5. Is f(a) defined?: choose Yes, f(a) has a value or No, f(a) is undefined (hole).
  6. Value of f(a): enter a number.
  7. Right piece, x > a — coefficient of x²: enter a number.
  8. Right piece — coefficient of x: enter a number.
  9. Right piece — constant: enter a number.
  10. 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 x0
Left piece — constant0
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 x2
Right piece — constant0
ResultContinuous 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.

Related calculators