Calculus · Grade 12 and undergraduate

What Is a Limit? One-Sided Limits and Limits from Graphs

Quick answer

The limit of f(x) as x approaches a is the value f(x) gets arbitrarily close to when x is close enough to a, without being equal to a. It describes the approach, not the arrival, so f(a) can be different or not exist at all. A limit can be estimated from a table or read from a graph. It exists only when the left-hand and right-hand limits exist and agree; jumps, unbounded growth and endless oscillation are the three ways it fails.

What you'll learn

  • Explain what lim f(x) = L means as x approaches a, and why f(a) does not enter into it
  • Estimate a limit from a table of values and read limits from a graph
  • Find one-sided limits and decide whether a two-sided limit exists
  • Recognize the three ways a limit can fail to exist

A function with a hole

The function

f(x)=x2−1x−1f(x) = \frac{x^2 - 1}{x - 1}

is undefined at x=1x = 1, because the denominator is 00 there. But it is perfectly well behaved near 11. Put in values close to 11 and watch the outputs:

xx0.90.90.990.990.9990.9991.0011.0011.011.011.11.1
f(x)f(x)1.91.91.991.991.9991.9992.0012.0012.012.012.12.1

From both sides the outputs close in on 22. The reason shows when the numerator factors: for every x≠1x \ne 1,

f(x)=(x−1)(x+1)x−1=x+1f(x) = \frac{(x - 1)(x + 1)}{x - 1} = x + 1

So the graph is the line y=x+1y = x + 1 with a single point missing.

A line with a hole at x = 1 The graph of y equals (x squared minus 1) over (x minus 1): the line y = x + 1 with an open circle at (1, 2), where the function is undefined. -2-11234-112345xy (1, 2)
  • f(x) = (x² − 1)/(x − 1)
A line with a hole at x = 1

We say the limit of f(x)f(x) as xx approaches 11 is 22, and write

lim⁡x→1x2−1x−1=2\lim_{x \to 1} \frac{x^2 - 1}{x - 1} = 2

What the notation means

lim⁡x→af(x)=L\displaystyle\lim_{x \to a} f(x) = L means: f(x)f(x) can be made as close to LL as we like by taking xx close enough to aa, with x≠ax \ne a.

Two things in that sentence matter. The closeness is unlimited — within 0.0010.001, within 10−910^{-9}, within any tolerance you name. And x=ax = a itself is excluded, so the value f(a)f(a) plays no part.

Why the value at a does not matter

A limit answers a question about approach: where are the outputs heading as the inputs home in on aa? What happens exactly at aa is a separate question.

That separation is the whole point. The derivative, the next big idea in calculus, is the limit of a fraction whose denominator is 00 at the very point you care about — exactly like ff above. If limits depended on the value at aa, they could never handle those cases, and they are the cases calculus is built on.

So a function may be undefined at aa, or defined with some unrelated value, and the limit is unaffected either way. The limit depends only on values near aa, never on the value at aa.

One-sided limits

Sometimes the outputs head to different places from the two sides. The left-hand limit uses only x<ax < a and the right-hand limit only x>ax > a:

lim⁡x→a−f(x)lim⁡x→a+f(x)\lim_{x \to a^-} f(x) \qquad \lim_{x \to a^+} f(x)
A jump at x = 2 Two pieces. For x less than 2 the graph is the line y = x, ending in an open circle at (2, 2). For x at least 2 it is the line y = x − 3, starting with a filled dot at (2, −1). -2-112345-3-2-11234xy
  • y = x (x < 2)
  • y = x − 3 (x ≥ 2)
A jump at x = 2

Here the left-hand limit at 22 is 22 and the right-hand limit is −1-1. The two-sided limit asks for a single number both sides approach, and there is none.

The two-sided limit exists exactly when both one-sided limits exist and are equal, and then it is their common value.

How a limit fails to exist

There are three ways, and each has a recognizable shape on a graph.

  • A jump: the one-sided limits exist but differ, as at x=2x = 2 above.
  • Unbounded growth: the values grow without bound, as 1x2\tfrac{1}{x^2} does near 00. We write lim⁡x→01x2=∞\lim_{x \to 0} \tfrac{1}{x^2} = \infty to say how the limit fails; ∞\infty is not a number the values approach.
  • Oscillation: the values keep swinging without settling, as sin⁡ ⁣(1x)\sin\!\left(\tfrac{1}{x}\right) does near 00, passing through every value from −1-1 to 11 infinitely often.

Worked examples

Common mistakes

