< Return to Video

Calculus: Derivative of x^(x^x)

  • 0:01 - 0:04
    A bit of a classic implicit
    differentiation problem
  • 0:04 - 0:11
    is the problem y is
    equal to x to the x.
  • 0:11 - 0:14
    And then to find out what
    the derivative of y
  • 0:14 - 0:16
    is with respect to x.
  • 0:16 - 0:20
    And people look at that, oh you
    know, I don't have just a
  • 0:20 - 0:22
    constant exponent here, so I
    can't just use the power
  • 0:22 - 0:23
    rules, how do you do it.
  • 0:23 - 0:26
    And the trick here is really
    just to take the natural log of
  • 0:26 - 0:28
    both sides of this equation.
  • 0:28 - 0:30
    And this is going to build
    up to what we're going to
  • 0:30 - 0:30
    do later in this video.
  • 0:30 - 0:35
    So If you take the natural log
    on both sides of this equation,
  • 0:35 - 0:39
    you get the natural log of y is
    equal to the natural
  • 0:39 - 0:41
    log of x to the x.
  • 0:41 - 0:45
    Now our power rules, or I guess
    our natural log rules, say
  • 0:45 - 0:47
    look, if I'm taking the natural
    log of something to the
  • 0:47 - 0:51
    something, this is equivalent
    to, I can rewrite the natural
  • 0:51 - 0:55
    log of x to the x as being
    equal to x times the
  • 0:55 - 0:57
    natural log of x.
  • 0:57 - 0:59
    So let me rewrite
    everything again.
  • 0:59 - 1:02
    If I take the natural log of
    both sides of that equation, I
  • 1:02 - 1:06
    get the natural log of y is
    equal to x times the
  • 1:06 - 1:09
    natural log of x.
  • 1:09 - 1:11
    And now we can take the
    derivative of both sides of
  • 1:11 - 1:12
    this with respect to x.
  • 1:12 - 1:16
    So the derivative with respect
    to x of that, and then
  • 1:16 - 1:19
    the derivative with
    respect to x of that.
  • 1:19 - 1:25
    Now we're going to apply a
    little bit of the chain rule.
  • 1:25 - 1:26
    So the chain rule.
  • 1:26 - 1:28
    What's the derivative of
    this with respect to x?
  • 1:28 - 1:31
    What's the derivative of
    our inner expression
  • 1:31 - 1:32
    with respect to x?
  • 1:32 - 1:35
    It's a little implicit
    differentiation, so it's dy
  • 1:35 - 1:39
    with respect to x times the
    derivative of this whole
  • 1:39 - 1:41
    thing with respect to
    this inner function.
  • 1:41 - 1:44
    So the derivative of
    natural log of x is 1/x.
  • 1:44 - 1:46
    So the derivative of
    natural log of y with
  • 1:46 - 1:49
    respect to y is 1/y.
  • 1:49 - 1:50
    So times 1/y.
  • 1:53 - 1:55
    And the derivative of this--
    this is just the product rule,
  • 1:55 - 2:00
    and I'll arbitrarily switch
    colors here-- is the derivative
  • 2:00 - 2:04
    of the first term, which is 1,
    times the second term, so times
  • 2:04 - 2:09
    the natural log of x plus the
    derivative of the second term,
  • 2:09 - 2:12
    which is 1/x times
    the first term.
  • 2:12 - 2:13
    So times x.
  • 2:13 - 2:23
    And so we get dy/dx times 1/y
    is equal to natural log of x
  • 2:23 - 2:28
    plus-- this just turns out to
    be 1-- x divided by x, and
  • 2:28 - 2:30
    then you multiply both
    sides of this by y.
  • 2:30 - 2:36
    You get dy/dx is equal
    to y times the natural
  • 2:36 - 2:38
    log of x plus 1.
  • 2:38 - 2:40
    And if you don't like this y
    sitting here, you could just
  • 2:40 - 2:41
    make the substitution.
  • 2:41 - 2:44
    y is equal to x to the x.
  • 2:44 - 2:47
    So you could say that the
    derivative of y with respect to
  • 2:47 - 2:53
    x is equal to x to the x times
    the natural log of x plus 1.
  • 2:53 - 2:56
    And that's a fun problem, and
    this is often kind of given as
  • 2:56 - 3:00
    a trick problem, or sometimes
    even a bonus problem if people
  • 3:00 - 3:02
    don't know to take the natural
    log of both sides of that.
  • 3:02 - 3:05
    But I was given an even more
    difficult problem, and
  • 3:05 - 3:07
    that's what we're going
    to tackle in this.
  • 3:07 - 3:09
    But it's good to see this
    problem done first because it
  • 3:09 - 3:12
    gives us the basic tools.
  • 3:12 - 3:14
    So the more difficult
    problem we're going to
  • 3:14 - 3:18
    deal with is this one.
  • 3:18 - 3:20
    Let me write it down.
  • 3:20 - 3:27
    So the problem is y is equal
    to x to the-- and here's the
  • 3:27 - 3:31
    twist-- x to the x to the x.
  • 3:31 - 3:34
    And we want to find out dy/dx.
  • 3:34 - 3:36
    We want to find out
    the derivative of y
  • 3:36 - 3:39
    with respect to x.
  • 3:39 - 3:41
    So to solve this problem we
    essentially use the same tools.
  • 3:41 - 3:44
    We use the natural log to
    essentially breakdown this
  • 3:44 - 3:47
    exponent and get it into
    terms that we can deal with.
  • 3:47 - 3:49
    So we can use the product rule.
  • 3:49 - 3:51
    So let's take the natural log
    of both sides of this equation
  • 3:51 - 3:53
    like we did last time.
  • 3:53 - 3:59
    You get the natural log of y
    is equal to the natural log
  • 3:59 - 4:03
    of x to the x to the x.
  • 4:05 - 4:07
    And this is just the
    exponent on this.
  • 4:07 - 4:13
    So we can rewrite this as x to
    the x times the natural log
  • 4:13 - 4:17
    times the natural log of x.
  • 4:17 - 4:21
    So now our expression our
    equation is simplified to the
  • 4:21 - 4:26
    natural log of y is equal to x
    to the x times the
  • 4:26 - 4:27
    natural log of x.
  • 4:27 - 4:30
    But we still have this
    nasty x to the x here.
  • 4:30 - 4:34
    We know no easy way to take the
    derivative there, although I've
  • 4:34 - 4:36
    actually just shown you what
    the derivative of this is, so
  • 4:36 - 4:39
    we could actually just
    apply it right now.
  • 4:39 - 4:41
    I was going to take the natural
    log again and it would turn
  • 4:41 - 4:45
    into this big, messy, confusing
    thing but I realized that
  • 4:45 - 4:47
    earlier in this video I
    just solved for what the
  • 4:47 - 4:50
    derivative of x to the x is.
  • 4:50 - 4:52
    It's this thing right here.
  • 4:52 - 4:53
    It's this crazy
    expression right here.
  • 4:53 - 4:58
    So we just have to remember
    that and then apply and
  • 4:58 - 5:00
    then do our problem.
  • 5:00 - 5:01
    So let's do our problem.
  • 5:01 - 5:05
    And if we hadn't solved this
    ahead of time, it was kind of
  • 5:05 - 5:08
    an unexpected benefit of doing
    the simpler version of the
  • 5:08 - 5:13
    problem, you could just keep
    taking the natural log of this,
  • 5:13 - 5:14
    but it'll just get a
    little bit messier.
  • 5:14 - 5:16
    But since we already know what
    the derivative of x to the
  • 5:16 - 5:18
    x is, let's just apply it.
  • 5:18 - 5:21
    So we're going to take
    the derivative of both
  • 5:21 - 5:22
    sides of the equation.
  • 5:22 - 5:26
    Derivative of this is equal
    to the derivative of this.
  • 5:26 - 5:28
    We'll ignore this for now.
  • 5:28 - 5:32
    Derivative of this with respect
    to x is the derivative of
  • 5:32 - 5:35
    the natural log of y
    with respect to y.
  • 5:35 - 5:38
    So that's 1/y times
    the derivative of y
  • 5:38 - 5:39
    with respect to x.
  • 5:39 - 5:41
    That's just the chain rule.
  • 5:41 - 5:43
    We learned that in
    implicit differentiation.
  • 5:43 - 5:49
    And so this is equal to the
    derivative of the first term
  • 5:49 - 5:52
    times the second term, and I'm
    going to write it out here just
  • 5:52 - 5:54
    because I don't want to skip
    steps and confuse people.
  • 5:54 - 5:58
    So this is equal to the
    derivative with respect to x of
  • 5:58 - 6:03
    x to the x times the natural
    log of x plus the derivative
  • 6:03 - 6:06
    with respect to x of
    the natural log of
  • 6:06 - 6:11
    x times x to the x.
  • 6:11 - 6:14
    So let's focus on the right
    hand side of this equation.
  • 6:14 - 6:18
    What is the derivative of x
    to the x with respect to x?
  • 6:18 - 6:20
    Well we just solved that
    problem right here.
  • 6:20 - 6:24
    It's x to the x natural
    log of x plus 1.
  • 6:24 - 6:30
    So this piece right there--
    I already forgot what it
  • 6:30 - 6:34
    was-- it was x to the x
    natural log of x plus 1.
  • 6:34 - 6:41
    That is x to the x times the
    natural log of x plus 1.
  • 6:41 - 6:43
    And then we're going to
    multiply that times
  • 6:43 - 6:44
    the natural log of x.
  • 6:48 - 6:52
    And then we're going to add
    that to, plus the derivative
  • 6:52 - 6:55
    of the natural log of x.
  • 6:55 - 6:59
    That's fairly straightforward,
    that's 1/x times x to the x.
  • 7:03 - 7:06
    And of course the left
    hand side of the equation
  • 7:06 - 7:10
    was just 1/y dy/dx.
  • 7:10 - 7:15
    And we can multiply both sides
    of this now by y, and we get
  • 7:15 - 7:22
    dy/dx is equal to y times all
    of this crazy stuff-- x to the
  • 7:22 - 7:28
    x times the natural log of x
    plus 1 times the natural log of
  • 7:28 - 7:35
    x plus 1/x times x to the x.
  • 7:35 - 7:36
    That's x to the negative 1.
  • 7:36 - 7:39
    We could rewrite this as x
    to the minus 1, and then
  • 7:39 - 7:40
    you add the exponents.
  • 7:40 - 7:45
    You could write this as x
    to the x minus 1 power.
  • 7:45 - 7:49
    And if we don't like this
    y here, we can just
  • 7:49 - 7:50
    substitute it back.
  • 7:50 - 7:53
    y was equal to this, this
    crazy thing right there.
  • 7:53 - 7:59
    So our final answer for this
    seemingly-- well on one level
  • 7:59 - 8:01
    looks like a very simple
    problem, but on another level
  • 8:01 - 8:03
    when you appreciate what it's
    saying, it's like oh there's a
  • 8:03 - 8:07
    very complicated problem-- you
    get the derivative of y with
  • 8:07 - 8:11
    respect to x is equal
    to y, which is this.
  • 8:11 - 8:21
    So that's x to the x to the x
    times all of this stuff-- times
  • 8:21 - 8:28
    x to the x natural log of x
    plus 1 times the natural log
  • 8:28 - 8:34
    of x, and then all of that
    plus x to the x minus 1.
  • 8:34 - 8:35
    So who would have thought.
  • 8:35 - 8:36
    Sometimes math is elegant.
  • 8:36 - 8:38
    You take the derivative of
    something like this and
  • 8:38 - 8:39
    you get something neat.
  • 8:39 - 8:42
    For example, when you take
    the derivative of natural
  • 8:42 - 8:44
    log of x you get 1/x.
  • 8:44 - 8:46
    That's very simple and elegant,
    and it's nice that math
  • 8:46 - 8:47
    worked out that way.
  • 8:47 - 8:50
    But sometimes you do something,
    you take an operation on
  • 8:50 - 8:52
    something that looks pretty
    simple and elegant, and you get
  • 8:52 - 8:55
    something that's hairy and not
    that pleasant to look
  • 8:55 - 9:00
    at, but is a pretty
    interesting problem.
  • 9:00 - 9:00
    And there you go.
Title:
Calculus: Derivative of x^(x^x)
Description:

more » « less
Video Language:
English
Duration:
09:02

English subtitles

Revisions