Skip to content

Understanding Limits in Calculus (with Worked Examples)

Learn limits in calculus with clear, step-by-step worked examples covering substitution, factoring, and limits at infinity. A friendly guide for students.

If calculus has a “front door,” it is the idea of a limit. Before you ever take a derivative or evaluate an integral, you need to understand what it means for a function to approach a value. The good news is that limits are far more intuitive than the formal symbols make them look. At their heart, they answer one simple question: “As the input gets closer and closer to some number, where is the output heading?”

In this guide you will learn what limits in calculus actually mean, how to read limit notation, and the three workhorse techniques you will use over and over: direct substitution, factoring, and rationalizing. We will also cover one-sided limits, limits at infinity, and the most common mistakes students make. Every example is fully worked, with every step shown, so you can follow the reasoning rather than memorize a recipe.

Want to check your work as you go? You can verify any answer in this article with our free calculus solver, which walks through limits, derivatives, and integrals step by step. Let’s begin.

What Is a Limit in Calculus?

A limit describes the value that a function gets close to as its input gets close to some target. We write it like this:

$$\lim_{x \to a} f(x) = L$$

You read this out loud as: “The limit of \(f(x)\), as \(x\) approaches \(a\), equals \(L\).” The key word is approaches. We are not asking what happens at \(x = a\). We are asking what happens as \(x\) sneaks up on \(a\) from both sides without necessarily ever landing on it.

This distinction is the whole point. A function might not even be defined at \(x = a\), yet still have a perfectly clear limit there. Imagine driving toward a town: even if there is a pothole right at the city limit sign, you can still tell exactly which town you are arriving at by watching where the road leads.

Key idea

The limit is about the journey, not the destination. The actual value \(f(a)\) can be different from the limit, or undefined entirely, and the limit can still exist.

A Numerical Way to “See” a Limit

One of the clearest ways to understand a limit is to build a table of values that march toward the target from both directions. Consider this function:

$$f(x) = \frac{x^2 - 4}{x - 2}$$

Notice that plugging in \(x = 2\) gives \(\frac{0}{0}\), which is undefined. So the function has a “hole” at \(x = 2\). But what value is it heading toward? Let’s watch the outputs as \(x\) closes in on 2.

\(x\) approaches 2 from the left\(f(x)\)\(x\) approaches 2 from the right\(f(x)\)
1.93.92.14.1
1.993.992.014.01
1.9993.9992.0014.001

From both sides, the outputs are squeezing toward 4. Even though \(f(2)\) does not exist, we can confidently say:

$$\lim_{x \to 2} \frac{x^2 - 4}{x - 2} = 4$$

A table like this builds intuition, but it is slow and you can never be 100% sure with numbers alone. That is why we develop algebraic techniques. We will solve this exact limit algebraically in Example 2.

How to Read and Use Limit Notation

Limit notation packs a lot of meaning into a few symbols. Here is a quick reference for the pieces you will see most often.

NotationMeaning
\(\lim\limits_{x \to a} f(x)\)The limit as \(x\) approaches \(a\) from both sides
\(\lim\limits_{x \to a^-} f(x)\)The left-hand limit: \(x\) approaches \(a\) from values smaller than \(a\)
\(\lim\limits_{x \to a^+} f(x)\)The right-hand limit: \(x\) approaches \(a\) from values larger than \(a\)
\(\lim\limits_{x \to \infty} f(x)\)The end behavior: where \(f(x)\) heads as \(x\) grows without bound

Here is a rule that ties the one-sided limits together, and it is one you will use constantly:

A two-sided limit exists only when both one-sided limits exist and agree. In symbols, \(\lim\limits_{x \to a} f(x) = L\) if and only if \(\lim\limits_{x \to a^-} f(x) = L\) and \(\lim\limits_{x \to a^+} f(x) = L\). If the left and right limits disagree, the two-sided limit does not exist.

Technique 1: Direct Substitution

For most “nice” functions, finding a limit is wonderfully easy: just plug in the number. Polynomials, and many other functions, are continuous, which means there are no breaks, holes, or jumps. For continuous functions, the limit equals the function value:

