Video Transcript
Given 𝑦 is equal to 𝑥 raised to
the power 𝑥 raised to the power 𝑥, find d𝑦 by d𝑥.
We’re given a function 𝑦 and asked
to find its derivative with respect to 𝑥. Now what’s slightly strange about
our function 𝑦 is that we have a variable 𝑥 which is raised to the power 𝑥 which
is itself a variable which again is raised to the power 𝑥. It’s difficult to imagine which of
any of our usual methods of differentiation we can apply to this function. It’s neither a power function, 𝑥
to the power 𝑘 where 𝑘 is a constant, nor an exponential function of the form 𝑏
to the power 𝑥 where 𝑏 is a constant. So how are we going to
differentiate our function 𝑦?
We’re going to use a method called
logarithmic differentiation. This is a four-step process where
the first step is to take the natural logarithms on both sides so that we have the
natural logarithm of 𝑦 is the natural logarithm of 𝑓 of 𝑥, recalling that the
natural logarithm is the logarithm to base 𝑒 where 𝑒 is Euler’s number, which is
approximately 2.71828 and so on. And when we take the natural
logarithms, we need to specify that 𝑦 is greater than zero since the natural
logarithm of zero is undefined and a log doesn’t exist for negative values.
So with our function 𝑦, we have 𝑦
is 𝑥 raised to the power 𝑥 raised to the power 𝑥. And taking natural logarithms, we
have the natural logarithm of 𝑦 on the left-hand side and the natural logarithm of
𝑥 raised to the power 𝑥 raised to the power 𝑥 on the right-hand side. But how does this help since it
looks a little bit more complicated than when we started? Well, this brings us to our second
step in logarithmic differentiation. That is, we use the laws of
logarithms to expand or simplify. In our case, in the argument for a
logarithm, we have an exponent. And we can expand this by using the
power rule for logarithms. This tells us that the log to the
base 𝑎 of 𝑏 raised to the power 𝑐 is 𝑐 times log to the base 𝑎 of 𝑏; that is,
we bring our exponent 𝑐 down in front of the log and multiply.
Applying this to our right-hand
side, we then have 𝑥 raised to the power 𝑥 times the natural logarithm of 𝑥. Okay, so now we have a product on
our right-hand side, but notice that one of the factors is still 𝑥 raised to the
power 𝑥 and we need to get this into the form of something we can
differentiate. So let’s try applying our steps one
and two of logarithmic differentiation again to see if we can simplify any
further. So taking natural logarithms again
on both sides, we have the natural logarithm of the natural logarithm of 𝑦 is equal
to the natural logarithm of 𝑥 raised to the power 𝑥 times the natural logarithm of
𝑥.
And now on our right-hand side, we
have the natural logarithm of a product. And so we can apply the product
rule for logarithms; that is, log to the base 𝑎 of 𝑏 times 𝑐 is log to the base
𝑎 of 𝑏 plus log to the base 𝑎 of 𝑐. And letting 𝑏 equal 𝑥 to the
power 𝑥 and 𝑐 be the natural logarithm of 𝑥, we have the natural logarithm of 𝑥
raised to the power 𝑥 plus the natural logarithm of the natural logarithm of
𝑥. Now notice again in our first term
on the right-hand side, the argument of the natural logarithm has an exponent, and
so we can again use the power rule for logarithms. This means we can bring our
exponent 𝑥 in front of the natural logarithm and multiply by it.
So now, on our right-hand side, we
have a bunch of functions that we know how to differentiate. And this brings us to our third
step of logarithmic differentiation, that is, differentiate both sides with respect
to 𝑥. So now just making some space, we
have d by d𝑥 of the natural logarithm of the natural logarithm of 𝑦 is d by d𝑥 of
our right-hand side. That’s 𝑥 natural logarithm of 𝑥
plus natural logarithm of natural logarithm of 𝑥. We can split up our right-hand side
since we know that the derivative of a sum is the sum of the derivatives. And let’s begin by differentiating
our second term since we can then apply the same method to our left-hand side.
To differentiate this, we can apply
the known result that d by d𝑥 of the natural logarithm of 𝑢 where 𝑢 is a
differentiable function of 𝑥 is one over 𝑢 times d𝑢 by d𝑥. And that’s for 𝑢 greater than
zero. For our second term, we have 𝑢 is
equal to the natural logarithm of 𝑥, and we know that d𝑢 by d𝑥 is then one over
𝑥. And so by the known result, we have
d by d𝑥 of the natural logarithm of 𝑢 is one over the natural logarithm of 𝑥
times one over 𝑥. And that’s equal to one over 𝑥
times the natural logarithm of 𝑥. Now we can apply exactly the same
process to our left-hand side, this time with 𝑢 is equal to the natural logarithm
of 𝑦.
Remember, our result says we have
one over 𝑢 times d𝑢 by d𝑥, which is one over the natural logarithm of 𝑦 times
its derivative with respect to 𝑥. But recall that 𝑦 is actually a
function of 𝑥. So again, by our known result, we
have one over 𝑦 times d𝑦 by d𝑥, so the derivative on our left-hand side is one
over the natural logarithm of 𝑦 times one over 𝑦 d𝑦 by d𝑥. And making some space, that gives
us one over 𝑦 times the natural logarithm of 𝑦 times d𝑦 by d𝑥 on our left-hand
side. Now we’re left with our first term
on the right-hand side. We have the derivative with respect
to 𝑥 of a product. That’s 𝑥 times natural logarithm
of 𝑥.
And so we can use the product rule
for differentiation. That is, if 𝑢 and 𝑣 are
differentiable functions of 𝑥, then d by d𝑥 of their product 𝑢𝑣 is 𝑢 times d𝑣
by d𝑥 plus 𝑣 times d𝑢 by d𝑥. So, in our case, if 𝑢 is equal to
𝑥 and 𝑣 is the natural logarithm of 𝑥, we have d𝑢 by d𝑥 is equal to one and d𝑣
by d𝑥 is one over 𝑥. And using the product rule, we have
𝑢, which is 𝑥, times one over 𝑥, which is d𝑣 by d𝑥, plus the natural logarithm
of 𝑥, which is 𝑣, times one, which is d𝑢 by d𝑥. And since our 𝑥’s cancel, that
gives us one plus the natural logarithm of 𝑥.
And making some room again, we’ve
completed our differentiation. And this brings us to our final
step four in logarithmic differentiation, that is, to solve for d𝑦 by d𝑥. Rearranging our right-hand side and
multiply both sides by 𝑦 times the natural logarithm of 𝑦, on our left-hand side
these cancel and we’re left with d𝑦 by d𝑥 on the left-hand side. And we have that the derivative of
𝑦 with respect to 𝑥 where 𝑦 is 𝑥 raised to the power 𝑥 raised to the power 𝑥
is equal to 𝑦 times the natural logarithm of 𝑦 all multiplied by the natural
logarithm of 𝑥 plus one over 𝑥 times the natural logarithm of 𝑥 plus one.