Tutorials › Calculus I › Rational Functions With Linear Denominators

Basic Differentiation Rules · Tutorial 438 of 1495

Rational Functions With Linear Denominators

Rewrite a rational function with a linear denominator into a differentiable form, while keeping track of its domain and the signs in its derivative.

Beginner 9 min read

What You'll Learn

  • Rewrite \((x+b)/(x-a)\) as a constant plus a reciprocal linear term.
  • Identify the domain restriction imposed by a linear denominator.
  • Differentiate the rewritten expression using the reciprocal formula and sum rule.
  • Extend the rewrite to numerators of the form \(mx+n\).
  • Check a derivative by using the difference quotient.
  • Recognize cancellation cases and avoid common sign errors.

Why Rewrite Before Differentiating?

A rational function with a linear denominator may look like a single complicated fraction. If its numerator is also linear, however, the function can often be rewritten as a constant plus a reciprocal term. That form makes the derivative straightforward to find using the reciprocal formula and the sum rule.

For example, the numerator \(x+b\) differs from the denominator \(x-a\) by the constant \(a+b\):

$$ x+b=(x-a)+(a+b). $$

Dividing by \(x-a\), wherever \(x-a\ne 0\), gives a constant plus a reciprocal linear term. The denominator restriction matters throughout: the original function is not defined at \(x=a\), and rewriting it does not change that domain.

Key idea: Rewrite the numerator as a multiple of the denominator plus a constant remainder. Then divide each term by the denominator and differentiate the resulting sum.

The Rewrite and Its Domain

Let \(a\) and \(b\) be constants, and consider

$$ f(x)=\frac{x+b}{x-a}. $$

The denominator is zero at \(x=a\), so the domain is all real \(x\) except \(a\). Using \(x+b=(x-a)+(a+b)\), we obtain the identity

$$ \frac{x+b}{x-a} = \frac{(x-a)+(a+b)}{x-a} = 1+\frac{a+b}{x-a}, \qquad x\ne a. $$

This is an identity on the domain of the original function. It does not say that the function is defined at the excluded input \(x=a\).

Definition: A rational function with a linear denominator is a quotient of polynomials in which the denominator has degree one. In this tutorial, the main form is \(\frac{x+b}{x-a}\), defined for real inputs \(x\ne a\).

The same algebra works when the numerator has a coefficient on \(x\). For constants \(m,n,a\),

$$ mx+n=m(x-a)+(ma+n), $$

so, for \(x\ne a\),

$$ \frac{mx+n}{x-a} = m+\frac{ma+n}{x-a}. $$

The coefficient \(ma+n\) is the constant remainder after expressing the numerator as a multiple of the denominator plus a constant.

Differentiate the Rewritten Form

The reciprocal formula for a shifted reciprocal is

$$ \frac{d}{dx}\left(\frac{1}{x-a}\right) = -\frac{1}{(x-a)^2}, \qquad x\ne a. $$

The sum rule says that the derivative of a sum of differentiable functions is the sum of their derivatives. A constant has derivative zero, and a constant multiple may be taken outside a derivative. Applying these facts to the rewrite gives

$$ \begin{aligned} f'(x) &=\frac{d}{dx}\left(1+\frac{a+b}{x-a}\right)\\ &=0+(a+b)\frac{d}{dx}\left(\frac{1}{x-a}\right)\\ &=-\frac{a+b}{(x-a)^2}, \qquad x\ne a. \end{aligned} $$

For the more general numerator \(mx+n\), the same reasoning yields