$$\lim_{x \to a} f(x) = f(a)$$

Always try substitution first. If it gives a clean number, you are done. If it gives something undefined like \(\frac{0}{0}\), that is a signal to switch tactics.

Worked Example 1: A Polynomial Limit

Evaluate:

$$\lim_{x \to 3} \left(2x^2 - 4x + 1\right)$$

Step 1 — Recognize the function type. This is a polynomial, and every polynomial is continuous everywhere. So direct substitution is allowed.

Step 2 — Substitute \(x = 3\).

$$2(3)^2 - 4(3) + 1$$

Step 3 — Simplify the power first.

$$2(9) - 4(3) + 1$$

Step 4 — Multiply.

$$18 - 12 + 1$$

Step 5 — Add and subtract left to right.

$$18 - 12 = 6, \qquad 6 + 1 = 7$$
Answer\(\displaystyle \lim_{x \to 3}\left(2x^2 - 4x + 1\right) = 7\)

Study tip

Make substitution a habit. The vast majority of textbook limits resolve on the first try. Only when you hit an “indeterminate form” do you need the heavier tools below.

Technique 2: Factoring to Cancel a Trouble Spot

What happens when substitution gives \(\frac{0}{0}\)? This is called an indeterminate form. It does not mean the limit fails to exist; it means the algebra is hiding the answer, and we need to simplify. With rational functions (polynomial over polynomial), the most common fix is factoring the numerator and denominator and canceling the shared factor that is causing the zero.

Common mistake

Seeing \(\frac{0}{0}\) and writing “the limit does not exist” or “the limit equals 0.” Neither is automatically true. \(\frac{0}{0}\) is a signal to keep working, not a final answer.

Worked Example 2: Factoring a Difference of Squares

Evaluate the limit from our table earlier:

$$\lim_{x \to 2} \frac{x^2 - 4}{x - 2}$$

Step 1 — Try substitution. Plugging in \(x = 2\):

$$\frac{(2)^2 - 4}{2 - 2} = \frac{4 - 4}{0} = \frac{0}{0}$$

Indeterminate. Time to factor.

Step 2 — Factor the numerator. The expression \(x^2 - 4\) is a difference of squares, since \(4 = 2^2\):

$$x^2 - 4 = (x - 2)(x + 2)$$

Step 3 — Rewrite the fraction.

$$\frac{x^2 - 4}{x - 2} = \frac{(x - 2)(x + 2)}{x - 2}$$

Step 4 — Cancel the common factor \((x - 2)\). This is valid because in a limit \(x\) approaches 2 but never actually equals 2, so \(x - 2\) is never truly zero along the way.

$$\frac{\cancel{(x - 2)}(x + 2)}{\cancel{(x - 2)}} = x + 2$$

Step 5 — Now substitute into the simplified expression.

$$\lim_{x \to 2} (x + 2) = 2 + 2 = 4$$
Answer\(\displaystyle \lim_{x \to 2} \frac{x^2 - 4}{x - 2} = 4\)

This matches the value our table was creeping toward. The algebra confirms the intuition exactly. The original function and the simplified function \(x + 2\) are identical everywhere except at the single hole \(x = 2\), and since limits only care about the approach, they share the same limit.

Want to see this resolved instantly with each step labeled? Drop the expression into our step-by-step limit calculator and compare your work to the full solution.

Technique 3: Rationalizing When Roots Appear

Factoring works beautifully for polynomials, but what if a square root is involved and substitution still gives \(\frac{0}{0}\)? The trick is to multiply by the conjugate. The conjugate of \(\sqrt{A} - B\) is \(\sqrt{A} + B\), and multiplying them uses the difference-of-squares pattern to eliminate the root.

Worked Example 3: Rationalizing the Numerator

Evaluate:

$$\lim_{x \to 0} \frac{\sqrt{x + 4} - 2}{x}$$

Step 1 — Try substitution. With \(x = 0\):

