Lesson Explainer: Combining the Product, Quotient, and Chain Rules Mathematics • Higher Education

In this explainer, we will learn how to find the first derivative of a function using combinations of the product, quotient, and chain rules.

Many functions are constructed from simpler functions by combining them in a combination of the following three ways:

  1. addition and subtraction: 𝑓(π‘₯)±𝑔(π‘₯);
  2. multiplication and division: 𝑓(π‘₯)𝑔(π‘₯) and 𝑓(π‘₯)𝑔(π‘₯);
  3. composition: 𝑓(𝑔(π‘₯)).

Fortunately, there are rules for differentiating functions that are formed in these ways. For addition and subtraction, we can use the linearity of the derivative; for multiplication and division, we have the product rule and quotient rule; and for composition, we can apply the chain rule.

Rules of Differentiation

For differentiable functions 𝑓 and 𝑔 and constants π‘Ž and 𝑏, we have the following rules:

  • Linearity: (π‘Žπ‘’(π‘₯)+𝑏𝑣(π‘₯))=π‘Žπ‘’(π‘₯)+𝑏𝑣(π‘₯).
  • Product rule: (𝑒(π‘₯)𝑣(π‘₯))=𝑒(π‘₯)𝑣(π‘₯)+𝑒(π‘₯)𝑣(π‘₯).
  • Quotient rule: for 𝑣(π‘₯)β‰ 0, 𝑒(π‘₯)𝑣(π‘₯)=𝑒(π‘₯)𝑣(π‘₯)βˆ’π‘’(π‘₯)𝑣(π‘₯)(𝑣(π‘₯)).
  • Chain rule: (𝑒(𝑣(π‘₯)))=𝑒(𝑣(π‘₯))𝑣(π‘₯).

Using these rules in conjunction with standard derivatives, we are able to differentiate any combination of elementary functions. Although it is possible to differentiate any combination of elementary functions, it is often not a trivial exercise and it can be challenging to identify the correct rules to apply, the best order to apply them, and whether there are algebraic simplifications that will make the process easier. In this explainer, we will look at a number of examples which will highlight the skills we need to navigate this landscape.

In many ways, we can think of complex functions like an onion where each layer is one of the three ways we can combine functions. To differentiate, we peel off each layer in turn, which will result in expressions that are simpler and easier to differentiate. For example, if we consider the function 𝑓(π‘₯)=π‘’βˆšπ‘₯+(π‘₯π‘₯),sinοŽ‘οŽ‘ο€Ίο—οŠ°οŠ«ο†lncos

we can get lost in the details. Generally, the best approach is to start at our outermost layer. Hence, for our function 𝑓, we begin by thinking of it as a sum of two functions, π‘’βˆšπ‘₯sinοŽ‘οŽ‘ο€Ίο—οŠ°οŠ«ο† and lncos(π‘₯π‘₯), to which we can apply the linearity of the derivative. In this way, we can ignore the complexity of the two expressions and simplify the task of finding the derivate by removing one layer of complexity. We can then consider each term separately and apply a similar approach. For example, for the first expression, we see that we have a quotient; therefore, we can apply the quotient rule to the quotient of the two expressions 𝑒sinοŽ‘οŽ‘ο€Ίο—οŠ°οŠ«ο† and √π‘₯. Once again, we are ignoring the complexity of the individual expressions and removing another layer from the function. We can keep doing this until we finally get to an elementary function that we can differentiate. We can represent this visually as follows.

Notice that all the functions at the bottom of the tree are functions that we can differentiate easily. Hence, we see that, by using the appropriate rules at each stage, we can find the derivative of very complex functions.

We will now look at a few examples where we apply this method. In the first example, we will consider a function defined in terms of polynomials and radical functions.

Example 1: Using the Rules of Differentiation with Rational Functions

Evaluate dd𝑦π‘₯ at (1,βˆ’1) if 𝑦=βˆ’2π‘₯√3π‘₯+1.


The outermost layer of this function is the negative sign. However, since we can simply take the minus sign outside of the derivative, we need not deal with this explicitly. We therefore consider the next layer which is the quotient. We can apply the quotient rule, 𝑒𝑣=π‘’π‘£βˆ’π‘’π‘£π‘£, by setting 𝑒=2π‘₯ and 𝑣=√3π‘₯+1. The derivative of 𝑒 is straightforward: 𝑒=2, whereas the derivative of 𝑣 is not as simple. 𝑣 is certainly simpler than 𝑦; therefore, we are heading in the right direction. Considering the expression for 𝑣, we can see that it is the composition of the functions 𝑣=βˆšπ‘€ and 𝑀=3π‘₯+1. We can, therefore, apply the chain rule (𝑣(𝑀))=𝑣(𝑀)π‘€οŽ˜οŽ˜οŽ˜ to calculate the derivative. First, we find the derivatives of 𝑣 and 𝑀; at this point, we have derivatives that we can easily evaluate using the power rule. Hence, 𝑣(𝑀)=12βˆšπ‘€,𝑀=6π‘₯.

Substituting these expressions back into the chain rule, we have 𝑣=3π‘₯√3π‘₯+1.

We can now apply the quotient rule as follows: 𝑒𝑣=2√3π‘₯+1βˆ’2π‘₯3π‘₯+1.οŽ˜οŠ¨οŠ©ο—βˆšοŠ©ο—οŠ°οŠ§οŠ¨οŽ‘

By expressing the numerator as a single fraction, we have 𝑒𝑣=3π‘₯+1=6π‘₯+2βˆ’6π‘₯(3π‘₯+1)√3π‘₯+1=2(3π‘₯+1)√3π‘₯+1.οŽ˜οŠ¨ο€ΊοŠ©ο—οŠ°οŠ§ο†οŠ±οŠ¬ο—βˆšοŠ©ο—οŠ°οŠ§οŠ¨οŠ¨οŠ¨οŠ¨οŠ¨οŠ¨οŠ¨οŽ‘οŽ‘οŽ‘

Finally, we recall that 𝑦=βˆ’π‘’π‘£; therefore, dd𝑦π‘₯=βˆ’2(3π‘₯+1)√3π‘₯+1.

Substituting π‘₯=1 in this expression gives dd𝑦π‘₯|||=βˆ’2(3+1)√3+1=βˆ’14.ο—οŠ²οŠ§

Example 2: Choosing the Best Strategy to Differentiate

Find the derivative of the function 𝑦=(π‘₯)π‘₯lntanοŠͺοŠͺ.


Before we dive into differentiating this function, it is worth considering what method we will use because there is more than one way to approach this. Since we can see that 𝑦 is the product of two functions, we could decompose it using the product rule. This would leave us with two functions we need to differentiate: (π‘₯)lnοŠͺ and tanοŠͺπ‘₯. Both of these would need the chain rule. Alternatively, we can rewrite the expression for the function in the form 𝑦=(π‘₯π‘₯)lntanοŠͺ. We see that it is the composition of two functions which we can apply the chain rule to; then, we have one function we need the product rule to differentiate.

Therefore, in this case, the second method is actually easier and requires less steps as the two diagrams demonstrate.

We will, therefore, use the second method.

We start by applying the chain rule to 𝑦=(π‘₯π‘₯)lntanοŠͺ. Setting 𝑦=𝑒οŠͺ and 𝑒=π‘₯π‘₯lntan, we have dd𝑦𝑒=4𝑒.

To find dd𝑒π‘₯, we can apply the product rule: ddtanddlnlnddtantanlnsectanlnsec𝑒π‘₯=π‘₯π‘₯(π‘₯)+π‘₯π‘₯(π‘₯)=π‘₯π‘₯+π‘₯π‘₯=π‘₯+π‘₯π‘₯π‘₯π‘₯.

Therefore, applying the chain rule, we have ddddddlntantanlnsec𝑦π‘₯=𝑦𝑒⋅𝑒π‘₯=4(π‘₯π‘₯)ο€Ύπ‘₯+π‘₯π‘₯π‘₯π‘₯.

The last example demonstrated two important points: firstly, that it is often worth considering the method we are going to use before we dive into the details and, secondly, that it is important to consider whether we can simplify our method with the use of some algebraic manipulation; this will not always be possible but it is certainly worth considering whether this is possible before getting lost in the algebra. In the following examples, we will see where we can and cannot simplify the expression we need to differentiate.

Example 3: Using the Rules of Differentiation with Exponential Functions

Find the derivative of the function 𝑦=5π‘₯π‘’οŠ¨οŽ ο‘.


This function can be decomposed as the product of 5π‘₯ and π‘’οŽ ο‘. However, it is worth considering whether it is possible to simplify the expression we have for the function. Unfortunately, there do not appear to be any useful algebraic techniques or identities that we can use for this function. Therefore, we will apply the product rule directly to the function. Hence, dddddddd𝑦π‘₯=𝑒π‘₯ο€Ή5π‘₯+5π‘₯π‘₯𝑒=10π‘₯𝑒+5π‘₯π‘₯𝑒.οŽ ο‘οŽ ο‘οŽ ο‘οŽ ο‘οŠ¨οŠ¨οŠ¨

