Find a course

Module 1: Limits and ContinuityLesson 3 of 1214 min

Computing Limits Algebraically

Evaluate limits by direct substitution, factoring and rationalizing, use the key trigonometric limits, and find limits at infinity of rational functions.

Step 1 of 14Learn

Start by substituting

For polynomials, and for rational, root, exponential and trig functions at points in their domains, the limit is simply the function's value. This is direct substitution:

lim (x → 2) (x² + 3x) = 4 + 6 = 10

lim (x → 0) (eˣ + cos x) = 1 + 1 = 2

lim (x → 4) √(x + 5) = √9 = 3

Direct substitution works because these functions are continuous where they're defined (next lesson): no holes, jumps or asymptotes, so the approach and the arrival agree.

Always try substitution first. There are three possible outcomes:

  1. A number, like 10. That's your limit. Done.
  2. Nonzero number / 0, like 5/0. The limit is infinite or doesn't exist; check signs from each side, as in the last lesson.
  3. 0/0 (or another indeterminate form). Substitution tells you nothing yet. The limit might be any number, or might not exist. You need algebra to rewrite the expression.

The term indeterminate form means the expression doesn't determine the answer by itself. 0/0 could turn out to be 2, −7, 0 or nonexistent, depending on the function. Never write "0/0 = 1" or "0/0 = 0." Instead, treat 0/0 as a signal: "simplify me."

Step 2 of 14Practice · Work it out

Evaluate lim (x → −1) (2x³ − x + 5).

Step 3 of 14Learn

Factor, cancel, or rationalize

When substitution gives 0/0, the expression usually hides a common factor that's zero at x = a. Remove it, then substitute.

Factoring. lim (x → 3) (x² − 9)/(x − 3)

  • Substitution gives 0/0.
  • Factor: (x − 3)(x + 3)/(x − 3) = x + 3, for x ≠ 3.
  • Substitute into the simplified form: 3 + 3 = 6.

Canceling is legal because a limit never uses x = 3 itself; for every x near 3, x − 3 ≠ 0.

Rationalizing. lim (x → 4) (√x − 2)/(x − 4)

  • Substitution gives 0/0. Multiply top and bottom by the conjugate √x + 2:
  • Numerator: (√x − 2)(√x + 2) = x − 4.
  • So the expression becomes (x − 4)/((x − 4)(√x + 2)) = 1/(√x + 2).
  • Substitute: 1/(2 + 2) = 1/4.

Combining fractions. For lim (h → 0) (1/(2 + h) − 1/2)/h, combine the top over a common denominator: (2 − (2 + h))/(2(2 + h)) = −h/(2(2 + h)). Dividing by h gives −1/(2(2 + h)), and the limit is −1/4.

The usual mistake is substituting after a partial simplification that still contains the zero factor. Keep simplifying until substitution gives a real number.

Step 4 of 14Diagram

Removing the 0/0 in lim (x → 3) (x2 − 9)/(x − 3)

Removing the 0/0 in lim (x → 3) (x^2 − 9)/(x − 3)Process diagram: Substitute: 0/0 → Factor: (x − 3)(x + 3)/(x − 3) → Cancel: x + 3 → Substitute again: 6.Substitute:0/0Factor: (x −3)(x + 3)/(x −3)Cancel: x + 3Substituteagain: 6

Tap a shape with to see more.

Substitute: 0/0

Indeterminate: not an answer, a signal to simplify.

Factor: (x − 3)(x + 3)/(x − 3)

The factor x − 3 is what makes both parts zero.

Cancel: x + 3

Allowed because the limit never uses x = 3 itself.

Substitute again: 6

Step 5 of 14Practice · Work it out

Evaluate lim (x → 2) (x² + x − 6)/(x − 2).

Step 6 of 14Practice · Put in order

Put these steps for evaluating lim (x → a) f(x) for a rational function in a sensible order.

Drag the items, or use the arrow buttons, to put them in order.

  1. Try direct substitution
  2. Substitute again into the simplified expression
  3. If you get 0/0, factor the numerator and denominator
  4. If you get a number, that is the limit
  5. Cancel the common factor

Step 7 of 14Practice · Diagram

What substitution tells you

Substituting into (x + 4)/(x − 1) at x = 1 gives 5/0. Which branch applies?

