Limits are the foundation of all of calculus. This beginner-friendly guide covers everything from the intuitive definition to L'Hopital's rule and limits at infinity.
Frequently asked questions
What does a limit mean in calculus?
A limit is the value a function gets closer and closer to as x approaches a certain number. It describes the trend near the point, so the limit can exist even when the function is undefined at that point or has a different value there.
When does a limit not exist?
A limit fails to exist when the left-hand and right-hand limits are different, when the function grows without bound (like 1/x² near 0, which goes to infinity), or when it oscillates forever without settling on one value. In each case, the two-sided limit is reported as does not exist.
What do you do when direct substitution gives 0/0?
The form 0/0 is indeterminate, so the limit still needs work. Try factoring and canceling, rationalizing, or L'Hopital's rule. For (x² − 4)/(x − 2), factor the top into (x − 2)(x + 2), cancel, and the limit as x → 2 is 4.
How do you know when to use L'Hopital's rule?
Use it only when direct substitution gives 0/0 or ∞/∞. Then take the derivative of the top and the derivative of the bottom separately (not the quotient rule) and try the limit again. If the form is not indeterminate, the rule does not apply.
How do you find the limit of a rational function at infinity?
Compare the degrees of the top and bottom. If the bottom's degree is larger, the limit is 0. If the degrees are equal, the limit is the ratio of the leading coefficients. If the top's degree is larger, there is no finite limit.
A limit describes what value a function approaches as the input approaches a certain number. We write lim(x→a) f(x) = L to mean that as x gets closer and closer to a (from both sides), the output f(x) gets closer and closer to L.
The Key Insight
Crucially, the limit is about what happens near a, not necessarily at a. The function might not even be defined at a, and that is perfectly fine.
Example 1 — A removable discontinuity
For example, consider f(x) = (x² − 1)/(x − 1). This function is undefined at x = 1 (division by zero), but if you plug in values close to 1 — like 0.9, 0.99, 1.01, 1.1 — the outputs approach 2. So lim(x→1) (x² − 1)/(x − 1) = 2.
Algebraically, you can factor the numerator: (x + 1)(x − 1)/(x − 1) = x + 1 for x ≠ 1, and plugging in x = 1 gives 2.
Answerlim(x→1) (x² − 1)/(x − 1) = 2
The Takeaway
This idea — analyzing behavior near a point — is the conceptual foundation upon which derivatives and integrals are built. Understanding limits well makes the rest of calculus much more accessible.
One-Sided Limits
Definition — One-Sided Limits
Sometimes a function behaves differently depending on which direction you approach from. A left-hand limitlim(x→a⁻) f(x) examines values of x approaching a from below (x < a), while a right-hand limitlim(x→a⁺) f(x) examines values approaching from above (x > a). The two-sided limit lim(x→a) f(x) exists only if both one-sided limits exist and are equal.
Example 1 — A piecewise function
Consider a piecewise function: f(x) = 2x + 1 when x < 3, and f(x) = x² when x ≥ 3.
The left-hand limit at x = 3 is lim(x→3⁻) (2x + 1) = 7.
The right-hand limit is lim(x→3⁺) x² = 9.
AnswerSince 7 ≠ 9, the two-sided limit at x = 3 does not exist.
One-sided limits at vertical asymptotes
One-sided limits also appear with vertical asymptotes: for f(x) = 1/(x − 2), as x → 2⁺ the function goes to +∞, and as x → 2⁻ it goes to −∞.
The Takeaway
Understanding one-sided limits is essential for analyzing continuity and for piecewise functions that appear frequently in applied mathematics.
Limit Laws and Properties
Once you know individual limits exist, you can combine them using limit laws. These laws allow you to break complex limits into simpler pieces. The main laws are:
The Rule — Sum Law
lim(x→a) [f(x) + g(x)] = lim f(x) + lim g(x)
The Rule — Difference Law
lim(x→a) [f(x) − g(x)] = lim f(x) − lim g(x)
The Rule — Product Law
lim(x→a) [f(x) · g(x)] = lim f(x) · lim g(x)
The Rule — Quotient Law
lim(x→a) [f(x)/g(x)] = lim f(x) / lim g(x), provided the denominator limit is not zero.
The Rule — Power Law
lim(x→a) [f(x)]ⁿ = [lim f(x)]ⁿ
The Rule — Constant Multiple Law
lim(x→a) [c · f(x)] = c · lim f(x)
The Key Insight
These laws justify the technique of direct substitution: for any polynomial or rational function (where the denominator is nonzero at a), you can simply plug in x = a to find the limit.
Example 1 — Direct substitution
For instance, lim(x→2) (3x² + x − 1) = 3(4) + 2 − 1 = 13.
Answer13
The Takeaway
Limit laws are the algebraic foundation that makes most limit calculations straightforward.
Evaluating Limits Algebraically
When direct substitution yields a valid number, you are done — that number is the limit. But when substitution gives an undefined expression like 0/0, you need algebraic manipulation. The most common techniques are:
Rationalizing: For lim(x→0) (√(x + 4) − 2)/x, multiply numerator and denominator by √(x + 4) + 2 to get (x + 4 − 4) / (x(√(x + 4) + 2)) = 1/(√(x + 4) + 2).
At x = 0 this gives 1/4.
Answer1/4
Example 3 — Simplifying complex fractions
Simplifying complex fractions: For lim(x→0) ((1/(x + 2)) − 1/2)/x, combine the fractions in the numerator over a common denominator, simplify, and then substitute.
The Rule — Fundamental Trig Limit
Using trig identities:lim(x→0) sin(x)/x = 1 is a fundamental result used in many limits.
The Takeaway
Solver AI handles all these techniques and shows each algebraic step, making it an excellent tool for learning the methods and checking your work.
Indeterminate Forms and L'Hopital's Rule
Definition — Indeterminate Form
When direct substitution gives 0/0 or ∞/∞, you have an indeterminate form. These are called indeterminate because the limit could be any value — you cannot determine it from the form alone. Other indeterminate forms include 0 · ∞, ∞ − ∞, 0⁰, 1^∞, and ∞⁰.
The Rule — L'Hopital's Rule
L'Hopital's rule states that if lim(x→a) f(x)/g(x) gives 0/0 or ∞/∞, then lim(x→a) f(x)/g(x) = lim(x→a) f'(x)/g'(x), provided the latter limit exists.
Important warnings: L'Hopital's rule only applies to 0/0 or ∞/∞ forms. It does not apply to forms like 1/0 or 5/3. Always verify you have an indeterminate form before applying the rule, and differentiate the numerator and denominator separately — do not use the quotient rule.
Limits at Infinity
Definition — Limit at Infinity
Limits at infinity describe the behavior of a function as x grows without bound. We write lim(x→∞) f(x) = L to mean that f(x) approaches L as x increases.
Rational functions at infinity
For rational functions (polynomial divided by polynomial), the behavior depends on the degrees of the numerator and denominator.
Case
Condition
Result
Why
1
degree of numerator < degree of denominator
0
If the degree of the numerator is less than the degree of the denominator, the limit is 0.
2
degrees are equal
ratio of leading coefficients
If the degrees are equal, the limit is the ratio of the leading coefficients.
3
degree of numerator > degree of denominator
±∞
If the numerator's degree is greater, the limit is ±∞.
Example 1 — Equal degrees
For example, lim(x→∞) (3x² + x)/(5x² − 2) = 3/5 because both have degree 2.
Answer3/5
Divide by the highest power of x
The technique is to divide every term by the highest power of x in the denominator.
Simplify each term
For lim(x→∞) (2x + 1)/(x² + 3), divide by x²: (2/x + 1/x²)/(1 + 3/x²) → 0/1 = 0.
The Key Insight
For exponential functions, remember that eˣ grows faster than any polynomial, so lim(x→∞) p(x)/eˣ = 0 for any polynomial p(x). Similarly, ln(x) grows slower than any positive power of x.
The Takeaway
These comparisons are fundamental in calculus and appear throughout the study of series convergence.