← MATH 161 MathScape 0 MATH161

Computing One-Sided Limits

6 min read

Jump to a section
Reference: Stewart §1.6

Textbook Reference

Primary source OpenStax Calculus Volume 1, Section 2.2: “The Limit of a Function”
Book URL https://openstax.org/details/books/calculus-volume-1
Supplementary OpenStax Calculus Volume 1, Section 2.3: “The Limit Laws”

Freely available and openly licensed.


Key idea

You already know what a two-sided limit means: $f(x)$ approaches $L$ from both sides as $x \to a$. A one-sided limit asks about only one side -- the left ($x \to a^-$) or the right ($x \to a^+$).

The key theorem connects them: the two-sided limit exists if and only if both one-sided limits exist and agree. When they disagree, the two-sided limit does not exist -- but each one-sided limit may still be a well-defined number that is useful on its own.

One-sided limits appear constantly with piecewise functions (where different formulas apply on different sides) and at boundaries like $x = 0$ for $\sqrt{x}$ or at the endpoints of a closed interval.


Prerequisite Check

Before this lesson, make sure you can do all of the following:


Quick Reference

One-sided limit notation.

Two-sided limit theorem. \[ \lim_{x \to a} f(x) = L \quad \Longleftrightarrow \quad \lim_{x \to a^-} f(x) = L \quad \text{and} \quad \lim_{x \to a^+} f(x) = L. \]

Evaluation method for piecewise functions. For $\lim_{x \to a^-}$, use the formula that applies when $x < a$. For $\lim_{x \to a^+}$, use the formula that applies when $x > a$.


Key Concepts

1. Computing One-Sided Limits from Piecewise Formulas

Given a piecewise function, approach $a$ from the appropriate side and apply direct substitution to the formula valid on that side.

Example 1. Let \[ f(x) = \begin{cases} x^2 + 1 & x < 2 \\ 3x - 1 & x \geq 2 \end{cases}. \] Evaluate $\lim_{x \to 2^-} f(x)$ and $\lim_{x \to 2^+} f(x)$.

For $x \to 2^-$: use $x^2 + 1$ (valid when $x < 2$): \[ \lim_{x \to 2^-} (x^2 + 1) = 4 + 1 = 5. \]

For $x \to 2^+$: use $3x - 1$ (valid when $x \geq 2$): \[ \lim_{x \to 2^+} (3x - 1) = 6 - 1 = 5. \]

Both one-sided limits equal 5, so $\lim_{x \to 2} f(x) = 5$.


Example 2. Let \[ g(x) = \begin{cases} x + 3 & x < 1 \\ x^2 & x > 1 \\ 7 & x = 1 \end{cases}. \] Find $\lim_{x \to 1^-} g(x)$, $\lim_{x \to 1^+} g(x)$, and $\lim_{x \to 1} g(x)$.

$\lim_{x \to 1^-} g(x) = 1 + 3 = 4$.

$\lim_{x \to 1^+} g(x) = 1^2 = 1$.

Since $4 \neq 1$, the two-sided limit $\lim_{x \to 1} g(x)$ does not exist.

The value $g(1) = 7$ is irrelevant to the limit. The limit asks about nearby values of $x$, not the value at $x = 1$ itself.


2. One-Sided Limits and Absolute Value

Absolute value creates piecewise behavior: $|x - a| = x - a$ when $x > a$ and $|x - a| = -(x-a)$ when $x < a$. Limits involving absolute value often require one-sided treatment.

Example 3. Evaluate $\displaystyle\lim_{x \to 0^+} \frac{|x|}{x}$ and $\displaystyle\lim_{x \to 0^-} \frac{|x|}{x}$.

For $x > 0$: $|x| = x$, so $\dfrac{|x|}{x} = 1$. Right limit $= 1$.

For $x < 0$: $|x| = -x$, so $\dfrac{|x|}{x} = -1$. Left limit $= -1$.

Since $1 \neq -1$, $\lim_{x \to 0} \dfrac{|x|}{x}$ does not exist.


Example 4. Evaluate $\displaystyle\lim_{x \to 3} \frac{|x - 3|}{x - 3}$.

For $x > 3$: $|x-3| = x - 3$, so the expression equals $1$. Right limit $= 1$.

For $x < 3$: $|x-3| = -(x-3)$, so the expression equals $-1$. Left limit $= -1$.

Two-sided limit does not exist.


3. One-Sided Limits at Restricted Domains

At a left endpoint of a domain (such as $x = 0$ for $\sqrt{x}$), only the right-hand limit makes sense: \[ \lim_{x \to 0^+} \sqrt{x} = 0. \] The function is continuous at $x = 0$ from the right.

Example 5. Evaluate $\displaystyle\lim_{x \to 0^+} \frac{\sqrt{x}}{x}$.

For $x > 0$: $\dfrac{\sqrt{x}}{x} = \dfrac{1}{\sqrt{x}}$, which grows without bound as $x \to 0^+$.

The right-hand limit is $+\infty$. There is a vertical asymptote at $x = 0$.


4. The Two-Sided Criterion in Practice

To determine whether a two-sided limit exists:

  1. Compute $\lim_{x \to a^-} f(x)$ using the formula valid for $x < a$.
  2. Compute $\lim_{x \to a^+} f(x)$ using the formula valid for $x > a$.
  3. If both are finite and equal, the two-sided limit equals that common value.
  4. If they differ, or if one or both are infinite or undefined, the two-sided limit does not exist.

Common Errors

