What is a Limit? — The Foundation of Calculus Explained with Real Examples

what is a limit in calculus
What is a Limit? — The Foundation of Calculus Explained with Real Examples

Calculus · Mathematics · Beginner

What is a Limit? — The Foundation of Calculus Explained with Real Examples

Every idea in calculus — derivatives, integrals, continuity — is built on one concept: the limit. It answers the question “what value does a function approach as we get infinitely close to a point?” This guide explains limits from scratch, with real examples, a live table explorer, a graph visualiser, and worked problems.

📖 18 min read 📊 Live limit explorer 📈 Interactive graph 🧮 Worked examples 💻 Python code ❓ Quiz included

Section 01

The Intuition — Approaching Without Arriving

Imagine you are walking toward a wall. With every step you halve the remaining distance. You get closer and closer — but the question a limit asks is not “did you reach the wall?” It asks: “what value are you approaching?”

This distinction is the entire heart of calculus. A limit describes the behaviour of a function near a point — not necessarily at the point itself. The function might not even be defined at that exact point, yet the limit can still exist perfectly clearly.

💡 The Key Idea

The limit of f(x) as x approaches a is the value that f(x) gets arbitrarily close to as x gets arbitrarily close to a — from either side. The actual value of f(a) is irrelevant to the limit.

A concrete example — the speed of a car

At exactly the instant t = 2 seconds, what is a car’s speed? Speed is distance divided by time — but over exactly zero seconds, that is 0/0, which is undefined. Yet the car clearly has a speed. Limits solve this: we measure the average speed over smaller and smaller time intervals approaching zero, and ask what value that average approaches. That approaching value is the instantaneous speed — and it is a limit.

lim
The notation used — read as “the limit as x approaches a”
Approaches — x gets close to a but never has to equal a
L
The limit value — what f(x) gets arbitrarily close to
ε-δ
The rigorous definition — epsilon-delta, used in real analysis

Section 02

The Formal Definition of a Limit

We write a limit like this:

lim f(x) = L    (as x → a)
Read as: “The limit of f(x) as x approaches a equals L”

This means: for every number ε > 0 (no matter how tiny), there exists a δ > 0 such that whenever 0 < |x − a| < δ, we have |f(x) − L| < ε. In plain English: we can make f(x) as close to L as we like, by making x close enough to a.

📌 Plain English Translation

As x inches toward a (from either side, never touching), f(x) inches toward L. The closer x gets to a, the closer f(x) gets to L. If f(x) settles on a single value L — that is the limit.

Worked Example — a simple limit

Find: lim (x² − 1) / (x − 1) as x → 1

Plugging in x = 1 directly gives 0/0 — undefined. But factor the numerator: (x² − 1) = (x − 1)(x + 1). Cancel the (x − 1) terms:

lim (x² − 1)/(x − 1)  as x → 1
= lim (x − 1)(x + 1) / (x − 1)  as x → 1
= lim (x + 1)  as x → 1    (cancelled (x-1), valid since x ≠ 1)
= 1 + 1 = 2

The function (x² − 1)/(x − 1) is undefined at x = 1 — there is a hole in the graph. But as x approaches 1 from either side, the function approaches 2. The limit exists and equals 2, even though f(1) does not exist.

Section 03

Interactive Limit Table Explorer

Choose a function and a target value. The table shows f(x) for values of x approaching the target from both sides — getting closer and closer. Watch the values converge to the limit.

  Limit Table Explorer

Section 04

Interactive Limit Graph Visualiser

See the same functions plotted. The vertical dashed line marks the target x value. The horizontal dashed line marks the limit L. Notice the function approaches L as it nears the dashed line — even if there is a hole at that exact point.

  Limit Graph Visualiser

Section 05

One-Sided Limits — Left and Right

Sometimes a function approaches different values depending on which side of a you come from. We call these one-sided limits:

Left-Hand Limit
lim f(x) as x → a⁻
x approaches a from the left (values smaller than a)
Right-Hand Limit
lim f(x) as x → a⁺
x approaches a from the right (values larger than a)

✅ The Golden Rule

The two-sided limit lim f(x) as x → a exists if and only if both one-sided limits exist and are equal:

lim f(x) = L  ⟺  lim f(x) [x→a⁻] = lim f(x) [x→a⁺] = L

Example — the jump function f(x) = |x|/x

