# Video: Finding the First Derivative of a Function Using Logarithmic Differentiation

Find d𝑦/d𝑥 if 𝑦 = (6𝑥⁹ + 7)^(8𝑥).

05:13

### Video Transcript

Find d𝑦 by d𝑥 if 𝑦 is equal to six 𝑥 raised to the power nine plus seven all raised to the power eight 𝑥.

We’re asked to find the derivative with respect to 𝑥 of a compound function 𝑦 is equal to six 𝑥 raised to the power nine plus seven all raised to the power eight 𝑥. And if the exponent in our function was a constant, we’d be able to use the chain rule. However, our exponent is a function of 𝑥, and this means that none of the usual rules for differentiation apply. So we’re going to have to try something else to find d𝑦 by d𝑥. In fact, we can use a method called logarithmic differentiation.

How this works is if we have an expression 𝑦 is 𝑓 of 𝑥, we take the natural logarithm on both sides. And remember that the natural logarithm is the logarithm to the base 𝑒 where 𝑒 is Euler’s number which, to five decimal places, is 2.71828. And then using the fact that logs turn powers into product and product into sums, we use the laws of logarithms to expand. Our expression is then split into components which make it easier to differentiate. And once we’ve differentiated, we can solve for d𝑦 by d𝑥. So let’s work through these steps for our expression.

Our first step is to take the natural logarithms on both sides. However, we do need to point out here that this is only valid for 𝑦 greater than zero. Remember that the logarithm of zero is undefined and the log function doesn’t exist for negative values. To cover negative values, we could take the natural logarithm of the absolute values of our expression. In this case, we can specify that 𝑦 is nonzero. However, in our case, we’ll simply specify that 𝑦 is greater than zero. So we’ve taken the natural logarithm on both sides, and our second step is to use the laws of logarithms to expand.

In our case, since our expression involves an exponent, we use the power rule for logarithms. This says that the logarithm of 𝑎 raised to the power 𝑏 is 𝑏 times the logarithm of 𝑎. That is, we bring the exponent in front of our logarithm. Our exponent is eight 𝑥, so on our right-hand side, we have eight 𝑥 times the logarithm of six 𝑥 raised to the power nine plus seven. And although this looks quite complicated, in fact, we can now differentiate both sides. On the right-hand side, we can use the chain and the product rules. And on the left-hand side, we use implicit differentiation. Remember, we use implicit differentiation when we’re differentiating a function of 𝑦, not simply 𝑦 on its own. And in our case, we have the natural logarithm of 𝑦 which itself is a function of 𝑥.

So in general, if you have a function 𝑔 which is a function of 𝑦 which is a function of 𝑥, we use the chain rule to find d𝑔 by d𝑥 which is d𝑔 by d𝑦 times d𝑦 by d𝑥. We’re also going to use the result that d by d𝑢 of the logarithm of 𝑢 is one over 𝑢 for 𝑢 greater than zero. And using the notation 𝑓 prime is d𝑓 by d𝑥, the product rule for differentiation says the derivative of the product 𝑓𝑔 is 𝑓 prime 𝑔 plus 𝑓𝑔 prime. So on our left-hand side with 𝑔 equal to the natural logarithm of 𝑦, and using our result for logarithms, we have the derivative of the natural logarithm of 𝑦 which is one over 𝑦 times d𝑦 by d𝑥.

So now we need to differentiate our right-hand side. On our right-hand side, if we let 𝑢 equal to eight 𝑥, 𝑣 equal to six 𝑥 raised to the power nine plus seven, and 𝑤 equal to the natural logarithm of 𝑣, then d𝑢 by d𝑥 is equal to eight, d𝑣 by d𝑥 is equal to 54 times 𝑥 raised to the power eight where here we’ve used the power rule for differentiation. That is, if we have a function 𝑎 times 𝑥 raised to the power 𝑛, then the derivative with respect to 𝑥 is 𝑛𝑎𝑥 raised to the 𝑛 minus one. So we multiply by the exponent and subtract one from the exponent.

And to differentiate 𝑤 with respect to 𝑥, we use the fact that 𝑤 is a function of 𝑣 which is a function of 𝑥, and therefore we use the chain rule. And since 𝑤 is the natural logarithm of 𝑣, we’re going to use our result for logarithms. So we have d𝑤 by d𝑣 is one over 𝑣 and d𝑣 by d𝑥 is 54𝑥 raised to the power eight, which we just calculated. And since one over 𝑣 is one over six 𝑥 raised to the power nine plus seven, d𝑤 by d𝑥 is 54𝑥 raised to the power eight over six 𝑥 raised to power nine plus seven. So now this is where our product rule comes in for our product 𝑢 times 𝑤.

So in our product rule, if we let 𝑢 equal to 𝑓 and 𝑤 equal 𝑔, what we need to find is 𝑢 prime 𝑤 plus 𝑢𝑤 prime. So just making some room. On our right-hand side, we want 𝑢 prime times 𝑤, which is eight times the natural logarithm of six 𝑥 raised to power nine plus seven, plus 𝑢 times 𝑤 prime, which is eight 𝑥 times 54𝑥 raised to the power eight over six 𝑥 raised to the power nine plus seven. We have a common factor of eight, which we can take outside. And multiplying out our second term, our 𝑥-exponent raises to nine.

Now, remember, we’re trying to find d𝑦 by d𝑥. And our fourth step in logarithmic differentiation is to solve for d𝑦 by d𝑥. With one over 𝑦 d𝑦 by d𝑥 on the left-hand side, we can multiply through by 𝑦. And our 𝑦 on the left-hand side cancels. And so we have d𝑦 by d𝑥 equal to eight times 𝑦 multiplied by the natural logarithm of six 𝑥 raised to the power nine plus seven plus 54𝑥 raised to the power nine over six 𝑥 raised to the power nine plus seven.