Tutorials › Calculus I › One-Sided Limits Of Piecewise Functions

One-Sided and Infinite Limits · Tutorial 229 of 1495

One-Sided Limits Of Piecewise Functions

Choose the correct piece on each side of a breakpoint, then evaluate its one-sided limit without confusing that limit with the function’s value at the point.

Intermediate 9 min read

What You'll Learn

  • Identify which piecewise formula applies immediately to the left or right of a breakpoint.
  • Evaluate one-sided limits using the selected branch’s limiting behavior.
  • Explain why the value assigned at the breakpoint does not determine either one-sided limit.
  • Handle branches whose formulas need algebraic simplification before substitution.
  • Check when a one-sided limit exists and how the two sides can differ.

Why the Formula Depends on the Side

A piecewise function can follow one rule to the left of a breakpoint and a different rule to the right. To find a one-sided limit there, the first task is not to substitute the breakpoint into whichever formula is easiest to see. It is to identify the formula that actually describes the function on the side from which the input approaches.

For example, if a definition uses one formula for \(x<2\) and another for \(x\ge 2\), then values just below \(2\) are governed by the first formula. Values just above \(2\) are governed by the second. The fact that the second formula also assigns \(f(2)\) does not make it the formula for approaching from the left.

This distinction matters even when the function has a separately specified value at the breakpoint. A one-sided limit describes nearby values, not the value at the point itself.

Choosing the Branch

Definition: Let \(c\) be a breakpoint. The left-hand limit \(\lim_{x\to c^-} f(x)\) describes the values of \(f(x)\) as \(x\) approaches \(c\) with \(x<c\). The right-hand limit \(\lim_{x\to c^+} f(x)\) describes the values as \(x\) approaches \(c\) with \(x>c\). For a piecewise function, use the formula that applies on the corresponding side of \(c\).

The superscript \(-\) indicates approach from the left, and \(+\) indicates approach from the right. In each case, \(x\) approaches \(c\), but the allowed values of \(x\) lie on a specified side. This is the one-sided limit notation used in the earlier material on one-sided limits.

A branch’s endpoint condition, such as \(x\le c\) or \(x<c\), determines whether that branch defines the function at \(c\). It does not change which branch describes nearby inputs on a given side. For a left-hand limit, select the rule valid immediately to the left; for a right-hand limit, select the rule valid immediately to the right.

1
Locate the breakpoint.
Identify the input \(c\) toward which \(x\) approaches.
2
Choose the side.
For \(x\to c^-\), consider inputs just less than \(c\); for \(x\to c^+\), consider inputs just greater than \(c\).
3
Select the valid formula.
Read the piecewise definition on that side, without using the other branch just because it includes \(c\).
4
Evaluate that branch’s limit.
If the branch has a finite limit found by direct substitution, substitute \(c\) into that branch formula. If substitution does not determine the limit, use appropriate algebraic limit methods instead.

Why This Procedure Works

The key fact is that a branch formula agrees with the function throughout a small interval on its side of the breakpoint. Therefore, as the input approaches the breakpoint from that side, the function has exactly the same nearby values as that branch.

Theorem: Suppose there is some \(\delta>0\) such that \(f(x)=g_-(x)\) whenever \(c-\delta<x<c\). If \(\lim_{x\to c^-}g_-(x)=L\), then \(\lim_{x\to c^-}f(x)=L\). Likewise, if \(f(x)=g_+(x)\) whenever \(c<x<c+\delta\) and \(\lim_{x\to c^+}g_+(x)=M\), then \(\lim_{x\to c^+}f(x)=M\).

Here is a complete justification for the left-hand statement. By the definition of \(\lim_{x\to c^-}g_-(x)=L\), for every \(\varepsilon>0\) there is some \(\eta>0\) such that if \(c-\eta<x<c\), then \(|g_-(x)-L|<\varepsilon\). Choose a positive number \(\delta_0\) no greater than both \(\eta\) and \(\delta\). Whenever \(c-\delta_0<x<c\), the branch agreement gives \(f(x)=g_-(x)\), and the limit condition gives \(|g_-(x)-L|<\varepsilon\). Consequently, \(|f(x)-L|=|g_-(x)-L|<\varepsilon\). This is precisely the definition of \(\lim_{x\to c^-}f(x)=L\). The right-hand statement follows by the same reasoning with \(c<x<c+\delta_0\).

This argument also explains why the assigned value \(f(c)\) does not determine either one-sided limit: the definition and proof use inputs strictly to one side of \(c\), not the input \(x=c\).

Worked Examples

Worked Example: Different Rules on Either Side

Let \(f\) be defined by

$$ f(x)= \begin{cases} x^2+1, & x<2,\\ 4x-1, & x\ge 2. \end{cases} $$

Find \(\lim_{x\to 2^-}f(x)\) and \(\lim_{x\to 2^+}f(x)\).

For \(x\to2^-\), inputs are less than \(2\), so use \(x^2+1\). Substituting \(2\) into this polynomial gives

$$ \lim_{x\to2^-}f(x) =\lim_{x\to2^-}(x^2+1) =2^2+1 =4+1 =5. $$

For \(x\to2^+\), inputs are greater than \(2\), so use \(4x-1\). Thus

$$ \lim_{x\to2^+}f(x) =\lim_{x\to2^+}(4x-1) =4(2)-1 =8-1 =7. $$

