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 can be constructed from simpler functions by combining them in one or more of the following ways:

- addition and subtraction: and ,
- multiplication and division: and ,
- composition: .

Fortunately, we recall that 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; for composition, we can apply the chain rule. Let us review these rules.

### Rule: Rules of Differentiation

For differentiable functions and and constants , we have the following rules:

**Linearity**: .**Product rule**: .**Quotient rule**: for , .**Chain rule**: .

In addition to using these rules separately, it is also possible to use them in conjunction with each other, allowing us to differentiate any combination of elementary functions. However, we should be aware that this 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 that will highlight the skills we need to navigate this landscape.

Let us consider an example of differentiating a complicated function combining many different operations together, and how we can tackle the differentiation by splitting it into separate parts. Suppose we have

At first, this may seem impossible to deal with, but we can break it into parts. Generally, the best way to do this is to begin by considering the outermost layer first and working inward. If we do this, we can see that it is the sum of two functions:

Using the linearity of differentiation, this means we can differentiate and separately and add them together afterwards. If we consider separately in this way, we can see that

In other words, is a composition of functions, so we can apply the chain rule to help us differentiate it. This of course means that we need to find the derivative of , but this too can be broken down into smaller parts. Continuing this process, we can continue to remove layers of complexity from the function until we arrive at elementary expressions that we know how to 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 can see that by applying the appropriate rules at each stage, we can find the derivatives of even the most complicated functions.

We will now look at some examples where we apply this approach, albeit to slightly simpler cases. To start with, let us consider a high-degree polynomial function that has been factored.

### Example 1: Finding the First Derivative of Polynomial Functions at a Point Using the Product and Chain Rules

Find the first derivative of at .

### Answer

Let us first analyze the given function and see what rules we can apply to it. Since it is a polynomial function, it would be possible for us to expand all the parentheses via multiplication and take the derivatives of the separate components, but this would require a large number of calculations. Instead, it would be more efficient to split it into parts by combining a couple of rules of differentiation together. We first of all note that this is a product of functions:

Recall that the product rule tells us that the derivative of the product of two differentiable functions is given by

To use this formula, we need to know the derivatives and . The first function, , can be differentiated by using the power rule to get . For , we note that it is a composition of functions:

That is, if and , then . We recall that the derivative of a composition of functions can be found using the chain rule, which is

Using the power rule, we find that the derivative of is and the derivative of is . Substituting these into the formula above (along with ), we get

Now that we have both and , we can substitute , , , and into the product rule formula to get

Finally, we need to find the first derivative at the point . Note that is the coordinate of the point on the graph representing the given function, and at this point, the -coordinate is equal to 1. Thus, we substitute in to find

As we can see, it is often useful to be able to break down functions into components that we can deal with individually by using the product and chain rules. Let us consider another example where it is beneficial for us to combine different rules together.

### Example 2: Differentiating Combinations of Polynomial and Root Functions Using Product and Chain Rules

Find at .

### Answer

We have been asked to differentiate a function that is a combination of polynomial and square root functions, so let us consider how best to deal with it. One possibility is to take the term into the square root and use the chain rule to differentiate the resulting square root function. The other way is to recognize that it is a product of functions, as follows:

Thus, since and are differentiable functions, we can use the product rule, which says that

To use this, we must calculate and . First of all, can be differentiated using the power rule to get . For , we cannot use the power rule directly, but we can break it down into parts by recognizing that it is a composition of functions, as follows:

That is, , where and . Thus, we can use the chain rule, which is

Now, we can find both and using the power rule, which gives us

Substituting these into the chain rule equation, we get

Taking this function for , along with , , and , we can put them into the product rule equation to get

Now, recall that we need to evaluate this function at . Doing this, we get the following solution:

In the first couple of examples, we have considered functions that require both the product rule and the chain rule to be differentiated. In the next example, we will consider a function defined in terms of polynomials and square root functions where we will need to use the quotient rule.

### Example 3: Differentiating a Function Involving Rational Functions at a Point Using the Rules of Differentiation

Evaluate at if .

### Answer

In this example, we want to determine the first derivative of the given rational function by applying the rules of differentiation and evaluating this at the point .

Since we will most likely have to apply more than one rule of differentiation, it will be helpful to consider what order we want to apply them in. The best way to do this is to consider the outermost part of the function and see how it can be broken down; if we do this, we can see that the given function is a quotient of functions as follows:

In order to determine the derivative of this, we will make use of the quotient rule which states that for a function , we have, for ,

Thus, we can determine the derivative of the given function by setting and in the numerator and denominator respectively. In order to apply this rule, we need to evaluate the derivatives of both and .

The derivative of is straightforward and can be found from the power rule as . Since is the composition of two functions, and , to find the derivative of , we will make use of the chain rule which states that for a composite function , we have

In order to apply this rule, we need to evaluate the derivatives of and with respect to , both of which can be found by an application of the power rule as follows:

Substituting these expressions back into the chain rule with , we find the derivative of with respect to as follows:

Substituting , , , and as shown above, we can now apply the quotient rule as follows:

By multiplying both the numerator and denominator by , we can simplify the fraction, giving us

Substituting the given point in this expression gives

So far, we have only seen instances of examples where it is optimal to apply the product or quotient rule followed by the chain rule, but the opposite order may be more natural depending on the given function. In each case, we have to make sure that the order in which we are applying the derivative rules makes sense. Let us consider a situation where we may have to change the order of applying the rules.

### Example 4: Differentiating a Composition of Rational and Root Functions Using the Chain and Quotient Rules

If , determine .

### Answer

Here, we have been asked to calculate the derivative of a function that appears to be a combination of different functions. Since we will probably have to use more than one rule of differentiation to do this, we should begin by considering which one to apply first. We do this by looking at the outermost part of the function and working inward. Since the outer part is a square root, we can see that we have

That is, , where and . We note that since this is a composition of differentiable functions, we can use the chain rule, which says that

To use this formula, we need and , the former of which can just be obtained by using the power rule to get . For the latter, we can see that it is a quotient of differentiable functions:

Therefore, we can apply the quotient rule. Recall that for , this is

Each of and is a polynomial function, so we can differentiate them using the power rule. This gives us

Then, substituting these functions into the quotient rule formula, we get

Now that we have , and , let us recall that our original derivative could be found using the chain rule as follows:

Recall that , which means that . If we substitute this into the above equation, we get

We can simplify this a bit by making use of the fact that to get

We note that there is an alternate way to solve the above problem. If we had used the fact that from the start, we would have

If we took the derivative of this, we could use the quotient rule first instead, followed by the chain rule on the functions in the numerator and denominator. However, this would result in a similar amount of work to get to the same answer.

Recall that there exists another form of differentiating problem that we might encounter. Suppose we have to find , where

If is not given explicitly in terms of , we cannot differentiate it directly. Instead, we can use the following form of the chain rule:

Since we can differentiate with respect to and with respect to , this allows us to compute the derivative. Alternatively, we could substitute into the equation for to get

Recall that, written this way, we can return to the original form of the chain rule that we have been using so far:

We note that this is just another way of writing as shown above (in particular, and ). It is also important to note that substituting into the equation for in this way can lead to the expression simplifying, meaning there is a possibility we could differentiate it without using the chain rule (but this is not always the case).

In any case, let us consider an example in this style where we have to use the chain rule, with the additional complication of having to use another rule of differentiation.

### Example 5: Differentiating a Composition of Rational Functions Using the Chain and Quotient Rules

Evaluate at if and .

### Answer

In this example, we need to differentiate a function with respect to that is not explicitly given in terms of .

One possibility of differentiating this would be to substitute the equation for into the function for , so that we can differentiate directly with respect to . However, this would result in fractions inside of fractions, which might be messy.

Instead, let us use the chain rule to differentiate this. Recall that the chain rule can be written in terms of ’s and ’s (i.e., Leibniz’s notation) as follows:

Thus, let us compute and . Both functions are quotients of polynomials (which are differentiable functions), which means we can use the quotient rule to differentiate them. Recall that for , the quotient rule is given by

For , we can switch out the variable for , and we have and . The derivative of these functions with the power rule is straightforward; we get and . Combining this all into the quotient rule equation, we get

We can perform a very similar calculation for . Let , so that and , with derivatives and . Then, using the quotient rule, we get

Returning to our formula for the chain rule, we multiply these two derivatives together to get

We could express this purely in terms of , but this is unnecessary since we only need to evaluate the derivative at the given point, . Note that at this point, . Thus, letting and , we have

Let us recap a few important points that we have learned in this explainer.

### Key Points

- Using the rules of differentiation, namely, the product, quotient, and chain rules, we can calculate the derivatives of any combination of elementary functions.
- It is important to consider the order in which we use the rules as this will help ensure we choose the most efficient method.
- Generally, we want to consider the outermost parts of the function and work inward. Doing this, we can decompose a complicated function into simpler parts that can be evaluated directly.
- It is worth keeping in mind that some problems can be simplified to the point where we do not need to use multiple rules of differentiation, making the process significantly easier (even though such problems have not been featured in this explainer).