This function equals −1 for all negative x and +1 for all positive x. As x → 0⁻ (from the left), f(x) → −1. As x → 0⁺ (from the right), f(x) → +1. The two sides disagree — so the two-sided limit does not exist.

⚠️ When the Limit Does Not Exist

A limit fails to exist when: the left and right limits are different (jump), the function oscillates infinitely without settling (like sin(1/x) near 0), or the function grows without bound toward ±∞.

Section 06

Limit Laws — The Arithmetic of Limits

Once you know individual limits, you can combine them using the Limit Laws — just like rules of arithmetic, but for limits. Assume lim f(x) = L and lim g(x) = M as x → a.

LawStatementExample
Sum Rulelim [f(x) + g(x)] = L + Mlim (x² + x) = lim x² + lim x = 4 + 2 = 6 at x→2
Difference Rulelim [f(x) − g(x)] = L − Mlim (x² − x) = 4 − 2 = 2 at x→2
Product Rulelim [f(x) · g(x)] = L · Mlim (x · x²) = 2 · 4 = 8 at x→2
Quotient Rulelim [f(x)/g(x)] = L/M  (M ≠ 0)lim (x²/x) = 4/2 = 2 at x→2
Power Rulelim [f(x)]ⁿ = Lⁿlim (x+1)³ = (3)³ = 27 at x→2
Constant Rulelim c = clim 7 = 7 — constants are their own limit
Squeeze TheoremIf g(x) ≤ f(x) ≤ h(x) and lim g = lim h = L, then lim f = LUsed to prove lim sin(x)/x = 1 as x→0

Section 07

Evaluation Techniques — 4 Methods

🔌

1. Direct Substitution

If f is continuous at a, simply plug in x = a. Works for polynomials, trig functions, exponentials. Always try this first.

✂️

2. Factoring

For 0/0 indeterminate forms — factor numerator and/or denominator, cancel the common (x − a) factor, then substitute.

✖️

3. Rationalisation

When square roots cause the 0/0 form — multiply numerator and denominator by the conjugate to eliminate the root.

📐

4. Squeeze Theorem

Bound the tricky function between two easier functions with the same limit. Classic use: proving lim sin(x)/x = 1 as x→0.

Worked Example — Rationalisation

Find: lim (√x − 2) / (x − 4) as x → 4

Direct substitution gives 0/0. Multiply by the conjugate (√x + 2)/(√x + 2):

(√x − 2)/(x − 4) × (√x + 2)/(√x + 2)
= (x − 4) / [(x − 4)(√x + 2)]
= 1 / (√x + 2)    (cancelled (x−4))
→ 1 / (√4 + 2) = 1/4 as x → 4

Section 08

Special Limits — The Ones Every Calculus Student Needs

These four limits appear constantly in calculus. Memorise them — they are used in derivative proofs, Taylor series, and differential equations.

LimitValueWhy it matters
lim sin(x)/x   (x→0) 1 Foundation of the derivative of sin(x). Proved using the Squeeze Theorem.
lim (1−cos x)/x   (x→0) 0 Pairs with sin(x)/x in derivative proofs for trigonometric functions.
lim (1 + 1/n)ⁿ   (n→∞) e ≈ 2.71828 Definition of Euler’s number e. Foundation of exponential functions and natural log.
lim (eˣ − 1)/x   (x→0) 1 Used to prove the derivative of eˣ is itself — the most important derivative in calculus.

🎯 Proving lim sin(x)/x = 1 with the Squeeze Theorem

For 0 < x < π/2, we can prove geometrically that: cos(x) ≤ sin(x)/x ≤ 1 Since lim cos(x) = 1 and lim 1 = 1 as x→0, by the Squeeze Theorem lim sin(x)/x = 1. This result underpins the derivative of every trigonometric function.

Section 09

Limits and Continuity — The Connection

A function f is continuous at x = a if three conditions all hold simultaneously:

1

f(a) is defined

The function has an actual value at x = a — no hole, no division by zero, no undefined expression.

2

lim f(x) as x → a exists

The left-hand limit and right-hand limit both exist and are equal.

3

lim f(x) = f(a)

The limit equals the actual function value. The function arrives exactly where it was heading.

Type of DiscontinuityWhat breaksExampleLimit exists?
Removable (hole)f(a) undefined or ≠ limit(x²−1)/(x−1) at x=1Yes — L = 2
JumpLeft ≠ right limit|x|/x at x=0No
InfiniteFunction → ±∞1/x at x=0No (diverges)
OscillatingNo settled valuesin(1/x) at x=0No

