Tutorials › Calculus I › Rational Function Derivatives at Domain Points

The Derivative from First Principles · Tutorial 351 of 1495

Rational Function Derivatives at Domain Points

Use the derivative definition to simplify rational-function difference quotients and find derivatives at valid domain points.

Intermediate 9 min read

What You'll Learn

  • Identify where a rational function is defined and which inputs can be used for its derivative.
  • Build a difference quotient for a rational function from its definition.
  • Combine fractions with a common denominator before cancelling the increment.
  • Factor expressions to simplify the quotient and evaluate its limit.
  • Derive the pointwise derivative formula for a quotient of polynomials.
  • Recognize why cancelling a factor does not restore an excluded domain point.

Why Rational Functions Need Careful Algebra

A rational function is a quotient of polynomials. Its difference quotient therefore contains fractions inside a fraction, and subtracting those fractions correctly is essential. The useful strategy is to begin with the derivative definition, use a common denominator, and then factor out the increment.

The denominator also determines where the function is defined. A derivative at an input \(a\) can be considered only when the original function has a value there. If a denominator is nonzero at \(a\), it remains nonzero for inputs sufficiently close to \(a\), so the difference quotient is defined for small nonzero increments.

Definition: A rational function has the form \(f(x)=\frac{p(x)}{q(x)}\), where \(p\) and \(q\) are polynomials and \(q(x)\ne 0\). Its domain consists of the real inputs for which the denominator is nonzero. At a domain point \(a\), its derivative is the limit $$ f'(a)=\lim_{h\to 0}\frac{f(a+h)-f(a)}{h}, $$ if this limit exists.

Here \(h\) is the increment from \(a\), and the quotient is considered only for \(h\ne 0\) such that both function values are defined. In particular, \(q(a)\ne 0\) is necessary. The calculations below use polynomial algebra and limits, not a pre-established quotient differentiation rule.

The Algebra of the Difference Quotient

For \(f(x)=\frac{p(x)}{q(x)}\), first write both function values explicitly. Then put their difference over a common denominator. Since \(q(a)\) is a fixed nonzero number, this gives

$$ \frac{f(a+h)-f(a)}{h} = \frac{1}{h} \left( \frac{p(a+h)}{q(a+h)}-\frac{p(a)}{q(a)} \right) = \frac{p(a+h)q(a)-p(a)q(a+h)} {h\,q(a+h)q(a)}. $$

The numerator vanishes when \(h=0\): substituting \(h=0\) gives \(p(a)q(a)-p(a)q(a)=0\). For polynomials, its dependence on \(h\) can be factored to expose a factor of \(h\). Cancelling that factor is valid only after we have recorded that the difference quotient is taken for \(h\ne 0\).

Key takeaway: For a rational function at a point in its domain, do not subtract the fractions term by term. Use the common denominator \(q(a+h)q(a)\), simplify the numerator, and then cancel the increment when its factor is explicit.

A Pointwise Formula, Derived from the Definition

The algebra above gives a general result for quotients of polynomials. The symbols \(p'(a)\) and \(q'(a)\) below refer to the derivatives of the polynomials, already obtainable from polynomial difference quotients. The formula is derived here so that its requirements and its connection to the definition are clear.

Theorem: Let \(p\) and \(q\) be polynomials, and let \(a\) satisfy \(q(a)\ne 0\). Then the rational function \(f(x)=\frac{p(x)}{q(x)}\) is differentiable at \(a\), and $$ f'(a)=\frac{p'(a)q(a)-p(a)q'(a)}{q(a)^2}. $$

To justify the formula, use the common-denominator expression for the difference quotient. Split its numerator into two differences:

$$ \frac{f(a+h)-f(a)}{h} = \frac{ q(a)\bigl(p(a+h)-p(a)\bigr) - p(a)\bigl(q(a+h)-q(a)\bigr) }{ h\,q(a+h)q(a) }. $$

For \(h\ne 0\), regroup the factors of \(h\). As \(h\to 0\), the polynomial difference quotients tend to \(p'(a)\) and \(q'(a)\), respectively. Also \(q(a+h)\to q(a)\), and this limiting denominator is nonzero because \(q(a)\ne 0\).

$$ \begin{aligned} \lim_{h\to 0}\frac{f(a+h)-f(a)}{h} &= \lim_{h\to 0} \frac{ q(a)\frac{p(a+h)-p(a)}{h} - p(a)\frac{q(a+h)-q(a)}{h} }{ q(a+h)q(a) }\\ &= \frac{q(a)p'(a)-p(a)q'(a)}{q(a)^2}. \end{aligned} $$

This proves the result directly from the derivative definition. In worked calculations, it is still useful to form and simplify the difference quotient: that shows exactly how the derivative arises and helps prevent sign or domain errors.

Worked Examples from the Definition

Worked Example: A Linear Numerator and Denominator

Find the derivative of \(f(x)=\frac{x+1}{x-2}\) at \(a=3\) directly from the definition. The denominator at \(3\) is \(3-2=1\), so \(f(3)=\frac{4}{1}=4\).

For \(h\ne 0\) sufficiently close to zero, \(1+h\ne 0\). Substitute into the difference quotient:

$$ \begin{aligned} \frac{f(3+h)-f(3)}{h} &=\frac{\frac{4+h}{1+h}-4}{h}\\ &=\frac{\frac{(4+h)-4(1+h)}{1+h}}{h}\\ &=\frac{4+h-4-4h}{h(1+h)}\\ &=\frac{-3h}{h(1+h)}\\ &=-\frac{3}{1+h}. \end{aligned} $$

