Tutorials › Calculus I › Algebraic Simplification Before Taking the Limit

The Derivative from First Principles · Tutorial 341 of 1495

Algebraic Simplification Before Taking the Limit

Use algebra to simplify difference quotients safely, then take the limit while keeping track of where each expression is defined.

Intermediate 12 min read

What You'll Learn

  • Write the derivative quotient using a nonzero increment.
  • Factor a numerator to expose a cancellable increment.
  • Combine fractions before simplifying a quotient.
  • Preserve restrictions inherited from the original function.
  • Explain why equivalent expressions on a punctured interval have the same limit.

Why Simplify Before Taking the Limit?

A difference quotient describes the slope of a secant line through nearby points on a graph. To find a tangent slope from first principles, we study what happens to that quotient as the second point approaches the first.

For a function \(f\) defined near \(a\), the quotient with increment \(h\) is

$$ \frac{f(a+h)-f(a)}{h}, \qquad h\ne 0. $$

The condition \(h\ne 0\) matters: when \(h=0\), the two points coincide and the quotient has a zero denominator. The derivative at \(a\), when it exists, is the limit of this quotient as \(h\) approaches zero through nonzero values.

$$ f'(a)=\lim_{h\to 0}\frac{f(a+h)-f(a)}{h}. $$

Substituting \(h=0\) into the quotient is therefore not a way to calculate the limit. Instead, algebra may reveal that the quotient agrees with a simpler expression whenever \(h\ne0\). That simpler expression can have a limit as \(h\to0\).

If \(f\) is continuous at \(a\), then \(f(a+h)\to f(a)\), so the numerator \(f(a+h)-f(a)\) approaches zero as well. But continuity is necessary for that conclusion: without it, the numerator need not approach zero. In any case, simplifying the quotient requires care about where each expression is defined.

Definition and the Scope of the Algebra

Definition: If \(f\) is defined on an open interval containing \(a\), its derivative at \(a\), if the limit exists as a finite real number, is $$ f'(a)=\lim_{h\to 0}\frac{f(a+h)-f(a)}{h}. $$ The quotient inside the limit is considered only for nonzero \(h\) for which \(f(a+h)\) is defined.

For a two-sided limit, values of \(h\) must be available on both sides of zero and sufficiently close to zero. In the usual setting where \(f\) is defined on an open interval around \(a\), every sufficiently small nonzero \(h\) is allowed. A formula for \(f\) may, however, impose additional restrictions. For instance, if \(f(x)\) has a denominator \(x-2\), then \(x=2\) is excluded from its domain.

The key algebraic principle is modest but important: expressions that agree for every allowed \(h\) in some deleted interval around zero have the same limit there, if either limit exists. A deleted interval means \(0<|h|<\delta\) for some \(\delta>0\). The value at \(h=0\) is not part of the comparison.

Factoring to Expose the Increment

For polynomial expressions, expanding \(f(a+h)\) often produces terms with a common factor \(h\) in the numerator. Factoring that \(h\) is useful because the denominator already contains \(h\). The cancellation is valid at every nonzero increment, precisely the increments used in the limit.

Worked Example: Factoring a Difference Quotient

Find the derivative of \(f(x)=x^2\) at \(a=2\) from the definition.

First evaluate the function at the base point:

$$ f(2)=2^2=4. $$

For \(h\ne0\), substitute \(2+h\) into the function:

$$ f(2+h)=(2+h)^2=4+4h+h^2. $$

Now form the quotient and simplify the numerator:

$$ \frac{f(2+h)-f(2)}{h} = \frac{(4+4h+h^2)-4}{h} = \frac{4h+h^2}{h}. $$

Factor the numerator, then cancel \(h\), which is permitted because \(h\ne0\):

$$ \frac{4h+h^2}{h} = \frac{h(4+h)}{h} = 4+h. $$

Therefore the limit is