$$\frac{\sqrt{0 + 4} - 2}{0} = \frac{\sqrt{4} - 2}{0} = \frac{2 - 2}{0} = \frac{0}{0}$$

Indeterminate again. Factoring will not help because of the root, so we rationalize.

Step 2 — Multiply by the conjugate over itself. The conjugate of \(\sqrt{x + 4} - 2\) is \(\sqrt{x + 4} + 2\). Multiplying by \(\frac{\sqrt{x+4}+2}{\sqrt{x+4}+2}\) is multiplying by 1, so it does not change the value.

$$\frac{\sqrt{x + 4} - 2}{x} \cdot \frac{\sqrt{x + 4} + 2}{\sqrt{x + 4} + 2}$$

Step 3 — Expand the numerator using \((a - b)(a + b) = a^2 - b^2\). Here \(a = \sqrt{x+4}\) and \(b = 2\):

$$\left(\sqrt{x + 4}\right)^2 - (2)^2 = (x + 4) - 4 = x$$

So the expression becomes:

$$\frac{x}{x\left(\sqrt{x + 4} + 2\right)}$$

Step 4 — Cancel the common factor \(x\). Since \(x \to 0\) but \(x \neq 0\) along the way, this cancellation is valid.

$$\frac{\cancel{x}}{\cancel{x}\left(\sqrt{x + 4} + 2\right)} = \frac{1}{\sqrt{x + 4} + 2}$$

Step 5 — Substitute \(x = 0\) into the simplified form.

$$\frac{1}{\sqrt{0 + 4} + 2} = \frac{1}{\sqrt{4} + 2} = \frac{1}{2 + 2} = \frac{1}{4}$$
Answer\(\displaystyle \lim_{x \to 0} \frac{\sqrt{x + 4} - 2}{x} = \frac{1}{4}\)

The conjugate trick turned a messy root into a clean cancellation. Whenever you see a root minus a number (or a number minus a root) on top of a fraction that gives \(\frac{0}{0}\), reach for the conjugate.

Limits at Infinity: End Behavior

Sometimes we do not ask what happens near a specific point, but what happens as \(x\) grows enormous. These are limits at infinity, and they describe a function’s long-run behavior. For a ratio of polynomials, the reliable method is to divide every term by the highest power of \(x\) in the denominator.

Worked Example 4: A Rational Limit at Infinity

Evaluate:

$$\lim_{x \to \infty} \frac{3x^2 + 2x}{5x^2 - 1}$$

Step 1 — Identify the highest power. The largest power of \(x\) in the denominator is \(x^2\). We divide every single term by \(x^2\).

$$\frac{\dfrac{3x^2}{x^2} + \dfrac{2x}{x^2}}{\dfrac{5x^2}{x^2} - \dfrac{1}{x^2}}$$

Step 2 — Simplify each term.

$$\frac{3 + \dfrac{2}{x}}{5 - \dfrac{1}{x^2}}$$

Step 3 — Apply the key fact about infinity. As \(x \to \infty\), any term of the form \(\frac{\text{constant}}{x}\) or \(\frac{\text{constant}}{x^2}\) shrinks toward 0, because dividing by a gigantic number gives something tiny.

$$\frac{2}{x} \to 0 \qquad \text{and} \qquad \frac{1}{x^2} \to 0$$

Step 4 — Substitute those zeros in.

$$\frac{3 + 0}{5 - 0} = \frac{3}{5}$$
Answer\(\displaystyle \lim_{x \to \infty} \frac{3x^2 + 2x}{5x^2 - 1} = \frac{3}{5}\)

Notice the shortcut hiding here: when the numerator and denominator have the same degree, the limit at infinity is just the ratio of the leading coefficients — here, \(\frac{3}{5}\). It is still worth doing the full division until the shortcut feels automatic.

Degree shortcut for limits at infinity

If the top degree is smaller than the bottom, the limit is \(0\). If they are equal, the limit is the ratio of leading coefficients. If the top degree is larger, the limit is \(+\infty\) or \(-\infty\) (it grows without bound).

One-Sided Limits and When a Limit Doesn’t Exist

