Limit Of A Function: Definition & Examples

#Calculus
TL;DR
The limit of a function describes the single value $f(x)$ gets arbitrarily close to as $x$ approaches a point $a$ from either side, written $\lim_{x \to a} f(x) = L$. It is about the behaviour of $f$ near $a$, not the value $f(a)$ at the point, which is why a limit can exist even where the function is undefined. The two-sided limit exists only when the left-hand and right-hand limits agree.
BT
Bhanzu TeamLast updated on September 29, 202613 min read

What Is The Limit Of A Function?

The limit of a function is the value that the outputs $f(x)$ settle toward as the input $x$ moves closer and closer to a fixed number $a$. We write it as

$$\lim_{x \to a} f(x) = L,$$

read as "the limit of $f(x)$, as $x$ approaches $a$, equals $L$." The statement means: you can force $f(x)$ to be as close to $L$ as you like, just by keeping $x$ close enough to $a$ on either side, without ever setting $x = a$ itself.

That last clause is the whole idea. A limit ignores the single point $x = a$ and looks only at the neighbourhood around it. So the limit $L$ and the actual value $f(a)$ are two different questions, and they can disagree. A function can even have no value at $a$ (a hole in its graph) and still have a perfectly good limit there.

  • The limit $L$ answers "where is $f$ heading near $a$?"

  • The value $f(a)$ answers "what does $f$ actually equal at $a$?"

When those two answers match, the function is continuous at $a$. When they differ, or when $f(a)$ does not exist, the function has a gap, but the limit can still exist. Limits are the first idea in calculus precisely because they let us talk about "approaching" a value cleanly.

What Are One-Sided Limits?

You can approach a point $a$ from two directions along the number line: from values smaller than $a$ (the left) or values larger than $a$ (the right). Each direction has its own one-sided limit.

  • Left-hand limit: $\lim_{x \to a^-} f(x)$ is the value $f(x)$ heads toward as $x$ approaches $a$ through numbers less than $a$.

  • Right-hand limit: $\lim_{x \to a^+} f(x)$ is the value $f(x)$ heads toward as $x$ approaches $a$ through numbers greater than $a$.

The two-sided limit is the meeting point of these two journeys. This gives the single most useful rule about limits:

$$\lim_{x \to a} f(x) = L \quad \text{exists} \iff \lim_{x \to a^-} f(x) = \lim_{x \to a^+} f(x) = L.$$

In plain words, the two-sided limit exists if and only if both one-sided limits exist and are equal. If the left side heads to one number and the right side heads to another, the function is being pulled two ways at once, and no single value $L$ can be the limit.

What Is The Epsilon-Delta Idea Behind A Limit?

The phrases "arbitrarily close" and "close enough" can be made exact, and that precise version is what makes calculus rigorous. It is called the epsilon-delta definition.

$$\lim_{x \to a} f(x) = L \ \text{ means: for every } \varepsilon > 0 \text{ there is a } \delta > 0 \text{ such that } 0 < |x - a| < \delta \implies |f(x) - L| < \varepsilon.$$

Read it as a challenge and a response. Someone challenges you with a tolerance $\varepsilon$, a tiny band around $L$. You must answer with a distance $\delta$, a band around $a$, so that every $x$ within $\delta$ of $a$ (but not $a$ itself, because of the $0 < |x - a|$ part) lands inside the $\varepsilon$ band around $L$. If you can always answer, no matter how small the challenge, then $L$ genuinely is the limit.

The geometric picture: draw a horizontal strip of height $2\varepsilon$ centred on $L$. The definition says you can always find a vertical strip of width $2\delta$ around $a$ so that the graph stays inside the horizontal strip across that whole width, except possibly at $a$ itself. Shrinking $\varepsilon$ just forces a narrower $\delta$, and a true limit survives every shrink.

When Does The Limit Of A Function Fail To Exist?

A limit fails to exist when the outputs never settle on one finite value. There are three classic ways this happens, and every calculus course tests them.

  • A jump (one-sided disagreement). The left-hand and right-hand limits both exist but differ, so the graph "jumps" at $a$. The sign function $f(x) = \frac{|x|}{x}$ heads to $-1$ from the left of $0$ and $+1$ from the right, so $\lim_{x \to 0} f(x)$ does not exist. Jumps are one flavour of a wider family covered under types of discontinuity.

  • Oscillation. The function wobbles faster and faster without homing in on any value. The standard example is $f(x) = \sin\left(\tfrac{1}{x}\right)$ as $x \to 0$: it swings between $-1$ and $+1$ infinitely often in any interval around $0$, so no single $L$ works.

  • Unbounded growth. The outputs grow without bound, as with $f(x) = \tfrac{1}{x^2}$ near $x = 0$, where the values shoot to infinity. The limit does not exist as a finite number; this behaviour is studied further under limits at infinity.