$$ f'(2)=\lim_{h\to0}(4+h)=4. $$

Check: For every nonzero \(h\), the original quotient equals \(4+h\). As \(h\to0\), this expression tends to \(4\), so the value obtained from the simplified quotient agrees with the defining limit.

Combining Fractions Before Canceling

When function values are fractions, subtracting them first may expose a factor in the numerator. The denominators must be combined using a common denominator; terms cannot be canceled across addition or subtraction. Any restrictions in the original fractions remain in force even after simplification.

Worked Example: Combining Fractions at a Domain Point

Let \(f(x)=\frac{1}{x}\). Find \(f'(2)\) from the difference quotient.

The base value is \(f(2)=\frac12\). For \(f(2+h)\) to be defined, \(2+h\ne0\), so \(h\ne-2\). The quotient also requires \(h\ne0\). Thus

$$ \frac{f(2+h)-f(2)}{h} = \frac{\frac{1}{2+h}-\frac12}{h}, \qquad h\ne0,\;h\ne-2. $$

Combine the two fractions in the numerator using the common denominator \(2(2+h)\):

$$ \frac{1}{2+h}-\frac12 = \frac{2-(2+h)}{2(2+h)} = \frac{-h}{2(2+h)}. $$

Substitute this result into the quotient and divide by \(h\):

$$ \frac{\frac{1}{2+h}-\frac12}{h} = \frac{-h}{2(2+h)h} = -\frac{1}{2(2+h)}. $$

Canceling \(h\) is valid because the quotient was defined only for \(h\ne0\). The other restriction, \(h\ne-2\), still applies. Taking the limit gives

$$ f'(2) = \lim_{h\to0}-\frac{1}{2(2+h)} = -\frac{1}{2\cdot2} = -\frac14. $$

Check: For every allowed \(h\), the original quotient equals \(-\frac{1}{2(2+h)}\). This simplified expression approaches \(-\frac14\) as \(h\to0\), and \(f(2)=\frac12\) is defined, as required.

Canceling a Factor Without Filling a Hole

Cancellation can make two formulas agree on their common domain even when one of the original formulas is undefined at a particular point. The simplified formula does not automatically change the original function's domain. That distinction matters when forming a difference quotient: each input \(a+h\) must still be in the domain of the original function.

Worked Example: Keeping an Excluded Input Excluded

Consider the function

$$ f(x)=\frac{x^2-4}{x-2}, \qquad x\ne2. $$

Find its derivative at \(a=3\) from the definition. First, the function is defined at \(3\), and

$$ f(3)=\frac{3^2-4}{3-2}=\frac{9-4}{1}=5. $$

For an increment \(h\), the input \(3+h\) is excluded when \(3+h=2\), which means \(h=-1\). The difference quotient therefore requires \(h\ne0\) and \(h\ne-1\). Substitute \(3+h\):

$$ f(3+h) = \frac{(3+h)^2-4}{(3+h)-2} = \frac{9+6h+h^2-4}{1+h} = \frac{h^2+6h+5}{h+1}. $$

Factor the numerator and cancel \(h+1\), remembering that this cancellation is valid only when \(h\ne-1\):

$$ f(3+h) = \frac{(h+1)(h+5)}{h+1} = h+5, \qquad h\ne-1. $$

Now form the quotient using \(f(3)=5\):

$$ \frac{f(3+h)-f(3)}{h} = \frac{(h+5)-5}{h} = \frac{h}{h} = 1, \qquad h\ne0,\;h\ne-1. $$

Every sufficiently small nonzero \(h\) satisfies both restrictions; for example, \(0<|h|<\frac12\) excludes \(-1\). Hence

$$ f'(3)=\lim_{h\to0}1=1. $$

Check: For \(0<|h|<\frac12\), \(3+h\ne2\), the original function is defined, and its difference quotient is exactly \(1\). The limit is therefore \(1\). The canceled formula \(x+2\) agrees with \(f(x)\) for \(x\ne2\), but it does not make the original function defined at \(x=2\).

Why Simplifying Does Not Change the Limit

Here is the reason the cancellations above are legitimate for finding limits. Suppose \(Q(h)\) is the original quotient and \(S(h)\) is a simpler expression, and suppose they agree whenever \(0<|h|<\delta\). If \(S(h)\to L\), then \(Q(h)\to L\) as well.

1
Start with the proposed limit.
For any \(\varepsilon>0\), because \(S(h)\to L\), there is a number \(\eta>0\) such that \(0<|h|<\eta\) implies \(|S(h)-L|<\varepsilon\).
2
Stay where the formulas agree.
Choose \(0<|h|<\min(\eta,\delta)\). Then \(Q(h)=S(h)\), so \(|Q(h)-L|=|S(h)-L|<\varepsilon\).
3
Conclude the limit.
The definition of limit is satisfied for \(Q\), so \(Q(h)\to L\) as \(h\to0\).

This argument uses agreement near zero, not agreement at zero. In fact, the original quotient is normally undefined at \(h=0\). A cancellation can produce a formula that has a value there, but that value is useful only as part of evaluating the limit; it is not a claim that the original quotient was defined at zero.

A Common Mistake: Canceling Across a Sum

Cancellation applies to common factors, not to separate terms within a sum. For example, the expression \(\frac{h+4}{h}\) does not simplify by canceling the \(h\) in the numerator against the denominator. The numerator is a sum, not a product with \(h\) as a factor. For \(h\ne0\), the correct rewriting is

$$ \frac{h+4}{h} = \frac{h}{h}+\frac{4}{h} = 1+\frac{4}{h}. $$

That expression does not have a finite limit as \(h\to0\). By contrast, the numerator \(h^2+4h\) can be factored as \(h(h+4)\), so \(\frac{h^2+4h}{h}=h+4\) for \(h\ne0\). The factorization is what makes cancellation valid.

Another error is to cancel a factor and then treat the canceled point as if it were in the original domain. In the third example, \(\frac{x^2-4}{x-2}=x+2\) is true only when \(x\ne2\). Substituting \(x=2\) into \(x+2\) gives \(4\), but the original function is undefined there. Simplification may describe the function near an excluded point without filling that point in.

A Reliable Simplification Process

Before taking a limit of a difference quotient, use this sequence of checks:

  1. Write the quotient with its increment \(h\), and state \(h\ne0\).
  2. Record any additional restrictions that make \(f(a+h)\) undefined.
  3. Substitute into \(f(a+h)-f(a)\) and simplify the numerator, combining fractions or factoring where appropriate.
  4. Cancel only common factors, and state the restrictions under which the cancellation is valid.
  5. Take the limit of the simplified expression, ensuring the allowed values of \(h\) approach zero from both sides for a two-sided limit.
  6. Check that the simplified expression agrees with the original quotient for all sufficiently small allowed nonzero \(h\).

The main purpose of these steps is not to make the algebra look shorter. It is to expose the behavior of the quotient near zero without losing track of its original meaning or domain.

Check Your Understanding

For each question, pay attention to which values of the increment are allowed before simplifying.

  1. For \(f(x)=x^2\) at \(a=3\), write the difference quotient and factor its numerator. What expression remains for \(h\ne0\)?
  2. For \(f(x)=\frac{1}{x}\) at \(a=1\), which values of \(h\) are excluded before taking the limit?
  3. Why is canceling a factor \(h\) in a difference quotient valid even though the quotient is undefined at \(h=0\)?
  4. Does canceling \(x-2\) in \(\frac{x^2-4}{x-2}\) make the original function defined at \(x=2\)? Explain.
  5. What is wrong with simplifying \(\frac{h+4}{h}\) by canceling \(h\) from the numerator and denominator?

Test yourself: Calculus I final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon