# Question Video: Logarithmic Differentiation of Functions Involving Logarithms and Trigonometric Ratios Mathematics

Given that 𝑦 = (log 8𝑥)^(4 tan 5𝑥), find d𝑦/d𝑥.

07:00

### Video Transcript

Given that 𝑦 is equal to the log of eight 𝑥 raised to the power of four tan five 𝑥, find d𝑦 by d𝑥.

We’re asked to find the derivative of 𝑦 with respect to 𝑥, but our function 𝑦 is a logarithm which is raised to an exponent which is itself an expression in 𝑥. And because of this exponent, we can’t directly apply our usual tactics for differentiation, for example, the chain, product, or quotient rules. What we can do, however, is use what’s called logarithmic differentiation. There are four steps to this method and we’re going to write these down first and then work through the steps for our function 𝑦.

The first step is to apply the natural logarithms to both sides so that we have the natural logarithm of 𝑦 is the natural logarithm 𝑓 of 𝑥, recalling that the natural logarithm is the logarithm to the base 𝑒, where 𝑒 is Euler’s number, and that’s approximately 2.71828 and so on. We need also to specify that 𝑦 is greater than zero for this to be valid. That’s because the log of zero is undefined, and the logarithm doesn’t exist for negative values. If we do want to include negative values, then we need to use the absolute values for 𝑦 and 𝑓 of 𝑥. And in this case, we specify that 𝑦 is nonzero.

Our second step is to use the laws of logarithms to expand or simplify and this allows us to move on to step three. That is, we can differentiate both sides with respect to 𝑥. And our final step is to solve for d𝑦 by d𝑥. So now let’s apply this to our function 𝑦. For our first step, we have the natural logarithm of 𝑦 is the natural logarithm of the log of eight 𝑥 to the power four tan five 𝑥. And that’s for 𝑦 greater than zero. So now we can move on to step two where we can use the laws of logarithms to expand our function. And since the argument of our natural logarithm involves an exponent, we can use the power rule for logarithms. This says that log to the base 𝑎 of 𝑏 raised to the power 𝑐 is 𝑐 times log to the base 𝑎 of 𝑏. That is, we bring the exponent 𝑐 down in front of the logarithm and multiply.

Our exponent 𝑐 is four tan five 𝑥. And so applying the power rule, we have four tan five 𝑥 times the natural logarithm of log of eight 𝑥. So far, so good because now we have a product of expressions on our right-hand side and we can move on to step three: that is, differentiate both sides with respect to 𝑥. On our right-hand side, we now have a product of two functions. This means we can use the product rule for differentiation. That is, for 𝑢 and 𝑣 differentiable functions of 𝑥, d by d𝑥 of the product 𝑢𝑣 is 𝑢 times d𝑣 by d𝑥 plus 𝑣 times d𝑢 by d𝑥. So now if we let 𝑢 equal four tan five 𝑥 and 𝑣 equal the natural logarithm of log eight 𝑥, we want to find d𝑢 by d𝑥 and d𝑣 by d𝑥 in order to use the product rule.

Now for d𝑢 by d𝑥, we can use the result that d by d𝑥 of tan 𝑤, where 𝑤 is a differentiable function of 𝑥, is d𝑤 by d𝑥 times the sec squared of 𝑤. Since we have 𝑤 equal to five 𝑥, then d𝑢 by d𝑥 is five times four sec squared five 𝑥. That is 26 sec squared five 𝑥. So now we want to find d𝑣 by d𝑥. So we have a function 𝑣 which is the natural logarithm of function of 𝑥, which we’ll call 𝑤. And 𝑤 is the log of eight 𝑥. And remember that if we have a logarithm without the base specified, this means we have a log to the base 10.

