lesson

One-Sided Limits · Foundational

One-Sided Limits and the Existence of a Limit

Use left- and right-hand behavior to determine when a two-sided limit exists and diagnose common failure modes.

A two-sided limit asks what a function approaches as the input moves toward a point from both directions. That immediately raises a more basic question: what happens if the behavior on the two sides is different?

One-sided limits isolate those directions. They let us ask separately what the function approaches from values less than the target and from values greater than the target. Once those two behaviors are known, we can determine whether a two-sided limit exists.

Learning objectives

By the end of this lesson, you should be able to:

  • interpret left- and right-hand limit notation;
  • calculate one-sided limits from formulas and piecewise functions;
  • determine when a two-sided limit exists from its one-sided limits;
  • distinguish a limit from the value of the function at the point;
  • analyze jump discontinuities and domain endpoints;
  • distinguish removable from nonremovable discontinuities; and
  • explain why a limit fails to exist instead of relying on unexplained shorthand.

Reviewing left and right approach

The previous lesson introduced the idea that an input can approach a value aa from two directions.

Approaching from the left means using values less than aa that move progressively closer to it:

xa.x\to a^-.

Approaching from the right means using values greater than aa that move progressively closer to it:

xa+.x\to a^+.

For example, if a=2a=2,

1.9, 1.99, 1.999,1.9,\ 1.99,\ 1.999,\ldots

approaches 22 from the left, while

2.1, 2.01, 2.001,2.1,\ 2.01,\ 2.001,\ldots

approaches 22 from the right.

A left-hand limit

limxaf(x)=L\lim_{x\to a^-}f(x)=L_-

asks what the outputs approach as xx approaches aa using only values with x<ax<a.

A right-hand limit

limxa+f(x)=L+\lim_{x\to a^+}f(x)=L_+

asks what the outputs approach using only values with x>ax>a.

The superscript minus and plus signs indicate the direction of approach. They do not mean that aa itself is negative or positive.

The number-line diagram below makes the direction explicit: xax\to a^- moves toward aa through values less than aa, while xa+x\to a^+ moves toward aa through values greater than aa.

Number-line diagram showing approach to a from the left and from the right.

The two-sided existence criterion

When the domain contains points arbitrarily close to aa from both sides, a finite two-sided limit exists only when the two directional limits both exist and agree.

Equivalently,

limxaf(x)=limxa+f(x)=L\boxed{ \lim_{x\to a^-}f(x) = \lim_{x\to a^+}f(x) = L }

is the condition that allows us to write

limxaf(x)=L.\boxed{ \lim_{x\to a}f(x)=L. }

This is not merely a convenient rule. A two-sided limit makes a claim about the function’s behavior from both available directions near the target. If those directions lead to different outputs, there is no single value that describes the behavior of the function near that point.

Piecewise functions

One-sided limits are especially useful for piecewise functions because different formulas may govern the left and right sides of the same point.

Consider

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

To evaluate the limit as x1x\to1, use the formula that governs each side.

From the left

For x<1x<1,

f(x)=x+2.f(x)=x+2.

Therefore,

limx1f(x)=limx1(x+2)=3.\lim_{x\to1^-}f(x) = \lim_{x\to1^-}(x+2) = 3.

From the right

For x1x\ge1,

f(x)=4x.f(x)=4-x.

Therefore,

limx1+f(x)=limx1+(4x)=3.\lim_{x\to1^+}f(x) = \lim_{x\to1^+}(4-x) = 3.

Because the one-sided limits agree,

limx1f(x)=3.\boxed{ \lim_{x\to1}f(x)=3. }

The graph below names both pieces explicitly. The blue branch represents x+2x+2 for x<1x<1, while the orange branch represents 4x4-x for x1x\ge1. Both branches approach (1,3)(1,3), and because the second piece includes equality, the orange point at (1,3)(1,3) is filled.

Graph of f(x)=x+2 for x<1 and f(x)=4-x for x>=1, with both one-sided limits equal to 3 and a filled point at (1,3).

The function value is

f(1)=41=3.f(1)=4-1=3.

That agreement is useful, but it is separate from the limit calculation. The two-sided limit exists because the one-sided limits agree. The filled point tells us that the function is also defined there with the same value.

When the sides disagree: jump discontinuities

Now consider

g(x)={0,x<2,5,x2.g(x)= \begin{cases} 0,&x<2,\\ 5,&x\ge2. \end{cases}

From the left,

limx2g(x)=0.\lim_{x\to2^-}g(x)=0.

From the right,

limx2+g(x)=5.\lim_{x\to2^+}g(x)=5.

Because

05,0\neq5,

there is no single value approached from both directions. Therefore,

limx2g(x) does not exist.\boxed{ \lim_{x\to2}g(x)\text{ does not exist}. }

The limit does not exist because the left-hand limit is 00 while the right-hand limit is 55.

The graph below uses the same color convention as the previous piecewise graph: blue for the left-side branch and orange for the right-side branch. It shows the left-hand limit approaching 00 and the right-hand limit approaching 55.

Graph of g(x)=0 for x<2 and g(x)=5 for x>=2, showing a jump discontinuity at x=2.

The vertical separation between the two branches is a jump discontinuity. No choice of g(2)g(2) can make the left- and right-hand limits agree.

A formula-defined jump from an absolute-value ratio

Piecewise notation is not required for one-sided behavior to differ.

Consider

f(x)=xx,x0.f(x)=\frac{|x|}{x}, \qquad x\neq0.

Direct substitution at x=0x=0 gives the form

00.\frac00.

As discussed in the previous lesson, 00\frac{0}{0} is an indeterminate form. It does not tell us the value of the limit. Instead, it tells us that direct substitution has not resolved the behavior and that further analysis is required.

In some indeterminate forms, algebraic simplification removes the discontinuity. That happened for

x24x2.\frac{x^2-4}{x-2}.

Here, however, the absolute value changes its algebraic form depending on which side of zero we use.

For x<0x<0,

x=x,|x|=-x,

so

f(x)=xx=1.f(x)=\frac{-x}{x}=-1.

Therefore,

limx0xx=1.\lim_{x\to0^-}\frac{|x|}{x}=-1.

For x>0x>0,

x=x,|x|=x,

so

f(x)=xx=1.f(x)=\frac{x}{x}=1.

Therefore,

limx0+xx=1.\lim_{x\to0^+}\frac{|x|}{x}=1.

The graph below uses blue for the left-side behavior and orange for the right-side behavior. The function is undefined at x=0x=0, and the two sides approach different values.

Graph of \frac{|x|}{x} showing a left-hand limit of -1 and a right-hand limit of 1 at x=0.

Since

limx0xxlimx0+xx,\lim_{x\to0^-}\frac{|x|}{x} \neq \lim_{x\to0^+}\frac{|x|}{x},

there is no value LL such that

limx0f(x)=limx0+f(x)=L.\lim_{x\to0^-}f(x) = \lim_{x\to0^+}f(x) = L.

Therefore,

limx0xx does not exist.\boxed{ \lim_{x\to0}\frac{|x|}{x} \text{ does not exist}. }

The limit approaching 0 does not exist because the left-hand limit is 1-1 while the right-hand limit is 11.

This is why the indeterminate form cannot be resolved by assigning a new value at x=0x=0. The problem is not merely that the function is undefined there; the nearby behavior from the two sides is incompatible.

Endpoints of a domain

Endpoints require a small refinement in how we talk about limits.

Consider

f(x)=x.f(x)=\sqrt{x}.

Its real-valued domain is

[0,).[0,\infty).

As xx approaches 00 through values in the domain, the only possible approach is from the right:

limx0+x=0.\lim_{x\to0^+}\sqrt{x}=0.

The graph below shows that the function begins at the filled point (0,0)(0,0) and approaches that point through domain values with x>0x>0.

Graph of sqrt(x) beginning at the filled point (0,0), showing approach to the endpoint from the right.

There are no real domain points with x<0x<0, so the real left-hand limit is not defined.

Under the standard definition of a limit for a function whose domain is a subset of the real numbers, the statement

limx0x=0\boxed{ \lim_{x\to0}\sqrt{x}=0 }

is valid because xx approaches 00 through points in the domain of the function. In many introductory calculus settings, the right-hand notation

limx0+x=0\lim_{x\to0^+}\sqrt{x}=0

is emphasized at endpoints to make the available direction explicit.

This distinction matters when using the two-sided existence criterion. If aa is not an endpoint of the domain of ff and domain values occur arbitrarily close to aa on both sides, both one-sided limits must agree. At an endpoint such as 00 for x\sqrt{x}, only the right-hand approach is available.

Ways a limit can fail to exist

A limit can fail to exist for several distinct reasons. The mechanism matters.

1. The one-sided limits disagree

This is the jump-discontinuity case:

limxaf(x)limxa+f(x).\lim_{x\to a^-}f(x) \neq \lim_{x\to a^+}f(x).

The examples above involving a piecewise jump and xx\frac{|x|}{x} illustrate this mechanism.

2. The function becomes unbounded

Near a vertical asymptote, the function may increase or decrease without bound.

For example,

f(x)=1xf(x)=\frac1x

has

limx01x=\lim_{x\to0^-}\frac1x=-\infty

and

limx0+1x=+.\lim_{x\to0^+}\frac1x=+\infty.

The graph below shows the opposite one-sided unbounded behavior. Blue represents the approach from the left and orange represents the approach from the right.

Graph of \frac{1}{x} showing the left branch decreasing without bound and the right branch increasing without bound near x=0.

Because the two sides do not approach the same finite real value,

limx01x does not exist.\boxed{ \lim_{x\to0}\frac1x \text{ does not exist}. }

The limit does not exist because the function decreases without bound as x0x\to0^- and increases without bound as x0+x\to0^+.

A later lesson develops infinite limits and vertical asymptotes in greater detail.

3. The function oscillates without settling

A function may remain bounded but still fail to approach any single output.

A standard example is

f(x)=sin(1x)f(x)=\sin\left(\frac1x\right)

as x0x\to0.

The graph below shows the function oscillating increasingly rapidly between 1-1 and 11 as xx approaches zero from either side.

Graph of sin(\frac{1}{x}) showing increasingly rapid oscillation near x=0.

The argument 1x\frac{1}{x} grows without bound in magnitude, causing the sine function to pass through values between 1-1 and 11 infinitely often near zero. The outputs never settle toward one number.

Therefore,

limx0sin(1x) does not exist.\boxed{ \lim_{x\to0}\sin\left(\frac1x\right) \text{ does not exist}. }

The limit does not exist because the function oscillates between 1-1 and 11 infinitely often as xx approaches 00 without approaching a single value.

4. There are no domain values arbitrarily close to the target

A limit describes behavior arbitrarily close to a target, so there must be domain values arbitrarily close to that target.

This should not be confused with an ordinary domain endpoint such as x=0x=0 for x\sqrt{x}. Although there are no real domain values to the left of 00, there are domain values arbitrarily close to 00 from the right, and the limit through the domain is 00.

Instead, if the target is isolated from all other domain points, there is no nearby behavior from which to determine a limit in the ordinary introductory sense.

A reliable process

When evaluating a limit at x=ax=a:

  1. Determine whether there are domain values arbitrarily close to aa, and whether they occur on one side or both sides of aa.

  2. If aa is not an endpoint of the domain and domain values occur arbitrarily close to aa on both sides, calculate or determine

    limxaf(x)\lim_{x\to a^-}f(x)

    and

    limxa+f(x).\lim_{x\to a^+}f(x).
  3. Compare the directional behavior.

  4. If both sides are available and both approach the same finite value LL, conclude

    limxaf(x)=L.\lim_{x\to a}f(x)=L.
  5. If only one side is available because aa is a domain endpoint, evaluate the limit through the available domain values and state the directional limit explicitly when it improves clarity.

  6. If the function does not approach a single value, explain the mechanism rather than merely saying the limit does not exist.

Graphs and tables can reveal and support the directional behavior, but when the formula is known and an analytic method is available, the limit should be established by calculation.

Test Your Knowledge

For each problem:

  1. calculate the relevant one-sided limits;
  2. determine whether the requested limit exists;
  3. determine the function value when it is defined; and
  4. sketch the graph before opening the solution.

1. A jump discontinuity

Let

f(x)={2,x<3,8,x3.f(x)= \begin{cases} 2,&x<3,\\ 8,&x\ge3. \end{cases}

Determine the left-hand limit, right-hand limit, two-sided limit, and f(3)f(3). Then sketch the graph.

Solution

For x<3x<3,

f(x)=2,f(x)=2,

so

limx3f(x)=2.\lim_{x\to3^-}f(x)=2.

For x>3x>3,

f(x)=8,f(x)=8,

so

limx3+f(x)=8.\lim_{x\to3^+}f(x)=8.

Because the one-sided limits disagree,

limx3f(x) does not exist.\boxed{ \lim_{x\to3}f(x)\text{ does not exist}. }

The limit does not exist because the left-hand limit is 22 while the right-hand limit is 88.

Because the second piece includes equality,

f(3)=8.f(3)=8.

The solution graph below therefore has an open point at (3,2)(3,2), where the left piece is not defined, and a filled orange point at (3,8)(3,8), where the right piece defines the function.

Solution graph for a piecewise jump at x=3.

2. Matching one-sided limits

Let

f(x)={2x+1,x<2,x+3,x2.f(x)= \begin{cases} 2x+1,&x<2,\\ x+3,&x\ge2. \end{cases}

Evaluate the one-sided limits, determine whether

limx2f(x)\lim_{x\to2}f(x)

exists, calculate f(2)f(2), and sketch the graph.

Solution

From the left,

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

From the right,

limx2+(x+3)=5.\lim_{x\to2^+}(x+3)=5.

Since the one-sided limits agree,

limx2f(x)=5.\boxed{ \lim_{x\to2}f(x)=5. }

The second piece defines the function at x=2x=2:

f(2)=2+3=5.f(2)=2+3=5.

As shown in the solution graph, both branches meet at (2,5)(2,5) and the point is filled because the function is defined there.

Solution graph for a piecewise function whose left- and right-hand limits and function value all equal 5 at x=2.

3. Limit versus function value

Suppose a function follows

y=(x1)2+4y=(x-1)^2+4

for all x1x\neq1, but is separately defined by

f(1)=3.f(1)=-3.

Determine

limx1f(x),limx1+f(x),limx1f(x),\lim_{x\to1^-}f(x), \qquad \lim_{x\to1^+}f(x), \qquad \lim_{x\to1}f(x),

and f(1)f(1). Then sketch the graph.

Solution

For nearby values with x1x\neq1, the function follows

(x1)2+4.(x-1)^2+4.

Therefore,

limx1f(x)=4\lim_{x\to1^-}f(x)=4

and

limx1+f(x)=4.\lim_{x\to1^+}f(x)=4.

The two-sided limit is

limx1f(x)=4.\boxed{ \lim_{x\to1}f(x)=4. }

However,

f(1)=3.\boxed{ f(1)=-3. }

The solution graph below shows an open point at (1,4)(1,4) because the nearby formula is not used at x=1x=1, and a filled point at (1,3)(1,-3) because that is the actual function value.

Solution graph showing a limit of 4 at x=1 but a separately defined function value f(1)=-3.

4. An endpoint

For

f(x)=x,f(x)=\sqrt{x},

evaluate the limit as x0x\to0 through the real domain, identify the relevant one-sided limit, and sketch the graph near the origin.

Solution

The domain is

[0,),[0,\infty),

so values in the domain can approach 00 only from the right:

limx0+x=0.\lim_{x\to0^+}\sqrt{x}=0.

Therefore, as a limit through the domain,

limx0x=0.\boxed{ \lim_{x\to0}\sqrt{x}=0. }

The function is also defined at the endpoint:

f(0)=0.f(0)=0.

The graph below shows a filled point at (0,0)(0,0) and no real-valued branch to the left of the origin.

Solution graph for sqrt(x) at the domain endpoint x=0.

5. An indeterminate form whose one-sided limits disagree

For

f(x)=xx,f(x)=\frac{|x|}{x},

evaluate the one-sided limits at x=0x=0, determine whether the two-sided limit exists, and sketch the graph.

Solution

Direct substitution gives 00\frac{0}{0}, an indeterminate form, so further analysis is required.

For x<0x<0,

xx=1,\frac{|x|}{x}=-1,

so

limx0xx=1.\lim_{x\to0^-}\frac{|x|}{x}=-1.

For x>0x>0,

xx=1,\frac{|x|}{x}=1,

so

limx0+xx=1.\lim_{x\to0^+}\frac{|x|}{x}=1.

Because the one-sided limits disagree,

limx0xx does not exist.\boxed{ \lim_{x\to0}\frac{|x|}{x} \text{ does not exist}. }

The limit does not exist because the left-hand limit is 1-1 while the right-hand limit is 11.

The function itself is undefined at x=0x=0. The solution graph below therefore uses open points at the two unattained boundary values.

Solution graph of \frac{|x|}{x}, showing incompatible one-sided limits at x=0.

6. Unbounded one-sided behavior

For

f(x)=1x,f(x)=\frac1x,

describe both one-sided behaviors as x0x\to0, determine whether a finite two-sided limit exists, and sketch the graph.

Solution

As x0x\to0^-,

1x.\frac1x\to-\infty.

As x0+x\to0^+,

1x+.\frac1x\to+\infty.

The two sides do not approach the same finite real value, so

limx01x does not exist.\boxed{ \lim_{x\to0}\frac1x \text{ does not exist}. }

The limit does not exist because the function decreases without bound as x0x\to0^- and increases without bound as x0+x\to0^+.

The solution graph below shows the vertical asymptote at x=0x=0 and the opposite unbounded behavior on the two sides.

Solution graph of \frac{1}{x} near x=0.

Knowledge Map

Where this lesson fits

Prerequisites

LimitsEstimating Limits from Graphs, Tables, and Formulas

Next lessons

LimitsThe Formal Definition of a LimitLimitsLimit Laws and Algebraic Techniques

Continue exploring

Connections

Related lessons

LimitsInfinite Limits and Vertical AsymptotesLimitsEstimating Limits from Graphs, Tables, and Formulas

Applications

  • piecewise functions
  • domain endpoints
  • discontinuity classification