Practice problems

  1. Estimate lim⁡x→2x2−4x−2\lim_{x \to 2} \tfrac{x^2 - 4}{x - 2} with a table, then confirm it by factoring.

    Answer

    44

    Full solution

    At x=1.99x = 1.99 the value is 3.993.99; at x=2.01x = 2.01 it is 4.014.01. The values approach 44.

    For x≠2x \ne 2: x2−4x−2=(x−2)(x+2)x−2=x+2\tfrac{x^2 - 4}{x - 2} = \tfrac{(x - 2)(x + 2)}{x - 2} = x + 2, which approaches 44.

  2. Use the graph to find lim⁡x→1−h(x)\lim_{x \to 1^-} h(x), lim⁡x→1+h(x)\lim_{x \to 1^+} h(x), lim⁡x→1h(x)\lim_{x \to 1} h(x) and h(1)h(1).

    The function h Two pieces. For x less than 1, the curve y = x squared ends in an open circle at (1, 1). For x greater than 1, the line y = 3 − 2x starts with an open circle at (1, 1). A single filled dot sits at (1, 3). -2-11234-3-2-11234xy
    • y = x² (x < 1)
    • y = 3 − 2x (x > 1)
    The function h
    Answer

    11, 11, 11 and 33

    Full solution

    From the left, along y=x2y = x^2, the values approach 11. From the right, along y=3−2xy = 3 - 2x, they also approach 11.

    The one-sided limits agree, so lim⁡x→1h(x)=1\lim_{x \to 1} h(x) = 1. The filled dot gives h(1)=3h(1) = 3, which does not affect the limit.

  3. For f(x)={x+1x<0x2−1x≥0f(x) = \begin{cases} x + 1 & x < 0 \\ x^2 - 1 & x \ge 0 \end{cases}, find both one-sided limits at 00. Does lim⁡x→0f(x)\lim_{x \to 0} f(x) exist?

    Answer

    Left: 11. Right: −1-1. The limit does not exist.

    Full solution

    For x<0x < 0, f(x)=x+1→1f(x) = x + 1 \to 1. For x>0x > 0, f(x)=x2−1→−1f(x) = x^2 - 1 \to -1.

    The one-sided limits differ, so the two-sided limit does not exist.

  4. Describe lim⁡x→31(x−3)2\lim_{x \to 3} \tfrac{1}{(x - 3)^2}.

    Answer

    It does not exist; the values grow without bound, so we write ∞\infty.

    Full solution

    The denominator is a small positive number on both sides of 33, so the fraction is large and positive and grows without bound: lim⁡x→31(x−3)2=∞\lim_{x \to 3} \tfrac{1}{(x - 3)^2} = \infty.

  5. Describe lim⁡x→3−1x−3\lim_{x \to 3^-} \tfrac{1}{x - 3} and lim⁡x→3+1x−3\lim_{x \to 3^+} \tfrac{1}{x - 3}.

    Answer

    −∞-\infty and ∞\infty

    Full solution

    For xx slightly less than 33 the denominator is a small negative number, so the fraction is large and negative. For xx slightly more than 33 it is a small positive number, so the fraction is large and positive.

  6. A function has lim⁡x→5f(x)=7\lim_{x \to 5} f(x) = 7. Must f(5)=7f(5) = 7? Must f(5)f(5) exist?

    Answer

    Neither.

    Full solution

    The limit uses only values near 55. The function could have a hole at 55, or a value such as f(5)=0f(5) = 0, and the limit would still be 77.

  7. Estimate lim⁡x→0ex−1x\lim_{x \to 0} \tfrac{e^x - 1}{x} from values at x=±0.001x = \pm 0.001.

    Answer

    11

    Full solution

    At x=0.001x = 0.001 the value is about 1.00051.0005; at x=−0.001x = -0.001 it is about 0.99950.9995. Both approach 11.

  8. Which of the three ways of failing describes lim⁡x→0cos⁡ ⁣(1x)\lim_{x \to 0} \cos\!\left(\tfrac{1}{x}\right)?

    Answer

    Oscillation

    Full solution

    As x→0x \to 0, 1x\tfrac{1}{x} runs off to ±∞\pm\infty, and cosine keeps cycling between −1-1 and 11. The values never settle, so the limit does not exist.

  9. Sketch a function with lim⁡x→2f(x)=4\lim_{x \to 2} f(x) = 4 and f(2)=0f(2) = 0.

    Answer

    One example: f(x)=2xf(x) = 2x for x≠2x \ne 2, with f(2)=0f(2) = 0.

    Full solution

    The line y=2xy = 2x passes through (2,4)(2, 4). Remove that point (an open circle) and place a filled dot at (2,0)(2, 0).

    Near 22 the values approach 44, while the value at 22 is 00.

  10. A student computes sin⁡ ⁣(πx)\sin\!\left(\tfrac{\pi}{x}\right) at x=0.1,0.01,0.001x = 0.1, 0.01, 0.001, gets 00 every time, and concludes the limit at 00 is 00. What went wrong?

    Hint

    Try x=25x = \tfrac{2}{5} or x=2401x = \tfrac{2}{401}.

    Answer

    The sample points were special. At other points near 00 the value is 11, so the limit does not exist.

    Full solution

    At x=1nx = \tfrac{1}{n}, πx=nπ\tfrac{\pi}{x} = n\pi and sin⁡(nπ)=0\sin(n\pi) = 0 — every sample the student chose.

    But at x=24k+1x = \tfrac{2}{4k + 1}, πx=(4k+1)π2\tfrac{\pi}{x} = \tfrac{(4k + 1)\pi}{2} and the sine is 11. These points also crowd in on 00.

    Values 00 and 11 both occur arbitrarily close to 00, so the function oscillates and the limit does not exist.

Frequently asked questions

What is a limit in calculus?

The value f(x) approaches as x approaches a number a. It is written lim as x→a of f(x) = L, and it depends only on values of f near a, never on f(a) itself.

Can a limit exist where the function is undefined?

Yes. (x² − 1)/(x − 1) is undefined at x = 1, but its values approach 2 as x approaches 1, so the limit is 2.

When does a limit not exist?

When the left-hand and right-hand limits differ (a jump), when the values grow without bound (a vertical asymptote), or when they oscillate forever without settling.

What is a one-sided limit?

A limit taken from only one side: x → a⁻ uses values of x less than a, and x → a⁺ uses values greater than a.

Is the limit the same as f(a)?

Not in general. They agree exactly when f is continuous at a, which is the subject of the continuity lesson.

What to learn next