< Return to Video

Definite integral with substitution

  • 0:00 - 0:01
  • 0:01 - 0:03
    So I've been sent this definite
    integral problem and it seemed
  • 0:03 - 0:06
    as good as any, and I think the
    key with this is just to
  • 0:06 - 0:07
    see a lot of examples.
  • 0:07 - 0:09
    So let's do it.
  • 0:09 - 0:19
    This definite integral is from
    pi over 2 to pi of minus cosine
  • 0:19 - 0:28
    squared of x times sin of x dx.
  • 0:28 - 0:30
    So before we just chug
    through the math and do the
  • 0:30 - 0:34
    antiderivatives and use the
    fundamental theorem of calculus
  • 0:34 - 0:36
    to evaluate the definite
    integral, let's think about
  • 0:36 - 0:37
    what we're even doing.
  • 0:37 - 0:40
    So I've graphed this function
    right here, minus cosine
  • 0:40 - 0:44
    squared of x times sin of x.
  • 0:44 - 0:46
    And what we care about,
    we're defining the definite
  • 0:46 - 0:50
    integral between pi over 2,
    which is roughly here.
  • 0:50 - 0:53
    Let me see if I can make
    this a little bit bigger.
  • 0:53 - 0:58
    So between pi over 2 which is
    right there, and between pi.
  • 0:58 - 1:00
    So the definite integral of
    this function between here and
  • 1:00 - 1:04
    here is essentially the area of
    the curve between the
  • 1:04 - 1:05
    curve and the x-axis.
  • 1:05 - 1:08
    And since the a curve is below
    the x-axis here, this area is
  • 1:08 - 1:10
    going to be a negative number.
  • 1:10 - 1:11
    So that gives us
    immediately an intuition.
  • 1:11 - 1:14
    We should be getting a negative
    number when we evaluate this
  • 1:14 - 1:17
    and just to prove this I
    actually typed it in up here.
  • 1:17 - 1:21
    So let's now evaluate
    this definite integral.
  • 1:21 - 1:23
  • 1:23 - 1:26
    Now I'll rearrange some of the
    terms here just to make it a
  • 1:26 - 1:28
    little bit easier to read.
  • 1:28 - 1:30
    But the way I always think
    about it is, well I have
  • 1:30 - 1:32
    a cosine and a sin.
  • 1:32 - 1:34
    The cosine is squared, so all
    these crazy things are
  • 1:34 - 1:40
    happening to it, so it seems
    like I could use substitution
  • 1:40 - 1:42
    or the reverse chain
    rules some out here.
  • 1:42 - 1:44
    And what was the chain rule?
  • 1:44 - 1:52
    The chain rule said if I took
    the derivative of f of g of x
  • 1:52 - 2:02
    that this is equal to f prime
    of g of x times g prime of x.
  • 2:02 - 2:05
    That might completely confuse
    you, but I just wrote that here
  • 2:05 - 2:09
    because we could say, well what
    if g of x is cosine of x. f
  • 2:09 - 2:13
    prime of g of x is the cosine
    of x squared, and then the
  • 2:13 - 2:15
    derivative of g of x or the
    derivative of cosine
  • 2:15 - 2:16
    of x is sin of x.
  • 2:16 - 2:18
    Well it's actually minus sin of
    x, and we have a minus sin
  • 2:18 - 2:20
    here, so that works
    out well too.
  • 2:20 - 2:22
    If this confuse you, ignore it.
  • 2:22 - 2:23
    Well essentially we're just
    going to do the same thing,
  • 2:23 - 2:24
    but we're going to do
    it with substitution.
  • 2:24 - 2:27
    So let me do it
    with substitution.
  • 2:27 - 2:30
    Let me a erase this if
    this confuses people.
  • 2:30 - 2:33
  • 2:33 - 2:39
    I want to do it however it
    is least confusing to you.
  • 2:39 - 2:40
    OK let me erase that.
  • 2:40 - 2:43
    Actually, let me do it with
    substitution, just because the
  • 2:43 - 2:47
    way I was just doing is kind
    of my shortcut back in the
  • 2:47 - 2:49
    day when I was a mathlete.
  • 2:49 - 2:52
    But it's good to be able to do
    it with substitution, helps you
  • 2:52 - 2:53
    from making careless mistakes.
  • 2:53 - 2:54
    So let me rewrite
    this first of all.
  • 2:54 - 2:59
    This is the same thing as the
    integral from pi over 2 to
  • 2:59 - 3:05
    pi of cosine squared of x.
  • 3:05 - 3:09
    Actually let me write that
    as cosine of x squared.
  • 3:09 - 3:12
    Same thing, right.
  • 3:12 - 3:19
    Times minus sin of x dx.
  • 3:19 - 3:20
    And now it should
    be clearer to you.
  • 3:20 - 3:22
    What's the derivative
    of cosine of x?
  • 3:22 - 3:24
    It's minus sin of x.
  • 3:24 - 3:26
    So I have a function and it's
    being squared, and I have its
  • 3:26 - 3:30
    derivative, so I can figure out
    its antiderivative by using
  • 3:30 - 3:32
    substitution or the
    reverse chain rule.
  • 3:32 - 3:34
    So let's make a substitution.
  • 3:34 - 3:38
    u is equal to cosine of x.
  • 3:38 - 3:40
    How did I know to substitute
    u is equal to cosine of x?
  • 3:40 - 3:43
    Well because I say, well
    the derivative of this
  • 3:43 - 3:44
    function is here.
  • 3:44 - 3:47
    So when I find du, this whole
    thing is going to end up
  • 3:47 - 3:48
    being du, and let me
    show that to you.
  • 3:48 - 3:51
    So what is du/dx?
  • 3:51 - 3:58
    du/dx is equal to
    minus sin of x.
  • 3:58 - 4:00
    That hopefully we've
    learned already.
  • 4:00 - 4:01
    So what is du?
  • 4:01 - 4:05
    If we multiply both sides by
    the differential d of x get du
  • 4:05 - 4:10
    is equal to minus sin of x dx.
  • 4:10 - 4:15
    So if we look at the original
    equation, this right here we
  • 4:15 - 4:21
    just showed is equal to du,
    and this right here is what?
  • 4:21 - 4:23
    Cosine of x is u.
  • 4:23 - 4:24
    That was our original
    substitution.
  • 4:24 - 4:26
    So we have u squared.
  • 4:26 - 4:30
  • 4:30 - 4:32
    So now let's take the integral.
  • 4:32 - 4:34
    And I will arbitrarily
    switch colors.
  • 4:34 - 4:38
  • 4:38 - 4:40
    And now this is a very
    important thing.
  • 4:40 - 4:43
    If you're going to do
    substitution, if we're going to
  • 4:43 - 4:45
    say u is equal to cosine of x,
    we're going to have to actually
  • 4:45 - 4:46
    make this substitution
    on the boundaries.
  • 4:46 - 4:49
    Or we could do the substitution
    and reverse the substitution
  • 4:49 - 4:51
    and then evaluate the
    boundaries, but let's do that.
  • 4:51 - 4:55
    So if this is going from x is
    equal to pi over 2 to pi,
  • 4:55 - 4:57
    what is u going from?
  • 4:57 - 5:00
    Well when x is equal to
    pi over 2, u is equal
  • 5:00 - 5:02
    to cosine of pi over 2.
  • 5:02 - 5:05
  • 5:05 - 5:06
    Because u is just cosine of x.
  • 5:06 - 5:10
    And then when x is pi, i is
    going to be cosine of pi.
  • 5:10 - 5:13
  • 5:13 - 5:15
    And now the fun part.
  • 5:15 - 5:16
    Cosine of x squared.
  • 5:16 - 5:19
    Well that's just the same
    thing is u squared.
  • 5:19 - 5:23
    And minus sin of x dx,
    that's the same thing
  • 5:23 - 5:25
    is du-- did that here.
  • 5:25 - 5:28
  • 5:28 - 5:30
    This is pretty straightforward
    and I'm just going
  • 5:30 - 5:30
    to rewrite it.
  • 5:30 - 5:31
    What's cosine of pi?
  • 5:31 - 5:34
    Cosine of pi is minus 1.
  • 5:34 - 5:37
    Cosine of pi over 2,
    well that's a 0.
  • 5:37 - 5:40
    So we have the integral from u
    is equal to 0 to u is equal to
  • 5:40 - 5:44
    negative 1 of u squared du.
  • 5:44 - 5:50
    And now this seems like
    a simple problem.
  • 5:50 - 5:54
    So this is equal to the
    antiderivative of u
  • 5:54 - 5:56
    squared, which is
    fairly straightforward.
  • 5:56 - 5:59
    u cubed over 3.
  • 5:59 - 6:01
    You could just take the
    derivative of this,
  • 6:01 - 6:02
    you get this.
  • 6:02 - 6:05
    All I did is I increased this
    exponent to get the third, and
  • 6:05 - 6:07
    I divided by that exponent.
  • 6:07 - 6:11
    Now we're going to have to
    evaluate it at minus 1 and
  • 6:11 - 6:14
    subtract from that,
    it evaluated at 0.
  • 6:14 - 6:19
    So this is equal to minus 1
    to the third over 3 minus
  • 6:19 - 6:25
    0 over 3, and so this
    is equal to minus 1/3.
  • 6:25 - 6:27
    And we are done.
  • 6:27 - 6:31
    And if we look at this area
    from our original graph, what
  • 6:31 - 6:33
    we just solved, as we said the
    area of the curve between
  • 6:33 - 6:36
    here and here is minus 1/3.
  • 6:36 - 6:39
    Or if we wanted the absolute
    area because you can't really
  • 6:39 - 6:42
    have a negative area, it's 1/3
    but we know it's negative
  • 6:42 - 6:45
    because this curve is
    below the x-axis here.
  • 6:45 - 6:48
    And that looks about right,
    that looks about 1/3.
  • 6:48 - 6:51
    I mean if this cube right
    here is 1, then that
  • 6:51 - 6:53
    looks about 1/3.
  • 6:53 - 6:55
    The intuition all
    works out at least.
  • 6:55 - 6:59
    So hopefully you found
    that vaguely useful.
  • 6:59 - 7:02
    Actually let me-- since we
    have a little bit of time.
  • 7:02 - 7:04
    Hopefully you understood this,
    and if you did, don't worry
  • 7:04 - 7:06
    about what I'm going to do now,
    but I want to show you how I
  • 7:06 - 7:07
    tend to do it where I
    just think of it is the
  • 7:07 - 7:09
    reverse chain rule.
  • 7:09 - 7:13
    It's a little bit
    quicker sometimes.
  • 7:13 - 7:15
    But it's really the same
    thing as what we just
  • 7:15 - 7:16
    did with substitution.
  • 7:16 - 7:18
    So if we erase all of this.
  • 7:18 - 7:21
  • 7:21 - 7:27
    And so if we have this integral
    right here, what I do is I say,
  • 7:27 - 7:29
    well I have cosine
    of x squared.
  • 7:29 - 7:32
  • 7:32 - 7:35
    I have cosine of x squared, and
    then I have minus sin of x.
  • 7:35 - 7:38
    This is the derivative of this.
  • 7:38 - 7:41
    Since the derivative is here,
    I can just treat this whole
  • 7:41 - 7:43
    thing like an x term.
  • 7:43 - 7:46
    So this is the same thing.
  • 7:46 - 7:55
    So the antiderivative is cosine
    of x to the third over 3, and I
  • 7:55 - 7:58
    evaluate it at pi
    and pi over 2.
  • 7:58 - 8:00
    And remember, how
    did I do this?
  • 8:00 - 8:03
    What allowed me to treat this
    cosine of x just like an x or
  • 8:03 - 8:05
    like a u when I did it
    with the substitution?
  • 8:05 - 8:07
    Well I had its derivative
    sitting right here,
  • 8:07 - 8:08
    minus sin of x.
  • 8:08 - 8:11
    So that's what gave me the
    license to just take the
  • 8:11 - 8:15
    antiderivative, pretend like
    this cosine of x is just an x,
  • 8:15 - 8:19
    is just a u, you could even
    say, and just take it's
  • 8:19 - 8:21
    exponent, raise it by 1 and
    divide it by 3 and then
  • 8:21 - 8:24
    evaluate it from
    pi to pi over 2.
  • 8:24 - 8:32
    So this is equal to cosine of
    pi cubed over 3 minus cosine
  • 8:32 - 8:36
    of pi over 2 cubed over 3.
  • 8:36 - 8:40
    This is minus 1 to the third,
    so this is equal to minus
  • 8:40 - 8:42
    1/3 minus this is 0.
  • 8:42 - 8:43
    So we get the same answer.
  • 8:43 - 8:45
    I just wanted to show you that.
  • 8:45 - 8:46
    It's exactly the same
    with substitution.
  • 8:46 - 8:49
    It's just I didn't formally do
    the substitution, but it's
  • 8:49 - 8:50
    the exact same thing.
  • 8:50 - 8:52
    Anyway, hope you
    found that helpful.
  • 8:52 - 8:53
Title:
Definite integral with substitution
Description:

Solving a definite integral with substitution (or the reverse chain rule)

more » « less
Video Language:
English
Duration:
08:54

English subtitles

Revisions