AP · Calculus AB · Limits

Finding Limits Algebraically

16 min readUpdated November 30, 2026FreeAP Calculus AB, Limits and Continuity

To find a limit algebraically, substitute first. If you get a number, that is the limit. If you get 00\frac{0}{0}, rewrite the expression by factoring, multiplying by a conjugate, combining fractions or using a standard trig limit, then substitute again.

Quick check

  1. What does lim⁡x→af(x)=L\lim_{x \to a} f(x) = L tell you about f(a)f(a)?Show answerHide answer

    Nothing. The limit depends only on values of f(x)f(x) for xx near aa, so f(a)f(a) may differ from LL or be undefined.

  2. Factor x2−x−6x^2 - x - 6.Show answerHide answer

    (x−3)(x+2)(x - 3)(x + 2). The numbers −3-3 and 22 multiply to −6-6 and add to −1-1.

  3. What do you get when you substitute x=3x = 3 into x2−9x−3\dfrac{x^2 - 9}{x - 3}?Show answerHide answer

    00\frac{0}{0}. That is not a value; it is the signal to rewrite the expression before taking the limit.

Know these already? Jump to the practice questions

What you'll be able to do

  • Evaluate limits by direct substitution and the limit laws.
  • Identify a 00\frac{0}{0} form and choose the algebra that clears it.
  • Calculate limits by factoring, multiplying by a conjugate or combining fractions.
  • Apply the limits of sin⁡xx\frac{\sin x}{x} and 1−cos⁡xx\frac{1 - \cos x}{x} as x→0x \to 0, including rescaled versions.
  • Find the limit of a piecewise function where its rule changes.

Key terms

Direct substitution

Evaluating lim⁡x→af(x)\lim_{x \to a} f(x) as f(a)f(a), which is valid when ff is a polynomial, or a rational, root, trig, exponential or log function with aa in its domain.

In plain English
Plug the number in, and if a real number comes out, you are done.
Don't write
A substituted value when the denominator gave 00.

Indeterminate form 00\frac{0}{0}

The result of substituting into a quotient whose numerator and denominator both approach 00.

In plain English
Substitution has told you nothing yet; the limit could be any number, or not exist.
Don't write
"00=0\frac{0}{0} = 0" or "00\frac{0}{0}, so the limit does not exist".

Conjugate

For A−B\sqrt{A} - B, the conjugate is A+B\sqrt{A} + B; their product is A−B2A - B^2, with no root.

In plain English
The same two terms with the middle sign flipped.
Don't write
x+9=x+3\sqrt{x + 9} = \sqrt{x} + 3; a root does not split over a sum.

When can you just substitute?

Learn this: if lim⁡x→af(x)=L\lim_{x \to a} f(x) = L and lim⁡x→ag(x)=M\lim_{x \to a} g(x) = M, then the limit laws give

lim⁡x→a[f(x)±g(x)]=L±M,lim⁡x→acf(x)=cL\lim_{x \to a} \left[f(x) \pm g(x)\right] = L \pm M, \qquad \lim_{x \to a} cf(x) = cL
lim⁡x→af(x)g(x)=LM,lim⁡x→af(x)g(x)=LM when M≠0\lim_{x \to a} f(x)g(x) = LM, \qquad \lim_{x \to a} \frac{f(x)}{g(x)} = \frac{L}{M} \text{ when } M \neq 0

These laws are why direct substitution works for polynomials, and for rational, root, trig, exponential and log functions at any point in their domain. For example, lim⁡x→2x3−4x+1x+3=8−8+15=15\lim_{x \to 2} \dfrac{x^3 - 4x + 1}{x + 3} = \dfrac{8 - 8 + 1}{5} = \dfrac{1}{5}.

So you always substitute first, and the result tells you what to do next:

  • A real number: that is the limit.
  • A nonzero number over 00: there is no finite limit; the function grows without bound near aa (see the note on infinite limits and limits at infinity).
  • 00\frac{0}{0}: the quotient law fails because M=0M = 0, so you rewrite the expression first.

Check yourself

