Continuity and Piecewise Functions

Check the three continuity conditions and choose parameters that join pieces correctly.

Builds on Limits and One-Sided Behavior

The bigger question: What happens as we get close to a point?

On this page

Joining a value to its neighbors

Continuity at aa means the value of a function agrees with the trend of nearby values. There are three checks: f(a)f(a) must be defined, the finite limit at aa must exist, and that limit must equal f(a)f(a). Missing any one of these breaks continuity.

Polynomials are continuous everywhere. Rational functions are continuous wherever their denominator is nonzero. Roots and logarithms are continuous on their real domains. Compositions preserve continuity when the inner output belongs to the outer function's domain. At an endpoint of a domain, use the appropriate one-sided limit.

Classify the obstruction

A removable discontinuity has a finite common limit but the point is missing or has the wrong value. A jump has distinct finite one-sided limits. An infinite discontinuity involves unbounded values near the point. These descriptions identify what, if anything, changing a single value can repair.

Changing f(a)f(a) can fix a removable hole. It cannot reconcile distinct one-sided limits, and it cannot turn unbounded nearby values into a finite continuous value.

Worked example: join two formulas

Suppose f(x)=x2f(x)=x^2 for x<2x<2 and f(x)=mx+1f(x)=mx+1 for x≥2x\ge2. The left-hand limit is 44. The right-hand limit and actual value are both 2m+12m+1. Continuity requires 2m+1=42m+1=4, so m=3/2m=3/2.

Notice the order: identify which expression defines the point, calculate the two nearby trends, then equate them. Substituting into the wrong branch can give a plausible answer to a different problem.

Worked example: continuous does not mean smooth

The function ∣x∣|x| is continuous at zero: both sides approach zero and ∣0∣=0|0|=0. Its left slope is −1-1 and its right slope is 11, however, so it is not differentiable there. Every differentiable function is continuous at that point, but the reverse implication fails.

For the rational expression (x2−1)/(x−1)(x^2-1)/(x-1), the original domain excludes 11. Nearby it equals x+1x+1, so defining a new value of 22 at 11 gives a continuous extension. The original formula and its extension have different domains.

Using continuity responsibly

Continuity allows substitution in limits and supports existence theorems. It does not imply boundedness on an open interval: 1/x1/x is continuous on (0,1)(0,1) but unbounded there. A continuous function on a closed bounded interval is bounded and attains its maximum and minimum.

Practice

  1. Set f(x)=2x+kf(x)=2x+k for x<1x<1 and f(x)=x2f(x)=x^2 for x≥1x\ge1. Find kk for continuity.
  2. Can redefining 1/x1/x at zero make it continuous there?
  3. Give a continuous function with a corner and explain what fails at that corner.
Show worked solutions
  1. The left limit is 2+k2+k, while the value and right limit are 11. Thus k=−1k=-1.
  2. No. There is no finite common limit at zero, regardless of a chosen point value.
  3. ∣x∣|x| is continuous at zero, but its unequal one-sided derivatives prevent differentiability.

Explore

Value versus limit

Try this. Compare a hole and a jump. In the defined-value mode, move f(0) to 0: continuity requires the value to equal the common limit.

Value versus limit-6-6-4-4-2-2224466xy
Both sides approach 0, but f(0) is undefined. The hole is removable.
PAUSE & THINKA quick check, not a grade

Try it yourself.

Choose an answer and explain your reasoning to yourself. Use a hint if you get stuck.

Suppose limₓ→₂ f(x)=4. What value of f(2) makes f continuous at 2?

Hint 1 · Find a starting point

Continuity connects the limiting value with the function value.

Hint 2 · Take the next step

Use limₓ→ₐ f(x)=f(a).

Show the reasoning

Answer: 4

The function value must equal 4; simply defining it is not enough.

Before moving on: what would make one of the other answers wrong? Saying why is part of understanding.

MAKE IT YOURS

Pause before the next idea.

Can you explain how the visualization connects to this lesson’s goal? If a step still feels uncertain, put this lesson on your review list and try the check again another day.

Optional marks, not a grade. Saved in this browser only. Open notebook →