TExcelTAD
Home › Pre-Calculus, Geometry & Trigonometry › Introduction to Limits

Introduction to Limits

What value does f(x)=(x2−1)/(x−1)f(x) = (x^2 - 1)/(x - 1) have at x=1x = 1? Plugging in gives 0/00/0, which is meaningless. But for xx very close to 1, f(x)f(x) is very close to 2. A limit captures that idea: the value a function approaches, whether or not it actually gets there. This lesson builds the intuition with tables and graphs, shows one-sided limits and limits at infinity, and connects limits to what happens when a simulation's time step dtdt shrinks to 0.

The idea

We write

lim⁡x→af(x)=L“the limit of f(x) as x approaches a is L”\lim_{x \to a} f(x) = L \qquad \text{\textquotedblleft the limit of } f(x) \text{ as } x \text{ approaches } a \text{ is } L\text{\textquotedblright}

when f(x)f(x) can be made as close to LL as we like by taking xx close enough to aa, but not equal to aa. The value f(a)f(a) itself does not matter; it may not even exist.

For f(x)=(x2−1)/(x−1)f(x) = (x^2 - 1)/(x - 1), factor the top: (x−1)(x+1)/(x−1)=x+1(x - 1)(x + 1)/(x - 1) = x + 1 for every x≠1x \ne 1. So near 1 the function behaves like x+1x + 1, and the limit is 2, even though f(1)f(1) is undefined. The graph is the line y=x+1y = x + 1 with a hole at (1,2)(1, 2).

Tables of values

A numerical table approaches aa from both sides:

python · try it yourself
def f(x):
    return (x**2 - 1) / (x - 1)

print("   x          f(x)")
for h in [0.1, 0.01, 0.001, 0.0001]:
    print(f"{1 - h:<10} {f(1 - h):.6f}")
for h in [0.0001, 0.001, 0.01, 0.1]:
    print(f"{1 + h:<10} {f(1 + h):.6f}")
   x          f(x)
0.9        1.900000
0.99       1.990000
0.999      1.999000
0.9999     1.999900
1.0001     2.000100
1.001      2.001000
1.01       2.010000
1.1        2.100000

Both sides close in on 2. Tables are evidence, not proof, and they can mislead: with xx extremely close to aa, floating-point rounding takes over (try h=10−15h = 10^{-15} in a formula like (1−cos⁡x)/x2(1 - \cos x)/x^2). Algebra, like the factoring above, confirms what the table suggests.

A famous limit

lim⁡(sin⁡x)/x\lim (\sin x)/x as x→0x \to 0 also has the form 0/00/0, but no factoring helps. The table says the answer is 1:

python · try it yourself
import math

for x in [0.5, 0.1, 0.01, 0.001]:
    print(f"x = {x:<6} sin(x)/x = {math.sin(x) / x:.10f}")
x = 0.5    sin(x)/x = 0.9588510772
x = 0.1    sin(x)/x = 0.9983341665
x = 0.01   sin(x)/x = 0.9999833334
x = 0.001  sin(x)/x = 0.9999998333

The series sin⁡x=x−x3/6+…\sin x = x - x^3/6 + \ldots explains it: (sin⁡x)/x=1−x2/6+…(\sin x)/x = 1 - x^2/6 + \ldots, which tends to 1. This limit is the reason the small-angle approximation sin⁡x≈x\sin x \approx x works, and it only holds with xx in radians.

One-sided limits and when limits fail

Sometimes the function approaches different values from the left and the right. We write x→a−x \to a^- (from below) and x→a+x \to a^+ (from above). The two-sided limit exists only if both one-sided limits exist and agree.

Function near x=0x = 0 From the left From the right Limit
(x2+x)/x(x^2 + x)/x 1 1 1
∣x∣/x\lvert x \rvert/x −1 1 does not exist (jump)
1/x21/x^2 +∞+\infty +∞+\infty grows without bound
1/x1/x −∞-\infty +∞+\infty does not exist
sin⁡(1/x)\sin(1/x) oscillates oscillates does not exist

Writing lim⁡1/x2=∞\lim 1/x^2 = \infty is shorthand for "grows without bound"; it is not a number, so the limit does not exist in the strict sense. It signals a vertical asymptote, as in rational functions.

Limits at infinity

We can also ask what happens as xx grows without bound. lim⁡(3x2+1)/(x2−5)\lim (3x^2 + 1)/(x^2 - 5) as x→∞x \to \infty is 3: divide top and bottom by x2x^2 and the small terms vanish. That gives a horizontal asymptote y=3y = 3. The same idea gave the limits of sequences.

In software: dt→0dt \to 0 in simulations

A physics simulation advances in small time steps dtdt. Each step updates velocity and position with formulas like x += v * dt. The smaller dtdt, the closer the simulation gets to the exact motion: the exact answer is the limit as dt→0dt \to 0.

