Piecewise Continuous Function
Piecewise Continuous Function
A function made up of a finite number of continuous pieces. Piecewise continuous functions may not have vertical asymptotes. In fact, the only possible types of discontinuities for a piecewise continuous function are removable and step discontinuities.

Key Formula
f(x)={f1(x),f2(x),a≤x<cc≤x≤b
Where:
- f(x) = The piecewise continuous function defined on the interval [a, b]
- f1(x) = A continuous function on the first subinterval [a, c)
- f2(x) = A continuous function on the second subinterval [c, b]
- c = The breakpoint where the function rule changes; a possible point of discontinuity
- a,b = The endpoints of the overall domain
Worked Example
Problem: Determine whether the following function is piecewise continuous on [0, 5] and identify any discontinuities:
f(x) = { 2x + 1 for 0 ≤ x < 3, and x² − 2 for 3 ≤ x ≤ 5 }
Step 1: Check that each piece is continuous on its own subinterval. The function 2x + 1 is a polynomial, so it is continuous on [0, 3). The function x² − 2 is also a polynomial, so it is continuous on [3, 5].
Step 2: Verify that the number of pieces is finite. There are exactly 2 pieces, so this condition is satisfied.
Step 3: Check the breakpoint x = 3 for discontinuity. Compute the left-hand limit and the function value at x = 3.
x→3−lim(2x+1)=7,f(3)=32−2=7
Step 4: Since the left-hand limit equals f(3), the function is actually continuous at x = 3. There are no discontinuities at the breakpoint.
Answer: The function is piecewise continuous on [0, 5]. In fact, it is fully continuous on the entire interval because the pieces connect at x = 3 without a gap or jump.
Another Example
This example shows a case where the pieces do NOT connect at the breakpoint, producing a step discontinuity — unlike the first example where the function was fully continuous.
Problem: Determine whether the following function is piecewise continuous on [−2, 4] and identify any discontinuities:
g(x) = { x + 3 for −2 ≤ x < 1, and 5 for 1 ≤ x ≤ 4 }
Step 1: Check continuity of each piece. The function x + 3 is continuous on [−2, 1), and the constant 5 is continuous on [1, 4]. Both are finite in number.
Step 2: Examine the breakpoint x = 1. Compute the left-hand limit and the value of g at x = 1.
x→1−lim(x+3)=4,g(1)=5
Step 3: The left-hand limit (4) does not equal the function value (5). The function jumps from 4 to 5 at x = 1. This is a step (jump) discontinuity.
x→1−limg(x)=4=5=g(1)
Step 4: Check that no vertical asymptotes exist. Both pieces are polynomials/constants, so they remain bounded. The function is piecewise continuous.
Answer: g(x) is piecewise continuous on [−2, 4] with a step discontinuity (jump of 1 unit) at x = 1.
Frequently Asked Questions
What is the difference between a piecewise function and a piecewise continuous function?
A piecewise function is any function defined by different rules on different intervals. A piecewise continuous function is a piecewise function with the additional requirement that each piece is continuous on its subinterval and the only discontinuities allowed are removable or step (jump) types. A piecewise function could have vertical asymptotes or other nasty behavior; a piecewise continuous function cannot.
Can a piecewise continuous function have a vertical asymptote?
No. A piecewise continuous function must remain bounded on each subinterval (or at least have finite one-sided limits at the breakpoints). Vertical asymptotes involve the function approaching infinity, which violates the definition. If your function has a vertical asymptote, it is not piecewise continuous.
Why are piecewise continuous functions important in calculus?
Piecewise continuous functions are the broadest class of functions you can integrate using the standard Riemann integral. In Laplace transforms and Fourier series — topics common in differential equations and engineering — the theory requires functions to be piecewise continuous. The restriction to removable and step discontinuities ensures the function is well-behaved enough for these tools to work.
Piecewise Continuous Function vs. Continuous Function
| Piecewise Continuous Function | Continuous Function | |
|---|---|---|
| Definition | A finite number of continuous pieces; may have removable or step discontinuities | No breaks at all; the function is continuous at every point in its domain |
| Allowed discontinuities | Removable (holes) and step (jumps) only | None |
| Vertical asymptotes | Not allowed | Not allowed |
| Integrability | Riemann integrable on closed intervals | Riemann integrable on closed intervals |
| Example | The floor function ⌊x⌋ on [0, 3] | f(x) = x² on all of ℝ |
Why It Matters
You encounter piecewise continuous functions throughout calculus and differential equations. They appear naturally in real-world models: tax brackets, shipping cost schedules, and signal processing all use functions that jump at certain thresholds. Knowing a function is piecewise continuous guarantees you can compute its definite integral, apply Laplace transforms, and expand it in a Fourier series — all essential techniques in higher mathematics and engineering.
Common Mistakes
Mistake: Assuming a function with a vertical asymptote (like 1/x at x = 0) is piecewise continuous.
Correction: A piecewise continuous function must have finite one-sided limits at every breakpoint. Vertical asymptotes send the function to ±∞, which is not allowed. Functions like 1/x on an interval containing 0 are not piecewise continuous.
Mistake: Confusing 'piecewise defined' with 'piecewise continuous' and not checking each piece for continuity.
Correction: A function can be defined in pieces yet still have problematic behavior (like an oscillating piece or an infinite discontinuity) within one of those pieces. You must verify that each individual piece is continuous on its subinterval before calling the whole function piecewise continuous.
Related Terms
- Continuous Function — Stricter condition — no discontinuities at all
- Function — General concept that piecewise continuous functions are built on
- Discontinuity — Points where continuity breaks down
- Removable Discontinuity — One of the two allowed discontinuity types
- Step Discontinuity — The other allowed discontinuity type (jump)
- Asymptote — Vertical asymptotes are forbidden for this function type
- Finite — The number of pieces must be finite
