Explore calculusLesson 25 of 48 · 8 min

A limit is not a substitution

Distinguish a limiting value from direct evaluation and compare one-sided limits.

Maths refresher: Approaching versus arriving

A limiting value concerns nearby inputs, not necessarily the formula’s value exactly at the point.

lim⁡x→0sin⁡xx=1although direct substitution gives 0/0\lim_{x\to0}\frac{\sin x}{x}=1\quad\text{although direct substitution gives }0/0
Worked example

For small positive and negative xx in radians, sin⁡(x)/x\sin(x)/x approaches 11. The original fraction remains undefined at zero.

Maths prerequisite map ↗

A limit describes the value a function approaches as the input moves towards a point. Direct substitution asks for the function’s value at the point itself. When substituting gives zero over zero, the printed nan means the expression has no value there.

See the mathematics
-5-2.502.55-0.40.0250.450.8751.3xylimit 1
-5-2.502.55-0.40.0250.450.8751.3xylimit 1
lim⁡x→0sin⁡xx=1\lim_{x\to0}\frac{\sin x}{x}=1
Starter reference. The open point is a missing value, not a missing limit. The curve approaches 1 from both sides.

A one-sided limit approaches from smaller inputs on the left or larger inputs on the right. A two-sided limit exists when the two approaches give the same value.

The code uses the same expression for both approaches. In sp.limit, dir='-' approaches from the left and dir='+' approaches from the right.

Must an undefined direct substitution imply that no finite limit exists?

Write a prediction (optional)

Exact symbolic investigation

Select Run Python with the code unchanged.

Tools
About Python

Python and the course packages can load while you read. Each run starts with fresh user variables; imported modules stay loaded. Stop replaces the worker. Runtime details ↗

Ctrl+Enter or ⌘+Enter runs Python.

Compare with the worked example

Executed from the published Python during the site build. Your own run appears above. Build environment ↗

Direct at zero
NaN\text{NaN}
Limit from the left
11
Limit from the right
11
Two-sided limit
11
Worked text output
Direct at zero: nan
Limit from the left: 1
Limit from the right: 1
Two-sided limit: 1

Read the starter result

Compare Direct at zero with Limit from the left and Limit from the right. Direct substitution gives 0/00/0, which is undefined. Both approaches give 1, so the two-sided limit is 1.

Edit and compare

Replace sp.sin(x)/x with sp.Abs(x)/x on the expression line. sp.Abs(x) gives the magnitude of x. Select Run Python and compare Limit from the left, Limit from the right and Two-sided limit. What prevents a common limit?

Return to the editor

Scope. Limits depend on approach and domain; complex limits can require stronger path-independent reasoning.

Try a fresh case

A function’s left and right limits at a point are different. What follows?

Choose an answer
Need a hint?
Hint 1

Follow the input from each side.

Hint 2

Ask whether both approaches lead to the same value.

Your notesNotes save in this browser when storage is available.