Tap the shape that answers the question, then press Check.

What substitution tells youHierarchy diagram: Substitute x = a, A number, Nonzero / 0, 0 / 0, Factor and cancel, Multiply by a conjugate, Use sin x / x → 1.Substitute x= aA numberNonzero /00 / 0Factor andcancelMultiply by aconjugateUse sin x / x→ 1
Substitute x = a
A number

Done: that number is the limit (if the function is continuous there).

Nonzero / 0

Infinite limit or does not exist. Check the sign of the denominator on each side.

0 / 0

Indeterminate: factor, rationalize, combine fractions or use a known trig limit.

Factor and cancel
Multiply by a conjugate
Use sin x / x → 1

Step 8 of 14Learn

Trigonometric limits and the squeeze theorem

Two trigonometric limits come up constantly (with x in radians):

lim (x → 0) sin x / x = 1 and lim (x → 0) (1 − cos x)/x = 0

You saw the first one in the explorer last lesson. It can't be found by algebra; it's proved with geometry and the squeeze theorem.

Squeeze theorem. If g(x) ≤ f(x) ≤ h(x) near a, and both g and h have the same limit L at a, then f must have limit L too. It's trapped between them.

Example. lim (x → 0) x² sin(1/x). The sine bounces between −1 and 1, so −x² ≤ x² sin(1/x) ≤ x². Both −x² and x² approach 0, so the limit is 0, even though sin(1/x) itself has no limit.

Using sin x / x = 1 with a twist. lim (x → 0) sin(5x)/x. Multiply and divide by 5:

sin(5x)/x = 5 · sin(5x)/(5x)

As x → 0, 5x → 0 too, so sin(5x)/(5x) → 1. The limit is 5.

Similarly, lim (x → 0) tan x / x = lim (sin x / x) · (1/cos x) = 1 · 1 = 1.

A common error is "canceling" the x in sin(5x)/x to get sin 5. The x inside the sine is not a factor; it's an input.

Step 9 of 14Practice · Work it out

Evaluate lim (x → 0) sin(7x)/x.

Step 10 of 14Learn

Limits at infinity

What happens to a function as x grows without bound? Limits at infinity describe a graph's long-run behavior and its horizontal asymptotes.

Basic facts: lim (x → ∞) 1/x = 0, and more generally 1/xⁿ → 0 for any positive power n. Also e^(−x) → 0 as x → ∞.

Rational functions. Divide the numerator and denominator by the highest power of x in the denominator.

lim (x → ∞) (3x² + 1)/(5x² − x) = lim (3 + 1/x²)/(5 − 1/x) = (3 + 0)/(5 − 0) = 3/5

That gives a shortcut, comparing the degrees (highest powers) of the top and bottom:

  • Same degree: the limit is the ratio of the leading coefficients. (Above: 3/5.)
  • Bottom degree higher: the limit is 0. (2x + 7)/(x² + 1) → 0.
  • Top degree higher: no finite limit; the function grows without bound (to ∞ or −∞). (x³)/(x² + 4) → ∞.

Growth rates matter beyond polynomials: as x → ∞, exponential functions eventually beat any power, and powers beat logarithms. So x¹⁰⁰/eˣ → 0 and ln x / x → 0.

A frequent mistake: treating ∞ like a number, as in "∞/∞ = 1" or "∞ − ∞ = 0." Both are indeterminate forms, just like 0/0.

Step 11 of 14Practice · Match the pairs

Match each limit as x → ∞ to its value.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. (4x² − 3)/(2x² + x)
  2. (5x + 1)/(x² − 2)
  3. (x³ + 1)/(7x² + 5)
  4. (6x³ − x)/(−3x³ + 2)

Step 12 of 14Compare

Rational functions as x → ∞: compare degrees

AspectTop degree < bottomDegrees equalTop degree > bottom
Limit0Ratio of leading coefficients±∞ (no finite limit)
Example(3x + 1)/(x2 + 5) → 0(5x2 − x)/(10x2 + 3) → 1/2(x3 + 2)/(4x + 1) → ∞
Horizontal asymptotey = 0y = ratioNone

Step 13 of 14Note

Step 14 of 14Practice · Choose one

Evaluate lim (x → 0) (√(x + 9) − 3)/x.