Calc 1 · Limits and continuity
Limits practice problems with answers
Limits are the first big unit in Calculus 1, and almost every limit problem starts the same way: plug the number in and see what you get. This page explains what a limit really means, gives you a flowchart for what to do after you plug in, works seven examples step by step, and ends with 17 practice problems that check your answers (numbers, fractions, DNE or infinity) as you go.
What a limit means: where the function is heading, not where it is
the limit as x approaches a of f(x) = L says: as x gets closer and closer to a (from both sides, without ever landing on a), the outputs f(x) get closer and closer to L. The value f(a) itself is ignored. It might equal L, it might be something else, or it might not exist at all.
A table of values says the same thing. Walk toward x = 2 from both sides and watch the outputs:
| x | 1.9 | 1.99 | 1.999 | 2 | 2.001 | 2.01 | 2.1 |
|---|---|---|---|---|---|---|---|
| f(x) | 3.9 | 3.99 | 3.999 | 1 | 4.001 | 4.01 | 4.1 |
Both sides close in on 4, so the limit as x approaches 2 of f(x) = 4. A table is great for building intuition, but it is not a proof, and on a test you will usually need algebra. The rest of this page is that algebra.
The plug-in-first flowchart
Use this every time. Step 1 is always the same. What you get from step 1 tells you which branch to take.
- Step 1: plug in x = a. (For x → ±∞, skip to the last branch.)
- You get a real number, like 5That is the limit, as long as the function is continuous there (polynomials, roots in their domain, sin, cos, eˣ and fractions with a nonzero bottom all are). Piecewise function? Use the next-to-last branch instead.
- You get 0/0Indeterminate. The limit could be anything, so simplify, then plug in again. Try, in this order: factor and cancel; multiply by the conjugate if there is a square root; combine fractions if there are fractions inside fractions; known trig limits if there is sin or cos.
- You get a nonzero number over 0, like 7/0For the rational functions here, check the sign from each side. Each side may head to ∞ or −∞, giving a vertical asymptote. If the two sides disagree, the two-sided limit does not exist.
- It is a piecewise function, or has |x − a|Find the left and right limits separately. Equal: that is the limit. Different: DNE.
- x → ∞ or x → −∞Compare degrees, or divide by the highest power of x. Watch the sign of √(x²) when x → −∞.
Two special tools sit outside the flowchart: the squeeze theorem, for wiggly functions like x² sin(1/x), and L’Hôpital’s rule, a derivative shortcut for 0/0 that many courses only allow later.
When you get 0/0: four ways to simplify
0/0 means the top and bottom both approach zero. It does not prove there is a common factor. Try factoring, a conjugate, combining fractions or a known trig limit; cancel only when you have found a genuine common factor. A limit never uses x = a itself.
1. Factor and cancel
Best for polynomials. If plugging in a gives 0, then (x − a) is a factor.
Example 1 the limit as x approaches 2 of (x² + x − 6)/(x − 2)
Plug in: (4 + 2 − 6)/(2 − 2) = 0/0. Branch: simplify.
- Factor the top: x² + x − 6 = (x − 2)(x + 3). Check: (x − 2)(x + 3) = x² + x − 6.
- the limit as x approaches 2 of (x − 2)(x + 3)/(x − 2) = the limit as x approaches 2 (x + 3) Cancel x − 2. Keep writing “lim” until you actually plug in.
- Plug in: 2 + 3 = 5.
Answer: 5
Check with numbers: at x = 1.999 the original fraction is 4.999, and at x = 2.001 it is 5.001.
2. Multiply by the conjugate
Best when a square root is added to or subtracted from something. The conjugate of √A − B is √A + B, and (√A − B)(√A + B) = A − B², which gets rid of the root.
Example 2 the limit as x approaches 5 of (√(x + 4) − 3)/(x − 5)
Plug in: (√9 − 3)/0 = 0/0. There is a root, so use the conjugate.
- Multiply top and bottom by √(x + 4) + 3.
- Top: (√(x + 4))² − 3² = x + 4 − 9 = x − 5. Leave the bottom factored: (x − 5)(√(x + 4) + 3).
- Cancel x − 5: the limit as x approaches 5 of 1/(√(x + 4) + 3).
- Plug in: 1/(3 + 3) = 1/6.
Answer: 1/6
Check with numbers: at x = 5.001 the original fraction is about 0.166662, close to 1/6.
3. Combine fractions
Best for a fraction inside a fraction. Get one common denominator on top first; the troublesome factor then shows up.
Quick example: the limit as x approaches 3 of (1/x − 1/3)/(x − 3). Plugging in gives 0/0. The top is (3 − x)/(3x) = −(x − 3)/(3x). Dividing by x − 3 leaves −1/(3x), and plugging in gives −1/9.
4. Use the two known trig limits
Both facts are worked out in OpenStax Section 2.3 (the first one with the squeeze theorem). Learn them cold, with x in radians:
- the limit as x approaches 0 of sin x / x = 1
- the limit as x approaches 0 of (1 − cos x)/x = 0
The rule is about matching: whatever is inside the sine must also be on the bottom. sin(4x)/(4x) → 1, but sin(4x)/x → 4.
Example 3 the limit as x approaches 0 of sin(4x)/sin(2x)
Plug in: 0/0. There is sine on top and bottom, so build matching sin θ/θ pieces.
- Multiply and divide to match: sin(4x)/sin(2x) = [sin(4x)/(4x)] · [(2x)/sin(2x)] · (4x)/(2x).
- (4x)/(2x) = 2 for x ≠ 0.
- As x → 0: sin(4x)/(4x) → 1 and (2x)/sin(2x) → 1.
- Limit = 1 · 1 · 2 = 2.
Answer: 2
Check with numbers: at x = 0.001 the ratio is 1.999996.
Nonzero over 0: infinite limits and vertical asymptotes
For the rational functions here, plugging in might give something like 7/0. The bottom shrinks toward zero while the top stays near 7, so the fraction gets huge. Check the sign on each side; it can differ.
Example 4 the limit as x approaches 3 of (x + 2)/(x − 3)
Plug in: 5/0. Nonzero over 0: check each side.
- From the left (x = 2.999): top ≈ 5, bottom = −0.001. Positive ÷ tiny negative, so the limit as x approaches 3 from the left of (x + 2)/(x − 3) = −∞.
- From the right (x = 3.001): top ≈ 5, bottom = +0.001. So the limit as x approaches 3 from the right of (x + 2)/(x − 3) = ∞.
- The sides disagree, so the two-sided limit does not exist. The line x = 3 is a vertical asymptote.
Answer: DNE (−∞ from the left, ∞ from the right)
If both sides had gone to ∞, as with 1/(x − 3)², you would write the limit as ∞. That is a description of how it fails to exist, not a number. Check your instructor’s convention, since some want “DNE” for every infinite limit.
One-sided limits, and the three ways a limit fails to exist
the limit as x approaches a from the left of f(x) uses only x-values to the left of a (smaller than a), and the limit as x approaches a from the right of f(x) uses only values to the right. The two-sided limit exists exactly when both one-sided limits exist and are equal. Here are the three classic ways that fails:
Piecewise functions
The jump graph is this function:
f(x) = x + 1 if x < 1, and f(x) = x² + 3 if x ≥ 1.
To find the limit as x approaches 1 of f(x), use the piece that applies on each side. From the left, x + 1 → 2. From the right, x² + 3 → 4. Since 2 ≠ 4, the limit does not exist, even though f(1) = 4 is perfectly well defined. If the two pieces had met at the same height, the limit would be that height.
Limits at infinity and horizontal asymptotes
As x → ∞ or x → −∞, you are asking what happens far out to the right or left. For a fraction of polynomials, only the highest-power terms matter in the end.
| Degrees | Limit as x → ±∞ | Example |
|---|---|---|
| Bottom bigger | 0 (horizontal asymptote y = 0) | (5x + 1)/(x² − 4) → 0 |
| Equal | Ratio of leading coefficients | (6x² + x)/(2x² − 7) → 6/2 = 3 |
| Top bigger | ∞ or −∞ (no horizontal asymptote); use the leading terms for the sign | (x³ + 1)/(x² + 5) → ∞ as x → ∞ |
Why it works: divide by the highest power on the bottom. For (6x² + x)/(2x² − 7), divide every term by x²: (6 + 1/x)/(2 − 7/x²). As x grows, 1/x and 7/x² go to 0, leaving 6/2 = 3. This method also works on things that are not polynomials, like square roots, where the shortcut table does not apply directly.
The square-root sign trap at −∞
√(x²) is |x|, not x. For positive x that makes no difference, but for x → −∞, |x| = −x, and forgetting that flips the sign of your answer.
Example 5 the limit as x approaches negative infinity of (2x + 1)/√(x² + 3)
x → −∞, so go to the last branch: divide by the highest power, carefully.
- Pull x² out of the root: √(x² + 3) = √(x²) · √(1 + 3/x²) = |x| √(1 + 3/x²).
- x is negative here, so |x| = −x. The bottom is −x √(1 + 3/x²).
- Divide the top by x as well: (2x + 1)/(−x √(1 + 3/x²)) = (2 + 1/x)/(−√(1 + 3/x²)).
- As x → −∞: (2 + 0)/(−√1) = −2.
Answer: −2 (and the limit as x → ∞ is +2)
Sanity check: the bottom is a square root, so it is always positive, and the top 2x + 1 is negative for big negative x. Negative ÷ positive must be negative. At x = −100,000 the value is −1.99999.
The squeeze theorem
If g(x) ≤ f(x) ≤ h(x) near a, and g and h both head to the same limit L, then f is trapped and must head to L too. Use it when a wiggly factor like sin(1/x) or cos(1/x) has no limit of its own, but it is multiplied by something going to 0.
Example 6 the limit as x approaches 0 of x² sin(1/x)
Plug in: x = 0 makes 1/x undefined, and sin(1/x) has no limit at 0. Factoring will not help. Squeeze it.
- Sine is always between −1 and 1: −1 ≤ sin(1/x) ≤ 1 for x ≠ 0.
- Multiply by x², which is positive for x ≠ 0, so the inequalities keep their direction: −x² ≤ x² sin(1/x) ≤ x².
- the limit as x approaches 0 of (−x²) = 0 and the limit as x approaches 0 of x² = 0.
- By the squeeze theorem, the limit as x approaches 0 of x² sin(1/x) = 0.
Answer: 0
Continuity: the three-part check
A function f is continuous at x = a when all three of these are true:
- f(a) is defined. There is a filled-in point.
- the limit as x approaches a of f(x) exists. Both sides head to the same finite value.
- They are equal: the limit as x approaches a of f(x) = f(a).
The graph at the top of this page fails part 3 (the limit is 4 but f(2) = 1). The jump fails part 2. A plain hole fails part 1. Continuity is also why plugging in works: for a continuous function, the limit is just f(a).
Example 7 Find k so that f is continuous everywhere: f(x) = x² − k for x < 3, and f(x) = kx + 1 for x ≥ 3.
Both pieces are polynomials, so the only risky spot is the seam at x = 3.
- Left limit: the limit as x approaches 3 from the left of (x² − k) = 9 − k.
- Right limit, and f(3): the limit as x approaches 3 from the right of (kx + 1) = 3k + 1 = f(3).
- For continuity they must match: 9 − k = 3k + 1, so 8 = 4k.
- k = 2.
Answer: k = 2
Check: with k = 2, the left piece gives 9 − 2 = 7 and the right piece gives 3(2) + 1 = 7 at x = 3. ✓
L’Hôpital’s rule, as a check
Later in Calculus 1 you will learn L’Hôpital’s rule. If the top and bottom both tend to 0 or both tend to infinity, they are differentiable near the point, and the bottom derivative is nonzero there, then the limit as x approaches a of f(x)/g(x) = the limit as x approaches a f′(x)/g′(x), provided that second limit exists or tends to ±∞. You take the derivative of the top and of the bottom separately (not the quotient rule).
Check Example 1 with it: the derivative of x² + x − 6 is 2x + 1, and the derivative of x − 2 is 1. At x = 2 that gives 5/1 = 5, which matches.
A warning: many Calculus 1 courses test limits before derivatives and require the algebraic methods above, so L’Hôpital might earn zero credit on a limits exam. Using it on sin x / x is also circular, because the derivative of sin x is itself proved using that limit. Learn the algebra first and treat L’Hôpital as a way to check your answer.
Common exam traps
| Trap | Wrong | Right |
|---|---|---|
| Cancelling something that is not a factor | (x + sin x)/x: “cancel the x” to get sin x, so the limit is 0 | Split it: 1 + sin x / x → 1 + 1 = 2. You can only cancel factors (things multiplied), never terms (things added). |
| Writing “= 0/0” | lim … = 0/0 = (x + 3) = 5 | “Substituting gives 0/0, so simplify.” 0/0 is a signal, not a value, and it never goes in a chain of equals signs. |
| Dropping “lim” too early | (x − 2)(x + 3)/(x − 2) = x + 3 = 5 | Keep writing the limit as x approaches 2 on every line until the line where you plug in. |
| Forgetting √(x²) = |x| | √(x² + 3) ≈ x as x → −∞, giving +2 in Example 5 | √(x²) = |x| = −x for negative x, giving −2. |
| Mismatched trig limit | sin(5x)/x → 1 | sin(5x)/x = 5 · sin(5x)/(5x) → 5. |
| Saying ∞ when the sides disagree | (x + 2)/(x − 3) → ∞ as x → 3 | −∞ from the left, ∞ from the right, so the limit does not exist. |
| Using f(a) as the limit | f(2) = 1, so the limit is 1 | The limit ignores f(2). Look at where the graph is heading: 4. |
Practice problems with answers
17 problems mixing every technique on this page: factoring, conjugates, combining fractions, trig limits, one-sided and infinite limits, limits at infinity, the squeeze theorem, piecewise continuity, and four “which technique?” questions. Type a number, a fraction like 3/5, DNE, infinity or -infinity. Each answer was checked numerically. Press Enter to check, open a hint if you are stuck, and try again as often as you like.
0 of 17 solved
FAQ
What is a limit in calculus?
A limit describes the value a function heads toward as x gets closer and closer to a number, from both sides. It does not care what happens exactly at that number. The function can be undefined there, or defined as something else, and the limit can still exist.
What does 0/0 mean when finding a limit?
0/0 is called an indeterminate form. It is not an answer. It means plugging in did not tell you anything yet, so you simplify (factor and cancel, multiply by a conjugate, combine fractions, or use a known trig limit) and then plug in again.
When does a limit not exist?
A two-sided limit does not exist when the left-hand and right-hand limits disagree (a jump), when the function grows without bound (we often write ∞ or −∞ to describe how), or when it oscillates without settling down, like sin(1/x) near 0.
How do you find limits at infinity?
For a fraction of polynomials, compare degrees. A bigger degree on the bottom gives 0. Equal degrees give the ratio of the leading coefficients. A bigger degree on top means there is no finite limit. For an expression with square roots, factor out the highest power carefully and remember that √(x²) = |x|.
Can I use L’Hôpital’s rule on limits problems?
Use it for a 0/0 or ∞/∞ form when the top and bottom are differentiable near the point, the bottom derivative is nonzero there, and the derivative ratio has a limit (finite or infinite). Many Calculus 1 courses expect algebraic methods on a limits test, so check what your instructor allows. L’Hôpital’s rule can help check an answer found by algebra.
Keep practicing
Try 3 days free3 days free, no card needed.
Sources
Definitions, the trig limits, the squeeze theorem and the continuity test were checked against this free textbook. Every worked example and practice answer was checked numerically by evaluating the function closer and closer to the point.
- OpenStax, Calculus Volume 1, Section 2.2 The Limit of a Function (one-sided and infinite limits)
- OpenStax, Calculus Volume 1, Section 2.3 The Limit Laws (factoring, conjugates, the squeeze theorem and the trig limits)
- OpenStax, Calculus Volume 1, Section 2.4 Continuity
- OpenStax, Calculus Volume 1, Section 4.6 Limits at Infinity and Asymptotes and Section 4.8 L’Hôpital’s Rule
- LibreTexts, L’Hôpital’s Rule (conditions for using the derivative ratio)