Error Example Correction
Using the wrong formula for the side For $\lim_{x \to 2^-}$: using the $x \geq 2$ piece For the left limit, use the piece valid when $x < 2$
Confusing $f(a)$ with the limit Writing $\lim = g(1) = 7$ in Example 2 The value $f(a)$ may differ from the limit; they are separate
Concluding the limit fails when it is $\pm\infty$ “The left limit doesn’t exist” Infinite one-sided limits exist as $\pm\infty$; the finite two-sided limit may still fail
Checking only one side Computing the right limit and stopping Both sides must be computed and compared before concluding

Leveled Practice

Level 1 -- Piecewise Functions

Problem 1. Let $f(x) = \begin{cases} 2x + 1 & x \leq 3 \\ x^2 - 4 & x > 3 \end{cases}$. Find $\lim_{x \to 3^-} f(x)$, $\lim_{x \to 3^+} f(x)$, and $\lim_{x \to 3} f(x)$ if it exists.

Show answer

Left: $2(3)+1 = 7$. Right: $9-4 = 5$. Since $7 \neq 5$, the two-sided limit does not exist.


Problem 2. Let $g(x) = \begin{cases} x^2 - 2 & x < 1 \\ 3x - 4 & x \geq 1 \end{cases}$. Find $\lim_{x \to 1} g(x)$.

Show answer

Left: $1 - 2 = -1$. Right: $3 - 4 = -1$. Both equal $-1$, so $\lim_{x \to 1} g(x) = -1$.


Problem 3. Let $h(x) = \begin{cases} x^2 & x < 0 \\ x + 1 & 0 \leq x < 2 \\ 5 - x & x \geq 2 \end{cases}$. Evaluate $\lim_{x \to 0} h(x)$ and $\lim_{x \to 2} h(x)$.

Show answer

At $x = 0$: left limit $= 0^2 = 0$; right limit $= 0 + 1 = 1$. Limits differ; $\lim_{x \to 0} h(x)$ does not exist.

At $x = 2$: left limit $= 2 + 1 = 3$; right limit $= 5 - 2 = 3$. Equal; $\lim_{x \to 2} h(x) = 3$.


Level 2 -- Absolute Value and Parameters

Problem 4. Evaluate $\displaystyle\lim_{x \to -2} \frac{|x + 2|}{x + 2}$.

Show answer

For $x > -2$: $|x+2| = x+2$, so the expression $= 1$. Right limit $= 1$.

For $x < -2$: $|x+2| = -(x+2)$, so the expression $= -1$. Left limit $= -1$.

Two-sided limit does not exist.


Problem 5. Find $c$ so that $\lim_{x \to 2} f(x)$ exists, where $f(x) = \begin{cases} cx^2 - 1 & x < 2 \\ x + 5 & x \geq 2 \end{cases}$.

Show answer

Right limit $= 2 + 5 = 7$. Left limit $= 4c - 1$. Setting equal: $4c - 1 = 7 \Rightarrow c = 2$.


Level 3 -- Analysis

Problem 6. Let $\lfloor x \rfloor$ denote the floor function (greatest integer $\leq x$). Find $\lim_{x \to 2^-} \lfloor x \rfloor$ and $\lim_{x \to 2^+} \lfloor x \rfloor$.

Show answer

For $x$ slightly less than 2: $\lfloor x \rfloor = 1$. Left limit $= 1$.

For $x$ slightly greater than 2: $\lfloor x \rfloor = 2$. Right limit $= 2$.

Two-sided limit at $x = 2$ does not exist. The floor function has a jump discontinuity at every integer.


Problem 7. Prove that $\displaystyle\lim_{x \to 0} x \sin\!\left(\frac{1}{x}\right) = 0$ using the following one-sided limit approach: argue that $-|x| \leq x\sin(1/x) \leq |x|$ for $x \neq 0$, and apply the squeeze theorem on each side.

Show answer

Since $|\sin(1/x)| \leq 1$ for all $x \neq 0$, we have $|x\sin(1/x)| \leq |x|$, which gives $-|x| \leq x\sin(1/x) \leq |x|$.

For $x \to 0^+$: $-x \leq x\sin(1/x) \leq x$, and $\lim_{x \to 0^+} (-x) = \lim_{x \to 0^+} x = 0$, so $\lim_{x \to 0^+} x\sin(1/x) = 0$.

By the same argument for $x \to 0^-$: left limit $= 0$.

Both one-sided limits are 0, so $\lim_{x \to 0} x\sin(1/x) = 0$.


Common Misconceptions

Common misconception

the piece used for the one-sided limit is determined by the inequality sign at the boundary, not the direction of approach. In a piecewise function defined as “$2x + 1$ if $x < 3$” and “$x^2 - 4$ if $x \geq 3$,” the left-hand limit as $x \to 3^-$ uses the piece for $x < 3$, not the piece that applies at $x = 3$. Students sometimes use the wrong piece because they focus on the value at 3 rather than on nearby values strictly less than 3. The limit direction determines which piece governs nearby behavior.

Common misconception

computing the two-sided limit from one side only. Students sometimes compute only the left-hand limit and report it as the two-sided limit without checking the right-hand side. The two-sided limit exists only when both one-sided limits agree. A piecewise function can have different behavior approaching from each side, and checking just one side will miss a jump discontinuity.

Mastery Checklist

You have mastered this skill when you can do all of the following without referring to notes:


Mental Model

Think of a one-sided limit as asking: “If I walk along the graph toward $a$ from the left (or right), what height am I heading toward?”

The two-sided limit exists when both walkers -- one from each side -- arrive at the same height. A jump discontinuity is when the left-approaching walker arrives at a different height than the right-approaching walker. Neither is wrong; the function simply does not connect at $a$.

Piecewise functions make this explicit: different formulas govern each direction, so the limits can naturally differ at a boundary.


Connections

Within Calculus I (MATH161)


Back to Calculus I Skills | Previous: Algebraic Techniques for Limits | Next: Squeeze Theorem