python · try it yourself
# Ball dropped from rest, g = 9.81. Exact: fallen distance after 2 s = 0.5*g*t^2 = 19.62 m
g, T = 9.81, 2.0
exact = 0.5 * g * T**2

for dt in [0.5, 0.1, 0.01, 0.001, 0.0001]:
    x, v = 0.0, 0.0
    for _ in range(round(T / dt)):
        x += v * dt          # explicit Euler step
        v += g * dt
    print(f"dt = {dt:<7} distance = {x:.5f}   error = {exact - x:.5f}")
print("exact:", exact)
dt = 0.5     distance = 14.71500   error = 4.90500
dt = 0.1     distance = 18.63900   error = 0.98100
dt = 0.01    distance = 19.52190   error = 0.09810
dt = 0.001   distance = 19.61019   error = 0.00981
dt = 0.0001  distance = 19.61902   error = 0.00098
exact: 19.62

Each tenfold smaller dtdt makes the error ten times smaller: the error is proportional to dtdt, so it goes to 0 in the limit. In practice dtdt cannot be tiny (the work grows like 1/dt1/dt, and rounding errors add up), which is why game engines use a fixed, modest dtdt with better integrators (Integrators, Fixed Timestep).

Limits are the foundation of calculus: derivatives and integrals are both defined as limits. Next: Limits and Continuity. The deeper treatment is in Limits and, with the precise ε\varepsilon–δ\delta definition, The Limit of a Function and Epsilon–Delta.

Exercises

Exercise 1: Factor and cancel

Find lim⁡(x2−9)/(x−3)\lim (x^2 - 9)/(x - 3) as x→3x \to 3.

Answer

6

Solution
x2−9x−3=(x−3)(x+3)x−3=x+3for x≠3limit=3+3=6\begin{aligned} \frac{x^2 - 9}{x - 3} &= \frac{(x - 3)(x + 3)}{x - 3} = x + 3 && \text{for } x \ne 3 \\ \text{limit} &= 3 + 3 = 6 \end{aligned}

Exercise 2: Table it

Make a table for g(x)=(x+4−2)/xg(x) = (\sqrt{x + 4} - 2)/x near x=0x = 0 and guess the limit. Then confirm with algebra.

Answer

14\frac{1}{4}

Solution
Multiply by the conjugate:x+4−2x⋅x+4+2x+4+2=xx(x+4+2)=1x+4+2At x=0:12+2=14\begin{aligned} &\text{Multiply by the conjugate:} \\ &\frac{\sqrt{x + 4} - 2}{x} \cdot \frac{\sqrt{x + 4} + 2}{\sqrt{x + 4} + 2} = \frac{x}{x(\sqrt{x + 4} + 2)} = \frac{1}{\sqrt{x + 4} + 2} \\ &\text{At } x = 0{:}\quad \frac{1}{2 + 2} = \frac{1}{4} \end{aligned}
python · try it yourself
import math

for x in [0.1, 0.001, -0.001, -0.1]:
    print(x, round((math.sqrt(x + 4) - 2) / x, 6))
0.1 0.248457
0.001 0.249984
-0.001 0.250016
-0.1 0.251582

Exercise 3: One-sided

Let f(x)=x+1f(x) = x + 1 for x<2x < 2 and f(x)=5−xf(x) = 5 - x for x≥2x \ge 2. Find both one-sided limits at 2. Does the limit exist?

Answer

Left limit 3, right limit 3; yes, the limit is 3.

Solution
x→2−:x+1→3x→2+:5−x→3Both agree, so lim⁡f(x)=3 (and f(2)=3 too).\begin{aligned} &x \to 2^-{:}\quad x + 1 \to 3 \\ &x \to 2^+{:}\quad 5 - x \to 3 \\ &\text{Both agree, so } \lim f(x) = 3 \text{ (and } f(2) = 3 \text{ too).} \end{aligned}

Exercise 4: At infinity

Find lim⁡(4x3−x)/(2x3+7x2)\lim (4x^3 - x)/(2x^3 + 7x^2) as x→∞x \to \infty.

Answer

2

Solution
Divide by x3:4−1/x22+7/x→42=2\text{Divide by } x^3{:}\quad \frac{4 - 1/x^2}{2 + 7/x} \to \frac{4}{2} = 2

Test yourself

f(3)f(3) is undefined. Can lim⁡f(x)\lim f(x) as x→3x \to 3 still exist?

  1. No, never
  2. Yes: the limit only depends on values near 3, not at 3
  3. Only if ff is a polynomial
  4. Only if the limit is 0

What is lim⁡(sin⁡x)/x\lim (\sin x)/x as x→0x \to 0 (xx in radians)?

  1. 0
  2. ∞\infty
  3. 1
  4. It does not exist

A simulation's error halves every time dtdt is halved. What happens as dt→0dt \to 0?

  1. The error tends to 0
  2. The error doubles
  3. The error stays constant
  4. The simulation becomes unstable