< Return to Video

Antiderivative of xcosx using integration by parts

  • 0:00 - 0:00
  • 0:00 - 0:03
    In the last video, I
    claimed that this formula
  • 0:03 - 0:06
    would come handy for
    solving or for figuring out
  • 0:06 - 0:08
    the antiderivative of
    a class of functions.
  • 0:08 - 0:10
    Let's see if that
    really is the case.
  • 0:10 - 0:14
    So let's say I want to take
    the antiderivative of x
  • 0:14 - 0:18
    times cosine of x dx.
  • 0:18 - 0:20
    Now if you look at this
    formula right over here,
  • 0:20 - 0:23
    you want to assign part of this
    to f of x and some part of it
  • 0:23 - 0:24
    to g prime of x.
  • 0:24 - 0:27
    And the question is, well do I
    assign f of x to x and g prime
  • 0:27 - 0:29
    of x to cosine of x or
    the other way around?
  • 0:29 - 0:33
    Do I make f of x cosine
    of x and g prime of x, x?
  • 0:33 - 0:35
    And that thing to
    realize is to look
  • 0:35 - 0:37
    at the other part of
    the formula and realize
  • 0:37 - 0:39
    that you're essentially going
    to have to solve this right over
  • 0:39 - 0:39
    here.
  • 0:39 - 0:41
    And here where we
    have the derivative
  • 0:41 - 0:43
    of f of x times g of x.
  • 0:43 - 0:45
    So what you want to
    do is assign f of x
  • 0:45 - 0:47
    so that the derivative
    of f of x is actually
  • 0:47 - 0:49
    simpler than f of x.
  • 0:49 - 0:50
    And assign g prime
    of x that, if you
  • 0:50 - 0:52
    were to take its antiderivative,
    it doesn't really
  • 0:52 - 0:55
    become any more complicated.
  • 0:55 - 0:57
    So in this case,
    if we assign f of x
  • 0:57 - 1:02
    to be equal to x, f prime
    of x is definitely simpler,
  • 1:02 - 1:03
    f prime of x is equal to 1.
  • 1:03 - 1:10
    If we assign g prime of x to be
    cosine of x, once again, if we
  • 1:10 - 1:12
    take its antiderivative,
    that sine of x,
  • 1:12 - 1:14
    it's not any more complicated.
  • 1:14 - 1:15
    If we did it the
    other way around,
  • 1:15 - 1:18
    if we set f of x to
    be cosine of x, then
  • 1:18 - 1:19
    we're taking its
    derivative here.
  • 1:19 - 1:21
    That's not that much
    more complicated.
  • 1:21 - 1:24
    But if we set g prime
    of x equaling to x
  • 1:24 - 1:25
    and then we had to take
    its antiderivative,
  • 1:25 - 1:29
    we get x squared over 2,
    that is more complicated.
  • 1:29 - 1:31
    So let me make it
    clear over here.
  • 1:31 - 1:36
    We are assigning f of
    x to be equal to x.
  • 1:36 - 1:39
    And that means that
    the derivative of f
  • 1:39 - 1:41
    is going to be equal to 1.
  • 1:41 - 1:44
    We are assigning-- I'll
    write it right here-- g
  • 1:44 - 1:49
    prime of x to be equal to
    cosine of x, which means
  • 1:49 - 1:56
    g of x is equal to sine of x,
    the antiderivative of cosine
  • 1:56 - 1:57
    of x.
  • 1:57 - 2:00
    Now let's see, given
    these assumptions,
  • 2:00 - 2:03
    let's see if we can
    apply this formula.
  • 2:03 - 2:04
    So this has all of this.
  • 2:04 - 2:08
    Let's see, the right-hand
    side says f of x times g of x.
  • 2:08 - 2:09
    So f of x is x.
  • 2:09 - 2:12
  • 2:12 - 2:13
    g of x is sine of x.
  • 2:13 - 2:17
  • 2:17 - 2:21
    And then from that, we are going
    to subtract the antiderivative
  • 2:21 - 2:27
    of f prime of x-- well,
    that's just 1-- times g of x,
  • 2:27 - 2:35
    times sine of x dx.
  • 2:35 - 2:37
    Now this was a huge
    simplification.
  • 2:37 - 2:40
    Now I went from trying to solve
    the antiderivative of x cosine
  • 2:40 - 2:43
    of x to now I just have
    to find the antiderivative
  • 2:43 - 2:44
    of sine of x.
  • 2:44 - 2:51
    And we know the
    antiderivative of sine of x dx
  • 2:51 - 2:55
    is just equal to
    negative cosine of x.
  • 2:55 - 2:57
    And of course, we can
    throw the plus c in now,
  • 2:57 - 2:59
    now that we're pretty
    done with taking
  • 2:59 - 3:01
    all of our antiderivatives.
  • 3:01 - 3:04
    So all of this is
    going to be equal to x
  • 3:04 - 3:13
    sine of x, x times sine of
    x, minus the antiderivative
  • 3:13 - 3:15
    of this, which is just
    negative cosine of x.
  • 3:15 - 3:18
  • 3:18 - 3:22
    And then we could throw in a
    plus c right at the end of it.
  • 3:22 - 3:24
    And doesn't matter if we
    subtract a c or add the c.
  • 3:24 - 3:26
    We're saying this is
    some arbitrary constant
  • 3:26 - 3:28
    which could even be negative.
  • 3:28 - 3:30
    And so this is all going
    to be equal to-- we
  • 3:30 - 3:37
    get our drum roll now-- it's
    going to be x times sine of x,
  • 3:37 - 3:40
    subtract a negative, that
    becomes a positive, plus cosine
  • 3:40 - 3:43
    of x plus c.
  • 3:43 - 3:44
    And we are done.
  • 3:44 - 3:46
    We were able to take the
    antiderivative of something
  • 3:46 - 3:49
    that we didn't know how to take
    the antiderivative of before.
  • 3:49 - 3:52
    That was pretty interesting.
Title:
Antiderivative of xcosx using integration by parts
Video Language:
English
Duration:
03:52

English subtitles

Revisions