Not every limit exists. The most common reason is a jump: the function approaches one value from the left and a different value from the right. This happens often with piecewise functions and with expressions involving absolute value.

Consider the simple sign-style function:

$$f(x) = \frac{|x|}{x}$$

For positive \(x\), \(|x| = x\), so \(f(x) = \frac{x}{x} = 1\). For negative \(x\), \(|x| = -x\), so \(f(x) = \frac{-x}{x} = -1\). Examining the two sides as \(x \to 0\):

$$\lim_{x \to 0^+} \frac{|x|}{x} = 1 \qquad \text{but} \qquad \lim_{x \to 0^-} \frac{|x|}{x} = -1$$

Because the left-hand limit \(-1\) and the right-hand limit \(1\) disagree, the two-sided limit does not exist.

Answer\(\displaystyle \lim_{x \to 0} \frac{|x|}{x}\) does not exist (the one-sided limits differ).

A limit can also fail to exist if the function shoots off to infinity (like \(\frac{1}{x}\) near 0) or oscillates forever without settling. But for everyday homework, mismatched one-sided limits are the case you will meet most.

Why Limits Matter: The Bigger Picture

Limits are not just an opening hurdle; they are the foundation the rest of calculus is built on. Two of the biggest ideas in the subject are defined using limits:

  • The derivative measures an instantaneous rate of change, and it is literally a limit of average rates of change as the interval shrinks to zero: \(\displaystyle f'(x) = \lim_{h \to 0} \frac{f(x + h) - f(x)}{h}\). Once limits make sense, derivatives become far less mysterious. Our guide on How to Find Derivatives: Rules and Examples takes it from there.
  • The definite integral measures accumulated area, and it is defined as the limit of a sum of skinnier and skinnier rectangles. If you want to see how that unfolds, read How to Solve Integrals: A Beginner’s Guide.

Limits even power the rules you will rely on later. The Chain Rule Explained with Examples guide, for instance, builds directly on the limit definition of the derivative. In short, time spent mastering limits pays off through every chapter that follows.

Common Mistakes to Avoid

Watch out for these

  • Treating \(\frac{0}{0}\) as the answer. It is an indeterminate form — a prompt to factor, rationalize, or simplify, not a final value.
  • Confusing the limit with the function value. \(\lim_{x \to a} f(x)\) can exist even when \(f(a)\) is undefined or different.
  • Forgetting to re-substitute after simplifying. Once you cancel the trouble factor, you still need to plug in the target value into the new, cleaner expression.
  • Assuming every limit exists. Always check both sides when there is a jump, an absolute value, or a piecewise rule.
  • Dividing by the wrong power at infinity. Use the highest power in the denominator, and divide every term, top and bottom.

A Quick Strategy Summary

When you face a limit, run through this short checklist. It will resolve the large majority of problems you encounter.

SituationWhat to do
Substitution gives a clean numberYou are done — that number is the limit
Substitution gives \(\frac{0}{0}\) with polynomialsFactor and cancel the shared factor
Substitution gives \(\frac{0}{0}\) with a square rootMultiply by the conjugate, then cancel
\(x \to \infty\) with a polynomial ratioDivide every term by the highest power in the denominator
Possible jump (absolute value, piecewise)Check the left and right limits separately

Practice tip

The fastest way to get comfortable is repetition with feedback. Work a limit by hand, then confirm it and read the worked steps in our calculus solver. When your method matches the tool’s, you know the technique has stuck.

Conclusion

Limits ask a friendly question — “where is this function heading?” — and answering it unlocks all of calculus. Start with direct substitution, and when that produces an indeterminate \(\frac{0}{0}\), reach for factoring or rationalizing to simplify before substituting again. For long-run behavior, divide by the highest power and let the small terms vanish. And always check both sides when a jump might be lurking. With these few tools and a little practice, the limits in your textbook will start to feel routine.

Ready to keep going? Try a problem of your own in our free calculus solver to see each step explained in clear detail, and explore more friendly walkthroughs on the Math Solver AI blog. Every concept you master now makes derivatives and integrals click that much faster.