$$ \frac{d}{dx}\left(\frac{mx+n}{x-a}\right) = -\frac{ma+n}{(x-a)^2}, \qquad x\ne a. $$
Result: For constants \(a,b\), the function \(f(x)=\frac{x+b}{x-a}\) has domain \(x\ne a\) and derivative \(f'(x)=-\frac{a+b}{(x-a)^2}\) at every point in that domain.

Why the Derivative Formula Works

The algebraic rewrite proves the decomposition. The reciprocal formula explains the derivative of the nonconstant term. To see directly why the reciprocal formula applies, fix \(x\ne a\). For nonzero \(h\) small enough that \(x+h\ne a\), the difference quotient for \(g(x)=1/(x-a)\) is

$$ \begin{aligned} \frac{g(x+h)-g(x)}{h} &=\frac{1}{h}\left(\frac{1}{x+h-a}-\frac{1}{x-a}\right)\\ &=\frac{1}{h}\left(\frac{(x-a)-(x+h-a)}{(x+h-a)(x-a)}\right)\\ &=\frac{1}{h}\left(\frac{-h}{(x+h-a)(x-a)}\right)\\ &=-\frac{1}{(x+h-a)(x-a)}. \end{aligned} $$

As \(h\) approaches zero, \(x+h-a\) approaches \(x-a\), which is nonzero because \(x\ne a\). Therefore the limit exists and equals

$$ g'(x)=-\frac{1}{(x-a)^2}. $$

Multiplying \(g\) by the constant \(a+b\) multiplies its derivative by the same constant. Adding the constant \(1\) does not affect the derivative. These facts give the stated formula for \(f\), at every point where \(f\) is defined.

Worked Examples

Worked Example: Differentiate \(\frac{x+5}{x-2}\)

First identify the excluded input: \(x-2=0\) when \(x=2\). Thus the function is defined for \(x\ne 2\). Rewrite the numerator:

$$ x+5=(x-2)+7. $$

Divide each term by \(x-2\):

$$ \frac{x+5}{x-2} = 1+\frac{7}{x-2}, \qquad x\ne 2. $$

Differentiate the constant and the reciprocal term:

$$ \begin{aligned} \frac{d}{dx}\left(\frac{x+5}{x-2}\right) &=\frac{d}{dx}\left(1+\frac{7}{x-2}\right)\\ &=0+7\left(-\frac{1}{(x-2)^2}\right)\\ &=-\frac{7}{(x-2)^2}, \qquad x\ne 2. \end{aligned} $$

Check the rewrite by multiplying its right-hand side by \(x-2\): \((x-2)+7=x+5\), as required. At \(x=0\), the derivative formula gives \(-7/((-2)^2)=-7/4\); the original function is also defined there.

Worked Example: Differentiate \(\frac{x-3}{x-4}\)

The denominator vanishes at \(x=4\), so the domain is \(x\ne 4\). Here \(a=4\) and \(b=-3\), giving \(a+b=1\). Rewrite the numerator:

$$ x-3=(x-4)+1. $$

Consequently,

$$ \frac{x-3}{x-4} = 1+\frac{1}{x-4}, \qquad x\ne 4. $$

Now differentiate term by term:

$$ \begin{aligned} \frac{d}{dx}\left(\frac{x-3}{x-4}\right) &=\frac{d}{dx}\left(1+\frac{1}{x-4}\right)\\ &=0-\frac{1}{(x-4)^2}\\ &=-\frac{1}{(x-4)^2}, \qquad x\ne 4. \end{aligned} $$

The decomposition checks because \((x-4)+1=x-3\). For instance, at \(x=5\), the original function is \((5-3)/(5-4)=2\), and the rewritten form is \(1+1/(5-4)=2\). The derivative at that input is \(-1/(5-4)^2=-1\).

Worked Example: Differentiate \(\frac{2x+1}{x-3}\)

This example uses a numerator whose coefficient of \(x\) is not one. The denominator is zero at \(x=3\), so the domain is \(x\ne 3\). Express the numerator using the denominator:

$$ 2x+1=2(x-3)+7. $$

The constant remainder is \(7\), so

$$ \frac{2x+1}{x-3} = 2+\frac{7}{x-3}, \qquad x\ne 3. $$

Differentiate:

$$ \begin{aligned} \frac{d}{dx}\left(\frac{2x+1}{x-3}\right) &=\frac{d}{dx}\left(2+\frac{7}{x-3}\right)\\ &=0+7\left(-\frac{1}{(x-3)^2}\right)\\ &=-\frac{7}{(x-3)^2}, \qquad x\ne 3. \end{aligned} $$

Check the decomposition: \(2(x-3)+7=2x-6+7=2x+1\). At \(x=4\), both forms give \(9\), since \((2(4)+1)/(4-3)=9\) and \(2+7/(4-3)=9\). The derivative formula gives \(-7/(4-3)^2=-7\).

A Cancellation Case and Its Domain

If \(a+b=0\), the reciprocal term in the decomposition has coefficient zero. For example, when \(a=3\) and \(b=-3\),

$$ \frac{x-3}{x-3}=1, \qquad x\ne 3. $$

On its domain, this function is constant, so its derivative is zero for every \(x\ne 3\). The original expression is still undefined at \(x=3\). Differentiation here concerns inputs in the function's domain; the rewrite does not authorize substituting the excluded input into the original function.

Common Pitfall: Getting the Remainder or Sign Wrong

A frequent mistake is to use \(b\), rather than \(a+b\), as the remainder in the decomposition. For \((x+5)/(x-2)\), that error would give

$$ \frac{x+5}{x-2} \ne 1+\frac{5}{x-2}. $$

Indeed, multiplying the proposed right-hand side by \(x-2\) produces \((x-2)+5=x+3\), not \(x+5\). The correct remainder is \(a+b=2+5=7\), because

$$ x+5=(x-2)+7. $$

Another sign error is to forget the minus sign in the reciprocal formula. Since

$$ \frac{d}{dx}\left(\frac{1}{x-a}\right) = -\frac{1}{(x-a)^2}, $$

the derivative of \(1+7/(x-2)\) is \(-7/(x-2)^2\), not \(7/(x-2)^2\). Squaring the denominator does not remove the negative sign produced by differentiating the reciprocal.

A Reliable Procedure

1
Find the excluded input.
Set the linear denominator equal to zero and record that the function is undefined there.
2
Rewrite the numerator.
Express it as a multiple of the denominator plus a constant remainder.
3
Divide into a sum.
Write the rational function as a constant plus a constant multiple of a reciprocal linear term.
4
Differentiate and check.
Use the reciprocal formula and sum rule, retain the domain restriction, and verify the algebraic decomposition.

Why This Form Is Useful

The rewrite separates two different parts of the function: a constant term and a shifted reciprocal term. The constant contributes zero to the derivative, while all of the derivative comes from the reciprocal term. This makes the source of both the coefficient and the negative sign visible.

It also provides a dependable check on the algebra. Multiplying the proposed decomposition by the original denominator must recover the numerator. If it does not, the remainder or the constant term is incorrect. Keeping the excluded input visible at each stage prevents a different error: treating an algebraically simplified expression as though it were defined at every real number.

Check Your Understanding

For each question, keep the domain restriction in view as well as the derivative.

  1. Rewrite \(\frac{x+4}{x-1}\) as a constant plus a reciprocal term, and state its domain.
  2. Differentiate \(\frac{x-2}{x+3}\) using the rewrite method.
  3. For \(\frac{3x-2}{x-2}\), find the constant remainder after expressing the numerator as a multiple of the denominator plus a constant.
  4. Explain why \(\frac{x-5}{x-5}=1\) does not make the original expression defined at \(x=5\).
  5. What sign belongs in the derivative of \(1/(x-a)\), and why?

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