Unit 2 · Topic 2.9

Differentiate a quotient

Builds on the definition of the derivative, the limit laws and the derivatives of the basic functions. 12 minutes.

  1. Example 1Differentiate a quotient
  2. Example 2Use a quotient rule with data
  3. Example 3Use a quotient derivative at a point
  4. Example 4Check a simplified derivative

A quotient of two functions, a numerator \(f\) over a denominator \(g\), is the function

\[Q(x)=\frac{f(x)}{g(x)}\]

defined at every \(x\) where \(f\) and \(g\) are defined and \(g(x)\neq 0\). This page also calls \(f\) the top and \(g\) the bottom. The derivative of a quotient is not the quotient of the derivatives. By the power rule, \(1/x=x^{-1}\) has the derivative \(-x^{-2}\), but the derivatives of its top and bottom give \(0/1=0\). This topic finds \(Q'\) from \(f\), \(g\) and their derivatives.

The slope of a quotient

Two graphs, one above the other, share a horizontal axis. In the upper graph, a solid line f rises from left to right, and below it a dashed curve g rises slowly at first and then faster. Both stay above the axis. The lower graph shows their quotient Q, which rises to a peak and then falls. An orange point on Q has an orange tangent line. A faint dashed line runs one unit to the right of the point, and at its end a green bar rises and a red bar then falls to an orange dot on the tangent. A button tilts g until it crosses the axis. Then the graph of Q breaks into two pieces on either side of a dashed vertical line, and at that input the point and the tangent disappear.

Figure 1The upper graph shows \(f\), solid, and \(g\), dashed, and the lower graph shows \(Q=f/g\) with its orange tangent. Orange points mark \(x\) on each curve, and faint dashed lines join them and run one unit to the right of the point on \(Q\). There, the green bar rises by the part of the slope from \(f\), and the red bar falls by the part from \(g\).

Figure 1 shows a top \(f\) and a bottom \(g\), both positive and increasing, and below them their quotient \(Q=f/g\) with its tangent line. As \(x\) increases, the growth of \(f\) raises \(Q\), and the growth of \(g\) lowers it, so the slope of \(Q\) depends on both.

To find the slope, let \(f\) and \(g\) be differentiable at \(x\), with \(g(x)\neq 0\). Write \(f\), \(g\) and \(Q\) for \(f(x)\), \(g(x)\) and \(Q(x)\). When \(x\) changes to \(x+h\), for a small \(h\neq 0\) of either sign, write \(\Delta f\), \(\Delta g\) and \(\Delta Q\) for their changes. A differentiable function is continuous (topic 2.4), so \(\Delta g\) approaches 0 as \(h\) approaches 0. The new bottom \(g+\Delta g\) is then close to \(g\), which is not 0, so it is not 0 for \(h\) close enough to 0. For such \(h\), \(Q(x+h)\) is defined, and over the common denominator \(g\,(g+\Delta g)\), the two terms \(fg\) cancel:

\[\begin{aligned}\Delta Q&=\frac{f+\Delta f}{g+\Delta g}-\frac{f}{g}\\&=\frac{g\,(f+\Delta f)-f\,(g+\Delta g)}{g\,(g+\Delta g)}\\&=\frac{g\,\Delta f-f\,\Delta g}{g\,(g+\Delta g)}\end{aligned}\]

Divide both sides by \(h\):

\[\frac{\Delta Q}{h}=\frac{g\cdot\dfrac{\Delta f}{h}-f\cdot\dfrac{\Delta g}{h}}{g\,(g+\Delta g)}\]

As \(h\) approaches 0, \(\Delta f/h\) approaches \(f'(x)\) and \(\Delta g/h\) approaches \(g'(x)\), because \(f\) and \(g\) are differentiable at \(x\). As \(\Delta g\) approaches 0, the common denominator \(g\,(g+\Delta g)\) approaches \(g^2\), which is not 0. By the limit laws for sums, differences, products and quotients (topic 1.5), \(\Delta Q/h\) then approaches \(\frac{g\,f'-f\,g'}{g^2}\), with every value taken at \(x\). This limit is the derivative \(Q'(x)\), and the result is the quotient rule.

Split the fraction into two parts:

\[\cy{Q'}=\frac{f'}{g}-Q\cdot\frac{g'}{g}\]

If \(g\) stayed fixed, \(Q\) would be \(f\) divided by a constant, with the derivative \(f'/g\) (topic 2.6). The first part is therefore the rate that comes from the change in \(f\). The second part, which is subtracted, is all that remains when \(f'=0\), so it comes from the change in \(g\). In Figure 1, one unit to the right of the point on \(Q\), the green bar rises by the first part. The red bar then falls by the second part, down to the orange dot on the tangent. Over that unit, the tangent rises by the green length minus the red length, which is \(\cy{Q'}\). Move \(x\) to the right. Once the red bar is longer than the green bar, the tangent falls.

The rule needs \(g(x)\neq 0\). Use the button under Figure 1 to tilt \(g\) until it crosses 0. The points move to the right, and the bars and the faint line at \(x\) disappear. A dashed line marks the input where \(g\) is 0. The graph of \(Q\) breaks into two pieces there, because \(Q\) has no value at that input. Then move \(x\) onto the dashed line with the second button. The point on \(Q\) and its tangent disappear. A function has no derivative where it has no value, so \(Q\) has no derivative there.

If the top is a constant \(c\), then \(f'=0\), so the rule gives \(-c\,g'/g^2\). With \(c=1\), this case is called the reciprocal rule. If the top is a polynomial and the bottom is a power of \(x\), divide each term by the bottom, and the power rule applies. For \(x\neq 0\), \(\frac{x^2+3}{x}=x+3x^{-1}\) has the derivative \(1-3x^{-2}\). The quotient rule gives the same function, \(\frac{x^2-3}{x^2}\), so each route checks the other.

Values, slopes and rates at one input

At one input \(a\), the quotient rule uses only four numbers: \(f(a)\), \(f'(a)\), \(g(a)\) and \(g'(a)\). A table of values is enough, as long as all four numbers belong to the same input. If \(g(a)=0\), then \(Q\) has no value at \(a\), and \(Q'(a)\) does not exist. Otherwise \(g(a)^2\) is positive, even when \(g(a)\) is negative. The roles come from the places in the fraction, not from the letters: in \(g/f\), the top is \(g\).

The number \(Q'(a)\) is the slope of the tangent line to the graph of \(Q\) at \((a,Q(a))\). In a model, it is the rate of change of \(Q\), in units of \(Q\) per unit of the input. Either way, \(a\) must be in the domain of \(Q\). A model can also allow fewer inputs, such as only times \(t\ge 0\), and a solution outside them does not answer the question.

Simplify first, but keep the domain

If the top and the bottom share a factor, you can cancel it first. For example, \(p(x)=\frac{x^3-x^2}{x-1}=\frac{x^2(x-1)}{x-1}\). The factor \(x-1\) cancels only where it is not 0, so \(p(x)=x^2\) for \(x\neq 1\), and \(p(1)\) is not defined.

Two graphs, one above the other, share a horizontal axis numbered from −2 to 2. The upper graph shows p, the parabola y = x squared, with an open ring at (1, 1), where p has no value. An orange point on it has an orange tangent line, with its slope written beside it. The lower graph shows p prime, the line y = 2x, with an open ring at (1, 2). An orange bar at the same x rises or falls from the axis to the line, as far as the slope. When the point moves onto x = 1, the point, the tangent and the bar disappear.

Figure 2The orange point on the graph of \(p\) has its orange tangent line. On the graph of \(p'\) below, the orange bar at the same \(x\) has that slope as its height, and orange numbers give both values. Open rings at \(x=1\) mark where \(p\) and \(p'\) have no value.

The derivative at an input \(a\) is the limit of the difference quotient \(\frac{p(a+h)-p(a)}{h}\) as \(h\) approaches 0. It depends only on \(p(a)\) and on the values of \(p\) near \(a\). For \(a\neq 1\), \(p\) equals \(x^2\) near \(a\), so \(p'(a)=2a\). At \(a=1\), the difference quotient needs \(p(1)\), which does not exist, so \(p'(1)\) does not exist either, although \(2x\) has a value at 1. Both graphs in Figure 2 have an open ring at \(x=1\). Move the point onto the ring. The point, its tangent, the bar and the numbers disappear.

Two forms of a derivative are equivalent when they are equal at every input where the derivative exists. To check an answer, simplify both forms, or differentiate a simplified form of the function as a second route. State the inputs that the original quotient excludes, even where the simplified formula has a value.

Example 1

Differentiate a quotient

Let \(y=\dfrac{e^x}{x^2+1}\). Find \(\dfrac{dy}{dx}\).

Solution

The top \(e^x\) and the bottom \(x^2+1\) are differentiable for every \(x\). The bottom is at least 1, so it is never 0. The quotient rule puts the bottom times the derivative of the top first:

\[\begin{aligned}\frac{dy}{dx}&=\frac{\left(x^2+1\right)e^x-e^x\cdot 2x}{\left(x^2+1\right)^2}\\&=\frac{e^x\left(x^2-2x+1\right)}{\left(x^2+1\right)^2}\\&=\frac{e^x\,(x-1)^2}{\left(x^2+1\right)^2}\end{aligned}\]

The square of the bottom, \(\left(x^2+1\right)^2\), stays in the answer. The derivative is 0 at \(x=1\), where the tangent is horizontal, and positive at every other \(x\).

Example 2

Use a quotient rule with data

The table gives values of the differentiable functions \(f\) and \(g\) and their derivatives. Let \(Q(x)=\dfrac{f(x)}{g(x)}\). Find \(Q'(2)\), and explain why \(Q'(4)\) does not exist. \[\begin{array}{c|cccc} x & f(x) & f'(x) & g(x) & g'(x)\\ \hline 1 & 5 & 2 & -6 & 4\\ 2 & 8 & 5 & -3 & 6\\ 3 & 9 & 1 & -1 & 2\\ 4 & 10 & -3 & 0 & 1 \end{array}\]

Solution

In the row \(x=2\), the bottom is \(g(2)=-3\), which is not 0, so \(Q\) is defined at 2 and the quotient rule applies there:

\[\begin{aligned}Q'(2)&=\frac{g(2)\,f'(2)-f(2)\,g'(2)}{\big[g(2)\big]^2}\\&=\frac{(-3)(5)-(8)(6)}{(-3)^2}\\&=\frac{-63}{9}=-7\end{aligned}\]

In the row \(x=4\), the bottom is \(g(4)=0\), so \(Q(4)\) has no value. A function has no derivative where it has no value, so \(Q'(4)\) does not exist, even though the table gives \(f'(4)\) and \(g'(4)\).

Example 3

Use a quotient derivative at a point

After \(t\) weeks of practice, a student types \(W(t)=\dfrac{50t}{t+4}\) words per minute, for \(t\ge 0\). At what time is the typing speed increasing at 2 words per minute per week?

Solution

The bottom \(t+4\) is positive for \(t>0\), so \(W\) is differentiable for every \(t>0\). Its rate \(W'(t)\) is in words per minute per week:

\[\begin{aligned}W'(t)&=\frac{(t+4)\cdot 50-50t\cdot 1}{(t+4)^2}\\&=\frac{200}{(t+4)^2}\end{aligned}\]

Set the rate equal to 2:

\[\begin{aligned}\frac{200}{(t+4)^2}&=2\\ (t+4)^2&=100\\ t+4&=10\ \text{ or }\ t+4=-10\end{aligned}\]

The roots are \(t=6\) and \(t=-14\). The model holds only for \(t\ge 0\), so the speed increases at 2 words per minute per week at \(t=6\), after six weeks of practice.

Example 4

Check a simplified derivative

The quotient rule gives the derivative of \(k(x)=\dfrac{x^2+2x-3}{x^2-1}\) as \(k'(x)=\dfrac{-2x^2+4x-2}{\left(x^2-1\right)^2}\). Show that \(k'(x)=-\dfrac{2}{(x+1)^2}\), and state the values of \(x\) for which this is true.

Solution

The bottom of \(k\) is \(x^2-1=(x-1)(x+1)\), so neither \(k\) nor \(k'\) has a value at \(x=1\) or \(x=-1\). For every other \(x\), factor the top and the bottom of the derivative:

\[\begin{aligned}k'(x)&=\frac{-2\left(x^2-2x+1\right)}{(x-1)^2(x+1)^2}\\&=\frac{-2\,(x-1)^2}{(x-1)^2(x+1)^2}\\&=-\frac{2}{(x+1)^2}\end{aligned}\]

The factor \((x-1)^2\) cancels, because it is not 0 when \(x\neq 1\). As a check by another route, \(k(x)=\frac{(x-1)(x+3)}{(x-1)(x+1)}=\frac{x+3}{x+1}\) for \(x\neq\pm 1\). The quotient rule on this form gives \(\frac{(x+1)-(x+3)}{(x+1)^2}=-\frac{2}{(x+1)^2}\) as well.

The equation holds for every \(x\) except 1 and \(-1\).

Each example is one of the four skills of topic 2.9 in Which & Why: AP Calculus.