The common thread is that "exists" means "settles on one finite number." A jump offers two numbers, oscillation offers none, and unbounded growth offers no finite value at all.

How Do You Evaluate The Limit Of A Function?

Most limits are found not by drawing graphs but by a short toolkit of algebraic moves. Which move you use depends on what direct substitution gives you.

1. Direct substitution (when the function is continuous). If $f$ is built from polynomials, roots, exponentials, sines, and cosines and is defined at $a$, just substitute $x = a$. For these continuous functions, the limit is the value. The limit laws guarantee that limits pass through sums, products, and quotients, which is what makes substitution valid.

2. Factor and cancel (for a $\tfrac{0}{0}$ result). If substitution gives the indeterminate form $\tfrac{0}{0}$, the expression is not automatically undefined; it is a signal to simplify. Factor the top and bottom, cancel the common factor causing the zero, then substitute into what remains.

3. Rationalize (for roots that give $\tfrac{0}{0}$). When a square root produces the $\tfrac{0}{0}$ form, multiply the numerator and denominator by the conjugate to clear the root, then cancel. For example, $\lim_{x \to 0} \dfrac{\sqrt{x+1} - 1}{x}$ becomes $\lim_{x \to 0} \dfrac{1}{\sqrt{x+1} + 1} = \dfrac{1}{2}$ after multiplying by $\sqrt{x+1} + 1$.

4. Split at a piecewise seam (use one-sided limits). At a point where a piecewise function changes rule, compute the left-hand and right-hand limits separately using the correct piece for each side, then check whether they agree.

Table: Techniques for evaluating a limit of a function.

What substitution gives

Technique

Quick example

A defined value

Direct substitution

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

$\tfrac{0}{0}$ with a common factor

Factor and cancel

$\lim_{x \to 1}\dfrac{x^2 - 1}{x - 1} = 2$

$\tfrac{0}{0}$ with a root

Rationalize (conjugate)

$\lim_{x \to 0}\dfrac{\sqrt{x+1}-1}{x} = \tfrac{1}{2}$

Rule changes at the point

One-sided limits, then compare

check $a^-$ against $a^+$

A known special form

Use a standard limit

$\lim_{x \to 0}\dfrac{\sin x}{x} = 1$

What Are Some Worked Examples Of Limits?

Each example below is fully stepped, with the reasoning that justifies every line.

Example 1: Direct substitution.

Evaluate $\lim_{x \to 2}\left(x^2 + 1\right)$.

The function $x^2 + 1$ is a polynomial, so it is continuous everywhere, and the limit is the value at $x = 2$:

$$\lim_{x \to 2}\left(x^2 + 1\right) = 2^2 + 1 = 4 + 1 = 5.$$

Final answer: $5$.

Example 2: Factor and cancel a $\tfrac{0}{0}$ form.

Evaluate $\lim_{x \to 1}\dfrac{x^2 - 1}{x - 1}$.

Substituting $x = 1$ gives $\tfrac{0}{0}$, so factor the numerator as a difference of squares and cancel:

$$\frac{x^2 - 1}{x - 1} = \frac{(x - 1)(x + 1)}{x - 1} = x + 1 \quad (x \neq 1).$$

The cancellation is legal because the limit never uses $x = 1$ itself, only values near it. Now substitute:

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

The original expression has a hole at $x = 1$, yet the limit there is a clean $2$. This is the removable case that confuses many readers.

Final answer: $2$.

Example 3: A standard trigonometric limit.

Evaluate $\lim_{x \to 0}\dfrac{\sin x}{x}$ (with $x$ in radians).

Substitution gives $\tfrac{0}{0}$, and no factoring helps. Instead this is a benchmark result proved with the squeeze theorem: for small $x$, the value $\sin x$ is trapped between bounds that both approach $x$, forcing the ratio to $1$.

$$\lim_{x \to 0}\frac{\sin x}{x} = 1.$$

Geometrically, near $0$ the arc, the sine, and the tangent of a small angle are almost the same length, so their ratios head to $1$.

Final answer: $1$.

Example 4: A jump where the limit does not exist.

Let $f(x) = \begin{cases} x + 1, & x < 2 \ x^2, & x \geq 2 \end{cases}$ and find $\lim_{x \to 2} f(x)$.

Approach $2$ from each side using the correct piece for that side:

$$\lim_{x \to 2^-} f(x) = 2 + 1 = 3, \qquad \lim_{x \to 2^+} f(x) = 2^2 = 4.$$

The left-hand limit is $3$ and the right-hand limit is $4$. They disagree, so by the existence rule the two-sided limit does not exist.

Final answer: $\lim_{x \to 2} f(x)$ does not exist (the graph jumps from $3$ to $4$).

Why Does The Limit Of A Function Work The Way It Does?

Limits look strange at first because they deliberately ignore the one point everyone expects to matter, the value at $a$. The design makes sense once you see what limits were built to do.

  • They describe motion toward a value, not arrival. Many quantities are defined by a trend rather than a single reachable point: an instantaneous speed is the value your average speed heads toward as the time window shrinks to zero, and that window can never actually be zero. Limits capture "heading toward" without needing to arrive.

  • They rescue expressions that are otherwise undefined. A ratio like $\tfrac{\sin x}{x}$ or $\tfrac{x^2 - 1}{x - 1}$ has no value exactly at the trouble point, yet the numbers around it behave beautifully. By looking only at the neighbourhood, a limit reads off the value the expression is clearly aiming for.

  • They separate "has a hole" from "has no limit." Because the limit skips $x = a$, a removable hole (Example 2) still has a limit, while a genuine jump or oscillation does not. This distinction is exactly what makes continuity a meaningful idea.

Seen this way, a limit is a precise language for "where is this heading," and every later tool in calculus, the derivative and the integral included, is built by taking one.

Who Invented The Limit Of A Function?

Calculus was used for well over a century before anyone defined its central idea rigorously. Newton and Leibniz computed with "infinitesimals," quantities treated as vanishingly small, and the method worked while resting on shaky logic. The clean definition came later.

Two figures anchor the story:

  • Augustin-Louis Cauchy (1789–1857, France) introduced the approaching-a-value definition of a limit and used it to define continuity, derivatives, and integrals.

  • Karl Weierstrass (1815–1897, Germany) gave the epsilon-delta definition its final precise form, earning the title "father of modern analysis."

Where Is The Limit Of A Function Used In The Real World?

Limits rarely appear by name outside a classroom, yet the idea of "the value something approaches" runs underneath a great deal of science and engineering.

  • Instantaneous rates: the speed shown on a speedometer is the limit of average speed as the measured time interval shrinks toward zero, the same limit that defines every derivative.

  • Tolerances and continuity: engineers rely on continuous behaviour, where small changes in input cause small changes in output, and continuity is defined entirely through limits.

  • Asymptotes and long-run behaviour: the steady value a cooling coffee, a charging battery, or a population model drifts toward over time is a limit, and asymptotes on a graph are limit statements.

  • Numerical methods: computers approximate answers by generating sequences that converge, and "converge" means the terms approach a limit, an idea sharpened in the limit of a sequence.

  • Probability and physics: many physical constants and probabilities are defined as the value of a ratio or sum in the limit, where a finite calculation would give the wrong or an undefined answer.

One idea, "the value you approach," lets every field reason about change, smoothness, and long-run behaviour with a single precise tool.

What Are The Most Common Mistakes With The Limit Of A Function?

These three errors account for most lost marks on limits, and each matches a question real learners ask on r/learnmath, Quora, and course error handouts.

Assuming the limit always equals $f(a)$.

Where it slips in:

A learner reads $\lim_{x \to a} f(x)$ as "plug in $a$," and treats the limit as just another name for the function value.

Don't do this:

Do not assume $\lim_{x \to a} f(x) = f(a)$. That equation holds only when $f$ is continuous at $a$. Where there is a hole or a jump, the limit and the value differ or the value is missing.

The correct way:

Ask what $f(x)$ approaches near $a$. Substitution is a shortcut that works only for continuous functions; if it gives a hole or a jump, analyse the neighbourhood instead.

Declaring a $\tfrac{0}{0}$ result undefined and stopping.

Where it slips in:

Substitution gives $\tfrac{0}{0}$, and a learner writes "undefined" or "does not exist" and moves on.

Don't do this:

Do not treat $\tfrac{0}{0}$ as a final answer. It is an indeterminate form, a signal that the expression needs algebra, not a verdict that the limit fails.

The correct way:

Factor and cancel, rationalize, or use a standard limit. For $\lim_{x \to 1}\tfrac{x^2 - 1}{x - 1}$, cancelling the shared $(x - 1)$ leaves $x + 1$, giving a limit of $2$.

Ignoring a one-sided disagreement.

Where it slips in:

A learner checks only one side of a piecewise function, or averages the two sides, and reports a limit at a jump.

Don't do this:

Do not report a two-sided limit when the left-hand and right-hand limits differ. There is no averaging rule; disagreement means the limit does not exist.

The correct way:

Compute $\lim_{x \to a^-} f(x)$ and $\lim_{x \to a^+} f(x)$ separately. Only if they are equal does the two-sided limit exist, and it equals their shared value.

Practice Problems On The Limit Of A Function

Work each one, then check against the answer. Answers are verified.

  1. Evaluate $\lim_{x \to 3}(2x - 1)$.
    (Answer: substitution gives $2(3) - 1 = 5$.)

  2. Evaluate $\lim_{x \to 2}\dfrac{x^2 - 4}{x - 2}$.
    (Answer: factor to $x + 2$, giving $4$.)

  3. Evaluate $\lim_{x \to 0}\dfrac{\sin 3x}{x}$.
    (Answer: rewrite as $3 \cdot \tfrac{\sin 3x}{3x} \to 3 \cdot 1 = 3$.)

  4. Evaluate $\lim_{x \to 4}\dfrac{\sqrt{x} - 2}{x - 4}$.
    (Answer: rationalize to $\tfrac{1}{\sqrt{x} + 2}$, giving $\tfrac{1}{4} = 0.2500$.)

  5. For $f(x) = \dfrac{|x|}{x}$, find the one-sided limits at $0$ and state the two-sided limit.
    (Answer: $\lim_{x \to 0^-} = -1$, $\lim_{x \to 0^+} = 1$, so the two-sided limit does not exist.)

  6. Evaluate $\lim_{x \to 1}\dfrac{x^3 - 1}{x - 1}$.
    (Answer: factor to $x^2 + x + 1$, giving $3$.)

Where Should You Go Next After The Limit Of A Function?

Limits are the foundation, and a few natural doors open from here.

  1. Limits and derivatives. See how a single limit of a difference quotient turns the idea of "heading toward" into the derivative, the rate of change.

  2. Limit of a sequence. Apply the same "value you approach" idea to an infinite list of numbers, the backbone of convergence.

  3. Continuity of a function. Continuity is defined by limits, so this is the direct sequel that explains when substitution is allowed in the first place.

If your child is meeting the limit of a function for the first time, a live Bhanzu trainer teaches it from the graph and the two-sided approach up, so the "does it exist" test becomes second nature, in the Bhanzu math program.

Book a Free Demo

Was this article helpful?

Your feedback helps us write better content

Frequently Asked Questions

What is the limit of a function in simple terms?
The limit of a function is the value $f(x)$ heads toward as $x$ approaches a chosen point from both sides. It describes where the function is going near the point, not what it equals at the point, so a limit can exist even where the function has a hole.
How do you know if the limit of a function exists?
Check the two one-sided limits. The two-sided limit exists if and only if the left-hand limit and the right-hand limit both exist and are equal. If they differ, or the function oscillates or grows without bound, the limit does not exist.
Is the limit the same as the value $f(a)$?
Not always. They are equal only when the function is continuous at $a$. At a removable hole the limit exists while $f(a)$ is undefined, and at a jump the limit fails even though $f(a)$ may be perfectly defined.
What does it mean when a limit does not exist?
It means the outputs never settle on one finite value. The three usual causes are a jump (the two sides head to different values), oscillation such as $\sin(\tfrac{1}{x})$ near $0$, and unbounded growth toward infinity.
How do you evaluate a limit that gives $\tfrac{0}{0}$?
A $\tfrac{0}{0}$ result is an indeterminate form, not a dead end. Factor and cancel the common factor, rationalize a root with its conjugate, or apply a known standard limit, then substitute into the simplified expression.
Why is the limit of $\tfrac{\sin x}{x}$ equal to $1$?
For $x$ in radians near $0$, the sine of a small angle is squeezed between bounds that both approach the angle itself, so the ratio is forced to $1$ by the squeeze theorem. It is one of the standard limits worth memorising.
✍️ Written By
BT
Bhanzu Team
Content Creator and Editor
Bhanzu’s editorial team, known as Team Bhanzu, is made up of experienced educators, curriculum experts, content strategists, and fact-checkers dedicated to making math simple and engaging for learners worldwide. Every article and resource is carefully researched, thoughtfully structured, and rigorously reviewed to ensure accuracy, clarity, and real-world relevance. We understand that building strong math foundations can raise questions for students and parents alike. That’s why Team Bhanzu focuses on delivering practical insights, concept-driven explanations, and trustworthy guidance-empowering learners to develop confidence, speed, and a lifelong love for mathematics.
Related Articles
Book a FREE Demo ClassBook Now →