Section 10

Limits at Infinity

What happens to f(x) as x grows without bound? This is a limit at infinity, written lim f(x) as x → ∞. The value L (if it exists) is called a horizontal asymptote of the graph.

lim (3x² + 2x) / (x² + 5)   as x → ∞
Divide every term by x² (the highest power) → lim (3 + 2/x) / (1 + 5/x²) = 3/1 = 3
FunctionLimit as x → ∞Interpretation
1/x0Approaches the x-axis — horizontal asymptote at y=0
x / (x + 1)1Horizontal asymptote at y=1
Grows without bound — no horizontal asymptote
(3x+1) / (2x−5)3/2Leading coefficients determine the asymptote
Exponential growth — grows faster than any polynomial
e⁻ˣ0Exponential decay — approaches x-axis

📐 Rule of Thumb for Rational Functions

Compare the degree of numerator (top) and denominator (bottom):

• Top degree < bottom degree → limit = 0
• Top degree = bottom degree → limit = ratio of leading coefficients
• Top degree > bottom degree → limit = ±∞ (no horizontal asymptote)

Section 11

Real-World Uses of Limits

🚗

Instantaneous Speed

A speedometer shows speed at one instant — not an average. This is the limit of average speed as the time interval shrinks to zero. The foundation of derivatives.

💰

Compound Interest

When interest compounds continuously, the formula uses e — which is itself defined as a limit: e = lim (1 + 1/n)ⁿ as n → ∞. Banks literally use limits to calculate your savings.

🎮

Physics Engines

Game physics uses numerical limits constantly — approximating instantaneous velocity, forces and collisions by computing values over smaller and smaller time steps.

📡

Signal Processing

The Fourier transform — used in audio compression (MP3), image compression (JPEG), and 5G — is defined using integrals, which are themselves defined using limits of sums.

🏥

Drug Concentration

Pharmacologists model how drug concentration in your blood approaches zero over time using limits as t → ∞. This determines dosage intervals.

🌡️

Heat Transfer

Newton’s law of cooling describes how an object’s temperature approaches room temperature — modelled as a limit of an exponential function as time → ∞.

Section 12

Python Code

Computing limits numerically

Python
import numpy as np

def numerical_limit(f, a, side='both', steps=10):
    """Estimate limit of f as x → a by computing f near a."""
    results = []
    for i in range(1, steps+1):
        h = 10**(-i)   # 0.1, 0.01, 0.001, ...
        if side in ('both', 'right'):
            results.append((f'x={a+h:.{i}f}', f(a + h)))
        if side in ('both', 'left'):
            results.append((f'x={a-h:.{i}f}', f(a - h)))
    return results

# Example 1: lim (x²−1)/(x−1) as x → 1
f1 = lambda x: (x**2 - 1) / (x - 1)
for label, val in numerical_limit(f1, 1):
    print(f"{label:12} → f(x) = {val:.8f}")
# All values approach 2.0

# Example 2: lim sin(x)/x as x → 0
f2 = lambda x: np.sin(x) / x
for label, val in numerical_limit(f2, 0, side='right'):
    print(f"{label:14} → {val:.10f}")
# All values approach 1.0

Symbolic limits with SymPy

Python
from sympy import *

x = Symbol('x')

# lim (x²−1)/(x−1) as x → 1
expr1 = (x**2 - 1) / (x - 1)
print(limit(expr1, x, 1))         # 2

# lim sin(x)/x as x → 0
print(limit(sin(x)/x, x, 0))     # 1

# lim (1 + 1/x)^x as x → ∞  (definition of e)
print(limit((1 + 1/x)**x, x, oo)) # E  (Euler's number)

# lim (√x−2)/(x−4) as x → 4
print(limit((sqrt(x)-2)/(x-4), x, 4))  # 1/4

# One-sided limits
print(limit(Abs(x)/x, x, 0, '+'))  # 1  (right)
print(limit(Abs(x)/x, x, 0, '-'))  # -1 (left)

# Limit at infinity
print(limit((3*x**2 + 2*x) / (x**2 + 5), x, oo))  # 3

Section 13

Knowledge Quiz

Six questions to test your understanding of limits.

  Limits Quiz
Question 1 of 6

Comments

No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *