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.
For small positive and negative in radians, approaches . The original fraction remains undefined at zero.
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.
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.
Your saved draft is open. To use the published code, select Restore example in Tools. Use Recover draft to bring back your code.
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.
Execution error
Technical error details
Your result
Python text output
Compare with the worked example
Executed from the published Python during the site build. Your own run appears above. Build environment ↗
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 , 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?
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?
Need a hint?
Hint 1
Follow the input from each side.
Hint 2
Ask whether both approaches lead to the same value.