Video Transcript
Given that 𝑦 is equal to the natural logarithm of 𝑥 raised to the power 𝑥, find d𝑦 by d𝑥.
We’re given a function 𝑦, which is the natural logarithm, that is, the log to the base 𝑒, of 𝑥 all raised to the power 𝑥. And we need to find the derivative d𝑦 by d𝑥. To do this, we’ll use the technique logarithmic differentiation, and we’ll sometimes refer to the natural logarithms as ln.
We use logarithmic differentiation to differentiate functions that are not easily differentiated using our usual methods, for example, when our exponent is a variable as in this case. If we have a function 𝑦 is 𝑓 of 𝑥, our first step in logarithmic differentiation is to apply the natural logarithm to both sides. This gives us ln 𝑦 is equal to ln 𝑓 of 𝑥. And this is valid for 𝑦 greater than zero. We need to specify this condition since the log doesn’t exist for negative values and the log of zero is undefined.
In our case, our function 𝑦 is ln 𝑥 raised to the power 𝑥. So taking natural logarithms, we have ln 𝑦 is equal to the natural logarithm of ln 𝑥 raised to the power 𝑥. And that’s for 𝑦 greater than zero.
Our second step is to use the laws of logarithms to simplify or expand. In our case, on our right-hand side, we have an exponent 𝑥. And we can use the power rule for logarithms. This tells us that the logarithm to the base 𝑎 of 𝑏 raised to the power 𝑐 is 𝑐 multiplied by the logarithm to the base 𝑎 of 𝑏. That is, we can bring our exponent 𝑐 to the front and multiply by it. On our right-hand side then, we can bring our exponent 𝑥 to the front and multiply by it. And so we have ln 𝑦 is equal to 𝑥 multiplied by the natural logarithm of ln 𝑥.
Our third step in logarithmic differentiation is to differentiate both sides with respect to 𝑥. On our left-hand side, we can use the known result that d by d𝑥 of ln 𝑢, where 𝑢 is a function of 𝑥 which is greater than zero, is equal to one over 𝑢 times d𝑢 by d𝑥. In our case, this translates to one over 𝑦 times d𝑦 by d𝑥 on the left-hand side.
Now to differentiate the right-hand side, we note that we have a product of functions of 𝑥. So we can let 𝑢 of 𝑥 be equal to 𝑥 and 𝑣 of 𝑥 equal the natural logarithm of ln 𝑥. And to differentiate our product, we can use the product rule for differentiation. This tells us that for the product 𝑢𝑣, d by d𝑥 of 𝑢𝑣 is equal to 𝑢 multiplied by d𝑣 by d𝑥 plus 𝑣 multiplied by d𝑢 by d𝑥.
Now, since our function 𝑢 is equal to 𝑥, d𝑢 by d𝑥 is equal to one. And now for our function 𝑣, which is equal to the natural logarithm of ln 𝑥, we can use the known result again. That tells us that for 𝑔, a function of 𝑥 which is greater than zero, d by d𝑥 of ln 𝑔 is equal to one over 𝑔 multiplied by d𝑔 by d𝑥. In our case, 𝑔 is equal to ln 𝑥. And so we have d𝑣 by d𝑥 is one over ln 𝑥 multiplied by d by d𝑥 of ln 𝑥.
Now we also know the d by d𝑥 of ln 𝑥 is equal to one over 𝑥. That’s for 𝑥 greater than zero. And so finally, we have d𝑣 by d𝑥 is equal to one over ln 𝑥 multiplied by one over 𝑥. And we can rewrite this as one over 𝑥 multiplied by ln 𝑥.
And making some space and making a note of this, we now have everything we need to apply the product rule for differentiation. This gives us 𝑥, which is 𝑢, multiplied by one over 𝑥 ln 𝑥, which is 𝑣 prime, that’s d𝑣 by d𝑥, plus the natural logarithm of ln 𝑥, which is 𝑣, multiplied by one, which is 𝑢 prime. That’s d𝑢 by d𝑥.
Dividing numerator and denominator by 𝑥 in our first term, these cancel. And since anything multiplied by one is itself, on our right-hand side we have one over ln 𝑥 plus the natural logarithm of ln 𝑥.
And this brings us to our fourth step in logarithmic differentiation, which is to solve for d𝑦 by d𝑥. We can do this by multiplying both sides by 𝑦, which then cancel on the left-hand side. And so we have d𝑦 by d𝑥 is equal to 𝑦 multiplied by one over ln 𝑥 plus the natural logarithm of ln 𝑥.
And now recalling that 𝑦 is equal to ln 𝑥 raised to the power 𝑥, substituting this in for 𝑦, we have ln 𝑥 raised to the power 𝑥 multiplied by one over ln 𝑥 plus the natural logarithm of ln 𝑥. Rearranging this for our final answer then, if 𝑦 is equal to ln 𝑥 raised to the power 𝑥, then d𝑦 by d𝑥 is equal to ln 𝑥 raised to the power 𝑥 multiplied by the natural logarithm of ln 𝑥 plus one over ln 𝑥.