How to Solve Limits: Step-by-Step Worked Examples
Subject Mastery

How to Solve Limits: Step-by-Step Worked Examples

By Jonas28 June 202611 min read
Key Takeaways
How to solve limits follows a three-tier method: try direct substitution first, then algebraic manipulation (usually factoring) if you get 0/0, then differentiation via L'Hopital's rule if factoring fails.
The 0/0 result from substitution is not the answer. It signals an indeterminate form that requires the next technique.
Limits describe what a function approaches, not what it equals at a point. A limit can exist even when the function is undefined at that exact input.
One-sided limits must agree for the two-sided limit to exist. Piecewise and absolute-value functions are where this matters most in practice.
Limits at infinity use the dominant-term method: divide by the highest power of x and let lower-order terms collapse to zero.

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.

How a Limit Works: Approaching from Both SidesA curve approaches a value L as x approaches point a from the left and from the right. An open circle at the point shows the function is undefined there, but the limit still equals L.The Limit: Approaching Without ArrivingxyLafrom leftfrom rightundefined hereThe limit exists and equals L even though f(a) is not defined at x = a
Both the left-hand and right-hand approaches reach L. The open circle shows the function is undefined at x = a, yet the limit still equals L.

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:

Notationlim(x to a) f(x)
MeaningThe two-sided limit equals L
Directionx approaches a from both sides
Notationlim(x to a-) f(x)
MeaningThe left-hand limit
Directionx approaches a from values below a
Notationlim(x to a+) f(x)
MeaningThe right-hand limit
Directionx approaches a from values above a
Notationlim(x to inf) f(x)
MeaningLimit at positive infinity
Directionx 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.

Three-Tier Limit-Solving MethodA vertical decision flowchart. Tier 1: try direct substitution. If finite, done. If 0/0 or infinity/infinity, proceed to Tier 2: factor and cancel. If still indeterminate, proceed to Tier 3: L'Hopital's rule.Three-Tier Limit-Solving MethodTier 1: Direct SubstitutionPlug x = a into f(x)Gets a finite number? Done.0/0 or inf/inf?Tier 2: Algebraic ManipulationFactor numerator and denominatorCancel common factor, substitute againstill indeterminate?Tier 3: L’Hôpital’s RuleDifferentiate numerator and denominatorTake limit of f'(x)/g'(x)LIMIT FOUNDstate the valueStart at Tier 1. Move down only when the current tier fails.
The three-tier method covers every standard limit in first and second-year calculus. Always begin with direct substitution.

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.

The Direct Substitution Test

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

1

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.

2

Apply direct substitution

f(3) = 2(3)² - 5(3) + 1 = 2(9) - 15 + 1 = 18 - 15 + 1 = 4.

3

Confirm the result

The substitution produced a finite number (4), not an indeterminate form. No further steps are needed.

4

State the answer

lim(x to 3) (2x² - 5x + 1) = 4.

4
lim(x to 3) (2x² - 5x + 1)
Direct substitution gives the answer in one step for any continuous function

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

1

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.

2

Factor the numerator

x² - 4 is a difference of squares: (x - 2)(x + 2). The denominator is already factored as (x - 2).

3

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.

4

Substitute into the simplified expression

Now substitute x = 2 into (x + 2): 2 + 2 = 4.

5

State the limit

lim(x to 2) (x² - 4)/(x - 2) = 4. The function is undefined at x = 2, but the limit equals 4.

The Cancellation Error to Avoid

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.

Graph of (x² - 4)/(x - 2) = x + 2 with a Hole at (2, 4)A straight line representing y = x + 2 with an open circle at coordinates (2, 4) indicating the function is undefined at that point, while the limit from both sides equals 4.f(x) = (x² - 4)/(x - 2): The Hole at x = 2xy024Hole at (2, 4)function undefined herelimit = 4Graph of y = x + 2 for all xexcept x = 2, where the function is undefined
The function behaves exactly like y = x + 2 at every point except x = 2. The open circle at (2, 4) marks the hole; the limit from both sides equals 4.

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.

Mistake0/0 treated as final
What students write0/0 (stopping here)
What they should writeFactor, cancel, then substitute
MistakeHole mistaken for DNE
What students writeLimit does not exist
What they should writeThe limit exists; find it by canceling
MistakeOne-sided mismatch ignored
What students writeLimit = [one value]
What they should writeCheck both sides; if unequal, DNE
MistakeL'Hopital on a determinate
What students writef'(a)/g'(a) from any limit
What they should writeOnly 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 comparisonNumerator degree equals denominator
Example(3x² + 2x)/(5x² - 7)
Limit at infinityRatio of leading coefficients: 3/5
Degree comparisonNumerator degree lower
Example(4x + 1)/(x² - 3)
Limit at infinity0
Degree comparisonNumerator degree higher
Example(x³ + 1)/(2x²)
Limit at infinityInfinity (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.

Dominant Term Method for Limits at InfinityThree fraction expressions side by side. Lower-order terms fade out as x approaches infinity, leaving the ratio of leading coefficients which equals the limit.Dominant Term Method: x Divide by highest power of x, watch lower terms collapselim (3x² + 2x) / (5x² - 7) divide through by x²= lim (3 + 2/x) / (5 - 7/x²)As x : 2/x 0 and 7/x² 03 / 5 = 0.6Limit = ratio of leading coefficientsLower-degree terms fade. Highest-degree terms decide the limit.
Dividing by the highest power exposes the dominant behavior. Lower-degree terms shrink toward zero, leaving only the leading coefficient ratio.

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

  1. 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.
  2. 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.
  3. 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.
  4. 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.
  5. 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.
  6. 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.
  7. 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.

Open Subject Calculators

Related articles

Try a free AI tutoring session