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.
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
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\).
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.
To justify the formula, use the common-denominator expression for the difference quotient. Split its numerator into two differences:
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\).
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:
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
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)\):
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\),
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
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
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
Confirm that the original denominator is nonzero at \(a\), then calculate \(f(a)\).
Write the difference quotient using \(f(a+h)\) and \(f(a)\), keeping track of which nearby inputs are allowed.
Use a complete common denominator, simplify the numerator, and factor out \(h\) before cancelling it for \(h\ne 0\).
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.
- For \(f(x)=\frac{x+2}{x-1}\), what condition on \(a\) is required before using the derivative definition at \(a\)?
- In a rational-function difference quotient, why must both terms be placed over a common denominator before simplifying?
- For \(g(x)=\frac{x^2+1}{x+1}\), use the pointwise formula to find \(g'(1)\).
- Explain why cancelling a common factor in a rational expression does not automatically add its excluded input to the original function's domain.
- In the difference quotient, when is cancelling a factor of \(h\) valid?