Integral of x^2*cos(x) and why the DI method works better than udv integration by parts

Поделиться
HTML-код
  • Опубликовано: 3 сен 2018
  • Start learning today, click brilliant.org/blackpenredpen/ to check out Brillant.org. The first 200 people to sign up will get 20% off your annual premium subscription!
    In this video, we will do the integral of x^2cos(x) with the traditional u-dv setup and the DI setup. We will also discuss why the DI method works better than udv integration by parts. This method will help you tremendously with your Calculus 2 class. Once again, the DI method is just Integration by parts, and sometimes it's called the Tabular Integration
    DI method, all 3 stops: • integration by parts, ...

Комментарии • 140

  • @garvett6660
    @garvett6660 4 года назад +32

    This method be like:
    - Hey you silly integral, you’re going to DI!

  • @jibran8410
    @jibran8410 5 лет назад +149

    Why isn't the DI method used commonly? It would solve so many difficult and long int by parts questions

    • @jibran8410
      @jibran8410 5 лет назад +29

      But isn't DI method coming from ibp and if you prove it and show why it works the students don't need to prove it everytime since they understand why it works already

    • @jessiemanopo
      @jessiemanopo 5 лет назад +2

      It's commonly used by the teachers here

    • @Villager-
      @Villager- 5 лет назад +17

      Because professors wanna do it the " hard way " first before this method. When i took calc 2 we did integration by parts until the final exam. Then i went to diff equations and prof was surprised we did not know DI method lol 😅😅😅

    • @saransh2577
      @saransh2577 2 года назад

      We were taught both the methods because sometimes while solving problems we are meant to solve linear differential equations that involve byparts integration and to save time we just use DI

  • @Canale0107MAN
    @Canale0107MAN 5 лет назад +14

    In Japan, this method is called ”瞬間部分積分(Shunkan Bubun-Sekibun)”, which means “instant integration by parts”!

  • @Cannongabang
    @Cannongabang 5 лет назад +66

    The DI method improved my life. Honestly proving and calculating Fourier series coefficients becomes so much easier with DI hahah

    • @tK-bv5gj
      @tK-bv5gj 4 года назад

      Yee!! fourier an bn coeficient integrals are not that tedious with DI method.

  • @mathonthego1947
    @mathonthego1947 5 лет назад +32

    All my years taking math and I was never taught this. This method is amazing! It's more impressive (scary to most people) to do it the original way, but the DI method really cleans it up and makes integration by parts seem a lot less daunting. I wonder if my professors would have docked me points if I had known and used the DI method on a test?

    • @blackpenredpen
      @blackpenredpen  5 лет назад +16

      I teach both to my students and I don't mind which one they use. The main part is still to know the idea for IBP is "one part to be differentiated, the other part to be integrated" (then hope for the best)

    • @abluntuser940
      @abluntuser940 4 года назад +5

      @@blackpenredpen
      I love how you add "hope for the best" hahaha

  • @thefunpolice
    @thefunpolice 6 месяцев назад

    I can scarcely believe how easy and well-organised this DI method is. How wonderful! Thanks BPRP.

  • @michaelkruse3536
    @michaelkruse3536 5 лет назад +2

    When I went into calc AB junior year, I watched the video on the DI method before we got to integration by parts. By doing that, not only did I understand the lesson better than everyone else in my class, but I also was able to make my own connections between the DI method and the traditional formula, allowing me to safely use the DI method for all integration by parts problems, even though my teacher was only aware of the "first stop." By explaining this method to my friends in ways they could understand, they too grasped the concept much better, and I still use the DI method to this day, 3 years later.

  • @david-yt4oo
    @david-yt4oo 5 лет назад +14

    since you first uploaded the DI method on this channel, things became way more simple and easy to understand. and now a more detailed explanation as to how this works.. wow, it's great
    [yay][yay][yay][yay][yay][yay][yay]

    • @blackpenredpen
      @blackpenredpen  5 лет назад +4

      I am very happy to hear! Thanks for the comment!!

  • @GaryTugan
    @GaryTugan 5 лет назад +3

    LOVE your vids (I've watched well over 100 of them I am sure.) Thanks for your work!

  • @zanti4132
    @zanti4132 4 года назад +2

    Playing around with this integral, I think I found another approach for solving it. As integrals and derivatives are inverse operations, the basic idea is to write the solution as a function with variables, then take the derivative of this function and solve for the variables, as follows:
    All derivatives of sine and cosine functions are other sine and cosine functions, and all derivatives of polynomials are polynomials of a smaller degree. So, let's write the antiderivative in the following format, where a, b, c, d, e, and f are variables to be worked out:
    Integ{x^2 cos(x)} = (ax^2 + bx + c)(sin (x)) + (dx^2 + ex + f)(cos (x)).
    Take the derivative of both sides of this equation (use the product rule on the RHS), and you get:
    x^2 cos (x) = (ax^2 + bx + c)(cos (x)) + (2ax + b)(sin (x)) + (2dx + e)(cos (x)) - (dx^2 + ex + f)(sin(x))
    I know this looks a little messy right now, but it's not as bad as it appears. Matching up terms on the RHS, we get:
    x^2 cos (x) = (ax^2 + (b + 2d)x + (c + e))(cos (x)) + (-dx^2 + (2a - e)x + (b - f)(sin (x))
    Since we have to end up with x^2 cos(x) with no sin(x) term, we know:
    a = 1
    b + 2d = 0
    c + e = 0
    d = 0
    2a - e = 0
    b - f = 0
    Now finding the values for all six variables is easy:
    a = 1
    d = 0
    b + 2d = 0, therefore b = 0
    b - f = 0, therefore f = 0
    2a - e = 0, therefore e = 2
    c + e = 0, therefore c = -2
    And so our integral is (x^2 - 2)(sin(x) + 2x(cos(x). Final answer!

  • @christophermusso
    @christophermusso 5 лет назад

    Simplicity and Elegance.....It's a beautiful thing.

  • @quahntasy
    @quahntasy 5 лет назад +23

    Why isn't the DI method used commonly? It's like the calculation becomes a lot easier.

  • @AlgyCuber
    @AlgyCuber 5 лет назад +14

    when i was starting on calc (i learned calc by myself), i was a bit confused on the udv method until i see ur pi function vid, so i learned di instead

  • @6612770
    @6612770 5 лет назад +1

    Excellent!
    Thank you

  • @jeremyn9146
    @jeremyn9146 2 года назад

    Great method, thank you!

  • @tomastamantini
    @tomastamantini 5 лет назад

    Wow! Really elegant!

  • @pendita66
    @pendita66 4 года назад

    You are the best teacher ever!

  • @nandakumarcheiro
    @nandakumarcheiro 3 года назад

    Wonderful DI method of diagonalisation.

  • @64_bit80
    @64_bit80 3 года назад

    you're amazing at explaining this dude

  • @jp4904
    @jp4904 3 года назад

    This is the most complicated, lengthy explanation I've seen for the tabular method. It really shows you what's going on inside it though.

  • @TheRaysWay1
    @TheRaysWay1 5 лет назад

    thank YOU!!

  • @yaskynemma9220
    @yaskynemma9220 5 лет назад

    I learn more here than in school, thank you

  • @jonbdory
    @jonbdory 4 года назад

    Thank you!

  • @WilliamLeeSims
    @WilliamLeeSims 5 лет назад +15

    I'm old, and we used the 'uv'-method for integration by parts. I really love this DI-method. I'm curious, would there ever be a time when using the DI-method when you might need to switch the D and I columns after a few steps?

    • @khajiit92
      @khajiit92 5 лет назад +12

      if you switch the columns you're basically going backwards and so you'll just undo the progress you made with your previous step.
      the point is usually to have something that gets simpler when you differentiate until eventually it disappears, which you pick as the thing that you differentiate, and the something that hopefully stays about the same level of complexity when you integrate so that overall each time you do IBP the bit in the integral is simpler until eventually you solve it.
      So tl;dr i don't think you should ever have to reverse it. but maybe there's some really weird special case where it makes sense to do so?

  • @raulverastegui3309
    @raulverastegui3309 5 лет назад

    Elegante explicación. Thanks you.

  • @Hexanitrobenzene
    @Hexanitrobenzene 5 лет назад

    Now that's efficient !

  • @khabarovskabdulaahi6477
    @khabarovskabdulaahi6477 4 года назад

    老师你的讲得特别好!

  • @anubhav3380
    @anubhav3380 4 года назад

    Sir, you are so funny and your method is really useful. Thanks a lot.🙏🙏🙏
    Love you from INDIA.

  • @tK-bv5gj
    @tK-bv5gj 4 года назад

    I just... I love u Hahaha i'm in my last math course in university and fourier an & bn coeficient by doing parts was making those integrals so tedious. Thanks a lot. Greetings from Argentina. Future electronic engineer here hahahahah. Peace ✌🏼

  • @giftonpaulimmanuel146
    @giftonpaulimmanuel146 3 года назад +1

    Thank you bro from India

  • @waitforit0730
    @waitforit0730 5 лет назад

    thank you

  • @KingGisInDaHouse
    @KingGisInDaHouse 3 года назад +1

    The last part where it is integral of -2cosx you can do that as you normally would your doing extra work

  • @mohameddahir1774
    @mohameddahir1774 4 года назад

    tnx alot

  • @hooligun90
    @hooligun90 5 лет назад

    Legend!

  • @nebulous1284
    @nebulous1284 5 лет назад

    It is literally enlightenment

  • @user-wl9lj2fv4l
    @user-wl9lj2fv4l 5 лет назад

    What would change/happend if insted of taking the derivetive of u I would integrate, and same with v?

  • @reemy9598
    @reemy9598 5 лет назад +1

    wish he could be my professor , his smile is adorable tf

  • @kashafnaz_
    @kashafnaz_ 5 лет назад +1

    wow
    so easy ID METHOD

  • @ssdd9911
    @ssdd9911 5 лет назад +6

    #yay DI method

  • @TheSpud333
    @TheSpud333 3 года назад

    Everybody gangsta until blackpenredpen uses a blue pen

  • @yos1227
    @yos1227 3 года назад

    How will I integrate xlogx by D-I method???

  • @77tigers26
    @77tigers26 2 года назад

    nice

  • @azylhalleywolf7842
    @azylhalleywolf7842 4 года назад

    Awesome :))))

  • @jikaikas
    @jikaikas 4 года назад +1

    6:35 that yay soundtrack

  • @nefarioustoast
    @nefarioustoast 5 лет назад

    9:02 Is there any weird case where you gotta switch the columns? Like you pick the I part to differentiate and pick the D part to integrate?

    • @leonlozinskiy3673
      @leonlozinskiy3673 5 лет назад

      Even during the traditional method switching what you are differentiating and what you are integrating causes you to undo your last step and end up with what you started with.

  • @UnathiGX
    @UnathiGX 5 лет назад +2

    Good Job BPRP!

  • @dimabrody3730
    @dimabrody3730 5 лет назад +1

    Love u

  • @joelparker
    @joelparker 2 года назад

    Cool 😎

  • @shokan7178
    @shokan7178 5 лет назад +1

    YAY

  • @madhuri1689
    @madhuri1689 4 года назад +1

    I am confused about choosing D PART AND I PART (7:10) in the video. Why can't we choose cosx in D PART and x^2 in I PART?

    • @JANJAN-vw3km
      @JANJAN-vw3km 4 года назад

      because then x^2 will get to 0 by taking the diretetive, and cos(x) will not get to 0.
      for the answer it does not matter where you put it, but it is really simpler to do it so that you get to 0 at your D colom
      *you can put cosx in the D part, but then the problem wont get easier (try it yourself)

  • @ronfung8846
    @ronfung8846 5 лет назад

    Hey sir, how can the di method be applied in int(lnx dx)? I can’t get it right. Please help. Thanks’

    • @niloneto1608
      @niloneto1608 5 лет назад

      u=ln x and dv=1 dx. You just stop at the 2nd line.

  • @tatjanagobold2810
    @tatjanagobold2810 5 лет назад

    did you actually come up with the DI method yourself? I can't wait to tell my maths teacher about it though we haven't even begun learning about integral calculus in school yet :D

    • @pspmaster2071
      @pspmaster2071 5 лет назад +1

      t. gobold No he did not. It is just a superb method that he is showing to us.

  • @gordonglenn2089
    @gordonglenn2089 4 года назад +1

    And, of course, Box The Answer!

  • @mohammedgomaa704
    @mohammedgomaa704 5 лет назад

    What is the integral of x.tan(x) ?

  • @yos1227
    @yos1227 3 года назад

    So we can make choice which we have to take under D and which we want to take under I ? As per ILATE rule
    Plz answer

    • @carultch
      @carultch 2 года назад

      Yes. You still have to make a choice which term to integrate, and which term to differentiate. The ILATE or LIATE strategy works about 80% of the time, but there are some cases where it works against you.
      What to look for, is which function is easiest to integrate, and prioritize assigning that to the integration column. Another thing to look for, is which function will become simpler as it gets differentiated, and assign that to the differentiation column.

  • @SuperMtheory
    @SuperMtheory 5 лет назад

    Great video! How would you use the DI method for (e^x)(sin x)?

    • @blackpenredpen
      @blackpenredpen  5 лет назад

      James Dirig that's the 3rd stop. Check description

    • @SuperMtheory
      @SuperMtheory 5 лет назад

      Thanks! I really love your videos. I tell my students to visit your channel.

  • @SUYASH_DEWANGAN
    @SUYASH_DEWANGAN 5 лет назад

    Hey there..... Ohayogozaimqsu (as I think you are japanese) If we calculate ln^3x then upto which point will we integrate 1 bcoz one is considered as the first function in this question....

  • @thomaspaine5601
    @thomaspaine5601 5 лет назад

    Can you do a video using the D I method to integrate (ln x)^2 it seems to not work! I had to abandon it and use the old method :-(

    • @carultch
      @carultch 8 месяцев назад

      Given:
      integral ln(x)^2 dx
      Multiply by x/x, so the derivative of the inside function appears in it:
      integral x/x * ln(x)^2 dx
      Set up IBP table:
      S ____ D _______ I
      + ___ ln(x)^2 ___ 1
      - ___ 2*ln(x)/x __x
      x*ln(x)^2 - 2*integral ln(x)/x * x dx
      Cancel x's:
      x*ln(x)^2 - 2*integral ln(x) dx
      Recall integral ln(x) dx = x*ln(x) - x
      Thus our result is:
      x*ln(x)^2 - 2*x*ln(x) + 2*x + C

  • @dibujosloks
    @dibujosloks 5 лет назад

    #YAY !!!

  • @noobest254
    @noobest254 5 лет назад +1

    Can the DI method be used for all equations ?

    • @carultch
      @carultch 8 месяцев назад

      Depends on what you mean by "can"?
      Can it always work? No. Many integrals have no closed-form elementary solution, even if they might initially seem like they are a straight forward IBP problem.
      Can it be effective at solving ALL integrals that integration by parts can solve? Absolutely. I don't know of a single counterexample, where the traditional method works, but the DI method doesn't. It's just a reformatting of the traditional method.
      Will a teacher accept it? Depends on how fixated they are on the traditional method.

  • @tareqabuelkomboz3912
    @tareqabuelkomboz3912 5 лет назад +1

    How do i know which term of the original integral i have to differantiate and which one to integrate?

    • @vishalbhatia6652
      @vishalbhatia6652 5 лет назад

      Follow the ILATE RULE
      I is inverse
      L for logarithmic
      A for algebraic
      T for Trigonometric
      E for exponent function

    • @ochinglam599
      @ochinglam599 5 лет назад

      There are some exceptions

    • @ochinglam599
      @ochinglam599 5 лет назад

      Like e^x*sinx

    • @ochinglam599
      @ochinglam599 5 лет назад

      So you may just try another one if you get stuck

    • @tareqabuelkomboz3912
      @tareqabuelkomboz3912 5 лет назад

      @@vishalbhatia6652 what does this rule say? If one of the functions in the integral is one of the ones you listed than what... i didnt quite understand it😅

  • @sukritgill8510
    @sukritgill8510 5 лет назад

    Now, what if the side cannot be differentiated to zero for the DI method?

  • @chandankar5032
    @chandankar5032 5 лет назад

    🙏🙏🙏🙏please reply🙏🙏🙏🙏.
    One of my sir claim that he discovered this method in 2003. Please tell me who is the actual discoverer of this tabular form and when it was discovered.

    • @JANJAN-vw3km
      @JANJAN-vw3km 4 года назад +1

      it is just intergration by parts( multiple times), only written very smart and simple.

  • @doodelay
    @doodelay 4 года назад

    Is this how mathematicians integrate? This is really fast method

  • @m_stifeev
    @m_stifeev 5 лет назад +3

    Thanks from Russia!

    • @carultch
      @carultch 2 года назад

      This reminds me a lot of the Russian algorithm for multiplication.

  • @Mot-dh5sx
    @Mot-dh5sx 5 лет назад

    Can you talk about quaternions like 3b1b

    • @quocanhnguyenle4952
      @quocanhnguyenle4952 5 лет назад

      Well, I don't see why quarternions are a thing.
      The complex numbers set is algebraically closed, so how would you define quarternions?

    • @Mot-dh5sx
      @Mot-dh5sx 5 лет назад

      Quaternions would be numbers in a fourth dimensional plane, similar to how complex numbers are in the second dimensional plane.

    • @carultch
      @carultch 2 года назад

      @@Mot-dh5sx Quaternions are really built for 3-dimensional applications. We just have four parameters to define them, because three of the four are set up to be normalized to represent direction as a unit quaternion. The fourth term is for magnitude, and contains no unit quaternion of i, j, or k to go with it. The terms in front of each of i, j, and k in any given quaternion quantity are all real numbers, between -1 and +1, and add up as vectors to have a magnitude of 1. The unit quaternions of i, j, and k are each a form of the sqrt(-1), such that when you square any one of them, you get -1. Combinations of unit quaternions either multiply together to -1 or +1, depending on the patterns within the right-handed coordinate system and a corresponding table.
      This is the reason we use i, j, and k to represent coordinate unit vectors, even before thinking about quaternions. They are alphabet neighbors to i for the imaginary unit. Hamilton, who coined quaternions, thought that they could replace vectors in general, but it didn't catch on. The notation still caught on, with other mathematicians and physicists.

  • @hungryfareasternslav1823
    @hungryfareasternslav1823 5 лет назад

    Try getting the formula for x^1/n that has no calculus inside that...

  • @jerryhuang2258
    @jerryhuang2258 5 лет назад

    Can you explain the error function? ....

    • @carultch
      @carultch 2 года назад

      Yes. The bell curve function, whose simplest form is exp(-x^2) cannot be integrated in closed form. We know the total area under the curve is sqrt(pi), from a polar coordinate substitution and double integral over the full domain. But we cannot integrate the original function in closed form.
      In order to evaluate the integral of the bell curve function, as is commonly needed in probability, the error function erf(x), and error function complimentary erfc(x) were defined as the solution. The bell curve is normalized by dividing by sqrt(pi) as the leading coefficient, so that the area adds up to 1, because for the application of probability, the probability the random variable being any real number is 1. erf(x) indicates the improper integral from -infinity to the value of x, and efrc(x) indicates the remainder of the integral from x to +infinity. By definition, erf(x) + erfc(x) = 1. erf(x) indicates the probability that a continuous random variable that can be any real number is less than x. erfc(x) indicates the probability that a continuous random variable that can be any real number is greater than x. That is, for the given probability function that is normally distributed, with a mean of zero and a standard deviation of sqrt(2)/2
      What is ultimately behind evaluating this function is an infinite series. Just like what is behind sine and cosine. The original function exp(-x^2) has been expanded to an infinite series like a Taylor series, and each term of the sum is then able to be integrated in closed form. This generates the summation that defines erf(x) and erf(c).

  • @evilotis01
    @evilotis01 5 лет назад

    damn, that is some legit black magic there

    • @carultch
      @carultch 2 года назад

      Integral u*dv = u*v - integral v du
      u*v = ultraviolet
      v*du = voodoo

  • @sebaszb4123
    @sebaszb4123 5 лет назад

    #yay

  • @JANJAN-vw3km
    @JANJAN-vw3km 4 года назад

    so, you just do intergration by parts over and over, until there is a 0 in the intergral part ( and then the intergral is also 0) so you end up with the answer??
    my teacher did not know this method and he did not like it. i can only use it as a check, not as proof.

  • @aspiringcloudexpert5127
    @aspiringcloudexpert5127 5 лет назад

    #YAY

  • @znhait
    @znhait 5 лет назад

    This kind of method should only be used to check your work. I'd have to look into it more to see where possible pitfalls are, but I don't think students should depend on this too much.

    • @blackpenredpen
      @blackpenredpen  5 лет назад +4

      this is just integration by parts but with a more convenient format.

  • @OtiumAbscondita
    @OtiumAbscondita 5 лет назад +1

    #YAY Did you create this method?

  • @kishorkumarkr3341
    @kishorkumarkr3341 5 лет назад

    This is lebnitze rule for integration

  • @zanti4132
    @zanti4132 4 года назад

    This is all very nice, but it only works when one of the functions is a polynomial, correct? In other words, you have to get to a derivative equal to zero, which can only happen with a polynomial.

    • @user-tu6vl8rv3i
      @user-tu6vl8rv3i 2 года назад

      Nope, works for every ibp even if the d/dx never hits 0 e.g integral of e^xsinx, there’s another stop for it

    • @zanti4132
      @zanti4132 2 года назад

      You're right. As is clear from another post I made for this video, I must have written this comment before I had a complete understanding of integration by parts.

  • @manjoker
    @manjoker 5 лет назад +1

    u playing pupg ?

  • @danji9485
    @danji9485 4 года назад +1

    Is it just me, or did I hear the Doraemon theme song in the beginning of the video?

  • @connorhorman
    @connorhorman 5 лет назад +1

    Can't you also stop DI method when you know how to integrate the row?

    • @blackpenredpen
      @blackpenredpen  5 лет назад +2

      Yup, that's the 2nd stop. I have the full video in the description : )

  • @SeriousApache
    @SeriousApache 5 лет назад +1

    Wait a second, integration with u; dv ended at half of the video. That mean...

  • @bulldawg4498
    @bulldawg4498 4 года назад

    OK, what's the origin of this method? Who invented it?

    • @carultch
      @carultch 2 года назад +1

      Mathematician Brook Taylor, the namesake of the Taylor Series, discovered integration by parts, first publishing the idea in 1715.

  • @AndDiracisHisProphet
    @AndDiracisHisProphet 5 лет назад +2

    i don't get it

  • @mattemen36
    @mattemen36 5 лет назад

    I didn't get the DI method, I can't understand him.

  • @matheus_rml
    @matheus_rml 5 лет назад

    How old are you?

  • @shivimish9962
    @shivimish9962 5 лет назад

    Does this work for any, ANY integral of f(x)g(x) type? #yay

    • @carultch
      @carultch 2 года назад

      No. For instance, if you have a product of sine and cosine, with a different coefficient in both functions. Using integration by parts will put you in an infinite loop. You have to simplify with trig identities.

  • @killing_gaming0973
    @killing_gaming0973 Год назад

    I cannot use this on test NOOOOOOOOOOO

  • @simpletn
    @simpletn 5 лет назад

    Wait so Integration has a product rule now?

    • @khajiit92
      @khajiit92 5 лет назад +2

      you can derive integration by parts by starting with the product rule, rearranging a little and integrating both sides.
      (uv)' = vu' + uv'
      vu' = (uv)' - uv'
      integrate both sides
      integral vu' = integral (uv)' - integral uv'
      integral vu' = uv - integral uv'

    • @carultch
      @carultch 2 года назад

      @@khajiit92 Sounds like ultraviolet voodoo to me.
      Integral u*dv = u*v - integral v du
      u*v = ultraviolet
      v*du = voodoo

  • @brendanmorgenstern3176
    @brendanmorgenstern3176 4 года назад +1

    Why tf am I paying for uni again?

  • @AlgyCuber
    @AlgyCuber 5 лет назад

    DI stands for don't inhale

  • @mohamadali7524
    @mohamadali7524 5 лет назад

    Cut the Bs, video starts at 7:01