Taking the limit gives \(f'(3)=-3\). As a check, the simplified difference quotient is \(-\frac{3}{1+h}\), which tends to \(-3\) as \(h\to 0\); substituting \(h=0\) into this simplified expression gives the same value.

Worked Example: A Quadratic Numerator

Find the derivative of \(g(x)=\frac{x^2+1}{x+1}\) at \(a=1\). Since \(1+1=2\ne 0\), the point is in the domain, and \(g(1)=\frac{2}{2}=1\).

For \(h\) sufficiently close to zero, \(2+h\ne 0\). Then

$$ \begin{aligned} \frac{g(1+h)-g(1)}{h} &=\frac{\frac{(1+h)^2+1}{2+h}-1}{h}\\ &=\frac{\frac{1+2h+h^2+1-(2+h)}{2+h}}{h}\\ &=\frac{\frac{h+h^2}{2+h}}{h}\\ &=\frac{h(1+h)}{h(2+h)}\\ &=\frac{1+h}{2+h}. \end{aligned} $$

The limit is \(\frac{1}{2}\), so \(g'(1)=\frac{1}{2}\). The check is the exact simplified quotient: as \(h\to 0\), \(\frac{1+h}{2+h}\to\frac{1}{2}\), confirming the value obtained from the definition.

Worked Example: A Factor That Cancels Away from a Hole

Let \(r(x)=\frac{x^2-4}{x-2}\), and find \(r'(1)\) from the definition. The original denominator at \(1\) is \(1-2=-1\), so \(r(1)=\frac{-3}{-1}=3\). The function is not defined at \(x=2\), but \(1\) is a valid domain point.

For \(h\) near zero, \(1+h\ne 2\), so the following expressions are defined. Factor the numerator of \(r(1+h)\):

$$ \begin{aligned} r(1+h) &=\frac{(1+h)^2-4}{1+h-2}\\ &=\frac{(h-1)(h+3)}{h-1}\\ &=h+3. \end{aligned} $$

The cancellation holds for these nearby inputs because \(h-1\ne 0\); the exceptional value \(h=1\) corresponds to the excluded input \(x=2\). Since \(r(1)=3\),

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

Therefore \(r'(1)=1\). The simplified quotient is exactly \(1\) throughout the allowed nearby increments, so its limit is \(1\), as required. Although the formula agrees with \(x+2\) where \(x\ne 2\), that cancellation does not define \(r(2)\); it only simplifies values at inputs where the original expression is defined.

Common Mistake: Missing Part of the Common Denominator

In the first example, a tempting but incorrect subtraction is

$$ \frac{\frac{4+h}{1+h}-4}{h} \ne \frac{(4+h)-4}{h(1+h)}. $$

The second fraction, \(4\), must also be written with denominator \(1+h\). Its numerator becomes \(4(1+h)\), not just \(4\). The correct subtraction is

$$ \frac{\frac{4+h}{1+h}-4}{h} = \frac{(4+h)-4(1+h)}{h(1+h)} = -\frac{3}{1+h}. $$

The incorrect calculation gives \(\frac{1}{1+h}\), whose limit is \(1\), and therefore the wrong derivative. The safeguard is simple: when combining fractions, multiply each numerator by whatever factor is needed to give it the full common denominator.

Using the Formula Carefully

The proved formula can shorten arithmetic, but it does not remove the need to check the domain. For \(f(x)=\frac{p(x)}{q(x)}\), the input \(a\) must satisfy \(q(a)\ne 0\). Only then does the expression represent the function at \(a\), and only then is the denominator \(q(a)^2\) in the derivative formula nonzero.

For example, the expression \(\frac{x^2-4}{x-2}\) simplifies to \(x+2\) when \(x\ne 2\), but the original rational function still has no value at \(2\). A derivative at \(2\) cannot be assigned to that original function by simply substituting into the simplified expression. The pointwise formula also signals the issue: its denominator \(q(2)^2\) is zero.

Rational-function derivatives are useful because they connect the definition-based approach to efficient calculations while preserving the logic behind each step. The common-denominator method also gives a reliable way to work when a memorized pattern is unavailable: write the quotient, simplify exactly, and take the limit only after the increment has been exposed and cancelled appropriately.

A Reliable Calculation Sequence

1
Check the input.
Confirm that the original denominator is nonzero at \(a\), then calculate \(f(a)\).
2
Substitute \(a+h\).
Write the difference quotient using \(f(a+h)\) and \(f(a)\), keeping track of which nearby inputs are allowed.
3
Combine and factor.
Use a complete common denominator, simplify the numerator, and factor out \(h\) before cancelling it for \(h\ne 0\).
4
Take the limit and check.
Evaluate the limit of the simplified expression and verify that it agrees with the resulting derivative value.

Check Your Understanding

For each question, attend to both the algebra and the domain conditions.

  1. For \(f(x)=\frac{x+2}{x-1}\), what condition on \(a\) is required before using the derivative definition at \(a\)?
  2. In a rational-function difference quotient, why must both terms be placed over a common denominator before simplifying?
  3. For \(g(x)=\frac{x^2+1}{x+1}\), use the pointwise formula to find \(g'(1)\).
  4. Explain why cancelling a common factor in a rational expression does not automatically add its excluded input to the original function's domain.
  5. In the difference quotient, when is cancelling a factor of \(h\) valid?

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