Given lim⁡x→1f(x)=6\lim_{x \to 1} f(x) = 6 and lim⁡x→1g(x)=3\lim_{x \to 1} g(x) = 3, find lim⁡x→1f(x)g(x)+2g(x)\lim_{x \to 1} \dfrac{f(x)}{g(x)} + 2g(x).
Show answerHide answer

63+2(3)=8\frac{6}{3} + 2(3) = 8. The quotient law applies because the denominator's limit, 33, is not 00.

How does factoring clear a 00\frac{0}{0} form?

If a polynomial quotient gives 00\frac{0}{0} at x=ax = a, then x−ax - a is a factor of both the numerator and the denominator, by the factor theorem. Factor both, cancel x−ax - a, and substitute.

lim⁡x→3x2−9x2−x−6=lim⁡x→3(x−3)(x+3)(x−3)(x+2)=lim⁡x→3x+3x+2=65\lim_{x \to 3} \frac{x^2 - 9}{x^2 - x - 6} = \lim_{x \to 3} \frac{(x - 3)(x + 3)}{(x - 3)(x + 2)} = \lim_{x \to 3} \frac{x + 3}{x + 2} = \frac{6}{5}

Canceling is allowed because the limit never uses x=3x = 3. For every x≠3x \neq 3, x−3≠0x - 3 \neq 0, so the two expressions are equal everywhere near 33, and functions that agree near aa have the same limit at aa. The original function still has a hole at x=3x = 3; the limit just reports the height of that hole.

Key idea

Canceling a common factor x−ax - a is valid because the limit never uses x=ax = a itself.

Examiner's eye

Marks go to connected working. Keep lim⁡x→a\lim_{x \to a} on every line until the line where you substitute; without it, your equals signs are false statements.

Check yourself

Find lim⁡x→−1x2+3x+2x+1\lim_{x \to -1} \dfrac{x^2 + 3x + 2}{x + 1}.
Show answerHide answer

11. The numerator is (x+1)(x+2)(x + 1)(x + 2), so the quotient is x+2x + 2 for x≠−1x \neq -1, which heads for 11.

When do you use a conjugate or combine fractions?

A square root in a difference: multiply the top and bottom by the conjugate. The product (A−B)(A+B)=A−B2(\sqrt{A} - B)(\sqrt{A} + B) = A - B^2 has no root, and the factor x−ax - a appears.

lim⁡x→1x−1x−1=lim⁡x→1x−1(x−1)(x+1)=lim⁡x→11x+1=12\lim_{x \to 1} \frac{\sqrt{x} - 1}{x - 1} = \lim_{x \to 1} \frac{x - 1}{(x - 1)(\sqrt{x} + 1)} = \lim_{x \to 1} \frac{1}{\sqrt{x} + 1} = \frac{1}{2}

Leave the denominator factored: you want to cancel x−1x - 1, not expand it.

Fractions inside a fraction: combine the small fractions over a common denominator, then simplify.

lim⁡x→01x+1−1x=lim⁡x→01−(x+1)x(x+1)=lim⁡x→0−1x+1=−1\lim_{x \to 0} \frac{\frac{1}{x + 1} - 1}{x} = \lim_{x \to 0} \frac{1 - (x + 1)}{x(x + 1)} = \lim_{x \to 0} \frac{-1}{x + 1} = -1

In both cases the aim is the same as with factoring: expose the factor that made the denominator 00, cancel it, then substitute.

Check yourself

What do you multiply the top and bottom of x+4−2x\dfrac{\sqrt{x + 4} - 2}{x} by, and what is the limit as x→0x \to 0?
Show answerHide answer

Multiply by x+4+2\sqrt{x + 4} + 2. The quotient becomes 1x+4+2\dfrac{1}{\sqrt{x + 4} + 2}, so the limit is 14\frac{1}{4}.

What are the two trig limits?

Learn this, with xx in radians:

lim⁡x→0sin⁡xx=1lim⁡x→01−cos⁡xx=0\lim_{x \to 0} \frac{\sin x}{x} = 1 \qquad \lim_{x \to 0} \frac{1 - \cos x}{x} = 0

Both give 00\frac{0}{0} on substitution, and no algebra simplifies them; you quote them. A graphing calculator table supports the first: sin⁡0.010.01≈0.99998\frac{\sin 0.01}{0.01} \approx 0.99998. The note on the squeeze theorem shows why it is exactly 11.

