When a Function Is a Quotient
A polynomial divided by another polynomial defines a rational function wherever the denominator is nonzero. Differentiating such a function requires care: differentiating the top and bottom separately does not give the derivative of the quotient.
The quotient rule organizes the calculation. Once its two polynomial derivatives are found, the remaining work is to substitute them in the correct order, expand the numerator, and state where the result is defined.
In this formula, \(f\) is the numerator and \(g\) is the denominator. The numerator of the derivative is top derivative times bottom, minus top times bottom derivative. The denominator is the original denominator squared. Preserving that order and the parentheses around each polynomial prevents many errors.
A Reliable Calculation Pattern
For a quotient \(f(x)/g(x)\), use the following sequence. The quotient rule is the result established in the earlier material on deriving the quotient rule from product and reciprocal rules; here the focus is applying it to polynomials.
Write \(f(x)\) for the numerator and \(g(x)\) for the denominator. Note that the original function is defined only where \(g(x)\ne 0\).
Find \(f'(x)\) and \(g'(x)\) separately using the power rule and the rules for sums and constant multiples.
Form \(f'g-fg'\), then divide by \(g^2\). Use parentheses when substituting expressions with more than one term.
Distribute carefully in the numerator, combine like powers, and keep the squared denominator intact.
Exclude any real values that make the original denominator zero. To check the algebra, evaluate the unsimplified quotient-rule expression and the final expression at a convenient allowed value.
Worked Examples
Worked Example: A Quadratic over a Linear Polynomial
Differentiate \(y=(x^2+1)/(x+2)\) and state where the derivative is defined.
Set \(f(x)=x^2+1\) and \(g(x)=x+2\). Their derivatives are \(f'(x)=2x\) and \(g'(x)=1\). The original denominator is zero when \(x=-2\), so the function and its derivative are considered only for \(x\ne -2\).
Apply the quotient rule:
Expand the first product and distribute the minus sign across the entire second product:
Therefore,
Check at \(x=1\). In the quotient-rule expression, \(f(1)=2\), \(g(1)=3\), \(f'(1)=2\), and \(g'(1)=1\), so \(y'(1)=(2\cdot3-2\cdot1)/3^2=4/9\). The simplified expression gives \((1+4-1)/(1+2)^2=4/9\) as well.
Worked Example: A Cubic over a Quadratic Polynomial
Differentiate \(y=(3x^3-2x+5)/(x^2+1)\).
Let \(f(x)=3x^3-2x+5\) and \(g(x)=x^2+1\). Differentiating each polynomial gives \(f'(x)=9x^2-2\) and \(g'(x)=2x\). Since \(x^2+1>0\) for every real \(x\), the denominator never vanishes, and the quotient is defined for all real \(x\).
Substitute in the quotient rule:
Expand each product separately, keeping the subtraction between them:
Subtract the second expansion from the first and collect like terms:
Thus
Check at \(x=0\). The original quotient-rule expression gives \(f(0)=5\), \(g(0)=1\), \(f'(0)=-2\), and \(g'(0)=0\), hence \(y'(0)=((-2)(1)-5(0))/1^2=-2\). The final expression gives \((0+0-0-2)/1^2=-2\), confirming the calculation at this point.
Worked Example: Excluding a Zero of the Denominator
Differentiate \(y=(2x^2-x+4)/(x^3+1)\) and specify its real domain.
Set \(f(x)=2x^2-x+4\) and \(g(x)=x^3+1\). Then \(f'(x)=4x-1\) and \(g'(x)=3x^2\). The denominator factors as \(x^3+1=(x+1)(x^2-x+1)\). The quadratic factor is positive for every real \(x\), since \(x^2-x+1=(x-\tfrac12)^2+\tfrac34>0\). Thus the only real zero of the denominator is \(x=-1\), which must be excluded.
Use the quotient rule:
Expand both products:
Now subtract the second polynomial from the first:
Therefore,
Check at \(x=1\). The quotient-rule expression has \(f(1)=5\), \(g(1)=2\), \(f'(1)=3\), and \(g'(1)=3\), so \(y'(1)=(3\cdot2-5\cdot3)/2^2=-9/4\). The simplified expression gives \((-2+2-12+4-1)/(1+1)^2=-9/4\), as required.
Why the Order and the Square Appear
The quotient rule has a particular structure, not an interchangeable collection of pieces. If \(q=f/g\), then \(f=qg\) wherever \(g\ne0\). Differentiating this product gives \(f'=q'g+qg'\). Substituting \(q=f/g\) and solving for \(q'\) gives
This identity explains both features that are easy to forget: the second term is subtracted, and dividing by \(g\) when isolating \(q'\) produces the denominator \(g^2\). The quotient rule itself requires \(g\ne0\); at a point where the original quotient is undefined, this formula does not define its derivative.
For the polynomial calculations, the power rule supplies each derivative: for a nonnegative integer \(n\), the derivative of \(x^n\) is \(nx^{n-1}\) when \(n\ge1\), and the derivative of a constant is zero. The examples then use ordinary distribution and collection of like terms. No special differentiation rule is needed for the expanded numerator.
A Common Sign and Parentheses Mistake
A frequent error is to subtract only the first term of the product \(fg'\), leaving the remaining terms with the wrong signs. For example, in the second worked example the numerator must include
The second product is \(6x^4-4x^2+10x\), and the minus sign applies to every term. The incorrect calculation
fails to change the signs of \(-4x^2\) and \(10x\). Distributing the subtraction correctly gives
Keeping the products in parentheses until after expansion is a reliable way to avoid this mistake. Also check the denominator: it is the square of the original denominator, not its derivative and not merely the original denominator.
What the Final Expression Tells You
A correct derivative formula is valid only on the domain of the original quotient. Squaring the denominator in the derivative does not restore a point excluded from the original function. For example, the first quotient is undefined at \(x=-2\), so its derivative formula is also stated only for \(x\ne-2\). In contrast, the second example has a denominator that is positive for every real \(x\), so no real input needs to be excluded.
It is useful to check a result at a value where the arithmetic is simple and the denominator is nonzero. Such a check can reveal an expansion or sign error, but a single matching value is not a proof that two formulas agree everywhere. The general formula comes from the quotient rule; the point check is an additional verification of the calculation.
Check Your Understanding
For each question, keep the numerator and denominator distinct and state any excluded real inputs.
- For \(y=(x^2-3)/(x+1)\), identify \(f\), \(g\), \(f'\), and \(g'\) before applying the quotient rule.
- In the quotient-rule numerator \(f'g-fg'\), which entire product is subtracted?
- Differentiate \((x^2+2)/(x^2+4)\) using the quotient rule and simplify the numerator.
- Why must the zeros of the original denominator be excluded even if the derivative expression has a squared denominator?
- For \((x^3+2)/(x^2-1)\), which real inputs are excluded from the function and its derivative?