The two one-sided limits differ: the left-hand limit is \(5\), and the right-hand limit is \(7\). Check the branch selection: the left value comes from the formula explicitly valid for \(x<2\), and the right value comes from the formula valid for \(x\ge2\) when \(x>2\).

Worked Example: Simplify the Branch Before Substitution

Define

$$ g(x)= \begin{cases} \dfrac{x^2-4}{x-2}, & x<2,\\ x+2, & x\ge 2. \end{cases} $$

Find both one-sided limits at \(x=2\). On the left, the relevant expression is a quotient that gives \(0/0\) if substituted directly. Factor its numerator first:

$$ x^2-4=(x-2)(x+2), \qquad \frac{x^2-4}{x-2} =\frac{(x-2)(x+2)}{x-2} =x+2 \quad (x<2). $$

The cancellation is valid for the inputs in this branch because \(x<2\), so \(x-2\ne0\). Therefore,

$$ \lim_{x\to2^-}g(x) =\lim_{x\to2^-}(x+2) =2+2 =4. $$

On the right, use the branch \(x+2\), which applies for \(x\ge2\), including inputs just above \(2\):

$$ \lim_{x\to2^+}g(x) =\lim_{x\to2^+}(x+2) =2+2 =4. $$

Both limits are \(4\). As a check, on the left the original quotient equals \(x+2\) for every permitted \(x<2\), and on the right the function is already \(x+2\). Both branch behaviors therefore approach \(4\).

Worked Example: A Breakpoint Inside a Multi-Branch Definition

Suppose

$$ h(x)= \begin{cases} 2-x, & x<0,\\ x^2+1, & 0\le x<3,\\ 7-x, & x\ge3. \end{cases} $$

Find the left- and right-hand limits at \(x=3\). Immediately to the left of \(3\), inputs satisfy \(0\le x<3\), so the middle formula applies. Hence

$$ \lim_{x\to3^-}h(x) =\lim_{x\to3^-}(x^2+1) =3^2+1 =9+1 =10. $$

Immediately to the right of \(3\), inputs satisfy \(x\ge3\), so the last formula applies. Therefore,

$$ \lim_{x\to3^+}h(x) =\lim_{x\to3^+}(7-x) =7-3 =4. $$

The first formula, \(2-x\), is not relevant to either limit at \(3\): it applies only for \(x<0\). The left and right answers are \(10\) and \(4\), respectively. This check confirms that the selected intervals meet the breakpoint \(3\) on the correct sides.

The Function’s Value Is a Separate Question

A piecewise definition can specify \(f(c)\) through a branch that includes equality, but that value is separate from the one-sided limits. For instance, in the first example the definition assigns \(f(2)=4(2)-1=7\). The left-hand limit is nevertheless \(5\), because values below \(2\) follow \(x^2+1\). The right-hand limit is \(7\), since values just above \(2\) follow \(4x-1\).

In general, finding a limit means examining values near the input, while evaluating the function means using its definition at that input. The function’s value might agree with one of the one-sided limits, with both, or with neither. Do not infer a limit solely from the branch that assigns the value at the breakpoint.

If both one-sided limits exist as finite numbers, they are equal exactly when the two side-specific values agree. A difference between them means that the function approaches different values from the two sides. This conclusion comes from comparing the separately calculated limits, not from inspecting \(f(c)\).

Common Pitfall: Using the Branch That Includes the Breakpoint

A frequent error is to use the formula containing equality for both one-sided limits. For the first example, that mistake would give

$$ \text{Incorrect:}\qquad \lim_{x\to2^-}f(x) \mathrel{\overset{\text{wrong}}=} 4(2)-1 =7. $$

This uses the right branch, even though \(x\to2^-\) means that \(x<2\). The correction is to select \(x^2+1\) for the left-hand limit:

$$ \lim_{x\to2^-}f(x) =\lim_{x\to2^-}(x^2+1) =2^2+1 =5. $$

The equality condition decides which formula defines the value at the breakpoint. The direction of approach decides which formula describes nearby values. Keeping those two questions separate prevents the error.

When Direct Substitution Is Not Enough

Once the correct branch is selected, direct substitution gives the limit when that branch’s expression has a limit determined by its ordinary algebraic behavior at \(c\), as with the polynomials in the examples. But selecting the branch does not guarantee that substitution will immediately produce an answer. In the second example, substituting into the left branch first produced \(0/0\); factoring was needed before evaluating the limit.

The order of reasoning remains the same: determine the side, choose its branch, and then evaluate that branch’s limit using an applicable limit method. Algebraic laws for one-sided limits and earlier methods such as factoring can help with the last step. A calculation on the wrong branch cannot be repaired by correct algebra.

Takeaway: At a piecewise breakpoint, determine which rule holds for inputs approaching from the chosen side. Evaluate that rule’s limit. Treat the assigned value at the breakpoint as a separate matter.

Check Your Understanding

For each question, first identify the formula valid on the specified side.

  1. If \(p(x)=x+1\) for \(x<4\) and \(p(x)=2x\) for \(x\ge4\), which formula should be used to find \(\lim_{x\to4^-}p(x)\), and what is the limit?
  2. For the same function, which formula should be used to find \(\lim_{x\to4^+}p(x)\), and what is the limit?
  3. Why does the value assigned to \(p(4)\) not by itself determine \(\lim_{x\to4^-}p(x)\)?
  4. If a branch simplifies to \(x+5\) for every \(x<1\), what is its limit as \(x\to1^-\)?
  5. At a breakpoint, what does it mean if the two one-sided limits exist but are unequal?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon