Main content

### Course: AP®︎ Calculus BC (2017 edition) > Unit 4

Lesson 1: Differentiating using multiple rules# Applying the chain rule and product rule

Example showing multiple strategies for taking a derivative that involves both the product rule and the chain rule.

## Want to join the conversation?

- After squaring (x^2*sin(x)), wouldn't you have to distribute the 3 before distributing into the other function?(5 votes)
- Distribute the 3 into what is then x^4sin^2(x)? if that is what you are referring to, you don't need to distribute since it's all multiplication.(6 votes)

- Isn't it would be much more simple if the derivative is taken w.r.t (x^2 sin x)?(4 votes)
- That's basically the chain rule. In the end you want the derivative with respect to x, which is why you use d/dx The chain rule is the outside function with respect to the inside function times the inside function with respect to x, ot the next inner function if it was more than just one function inside of another.(2 votes)

- how do you solve for dy/dx or is it the same??(3 votes)
- It's the same. In this video he uses (x^2sin(x))^3 to represent y. Since y is a function of x you can just replace y with its function form where it has x.

so if y=x^2 dy/dx can be rewritten as d(x^2)/dx or d/dx (x^2)(2 votes)

- what should i do in this case f(x)=sin3x^2(5x3-1)^1/3?(3 votes)
- That depends on what you are taking the sine of. If you are taking the sine of the whole expression, use the chain rule, than the product rule. Otherwise, start with the product rule.(2 votes)

- If d/dx[h(x)] = cos³(x) -3xcos²(x)sin(x), would it be proper to simplify with the following steps:

1. divide all three terms by cos²(x), leaving:

cos(x) - 3xsin(x)/cos²(x)

2. Multiply the two remaining terms by cos²(x), leaving:

cos²(x)(cos(x)) - 3xsin(x)(2 votes) - A question on a question: How on earth does the derivative of y=6x^3*(x^(1/2))*csc(x) get factored the way Sal has it= 3x^(5/2)(7-2xcot(x))csc(x)? It would be helpful if the hints didn't glaze over the most difficult part of the problem (the 500 factoring steps he goes through to give an answer).(1 vote)
- Part 1 explanation:

1. He uses the product rule to put it into proper form and solves

2. Note that for #1 the first block he solves for the regular derivative. Then for block two, d/dx he had to use the product rule to expand it. (indicated by red font in the parenthesis)

3. Then he combines then using distribution.

Part 2 explanation:

1. Product rule

2. After solving for product rule he then applies the chain rule with the terms that haven't been differentiated yet that need to be reduced based off of the past lessons we have been learning.

3. After solving the chain rule and combining the solved portions you can see they resemble each other.

Note: There are many approaches you can use to solve these problems and this video provides examples of the multiple approaches one can think about to solve these equations.(1 vote)

## Video transcript

- [Instructor] What we're
going to do in this video is try to find the
derivative with respect to X of X squared sin of X. All of that to the third power. And what's going to be
interesting is that there's multiple ways to tackle it. And I encourage you to pause the video and see if you could work
through it on your own. So there's actually multiple techniques. One path is to do the chain rule first. So I'll just say CR for chain rule first. And so I have, I'm taking the
derivative with respect to X of something to the third power. So, if I take the derivative it would be the derivative with
respect to that something. So that would be three times that something squared times the derivative with respect to X of that something. Where the something, in this case, is X squared sin of X. X squared sin of X. This is just an application
of the chain rule. Now, the second part, what would that be? The second part here do this in another color. In orange. Well here, I would apply the product rule. I have a product of two expressions. So I would take the derivative
of, let me write this down. So this is gonna be the product rule. Product rule. I would take the derivative
of the first expression. So, X, derivative of X squared is two X. Let me write a little bit to the right. This is gonna be two X times the second expression sin of X. Plus the first expression X squared times the derivative of the second one. Cosin of X. That's just the product rule as applied to this part right over here. And all of that, of course,
is being multiplied by this up front. Which actually, let me just rewrite that. So all of this I could rewrite as let's see, this would be three times if I have the product
raised to the second power I could take each of
them to the second power and then take their products. So X squared squared is X to the fourth. And then sin of X squared is sin squared of X. And then all of that is
being multiplied by that. And, if we want, we can
algebraically simplify. We can distribute everything out. In which case, what would we get? Well let's see. Three times two is six. X to the fourth times X is X to the fifth. Sin squared of X times sin of X is sin of X to the third power. And then, let's see, three so plus three, X to the
fourth times X squared is X to the sixth power. And then I have sin squared of X sin squared of X cosin of X. So there you have it, that's one strategy chain rule first, and then product rule. What would be another strategy pause the video and try to think of it. Well, we could just algebraically use our exponent properties first. In which case, this is
going to be equal to the derivative with respect to X of if I'm taking X squared times
sin of X to the third power instead I could say X to the third power which is going to be X to the sixth. And then sin of X to the third power. Sin of X to the third power. I'm using the same exponent property that we used right over
here to simplify this. If I have if I'm doing the product things to some exponent, well
that's the same thing if each of them raised to the exponent and then the product of the two. Now how would we tackle this? Well, I here, I would do the product rule first. So let's do that. So let's do the product rule. So, we're gonna take the derivative of the first expression. So, derivative of X to the sixth is six X to the fifth. Times the second expression. Sin to the third of X. Or, sin of X to the third power. Plus the first X to the sixth times the derivative of the second and I'm just gonna write that D DX of sin of X to the third power. Now, to evaluate this right over here it does definitely make sense to use the chain rule. Use the chain rule. And so what is this going to be? Well I have the derivative of something to the third power. So that's going to be three times that something squared times the derivative of that something. So in this case, the
something is sin of X. And the derivative of
sin of X is cosin of X. Then I have all of this
business over here. I have six X to the fifth. Sin to the third or sin of X to the third power. Plus X to the sixth. And if I were to just
simplify this a little bit in fact, you see it very clearly. These two things are equivalent. This this term is exactly
equivalent to this term the way it's written. And then this is exactly, if you multiply three times X to the sixth sin of X squared cosin of X. So, the nice thing about math if we're doing things
that make logical sense we should get to the same endpoint. But the point here is that
there's multiple strategies. You could use a chain rule first and then the product rule. Or you could use a product rule first, and then the chain rule. In this case, you could
debate which one is faster. It looks like the one on the right might be a little bit faster. But sometimes these two are pretty close. But sometimes it'll be more clear than not which one is preferable. You really want to minimize
the amount of hairiness, the amount the number of steps the chances for careless
mistakes you might have.