
How to Solve Limits: Step-by-Step Worked Examples
Limits sit at the foundation of every calculus course, yet the method for solving them rarely gets the clear, sequential treatment it deserves. Consulting the OpenStax Calculus textbook and MIT OpenCourseWare materials while building a step-by-step approach for university students, the same sticking point appears consistently: students understand what a limit is conceptually but freeze when direct substitution produces 0/0 and do not know which technique to reach for next. This post walks through the complete three-tier method with two fully worked examples and highlights the mistakes that cost marks. The worked examples follow the standard approach laid out in OpenStax Calculus Volume 1, Section 2.2 and the problem-solving framework used in MIT OpenCourseWare Single Variable Calculus (18.01).
What Is a Limit in Calculus?
A limit describes the value a function approaches as its input gets arbitrarily close to a target value. The function does not need to reach or even be defined at that target; the limit concerns only the approach. This distinction separates limits from ordinary function evaluation and makes them the correct tool for studying continuity, derivatives, and integrals.
The Intuitive Definition
Picture a function f(x) and a target point x = a. As x moves closer and closer to a from both sides, the output f(x) may approach a specific number L. If it does, we write: lim(x to a) f(x) = L. The key phrase is “approaches.” We are describing a trend, not a computation at a single point.
This distinction matters practically. The rational function f(x) = (x² - 4) / (x - 2) is undefined at x = 2 because the denominator equals zero. Yet the limit as x approaches 2 equals 4, because the numerator factors as (x - 2)(x + 2) and the common factor cancels, leaving x + 2 near x = 2.
Reading the Notation Correctly
The notation lim(x to a) f(x) = L is shorthand for: “as x approaches a, f(x) approaches L.” Three variations appear on university exams:
| Notation | Meaning | Direction |
|---|---|---|
| lim(x to a) f(x) | The two-sided limit equals L | x approaches a from both sides |
| lim(x to a-) f(x) | The left-hand limit | x approaches a from values below a |
| lim(x to a+) f(x) | The right-hand limit | x approaches a from values above a |
| lim(x to inf) f(x) | Limit at positive infinity | x grows without bound |
Limit notation variants and their meanings. The two-sided limit requires left-hand and right-hand limits to be equal.
How to Solve Limits: The Three-Tier Method
Every limit problem starts at Tier 1 and moves down the tiers only when the previous tier fails. Skipping directly to a complex technique wastes time and introduces errors. The three tiers cover the full range of limits seen in first and second-year calculus courses.
Tier 1: Direct Substitution
Direct substitution means replacing x with the target value a and computing the result. If the function is continuous at a, this gives the correct limit immediately. Polynomials, exponentials, logarithms (at valid inputs), trigonometric functions, and their compositions are all continuous on their domains, so direct substitution works at any point in their domain.
After substitution, three results are possible. A finite number means you are done. The form 0/0 or infinity/infinity means the limit is indeterminate and requires Tier 2 or 3. Any other form involving infinity (for example, 5/0 or 1/0) usually means the limit does not exist (the function grows without bound) or is a one-sided infinity, which you must examine from each direction separately.
Tier 2: Algebraic Manipulation
When substitution yields 0/0, both numerator and denominator share a common factor that evaluates to zero at x = a. Factor each expression, identify that shared factor, cancel it, then substitute again. Factoring is the most common resolution in introductory calculus. For expressions with radicals, multiplying numerator and denominator by the conjugate achieves the same cancellation.
Tier 3: L’Hôpital’s Rule
L’Hôpital’s rule applies when the limit has the form 0/0 or ∞/∞ and algebraic simplification is not practical. The rule states:
If lim(x to a) f(x)/g(x) produces 0/0 or ∞/∞, then:
lim(x to a) f(x)/g(x) = lim(x to a) f'(x)/g'(x)
You differentiate the numerator and denominator independently (not as a quotient), then take the limit of the resulting ratio. If that still yields an indeterminate form, apply the rule again. The rule does not apply to determinate forms; using it when substitution would have worked produces incorrect results. The formal statement and proof appear in OpenStax Calculus Volume 1, Section 4.8.
Worked Example 1: A Straightforward Polynomial Limit
The first example tests whether direct substitution applies and builds the habit of checking before reaching for more complex techniques.
Problem:Find lim(x to 3) (2x² - 5x + 1)
Step-by-Step Solution
Identify the function and the target
f(x) = 2x² - 5x + 1, target value a = 3. This is a polynomial, which is continuous everywhere, so direct substitution will work.
Apply direct substitution
f(3) = 2(3)² - 5(3) + 1 = 2(9) - 15 + 1 = 18 - 15 + 1 = 4.
Confirm the result
The substitution produced a finite number (4), not an indeterminate form. No further steps are needed.
State the answer
lim(x to 3) (2x² - 5x + 1) = 4.
This example establishes the baseline reflex: always try substitution first. Polynomial limits at finite points never require Tier 2 or Tier 3. Explore more quantitative tools on the subject calculators hub, which covers calculus and related mathematical tools.
Worked Example 2: A Rational Function With a Removable Discontinuity
This example covers the most common exam scenario: direct substitution produces 0/0, and the resolution requires factoring. The function has a hole at the target point, but the limit still exists.
Problem:Find lim(x to 2) (x² - 4) / (x - 2)
Step-by-Step Solution
Try direct substitution
Substitute x = 2: (2² - 4)/(2 - 2) = (4 - 4)/(0) = 0/0. This is the indeterminate form. Substitution fails. Move to Tier 2.
Factor the numerator
x² - 4 is a difference of squares: (x - 2)(x + 2). The denominator is already factored as (x - 2).
Cancel the common factor
The common factor (x - 2) appears in both numerator and denominator. Cancel it: (x - 2)(x + 2)/(x - 2) = (x + 2), valid for all x ≠ 2.
Substitute into the simplified expression
Now substitute x = 2 into (x + 2): 2 + 2 = 4.
State the limit
lim(x to 2) (x² - 4)/(x - 2) = 4. The function is undefined at x = 2, but the limit equals 4.
Canceling (x - 2) is valid only because you are taking a limit as x approaches 2, not evaluating at x = 2. The factor (x - 2) equals zero exactly at x = 2, which would make the cancellation algebraically illegal at that point alone. Limits sidestep this: since x never actually reaches 2, the factor is nonzero throughout the approach, and cancellation holds. Write “for x not equal to 2” after canceling to show you understand the distinction.
What the Graph Shows
The function (x² - 4)/(x - 2) looks like the line y = x + 2 everywhere except at x = 2, where a hole (open circle) appears. The limit equals 4 because points on either side of the hole approach that value. The hole itself does not interrupt the limit.
This pattern, a hole that does not interrupt the limit, is called a removable discontinuity. You can “remove” it by redefining the function at that single point, setting f(2) = 4. The limit remains the same regardless of whether the hole is patched.
The Most Common Mistakes When Solving Limits
Two errors appear far more often than any others on calculus assessments. Both stem from misunderstanding what the 0/0 result actually signals.
Stopping Too Early After Getting 0/0
Writing 0/0 as the final answer is the single most common limit error. The result 0/0 is an indeterminate form, not a value. It tells you that more work is required, not that the limit is zero, one, or undefined. Always factor and cancel before concluding.
A related mistake: writing the limit as “undefined” because the original function is undefined at the target point. The function and its limit are different objects. The function value at a point and the limit of the function at that point can differ. That difference is the entire reason limits exist as a concept.
Ignoring One-Sided Limits
For piecewise functions and absolute-value expressions, the left-hand and right-hand limits may differ. The two-sided limit then does not exist, and writing a single number as the answer earns no credit. Always check both directions when the function formula changes around the target point.
For example, |x|/x equals 1 for positive x and -1 for negative x. The limit as x approaches 0 does not exist because the left-hand limit equals -1 and the right-hand limit equals 1.
| Mistake | What students write | What they should write |
|---|---|---|
| 0/0 treated as final | 0/0 (stopping here) | Factor, cancel, then substitute |
| Hole mistaken for DNE | Limit does not exist | The limit exists; find it by canceling |
| One-sided mismatch ignored | Limit = [one value] | Check both sides; if unequal, DNE |
| L'Hopital on a determinate | f'(a)/g'(a) from any limit | Only apply L'Hopital after confirming 0/0 or inf/inf |
Four mistakes that appear consistently on calculus limit assessments, with the correct resolution for each.
How to Solve Limits at Infinity
Limits as x approaches positive or negative infinity describe long-run behavior. These appear in asymptote analysis and in the definition of horizontal asymptotes. The method differs from finite-point limits.
The Dominant Term Method
For a rational function, divide every term in the numerator and denominator by the highest power of x present in the entire expression. Every term with x remaining in the denominator collapses to zero as x grows without bound, leaving only the ratio of the leading coefficients.
Example:lim(x to infinity) (3x² + 2x) / (5x² - 7)
Divide every term by x²: (3 + 2/x) / (5 - 7/x²). As x approaches infinity, 2/x approaches 0 and 7/x² approaches 0. The limit equals 3/5.
Three cases summarize the pattern for rational functions at infinity:
| Degree comparison | Example | Limit at infinity |
|---|---|---|
| Numerator degree equals denominator | (3x² + 2x)/(5x² - 7) | Ratio of leading coefficients: 3/5 |
| Numerator degree lower | (4x + 1)/(x² - 3) | 0 |
| Numerator degree higher | (x³ + 1)/(2x²) | Infinity (limit does not exist as a finite number) |
Three cases for limits of rational functions as x approaches infinity. Dominant-term analysis resolves all three.
Building fluency with limits and other calculus methods takes consistent practice across varied problem types. The subject calculators hub provides tools for calculus and other quantitative university subjects. For exam-level practice with immediate feedback, the university resources hub links to additional materials. Students working through calculus or related subjects benefit from guided problem-solving sessions available via the AI tutor:
Key Takeaways
- Solving limits follows a three-tier method: direct substitution first, then algebraic manipulation (factoring and canceling) if the result is 0/0, then L’Hôpital’s rule if factoring is not possible.
- The 0/0 result from substitution is an indeterminate form, not a final answer. It signals that the numerator and denominator share a common factor that must be canceled before the limit can be evaluated.
- A function can be undefined at a point and still have a well-defined limit there. The limit describes the approach, not the value at the point itself.
- For the two-sided limit to exist, the left-hand and right-hand limits must both exist and be equal. Piecewise functions and absolute-value expressions require checking both directions.
- Limits at infinity for rational functions use the dominant-term method: divide by the highest power of x, then let lower-degree terms collapse to zero.
- L’Hôpital’s rule applies only after confirming an indeterminate form. Using it on a determinate limit (where substitution would have worked) produces a wrong answer.
- Practice worked examples by hand and without a calculator, because university exams test algebraic manipulation under time pressure, not just the ability to check answers on a graph.
Limits appear across the full calculus sequence: they define the derivative, the integral, and continuity. Mastering the three-tier method here pays forward into every later topic. For exam preparation strategies that apply across calculus and other quantitative subjects, see the guide on how to revise for a maths exam, which covers error logs and spaced problem banks. For hypothesis testing in statistics, another subject-mastery worked example, see how to solve hypothesis testing. The matrix multiplication worked example covers the parallel step-by-step approach for linear algebra. Students who also want to sharpen exam technique under time pressure can find timing and triage guidance at exam time management.
Subject Calculators
Explore quantitative tools for calculus, statistics, economics, and other university subjects. Run calculations alongside your worked examples to verify answers and build intuition.


