# Question Video: Finding the Derivative of the Natural Logarithm Function Mathematics • Higher Education

Find the derivative of the function 𝑦 = (ln 𝑥)⁴ tan⁴𝑥.

04:13

### Video Transcript

Find the derivative of the function 𝑦 is equal to the natural logarithm of 𝑥 raised to the fourth power times the tangent to the fourth power of 𝑥.

The question wants us to find the derivative of our function 𝑦. And there’s actually several different ways which we can approach this. For example, we could think of 𝑦 as the product of two functions. It’s the product of the natural logarithm of 𝑥 raised to the fourth power multiplied by the tangent to the fourth power of 𝑥. We could then differentiate this by using the product rule. And we could differentiate each of these terms separately by using the chain rule.

And this would work. However, there’s a second method which involves using our laws of exponents. We can see that both of these factors are raised to the fourth power. And we know, by our laws of exponents, 𝑎 to the fourth power times 𝑏 to the fourth power is the same as 𝑎 times 𝑏 all raised to the fourth power. So, by using our laws of exponents, we can rewrite 𝑦 as the natural logarithm of 𝑥 times the tangent of 𝑥 all raised to the fourth power.

By setting 𝑔 of 𝑥 to be our inner function the natural logarithm of 𝑥 times the tangent of 𝑥, we get that 𝑦 is equal to 𝑔 of 𝑥 to the fourth power. In other words, 𝑦 is the composition of two functions. So, we can find the derivative of 𝑦 by using the chain rule. We’ll recall the chain rule tells us if 𝑦 is the composition of two functions 𝑓 composed with 𝑔 of 𝑥, then the derivative of 𝑦 is equal to 𝑔 prime of 𝑥 times the derivative of 𝑓 evaluated at 𝑔 of 𝑥.

In our case, we’re raising 𝑔 to the fourth power. So, our function 𝑓 of 𝑔 is equal to 𝑔 to the fourth power. And we can differentiate this by using the power rule for differentiation. We multiply by the exponent of 𝑔 and reduce this exponent by one. This gives us four 𝑔 cubed. Therefore, by the chain rule, we have that 𝑦 prime is equal to 𝑔 prime of 𝑥 times four 𝑔 cubed. And remember, we know that 𝑔 of 𝑥 is equal to the natural logarithm of 𝑥 times the tangent of 𝑥.

So, substituting this in, we’ve shown that 𝑦 prime is equal to 𝑔 prime of 𝑥 times four times the natural logarithm of 𝑥 times the tangent of 𝑥 cubed. We now need to find an expression for 𝑔 prime of 𝑥. And remember, 𝑔 of 𝑥 is equal to the natural logarithm of 𝑥 times the tangent of 𝑥. It’s the product of two functions. So, we’ll differentiate this by using the product rule. We recall the product rule tells us if we have a function 𝑔 of 𝑥 which is the product of two functions 𝑢 of 𝑥 and 𝑣 of 𝑥. Then 𝑔 prime of 𝑥 is equal to 𝑣 of 𝑥 times 𝑢 prime of 𝑥 plus 𝑢 of 𝑥 times 𝑣 prime of 𝑥.

So, to differentiate 𝑔 of 𝑥, we’ll set 𝑢 of 𝑥 to be the natural logarithm of 𝑥 and 𝑣 of 𝑥 to be the tangent of 𝑥. Now, we need to find expressions for 𝑢 prime of 𝑥 and 𝑣 prime of 𝑥. Luckily, both of these are standard derivatives. We know the derivative of the natural logarithm of 𝑥 with respect to 𝑥 is one over 𝑥. And we also know the derivative of the tangent of 𝑥 with respect to 𝑥 is equal to the sec squared of 𝑥.

So, we’re now ready to find an expression for 𝑔 prime of 𝑥. By the product rule, this is equal to 𝑣 of 𝑥 times 𝑢 prime of 𝑥 plus 𝑢 of 𝑥 times 𝑣 prime of 𝑥. Substituting in our expressions for 𝑢 of 𝑥, 𝑣 of 𝑥, 𝑢 prime of 𝑥, and 𝑣 prime of 𝑥, we have that 𝑔 prime of 𝑥 is equal to the tangent of 𝑥 times one over 𝑥 plus the natural logarithm of 𝑥 times the sec squared of 𝑥. And we’ll simplify this slightly by multiplying the numerator and the denominator of our second term by 𝑥.

Since our first term also has a denominator of 𝑥, we can now add these two terms together, giving us that 𝑔 prime of 𝑥 is equal to the tangent of 𝑥 plus 𝑥 times the natural logarithm of 𝑥 times the sec squared of 𝑥 all divided by 𝑥. We can now substitute this into our expression for 𝑦 prime of 𝑥. However, before we do this, we’ll move our coefficient of four to the beginning of our expression and our factor of 𝑔 prime of 𝑥 to the end of our expression.

We’re now ready to substitute in our expression for 𝑔 prime of 𝑥. So, substituting in our expression for 𝑔 prime of 𝑥. We’ve shown that 𝑦 prime of 𝑥 is equal to four times the natural logarithm of 𝑥 times the tangent of 𝑥 cubed multiplied by the tangent of 𝑥 plus 𝑥 times the natural logarithm of 𝑥 times the sec squared of 𝑥 divided by 𝑥.