yego.me
💡 Stop wasting time. Read Youtube instead of watch. Download Chrome Extension

Implicit differentiation, product and chain rules at once


5m read
·Nov 11, 2024

Let's say Y is equal to the natural log of x to the X power. What we want to do is we want to find the derivative of Y with respect to X. So I encourage you to pause this video and see if you could do it.

So when you first try to tackle this, this is a little bit daunting. We know how to take the derivative of constants to some X power, but how do we take a derivative of some type of a function—in this case, the natural log of X to the X power? The answer here is to use some of our logarithmic properties, and then we're going to do a little bit of implicit differentiation.

So the first thing that we want to do—and actually, let me rewrite this with a little bit of space—so this was the natural log of X to the X power. The first thing I want to do is get rid of this X as an exponential, and I want to be able to apply the product rule somehow. The way we're going to do that is by taking the natural log of both sides.

So, take the natural log of both sides, and you might say, "Well, why is that helpful?" Well, if I'm taking the natural log of something to an exponent, this is the same thing—actually, let me write this down as a property that you may or may not remember from your logarithmic properties.

So if I have, I could write log—or I'll just write natural log of—if I have natural log of a to the B power, this is the same thing as B times the natural log of a. That's just a standard logarithmic property. So by taking the natural log of both sides, this exponent can now become out front and scale the natural log function.

Now we can bring that out front, and let's just rewrite everything. So we get the natural log of Y is equal to—let me put that in parenthesis—so the natural log of Y is equal to X times the natural log of X.

So there you have it. By just taking the natural log of both sides and using this logarithmic property, we were able to get that. Now you're saying, "Well, gee, how is this actually going to be useful for us?" Well, now we can implicitly take the derivative of both sides of this.

Actually, let me scoot this over to the right a little bit just so that I can have space for my derivative operator. So there you go, scooted that over. And so now, let's take the derivative with respect to X of both sides.

So let me take the derivative with respect to X of the left-hand side and the right-hand side. Now on the left-hand side, this is going to be essentially an application of the chain rule. When you learn implicit differentiation, it's really just application of the chain rule.

It's the derivative of the outside function with respect to the inside function. So the natural log of Y with respect to Y, the derivative of that is just going to be 1 over Y. That is going to be equal to—well, this is going to get interesting a little bit.

Actually, let's do some stuff on the side a little bit just—well, let me just—the first thing we want to do here is apply the product rule. It's the derivative of the first expression, so it's just going to be 1 times the second, I guess you'd say, function—so times the natural log of X, plus the first function, just X, times the derivative of the second function.

What's the derivative of the natural log of the natural log of X? Let's do that separately. So if I am trying to take the derivative with respect to X of the natural log of the natural log of X—well, here again, I can apply the chain rule. The derivative of that magenta function with respect to the inside function is going to be 1 over the natural log of X, and then times the derivative of the inside function with respect to X, so times 1 over X.

So this is equal to 1 over X times the natural log of X. So the derivative of this second function right over here is 1 over X times the natural log of X. Let's see—that X cancels out, and so we are left with—I'll just write all of this in this blue color—so 1 over Y times the derivative of Y with respect to X is equal to the natural log of the natural log of X plus 1 over the natural log of X.

Now to solve for the derivative, we can multiply both sides by Y. So let's do that. So we're going to multiply that side by Y, and we're going to multiply this side times Y. What are we going to get? Well, on the left-hand side—that's why we multiplied by Y—we just have the derivative of Y with respect to X.

The derivative of Y with respect to X is equal to, well, Y—our original thing that we had—Y was equal to the natural log of X to the X power. So we’re essentially multiplying both sides times the natural log of X to the X power.

So this is going to get a little bit messy here. We could write it the way I wrote it just now without it being distributed. Actually, let me just leave it like that. So it's going to be—and so we deserve our drum roll right now because this is quite involved—the natural log of the natural log of X plus 1 over the natural log of X—all of that times the natural log of X to the X power.

So that was quite involved. If someone said, "Well, what is the derivative of Y when X is equal to E?"—if someone says, "What is this equal to when X is equal to E?"—well, we could evaluate this when X is equal to E. This would be the—and I know I just made that up just now—so if, like, the original question wasn't just what is dy/dx, if they said, "What is dy/dx when X is equal to E?"—if that was the original question, then we could evaluate it.

So where we just replace all of these with E's—there'd be an E there, an E there, an E there, and an E there—and I just picked the value E because it's easy to evaluate. So the natural log of E is 1, natural log of 1 E to the zero power is 1, so all of that just becomes zero. The natural log of E is 1, so this whole expression right over here becomes 0 plus 1 over 1, so it just becomes 1.

Then the natural log of E is the natural log of E is 1, and you're going to have 1 to the eth power—you could raise 1 to any power and you're just going to get 1.

So it's 1 times 1 is equal to 1, so I just thought it would be fun to try to evaluate that at a value that would be somewhat clean.

More Articles

View All
How To Get Rich According To Warren Buffett
There are a million ways to make a million dollars. In this video, we’re looking at one of them, and the main character in this video is the legendary Warren Buffett, who made his fortune of over 104 billion dollars by investing in the stock market. After…
Happy Mole Day!
Hey everybody! Rocco T. Mole here to wish you a Happy Mole Day from all of us at Khan Academy! Yes, moles! The chemistry concept, not the critter. Now, in case you’ve been living under a rock (like me), a mole is another name for Avogadro’s number which …
How to Sell by Tyler Bosmeny
All right, good morning everyone! We are halfway through Startup School. Can you believe it already? Wow! Yeah, or more correctly we will be after this week. This is going to be a great week of talks, lectures, conversations. Today we have Tyler from Clev…
Simplifying square-root expressions | Mathematics I | High School Math | Khan Academy
Let’s get some practice simplifying radical expressions that involve variables. So let’s say I have ( 2 \times \sqrt{7x} \times 3 \times \sqrt{14x^2} ). Pause the video and see if you can simplify, taking any perfect squares out, multiplying, and then tak…
What types of jet we sell?
What kind of aircraft are we selling? First of all, there’s three groups of aviation: there is the commercial airlines, there’s the military, and then there’s general aviation. General aviation is broken down into a lot of different things: it’s agricultu…
Nuclear Energy Explained: How does it work? 1/3
Have you ever been in an argument about nuclear power? We have, and we found it frustrating and confusing, so let’s try and get to grips with this topic. It all started in the 1940s. After the shock and horror of the war and the use of the atomic bomb, n…