Online Textbook Practice Tests 1500 Calculus Problems Solved About

2.3: Product Rule and Quotient Rule

We've differentiated sums and differences of functions. In this section we extend our scope to differentiate products and quotients of functions. We discuss the following topics:

Product Rule

A product is the result of multiplication; for example, the product of the numbers \(5\) and \(3\) is \(15.\) The Product Rule enables us to differentiate functions in the form \(f(x)g(x),\) where \(f\) and \(g\) are differentiable functions. The Product Rule states \[\deriv{}{x} \parbr{f(x) g(x)} = \deriv{}{x} [f(x)] \cdot g(x) + f(x) \cdot \deriv{}{x} [g(x)] \pd\] This form can be condensed. For convenience, we write \(f(x)\) as \(f\) and \(g(x)\) as \(g.\) [In general, \(f\) is shorthand for \(f(x)\) and \(g\) is shorthand for \(g(x).\)] If primes denote derivatives with respect to \(x,\) then a condensed version of the Product Rule is \begin{equation} \par{fg}' = f'g + fg' \pd \label{eq:product-rule} \end{equation} Note the alternating pattern of the primes. In words, the Product Rule asserts that the derivative of a product of two functions is the derivative of the first function multiplied by the second function, plus the first function multiplied by the derivative of the second function.