We can now evaluate the derivative ddπ‘₯ο€½π‘’ο‰οŽ ο‘ using the chain rule: ddddπ‘₯𝑒=𝑒π‘₯ο€Ό1π‘₯=βˆ’π‘’ο€Ό1π‘₯=βˆ’π‘’π‘₯.οŽ ο‘οŽ ο‘οŽ ο‘οŽ ο‘οŠ¨οŠ¨

Hence, substituting this back into the expression for dd𝑦π‘₯, we have dd𝑦π‘₯=10π‘₯𝑒+5π‘₯οβˆ’π‘’π‘₯=10π‘₯π‘’βˆ’5𝑒=5𝑒(2π‘₯βˆ’1).οŽ ο‘οŽ ο‘οŽ ο‘οŽ ο‘οŽ ο‘οŠ¨οŠ¨

Example 4: Using the Rules of Differentiation with Trigonometric Functions

If 𝑦=9π‘₯5+5π‘₯sincos, find dd𝑦π‘₯.


At the top level, this function is a quotient of two functions 9π‘₯sin and 5+5π‘₯cos. However, before we dive into the details of differentiating this function, it is worth considering whether we can use any trigonometric identities to simplify the expression. Since we have a sine-squared term, we can use the Pythagorean identity to write this as sincosπ‘₯=1βˆ’π‘₯ as follows: 𝑦=9ο€Ή1βˆ’π‘₯5+5π‘₯.coscos

We can now factor the expressions in the numerator and denominator to get 𝑦=95(1βˆ’π‘₯)(1+π‘₯)1+π‘₯.coscoscos We now have a common factor in the numerator and denominator that we can cancel. We can do this since we know that, for 𝑦 to be defined, its domain must not include the points where 1+π‘₯=0cos. Hence, we can assume that on the domain of the function 1+π‘₯β‰ 0cos and can consequently cancel this common factor as follows: 𝑦=95(1βˆ’π‘₯).cos We now have an expression we can differentiate extremely easily. Hence, ddsin𝑦π‘₯=95π‘₯.

Clearly, taking the time to consider whether we can simplify the expression has been very useful. The alternative method to applying the quotient rule followed by the chain rule and then trying to simplify would involve a lot more steps and therefore has a greater propensity for error.

Example 5: Using the Rules of Differentiation with Logarithmic Functions

Differentiate the function 𝐻(𝑧)=ο„žπ‘Žβˆ’π‘§π‘Ž+𝑧ln.


At the outermost level, this is a composition of the natural logarithm with another function. We could, therefore, use the chain rule; then, we would be left with finding the derivative of a radical function to which we could apply the chain rule a second time, and then we would need to finally use the quotient rule. However, before we get lost in all the algebra, we should consider whether we can use the rules of logarithms to simplify the expression for the function. Using the rule that lnlnπ‘Ž=π‘π‘ŽοŒ», we can rewrite this expression as 𝐻(𝑧)=12ο€Ύπ‘Žβˆ’π‘§π‘Ž+π‘§οŠ.ln

Clearly, this is much simpler to deal with. However, we should not stop here. We can, in fact, use another rule of logarithms, namely, the quotient rule: lnlnlnο€»π‘Žπ‘ο‡=π‘Žβˆ’π‘. This gives us the following expression for 𝐻: 𝐻(𝑧)=12ο€Ήο€Ήπ‘Žβˆ’π‘§ο…βˆ’ο€Ήπ‘Ž+𝑧.lnln

This expression is clearly much simpler to differentiate than the original one we were given. We can therefore apply the chain rule to differentiate each term as follows: dd𝐻𝑧=12ο€Όβˆ’2π‘§π‘Žβˆ’π‘§βˆ’2π‘§π‘Ž+π‘§οˆ.

We can now rewrite the expression in the parentheses as a single fraction as follows: dd𝐻𝑧=12ο€Ύβˆ’2𝑧(π‘Ž+𝑧)βˆ’2𝑧(π‘Žβˆ’π‘§)π‘Žβˆ’π‘§οŠ=12ο€Ύβˆ’4π‘§π‘Žπ‘Žβˆ’π‘§οŠ=2π‘§π‘Žπ‘§βˆ’π‘Ž.οŠͺοŠͺοŠͺοŠͺοŠͺοŠͺ

Key Points

  • Using the rules of differentiation, we can calculate the derivatives on any combination of elementary functions.
  • It is important to consider the method we will use before applying it. This can help ensure we choose the simplest and most efficient method.
  • Generally, we consider the function from the top down (or from the outside in). Hence, at each step, we decompose it into two simpler functions.
  • It is important to look for ways we might be able to simplify the expression defining the function. Oftentimes, by applying algebraic techniques, identities, and rules to particular functions, we can produce a simple expression for the function that is significantly easier to differentiate.

Nagwa uses cookies to ensure you get the best experience on our website. Learn more about our Privacy Policy.