To use them, make the denominator match the angle. For sin⁡5xx\frac{\sin 5x}{x}, multiply and divide by 55:

lim⁡x→0sin⁡5xx=lim⁡x→05⋅sin⁡5x5x=5⋅1=5\lim_{x \to 0} \frac{\sin 5x}{x} = \lim_{x \to 0} 5 \cdot \frac{\sin 5x}{5x} = 5 \cdot 1 = 5

The same idea handles tan⁡x\tan x: tan⁡xx=sin⁡xx⋅1cos⁡x\frac{\tan x}{x} = \frac{\sin x}{x} \cdot \frac{1}{\cos x}, which heads for 1⋅1=11 \cdot 1 = 1.

Check yourself

Find lim⁡x→0sin⁡2x3x\lim_{x \to 0} \dfrac{\sin 2x}{3x}.
Show answerHide answer

23\frac{2}{3}. Write it as 23⋅sin⁡2x2x\frac{2}{3} \cdot \frac{\sin 2x}{2x}, which heads for 23⋅1\frac{2}{3} \cdot 1.

What about a piecewise function where the rule changes?

At the point where the rule changes, find each one-sided limit with the rule for that side, using any of the methods above. The limit exists only if the two agree (the note on what a limit means explains why).

For f(x)=sin⁡2xxf(x) = \dfrac{\sin 2x}{x} when x<0x < 0 and f(x)=x+2f(x) = x + 2 when x≥0x \geq 0: from the left, sin⁡2xx→2\frac{\sin 2x}{x} \to 2; from the right, x+2→2x + 2 \to 2. Both sides give 22, so lim⁡x→0f(x)=2\lim_{x \to 0} f(x) = 2.

Check yourself

If f(x)=x2−1x−1f(x) = \dfrac{x^2 - 1}{x - 1} for x<1x < 1 and f(x)=3xf(x) = 3x for x>1x > 1, does lim⁡x→1f(x)\lim_{x \to 1} f(x) exist?
Show answerHide answer

No. The left-hand limit is 22 (factor and cancel to get x+1x + 1), and the right-hand limit is 33.

Which method fits?

Substituting givesWhat to do
A real numberThat is the limit
Nonzero over 00No finite limit; check the signs on each side
00\frac{0}{0} with polynomialsFactor and cancel
00\frac{0}{0} with a square rootMultiply by the conjugate
00\frac{0}{0} with fractions inside a fractionCombine over a common denominator
00\frac{0}{0} with sin⁡kx\sin kx or 1−cos⁡kx1 - \cos kxRescale to a standard trig limit
A piecewise rule changeOne-sided limits, one rule each

Worked example 1: Factoring a cubic

Question: Evaluate lim⁡x→−2x3+8x2+5x+6\lim_{x \to -2} \dfrac{x^3 + 8}{x^2 + 5x + 6}.

What tells you the method

Substituting gives −8+84−10+6=00\frac{-8 + 8}{4 - 10 + 6} = \frac{0}{0}, and both parts are polynomials.

  1. Step 1: Factor the numerator.

    x3+8=(x+2)(x2−2x+4)x^3 + 8 = (x + 2)(x^2 - 2x + 4).

    Why

    x=−2x = -2 makes it 00, so x+2x + 2 is a factor; this is the sum of cubes.

  2. Step 2: Factor the denominator.

    x2+5x+6=(x+2)(x+3)x^2 + 5x + 6 = (x + 2)(x + 3).

    Why

    x=−2x = -2 makes it 00 too, so x+2x + 2 is a factor here as well.

  3. Step 3: Cancel and substitute.

    lim⁡x→−2x2−2x+4x+3=4+4+41=12\lim_{x \to -2} \dfrac{x^2 - 2x + 4}{x + 3} = \dfrac{4 + 4 + 4}{1} = 12.

    Why

    x≠−2x \neq -2 inside the limit, so x+2x + 2 cancels.

Check it

At x=−2.001x = -2.001 the original quotient is about 12.01812.018, close to 1212.

Answer

The limit is 1212.

Worked example 2: A trig limit with a factor

Question: Evaluate lim⁡x→0sin⁡4xx2+3x\lim_{x \to 0} \dfrac{\sin 4x}{x^2 + 3x}.

What tells you the method

Substituting gives 00\frac{0}{0}, and sin⁡4x\sin 4x points to the limit sin⁡uu→1\frac{\sin u}{u} \to 1.

  1. Step 1: Factor the denominator.

    x2+3x=x(x+3)x^2 + 3x = x(x + 3), so the expression is sin⁡4xx⋅1x+3\dfrac{\sin 4x}{x} \cdot \dfrac{1}{x + 3}.

    Why

    Splitting off 1x+3\frac{1}{x + 3} leaves a piece shaped like a standard limit.

  2. Step 2: Rescale the sine piece.

    sin⁡4xx=4⋅sin⁡4x4x→4⋅1=4\dfrac{\sin 4x}{x} = 4 \cdot \dfrac{\sin 4x}{4x} \to 4 \cdot 1 = 4.

    Why

    The denominator must match the angle 4x4x.

  3. Step 3: Use the product law.

    1x+3→13\dfrac{1}{x + 3} \to \dfrac{1}{3}, so the limit is 4⋅13=434 \cdot \dfrac{1}{3} = \dfrac{4}{3}.

    Why

    Both pieces have finite limits, so you multiply them.

Check it

At x=0.001x = 0.001 the quotient is about 1.33291.3329, close to 43≈1.3333\frac{4}{3} \approx 1.3333.

Answer

The limit is 43\frac{4}{3}.

Worked example 3: A constant that makes the limit exist

Question: Let f(x)={x−2x−40≤x<4kxx≥4f(x) = \begin{cases} \dfrac{\sqrt{x} - 2}{x - 4} & 0 \leq x < 4 \\ kx & x \geq 4 \end{cases}, where kk is a constant. (a) Find lim⁡x→4−f(x)\lim_{x \to 4^-} f(x). (b) Find the value of kk for which lim⁡x→4f(x)\lim_{x \to 4} f(x) exists.

What tells you the method

The left rule gives 00\frac{0}{0} with a root, so use a conjugate; "for which the limit exists" means match the one-sided limits.

  1. Step 1: Multiply by the conjugate.

    x−2x−4⋅x+2x+2=x−4(x−4)(x+2)=1x+2\dfrac{\sqrt{x} - 2}{x - 4} \cdot \dfrac{\sqrt{x} + 2}{\sqrt{x} + 2} = \dfrac{x - 4}{(x - 4)(\sqrt{x} + 2)} = \dfrac{1}{\sqrt{x} + 2}.

    Why

    (x−2)(x+2)=x−4(\sqrt{x} - 2)(\sqrt{x} + 2) = x - 4, which cancels with the denominator.

  2. Step 2: Take the left-hand limit.

    14+2=14\dfrac{1}{\sqrt{4} + 2} = \dfrac{1}{4}.

    Why

    After canceling, direct substitution works.

  3. Step 3: Match the right-hand limit.

    From the right, kx→4kkx \to 4k, so 4k=144k = \frac{1}{4} and k=116k = \frac{1}{16}.

    Why

    The limit exists exactly when the one-sided limits are equal.

Check it

With k=116k = \frac{1}{16}, the right side heads for 416=14\frac{4}{16} = \frac{1}{4}, matching the left.

Answer

(a) lim⁡x→4−f(x)=14\lim_{x \to 4^-} f(x) = \frac{1}{4}. (b) k=116k = \frac{1}{16}.

Your turn

Question: Evaluate lim⁡x→21x−12x−2\lim_{x \to 2} \dfrac{\frac{1}{x} - \frac{1}{2}}{x - 2}.

  1. Step 1:

    Substituting gives 00\frac{0}{0}. Combine the top: 1x−12=2−x2x\frac{1}{x} - \frac{1}{2} = \frac{2 - x}{2x}.

  2. Step 2: Your go: write 2−x2 - x as −(x−2)-(x - 2), cancel, then substitute.

Show the full solutionHide the solution

2−x2xx−2=−(x−2)2x(x−2)=−12x\dfrac{\frac{2 - x}{2x}}{x - 2} = \dfrac{-(x - 2)}{2x(x - 2)} = -\dfrac{1}{2x} for x≠2x \neq 2, which heads for −14-\frac{1}{4}.

Answer: The limit is −14-\frac{1}{4}.

Traps

Trap

Treating 00\frac{0}{0} as the answer, either as 00 or as "does not exist".

It seems right because substitution usually gives the answer. But 00\frac{0}{0} only says the numerator and denominator both approach 00; their ratio can approach any number, as sin⁡xx→1\frac{\sin x}{x} \to 1 shows. Rewrite, then substitute again.

Check yourself

Substituting x=5x = 5 into x2−25x−5\dfrac{x^2 - 25}{x - 5} gives 00\frac{0}{0}. What is the limit?
Show answerHide answer

1010. The quotient is x+5x + 5 for x≠5x \neq 5, which heads for 1010.

Trap

Thinking sin⁡5xx→1\frac{\sin 5x}{x} \to 1 because sin⁡xx→1\frac{\sin x}{x} \to 1.

It seems right because the shapes look alike. But the standard limit needs the same expression in the sine and the denominator: sin⁡5xx=5⋅sin⁡5x5x→5\frac{\sin 5x}{x} = 5 \cdot \frac{\sin 5x}{5x} \to 5.

Check yourself

What is lim⁡x→0sin⁡7xx\lim_{x \to 0} \dfrac{\sin 7x}{x}?
Show answerHide answer

77. Rescale to 7⋅sin⁡7x7x7 \cdot \frac{\sin 7x}{7x}, and sin⁡7x7x→1\frac{\sin 7x}{7x} \to 1.

Trap

Splitting a root, as in x+9=x+3\sqrt{x + 9} = \sqrt{x} + 3.

It seems right because brackets split over multiplication. But roots do not split over addition: at x=16x = 16, 25=5\sqrt{25} = 5, while 16+3=7\sqrt{16} + 3 = 7. Use the conjugate instead.

Check yourself

Is x+9−3\sqrt{x + 9} - 3 equal to x\sqrt{x} for x>0x > 0?
Show answerHide answer

No. At x=16x = 16 the left side is 5−3=25 - 3 = 2, but 16=4\sqrt{16} = 4.

What's examined

Evaluating limits is part of Unit 1 (Limits and Continuity) of the AP® Calculus AB exam. Part of the exam is taken without a calculator, so practice every method by hand. Questions may ask you to evaluate a limit, find one-sided limits of a piecewise function, or find a constant that makes a limit exist, with command words such as Evaluate, Find and Determine. The same algebra returns later when you work out derivatives from the definition.

Practice questions

  1. Recall Given lim⁡x→1f(x)=4\lim_{x \to 1} f(x) = 4 and lim⁡x→1g(x)=−2\lim_{x \to 1} g(x) = -2, what is lim⁡x→12f(x)−g(x)f(x)+g(x)\lim_{x \to 1} \dfrac{2f(x) - g(x)}{f(x) + g(x)}?
    • A) 11
    • B) 53\frac{5}{3}
    • C) 33
    • D) 55
Show answer

Answer: D) 55.

Marking points:

  • Numerator: 2(4)−(−2)=102(4) - (-2) = 10. Denominator: 4+(−2)=24 + (-2) = 2. So the limit is 55.
  • C drops the sign of gg in the numerator, B drops it in the denominator, and A drops it in both.
  1. Recall Evaluate lim⁡x→4x2−16x2−3x−4\lim_{x \to 4} \dfrac{x^2 - 16}{x^2 - 3x - 4}.
Show answer

Answer: The limit is 85\frac{8}{5}.

Marking points:

  • Substitution gives 00\frac{0}{0}.
  • (x−4)(x+4)(x−4)(x+1)=x+4x+1\dfrac{(x - 4)(x + 4)}{(x - 4)(x + 1)} = \dfrac{x + 4}{x + 1} for x≠4x \neq 4.
  • Substitute: 85\frac{8}{5}.
  1. Apply What is lim⁡x→0x+16−4x\lim_{x \to 0} \dfrac{\sqrt{x + 16} - 4}{x}?
    • A) 00
    • B) 18\frac{1}{8}
    • C) 14\frac{1}{4}
    • D) The limit does not exist.
Show answer

Answer: B) 18\frac{1}{8}.

Marking points:

  • Multiply by x+16+4\sqrt{x + 16} + 4: the quotient becomes 1x+16+4\dfrac{1}{\sqrt{x + 16} + 4}.
  • Substitute: 14+4=18\frac{1}{4 + 4} = \frac{1}{8}.
  • A and D treat 00\frac{0}{0} as an answer. C uses only one 44 in the denominator.
  1. Apply What is lim⁡x→0sin⁡6x2x\lim_{x \to 0} \dfrac{\sin 6x}{2x}?
    • A) 13\frac{1}{3}
    • B) 11
    • C) 33
    • D) 66
Show answer

Answer: C) 33.

Marking points:

  • sin⁡6x2x=3⋅sin⁡6x6x→3\dfrac{\sin 6x}{2x} = 3 \cdot \dfrac{\sin 6x}{6x} \to 3.
  • A inverts the factor. B ignores the rescaling. D ignores the 22 in the denominator.
  1. Apply What is lim⁡x→01−cos⁡2xx\lim_{x \to 0} \dfrac{1 - \cos 2x}{x}?
    • A) 00
    • B) 11
    • C) 22
    • D) The limit does not exist.
Show answer

Answer: A) 00.

Marking points:

  • 1−cos⁡2xx=2⋅1−cos⁡2x2x→2⋅0=0\dfrac{1 - \cos 2x}{x} = 2 \cdot \dfrac{1 - \cos 2x}{2x} \to 2 \cdot 0 = 0.
  • B confuses this with sin⁡xx→1\frac{\sin x}{x} \to 1. C rescales correctly but uses that same wrong limit, 11. D treats 00\frac{0}{0} as "does not exist".
  1. Exam-style Evaluate lim⁡x→31x+1−14x−3\lim_{x \to 3} \dfrac{\frac{1}{x + 1} - \frac{1}{4}}{x - 3}.
Show answer

Answer: The limit is −116-\frac{1}{16}.

Marking points:

  • Combine: 1x+1−14=3−x4(x+1)\frac{1}{x + 1} - \frac{1}{4} = \frac{3 - x}{4(x + 1)}.
  • Divide by x−3x - 3: −(x−3)4(x+1)(x−3)=−14(x+1)\dfrac{-(x - 3)}{4(x + 1)(x - 3)} = -\dfrac{1}{4(x + 1)} for x≠3x \neq 3.
  • Substitute: −116-\frac{1}{16}.
  1. Exam-style Let g(x)={x2+x−6x−2x<2ax+1x>2g(x) = \begin{cases} \dfrac{x^2 + x - 6}{x - 2} & x < 2 \\ ax + 1 & x > 2 \end{cases}, where aa is a constant. Find the value of aa for which lim⁡x→2g(x)\lim_{x \to 2} g(x) exists, and state the limit.
Show answer

Answer: a=2a = 2, and the limit is 55.

Marking points:

  • Left: (x−2)(x+3)x−2=x+3→5\dfrac{(x - 2)(x + 3)}{x - 2} = x + 3 \to 5.
  • Right: ax+1→2a+1ax + 1 \to 2a + 1.
  • Set 2a+1=52a + 1 = 5, so a=2a = 2.

Key points

Recall, then reveal

Say the main points from memory first, then check them.

Show key pointsHide key points
  • Substitute first; a real number is the limit, and 00\frac{0}{0} means rewrite.
  • Factoring and canceling works because the limit ignores x=ax = a itself.
  • Roots call for a conjugate; fractions inside a fraction call for a common denominator.
  • With xx in radians, sin⁡xx→1\frac{\sin x}{x} \to 1 and 1−cos⁡xx→0\frac{1 - \cos x}{x} \to 0 as x→0x \to 0; match the denominator to the angle.
  • At a piecewise rule change, compare the one-sided limits.

Keep learning

Prerequisites: What a Limit Means

Explore AP Calculus AB tutoring →

View the full Calculus AB syllabus →

More in this unit

Limits and Continuity

All Limits notes

Part of Novark's AP Calculus AB notes