It is important to note that, generally, the derivative of a product of two functions isn't the product of their derivatives. For example, if \(f(x) = x\) and \(g(x) = x^2,\) then the Power Rule (from Section 2.2) gives \[\par{fg}' = \par{x \cdot x^2}' = \par{x^3}' = 3x^2 \pd\] But \[f' g' = \par{x}' \cdot \par{x^2}' = 1 \cdot 2x \ne 3x^2 \pd\] Thus, \((fg)' \ne f' g'.\)

PRODUCT RULE
If \(f\) and \(g\) are differentiable functions, then the Product Rule states \begin{equation} \par{fg}' = f'g + fg' \pd \eqlabel{eq:product-rule} \end{equation}

PROOF OF THE PRODUCT RULE Let \(f\) and \(g\) be differentiable functions. By the limit definition of a derivative, the derivative of \(f(x) g(x)\) is given by \[\deriv{}{x} \parbr{f(x)g(x)} = \lim_{h \to 0} \frac{f(x + h) g(x + h) - f(x) g(x)}{h} \pd\] To find an equivalent expression involving the derivatives of \(f\) and \(g,\) we add and subtract the same quantity \(f(x + h) g(x).\) Doing so and using limit laws (from Section 1.2) demonstrate \begin{align} \deriv{}{x} \parbr{f(x)g(x)} &= \lim_{h \to 0} \frac{f(x + h) g(x + h) \orange{- f(x + h) g(x) + f(x + h) g(x)} - f(x) g(x)}{h} \nonumber \nl &= \lim_{h \to 0} \parbr{f(x + h) \, \frac{g(x + h) - g(x)}{h} + g(x) \frac{f(x + h) - f(x)}{h}} \nonumber \nl &= \lim_{h \to 0} f(x + h) \cdot \lim_{h \to 0} \frac{g(x + h) - g(x)}{h} + g(x) \lim_{h \to 0} \frac{f(x + h) - f(x)}{h} \nonumber \nl &= f(x) g'(x) + g(x) f'(x) \nonumber \nl &= f'g + fg' \eqlabel{eq:product-rule} \pd \end{align} \[\qedproof\]

Figure 1

Visualization of the Product Rule Let \(f(x)\) and \(g(x)\) be positive differentiable functions. As \(x\) is changed by some amount \(\Delta x,\) then \[\Delta f = f(x + \Delta x) - f(x) \and \Delta g = g(x + \Delta x) - g(x) \pd\] Observe that \(\Delta f \to 0\) and \(\Delta g \to 0\) as \(\Delta x \to 0.\) We now interpret \(f\) and \(g\) geometrically. In Figure 1, a rectangle of area \(A\) has horizontal length \(f\) and vertical length \(g.\) Then \(A = fg.\) Suppose that the rectangle's sides are expanded horizontally by \(\Delta f\) and vertically by \(\Delta g.\) By geometry, the change in area is given by \[\Delta A = f \Delta g + g \Delta f + \Delta f \Delta g \pd\] Dividing both sides of the equation by \(\Delta x\) shows \[ \diffDelta{A}{x} = f \diffDelta{g}{x} + g \diffDelta{f}{x} + \Delta f \diffDelta{g}{x} \pd \] If we let \(\Delta x\) approach \(0,\) then all the ratios become derivatives. Using limit laws (from Section 1.2), we see \begin{align} \deriv{A}{x} &= \lim_{\Delta x \to 0} \diffDelta{A}{x} \nonumber \nl &= \lim_{\Delta x \to 0} \par{f \diffDelta{g}{x} + g \diffDelta{f}{x} + \Delta f \diffDelta{g}{x}} \nonumber \nl &= f \lim_{\Delta x \to 0} \diffDelta{g}{x} + g \lim_{\Delta x \to 0} \diffDelta{f}{x} + \par{\lim_{\Delta x \to 0} \Delta f} \par{\lim_{\Delta x \to 0} \diffDelta{g}{x}} \nonumber \nl &= f \deriv{g}{x} + g \deriv{f}{x} + 0 \cdot \par{\lim_{\Delta x \to 0} \diffDelta{g}{x}} \nonumber \nl &= f'g + fg' \pd \eqlabel{eq:product-rule} \end{align}

EXAMPLE 1
\[\deriv{}{x} \par{x e^x}\]
The expression \(x e^x\) is a product of two functions: \(x\) and \(e^x.\) We let \[f(x) = x \and g(x) = e^x \pd\] The derivative of \(x\) is \(1,\) and the derivative of \(e^x\) is \(e^x\) (recall from Section 2.2). So \[f'(x) = 1 \and g'(x) = e^x \pd\] Accordingly, the Product Rule, as in \(\eqref{eq:product-rule},\) gives \[ \ba \deriv{}{x} \par{x e^x} &= f'g + fg' \nl &= (1) e^x + x \par{e^x} \nl &= \boxed{e^x + xe^x} \ea \]
EXAMPLE 2
\[\deriv{}{x} \parbr{\par{2x - 1} \sqrt x \,}\]
We can use one of two methods to determine this derivative.

Method 1 Letting \(f(x) = 2x - 1\) and \(g(x) = \sqrt x,\) we see \[f'(x) = 2 \and g'(x) = \frac{1}{2 \sqrt x} \pd\] The Product Rule, as in \(\eqref{eq:product-rule},\) therefore gives \[ \ba \deriv{}{x} \parbr{\par{2x - 1} \sqrt x} &= f'g + fg' \nl &= (2) \sqrt x + (2x - 1) \cdot \frac{1}{2 \sqrt x} \nl &= 2 \sqrt x + \frac{2x - 1}{2 \sqrt x} \nl &= \boxed{\frac{6x - 1}{2 \sqrt x}} \ea \]

Method 2 We write \(\sqrt x\) as \(x^{1/2}\) and expand the product, as follows: \[\par{2x - 1} \cdot x^{1/2} = 2 x^{3/2} - x^{1/2} \pd\] Combining the Difference and Constant Multiple Rules for Derivatives (from Section 2.1) with the Power Rule, we see \[ \ba \deriv{}{x} \par{2 x^{3/2} - x^{1/2}} &= 2 \deriv{}{x} \par{x^{3/2}} - \deriv{}{x} \par{x^{1/2}} \nl &= 2 \par{\tfrac{3}{2} x^{1/2}} - \par{\tfrac{1}{2} x^{-1/2}} \nl &= 3 \sqrt x - \frac{1}{2 \sqrt x} \nl &= \boxed{\frac{6x - 1}{2 \sqrt x}} \ea \] Method 2 is easier to use than Method 1. Thus, be aware of shortcuts that enable you to avoid the Product Rule.

EXAMPLE 3
Find the \(x\)-coordinates at which the graph of \(y = x^2 e^x + 1\) has horizontal tangents.
Figure 2
The graph has a horizontal tangent if its slope is \(0\)—that is, when \(\textderiv{y}{x} = 0.\) Using the Sum and Constant Rules for Derivatives (from Section 2.1) in conjunction with the Product Rule, we see \[ \ba \deriv{y}{x} &= \deriv{}{x} \par{x^2 e^x} + \deriv{}{x} \par{1} \nl &= \parbr{\par{2x} e^x + x^2 \par{e^x}} + (0) \nl &= e^x \par{x^2 + 2x} \pd \ea \] We solve \(\textderiv{y}{x} = 0,\) as follows: \[ \ba x^2 + 2x &= 0 \nl x(x + 2) &= 0 \nl \implies x &= -2 \cma x = 0 \pd \ea \] Thus, the graph has horizontal tangents when \(\boxed{x = -2}\) and \(\boxed{x = 0}\) (Figure 2).

Quotient Rule

A quotient is the result of division; for example, the quotient of \(12\) divided by \(6\) is \(2.\) To differentiate expressions in the form \(f(x)/g(x),\) where \(f\) and \(g\) are differentiable functions, we use the Quotient Rule, which states \[\deriv{}{x} \parbr{\frac{f(x)}{g(x)}} = \frac{f'(x) g(x) - f(x) g'(x)}{[g(x)]^2} \cma\] given that \(g(x) \ne 0.\) Or if primes denote derivatives with respect to \(x,\) then we can write a condensed form of the Quotient Rule: \begin{equation} \par{\frac{f}{g}}' = \frac{f'g - fg'}{g^2} \cma g \ne 0 \pd \label{eq:quotient-rule} \end{equation} The expression \(f'g - fg'\) may look similar to the Product Rule, as in \(\eqref{eq:product-rule},\) but don't disregard the negative sign. The following mnemonic may help you remember the Quotient Rule:

The derivative is Low Dee High minus High Dee Low, all over the square of what's below,
where Dee indicates the differentiation operator, High denotes the numerator, and Low references the denominator. Accordingly, Dee High denotes \(f'\) and Dee Low references \(g'.\)

QUOTIENT RULE
If \(f\) and \(g\) are differentiable functions and \(g \ne 0,\) then the Quotient Rule states that \begin{equation} \par{\frac{f}{g}}' = \frac{f'g - fg'}{g^2} \pd \eqlabel{eq:quotient-rule} \end{equation}

PROOF OF THE QUOTIENT RULE To prove the Quotient Rule, we employ a clever trick by adding and subtracting the same quantity. The limit definition of a derivative states \[ \ba \deriv{}{x} \parbr{\frac{f(x)}{g(x)}} &= \lim_{h \to 0} \frac{\ds \frac{f(x + h)}{g(x + h)} - \frac{f(x)}{g(x)}}{h} \nl &= \lim_{h \to 0} \frac{g(x) f(x + h) - f(x) g(x + h)}{h g(x) g(x + h)} \pd \ea \] We now add and subtract the quantity \(f(x) g(x)\) so that the derivatives \(f'(x)\) and \(g'(x)\) appear from this fraction: \begin{align} \deriv{}{x} \parbr{\frac{f(x)}{g(x)}} &= \lim_{h \to 0} \frac{g(x) f(x + h) \orange{- f(x)g(x) + f(x)g(x)} - f(x) g(x + h)}{h g(x) g(x + h)} \nonumber \nl &= \frac{\ds \lim_{h \to 0} \frac{g(x) \parbr{f(x + h) - f(x)}}{h} - \lim_{h \to 0} \frac{f(x) \parbr{g(x + h) - g(x)}}{h}}{\ds \lim_{h \to 0} [g(x) g(x + h)]} \nonumber \nl &= \frac{\ds g(x) \lim_{h \to 0} \frac{f(x + h) - f(x)}{h} - f(x)\lim_{h \to 0} \frac{g(x + h) - g(x)}{h}}{\ds g(x) \lim_{h \to 0} g(x + h)} \nonumber \nl &= \frac{g(x) f'(x) - f(x) g'(x)}{[g(x)]^2} \nonumber \nl &= \frac{f'g - fg'}{g^2} \eqlabel{eq:quotient-rule} \end{align} \[\qedproof\]

EXAMPLE 4
\[\deriv{}{x} \par{\frac{\sin x}{x}}\]
The expression \((\sin x)/x\) is a quotient of functions. We let \(f(x) = \sin x\) and \(g(x) = x,\) from which we see \[f'(x) = \cos x \and g'(x) = 1 \pd\] Then the Quotient Rule, as in \(\eqref{eq:quotient-rule},\) gives the derivative of \(f(x)/g(x)\) to be \[ \ba \frac{f'g - fg'}{g^2} &= \frac{(\cos x) \, x - \sin x (1)}{x^2} \nl &= \boxed{\frac{x \cos x - \sin x}{x^2}} \ea \]
EXAMPLE 5
\[\deriv{}{x} \par{\frac{x^4}{e^x + 2}}\]
The expression \(x^4/(e^x + 2)\) is a quotient of functions. Let \(f(x) = x^4\) and \(g(x) = e^x + 2.\) Then we have \[f'(x) = 4x^3 \and g'(x) = e^x \pd\] The Quotient Rule, as in \(\eqref{eq:quotient-rule},\) therefore shows the derivative of \(f(x)/g(x)\) to be \[ \ba \frac{f'g - fg'}{g^2} &= \frac{\par{4x^3} \par{e^x + 2} - x^4 \par{e^x}}{\par{e^x + 2}^2} \nl &= \boxed{\frac{4x^3 e^x + 8x^3 - x^4 e^x}{\par{e^x + 2}^2}} \ea \]

It's important to be vigilant: Some quotients of functions don't require the Quotient Rule, since it may be easier to first simplify them into sums of powers. A good example is \[\frac{x^4 - x^2 + \sqrt x}{x} \cma\] which we can simplify as \[\frac{x^4 - x^2 + x^{1/2}}{x} = x^3 - x + x^{-1/2} \pd\] Differentiating this new form is far easier, as it only requires the Power Rule.

Derivatives of Tangent, Secant, Cosecant, and Cotangent

In Section 2.2 we found that \[\deriv{}{x} \par{\sin x} = \cos x \and \deriv{}{x} \par{\cos x} = - \sin x \pd\] The functions \(\tan x,\) \(\sec x,\) \(\csc x,\) and \(\cot x\) can all be expressed in terms of sine and cosine, as follows: \[ \baat{2} \tan x &= \frac{\sin x}{\cos x} \lspace \cot x &&= \frac{\cos x}{\sin x} \nl \sec x &= \frac{1}{\cos x} \lspace \csc x &&= \frac{1}{\sin x} \pd \eaat \] Thus, the Quotient Rule enables us to differentiate all four functions.

Derivative of Tangent Since \(\tan x = \sin x/\cos x,\) the Quotient Rule shows \[ \ba \deriv{}{x} \par{\tan x} &= \frac{(\cos x) \cos x - \sin x (-\sin x)}{\cos^2 x} \nl &= \frac{\cos^2 x + \sin^2 x}{\cos^2 x} \pd \ea \] The Pythagorean identity states that \(\cos^2 x + \sin^2 x = 1,\) so \[\deriv{}{x} \par{\tan x} = \frac{1}{\cos^2 x} = \boxed{\sec^2 x}\]

EXAMPLE 6
\[\deriv{}{x} \par{\sec x}\]
We rewrite \(\sec x\) as \(1/\cos x,\) a quotient. Accordingly, the Quotient Rule gives the derivative to be \[\frac{(0) \cos x - 1 (-\sin x)}{\cos^2 x} = \frac{\sin x}{\cos^2 x} \pd\] Now let us perform some further simplification: \[\frac{\sin x}{\cos^2 x} = \frac{1}{\cos x} \cdot \frac{\sin x}{\cos x} = \boxed{\sec x \tan x}\] This result shows that the derivative function of \(\sec x\) is itself multiplied by \(\tan x.\)

As we've seen through the derivatives of \(\tan x\) and \(\sec x,\) understanding the Quotient Rule allows us to differentiate all six standard trigonometric functions. We attain the following table of trigonometric derivatives, which are so important that memorizing them is essential.

DERIVATIVES OF TRIGONOMETRIC FUNCTIONS
\(\ds \deriv{}{x} \par{\sin x} = \cos x\) \(\ds \deriv{}{x} \par{\cos x} = -\sin x\)
\(\ds \deriv{}{x} \par{\tan x} = \sec^2 x\) \(\ds \deriv{}{x} \par{\cot x} = -\csc^2 x\)
\(\ds \deriv{}{x} \par{\sec x} = \sec x \tan x\) \(\ds \deriv{}{x} \par{\csc x} = -\csc x \cot x\)

Up to this point, you may have questioned why we use the reciprocal trigonometric functions (tangent, secant, cosecant, and cotangent). But we now appreciate how reciprocal functions enable us to easily communicate derivatives of otherwise complicated compositions with sine and cosine. The following tips may help you remember these derivatives.

  1. Any trigonometric function containing the prefix co- (cosine, cosecant, and cotangent) has a negative sign in its derivative.
  2. Secant and cosecant are the only trigonometric functions whose derivatives include themselves as factors.
  3. Tangent and cotangent are the only trigonometric functions whose derivatives are squared.

EXAMPLE 7
\[\deriv{}{t} \par{\sqrt[3]{t} \, \cot t}\]
We write \(\sqrt[3] t\) as \(t^{1/3}.\) Its derivative is, by the Power Rule, \(\tfrac{1}{3} t^{-2/3}.\) The derivative of \(\cot t\) is \(-\csc^2 t,\) so by the Product Rule \[ \ba \deriv{}{t} \par{\sqrt[3]{t} \, \cot t} &= \par{\tfrac{1}{3} t^{-2/3}} \cot t + t^{1/3} \par{-\csc^2 t} \nl &= \boxed{\frac{\cot t}{3\sqrt[3]{t^2}} - \sqrt[3]{t} \, \csc^2 t} \ea \]
EXAMPLE 8
\[\deriv{}{t} \par{\frac{2 + \sec t}{t^4}}\]
The derivative of \(\sec t\) is \(\sec t \tan t.\) By the Quotient Rule, \[ \ba \deriv{}{t} \par{\frac{2 + \sec t}{t^4}} &= \frac{\par{\sec t \tan t} t^4 - \par{4t^3}(2 + \sec t)}{\par{t^4}^2} \nl &= \boxed{\frac{t \sec t \tan t - 8 - 4 \sec t}{t^5}} \ea \]

Product Rule The Product Rule enables us to differentiate products of functions of the form \(f(x) g(x).\) If \(f\) and \(g\) are differentiable functions, then \begin{equation} \par{fg}' = f'g + fg' \pd \eqlabel{eq:product-rule} \end{equation} Observe the alternating pattern of the primes. Remember that the derivative of a product is not a product of derivatives; namely, \(\par{fg}' \ne f' g'.\)

Quotient Rule The Quotient Rule enables us to differentiate quotients of functions in the form \(f(x)/g(x)\) where \(g(x) \ne 0.\) If \(f\) and \(g\) are differentiable functions, then \begin{equation} \par{\frac{f}{g}}' = \frac{f'g - fg'}{g^2} \cma g \ne 0 \pd \eqlabel{eq:quotient-rule} \end{equation} Do not forget the negative sign. The derivative of a quotient is not a quotient of derivatives; that is, \((f/g)' \ne\) \(f'/g'.\) The algebra involved in differentiation can be wearying; the only remedy is to continue practicing problems. Doing so will help you improve your speed and make fewer mistakes.

Derivatives of Tangent, Secant, Cosecant, and Cotangent The Quotient Rule enables us to differentiate the functions \(\tan x,\) \(\sec x,\) \(\csc x,\) and \(\cot x.\) The derivatives are given as follows:

\(\ds \deriv{}{x} \par{\sin x} = \cos x\) \(\ds \deriv{}{x} \par{\cos x} = -\sin x\)
\(\ds \deriv{}{x} \par{\tan x} = \sec^2 x\) \(\ds \deriv{}{x} \par{\cot x} = -\csc^2 x\)
\(\ds \deriv{}{x} \par{\sec x} = \sec x \tan x\) \(\ds \deriv{}{x} \par{\csc x} = -\csc x \cot x\)

The following tips may help you remember these derivatives.

  1. Any trigonometric function containing the prefix co- (cosine, cosecant, and cotangent) has a negative sign in its derivative.
  2. Secant and cosecant are the only trigonometric functions whose derivatives include themselves as factors.
  3. Tangent and cotangent are the only trigonometric functions whose derivatives are squared.