Now to differentiate our function, the natural logarithm of 𝑤, we can use the result that d by d𝑥 of the natural logarithm of 𝑤 is one over 𝑤 d𝑤 by d𝑥 where 𝑤 is a function of 𝑥. And, of course, 𝑤 is differentiable. So that we have d𝑣 by d𝑥 is one over the log of eight 𝑥 times d by d𝑥 of the log of eight 𝑥. And now to differentiate the log to the base 10 of eight 𝑥, we’re going to use the rule for the derivative of the log to any base. This says that d by d𝑥 of log to the base 𝑎 of 𝑤 is equal to log to the base 𝑎 of 𝑒 all over 𝑤 times d𝑤 by d𝑥. So in our case, our base 𝑎 is 10, and our function 𝑤 is eight 𝑥. So its derivative is log to the base 10 of 𝑒 over eight 𝑥, that’s 𝑤, times eight, which is d𝑤 by d𝑥. The eights cancel each other out, and we have log to the base 10 of 𝑒 over 𝑥.

Okay, so this is fine. Now, can we simplify log to the base 10 of 𝑒? If we use the change of base formula for logarithms with 𝑒 corresponding to 𝑏 and 10 corresponding to 𝑎 and so that our new base is 𝑒, we have log to the base 10 of 𝑒 is equal to log to the base 𝑒 of 𝑒 over log to the base 𝑒 of 10. And how is this simpler? Because log to the base 𝑒 of 𝑒 is one. And log to the base 𝑒 of 10 is just the natural logarithm of 10. So log to the base 10 of 𝑒 is actually one over the natural logarithm of 10 so that we have the derivative with respect to 𝑥 of log to the base 10 of eight 𝑥 is actually one over 𝑥 times the natural logarithm of 10. Then d𝑣 by d𝑥 is then one over log eight 𝑥 times one over 𝑥 times the natural logarithm of 10.

So now we have everything we need to use the product rule for differentiation. And if we make some room, we have 𝑢 is four tan five 𝑥, 𝑣 is the natural logarithm of log eight 𝑥 d𝑢 by d𝑥 is 26 squared five 𝑥, and d𝑣 by d𝑥 is one over 𝑥 times the natural logarithm of 10 times the logarithm of eight 𝑥. And into our product rule formula, we have d by d𝑥 of the natural logarithm of 𝑦 is four tan five 𝑥, which is 𝑢, times one over 𝑥 times the natural logarithm of 10 times the log of eight 𝑥, which is d𝑣 by d𝑥, plus the natural logarithm of the log of eight 𝑥, which is 𝑣, times 20 sec squared five 𝑥, which is d𝑢 by d𝑥.

And rewriting this with the nonquotient first and rearranging, we have d by d𝑥 of the natural logarithm of 𝑦 is 20 times the natural logarithm of the log of eight 𝑥 times sec squared five 𝑥 plus four tan five 𝑥 over 𝑥 times the natural logarithm of 10 times log of eight 𝑥. And we’re almost finished but not quite since we still have to differentiate the left-hand side. We want d by d𝑥 of the natural logarithm of 𝑦. And remember that 𝑦 is a function of 𝑥, so we can again use the result that d by d𝑥 of the natural logarithm of 𝑤, where 𝑤 is a differentiable function of 𝑥, is one over 𝑤 times d𝑤 by d𝑥 for 𝑤 greater than zero. And this gives us one over 𝑦 times d𝑦 by d𝑥.

So we’ve completed our step three; that is, we’ve differentiated both sides with respect to 𝑥. So now we need to solve for d𝑦 by d𝑥. That’s step four. And we can do this by multiplying both sides by 𝑦. On our left-hand side, the 𝑦’s cancel to one, and on our right-hand side, we introduce our original function 𝑦. And we’ve completed our step four. So for the function 𝑦 is log eight 𝑥 raised to the power four tan five 𝑥, d𝑦 by d𝑥 is log eight 𝑥 raised to the power four tan five 𝑥 times 20 times the natural logarithm of log eight 𝑥 times sec squared five 𝑥 plus four tan five 𝑥 over 𝑥 times the natural logarithm of 10 times log eight 𝑥.