Find 𝑑𝑦 by 𝑑𝑥 at 𝑥 equals negative two when 𝑦 is equal to four 𝑥 minus one times negative three 𝑥 cubed plus seven.
We’re looking for 𝑑𝑦 by 𝑑𝑥, which is the derivative of 𝑦 with respect to 𝑥. And so we need to differentiate four 𝑥 minus one times negative three 𝑥 cubed plus seven with respect to 𝑥. I’d like to show two methods for solving this problem in this video. In the first method, we’ll expand the right-hand side using the distributive property and then differentiate term by term. And the second method we’ll see uses the product rule for differentiation, which allows us to find the derivative of a product of factors as long as we know the derivatives of those factors.
More on that later, first let’s expand using the distributive property. 𝑦 is now written as a polynomial in 𝑥, which we can differentiate term by term. We differentiate both sides with respect to 𝑥. And as claimed, we can differentiate each term individually and then add or subtract the results as appropriate.
Now, how do we differentiate each term? Well, we have a formula for the derivative of a power of 𝑥 with respect to 𝑥: 𝑑 by 𝑑𝑥 of 𝑥 to the 𝑛 is 𝑛 times 𝑥 to the 𝑛 minus one. In other words, to differentiate a power of 𝑥 with respect to 𝑥, you take a copy of the exponents down to the front multiplying by it and then you reduce the exponent that’s left by one.
And as the derivative of some number times a function is just that number times the derivative of the function, the derivative 𝑑 by 𝑑𝑥 of 𝑎 times 𝑥 to the 𝑛 is 𝑎 times 𝑛 𝑥 to the 𝑛 minus one. We can apply this rule to find 𝑑 by 𝑑𝑥 of negative 12𝑥 to the four with 𝑎 equal to negative 12 and 𝑥 equal to four. We get negative 12 times four 𝑥 to the four minus one which is negative 48 𝑥 cubed.
Moving on, the derivative of 28𝑥 with respect to 𝑥 is just 28 because the derivative of 𝑥 with respect to 𝑥 is just one. That something you can work out using the power rule setting 𝑛 equal to one or just work out by knowing something about straight line graphs.
The derivative of three 𝑥 to the three with respect to 𝑥 is nine 𝑥 squared, where the nine comes from multiplying the coefficient three by the exponent three. And having multiplied, we need to reduce the exponent by one — from three to two.
Finally, the derivative of the constant function seven is just zero. So this is what we get for 𝑑𝑦 by 𝑑𝑥. If this is what we’re looking for, then we probably want to swap the two last terms nine 𝑥 squared and 28 so the terms are written in order of degree. But actually, we’re not interested in the derivative in terms of 𝑥. Apart from that, it allows us to find the derivative when 𝑥 is equal to negative two.
So we have to evaluate this expression at 𝑥 equals negative two. Evaluating this using a calculator, we get 448. We found this value by expanding the expression for 𝑦 in terms of 𝑥 using the distributive property and then differentiating the polynomial that we got. But we can also solve this problem using the product rule.
The product rule states that the derivative of the product of two functions is equal to the first function times the derivative of the second function plus the derivative of the first function times the second function. We can apply the product rule to find the derivative of the product of four 𝑥 minus one and negative three 𝑥 cubed plus seven.
With 𝑓 of 𝑥 equal to four 𝑥 minus one and 𝑔 of 𝑥 equal to negative three 𝑥 cubed plus seven, the first term on the right-hand side 𝑓 of 𝑥 times the derivative of 𝑔 of 𝑥 becomes four 𝑥 minus one times the derivative of negative three 𝑥 cubed plus seven. And the second term becomes the derivative of four 𝑥 minus one times negative three 𝑥 cubed plus seven.
Our task now is to find these two derivatives. And we do this using the rules from earlier in the video. In particular, we need the derivative of a number times a power of 𝑥 with respect to 𝑥. Using this rule and the fact that the derivative of the constant function seven is zero, we find that the first derivative is negative nine 𝑥 squared. We find out that derivative of four 𝑥 minus one with respect to 𝑥 is four either by using our rule or using what we know about straight lines. We can substitute these in, giving us 𝑑𝑦 by 𝑑𝑥 in terms of 𝑥. And then, all that’s left to do is to substitute negative two for 𝑥. And doing so, we get 448 as before.
Here we’ve seen two methods for finding the value of 𝑑𝑦 by 𝑑𝑥 at 𝑥 equals negative two. Of course, there are other methods we could’ve used. We could’ve derived this value from our first principles using the definition of a derivative in terms of limits.
The fact that the product rule gives the same answer as expanding and differentiating term by term is encouraging because it suggests that the product rule that we have is actually right. In a similar way, you can check that someone who thinks that the derivative of a product of functions is just the product of their derivatives will get the answer wrong. If you ever concerned that you’ve remembered the product rule incorrectly, then you can check that it works on a simple example like this.
In this problem, we’ve seen that we don’t need to use the product rule to find the answer. But in other problems, there will be no way around using the product rule. We’ll have to use it and so we’ll have to remember it.