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

Поділитися
Вставка
  • Опубліковано 7 січ 2025

КОМЕНТАРІ • 140

  • @jibran8410
    @jibran8410 6 років тому +150

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

    • @jibran8410
      @jibran8410 6 років тому +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 6 років тому +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 3 роки тому

      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

    • @Ahtohallan.
      @Ahtohallan. Місяць тому

      Because it doesn’t work for all problems

  • @garvett6660
    @garvett6660 4 роки тому +33

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

  • @Cannongabang
    @Cannongabang 6 років тому +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.

  • @thefunpolice
    @thefunpolice Рік тому +1

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

  • @Canale0107MAN
    @Canale0107MAN 6 років тому +15

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

  • @mathonthego1947
    @mathonthego1947 6 років тому +33

    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  6 років тому +17

      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 5 років тому +5

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

  • @david-yt4oo
    @david-yt4oo 6 років тому +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  6 років тому +4

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

  • @michaelkruse3536
    @michaelkruse3536 6 років тому +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.

  • @jp4904
    @jp4904 4 роки тому

    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.

  • @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 6 років тому

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

  • @AlgyCuber
    @AlgyCuber 6 років тому +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

  • @GaryTugan
    @GaryTugan 6 років тому +3

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

  • @WilliamLeeSims
    @WilliamLeeSims 6 років тому +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 6 років тому +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?

  • @quahntasy
    @quahntasy 6 років тому +24

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

  • @pendita66
    @pendita66 5 років тому

    You are the best teacher ever!

  • @64_bit80
    @64_bit80 4 роки тому

    you're amazing at explaining this dude

  • @nandakumarcheiro
    @nandakumarcheiro 3 роки тому

    Wonderful DI method of diagonalisation.

  • @madhuri1689
    @madhuri1689 5 років тому +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 5 років тому

      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)

  • @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

  • @reemy9598
    @reemy9598 5 років тому +1

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

  • @KingGisInDaHouse
    @KingGisInDaHouse 4 роки тому +1

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

  • @anubhav3380
    @anubhav3380 4 роки тому

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

  • @yaskynemma9220
    @yaskynemma9220 6 років тому

    I learn more here than in school, thank you

  • @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.

  • @m_stifeev
    @m_stifeev 5 років тому +3

    Thanks from Russia!

    • @carultch
      @carultch 3 роки тому

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

  • @jikaikas
    @jikaikas 4 роки тому +1

    6:35 that yay soundtrack

  • @tomastamantini
    @tomastamantini 6 років тому

    Wow! Really elegant!

  • @jeremyn9146
    @jeremyn9146 3 роки тому

    Great method, thank you!

  • @TheSpud333
    @TheSpud333 4 роки тому

    Everybody gangsta until blackpenredpen uses a blue pen

  • @nebulous1284
    @nebulous1284 5 років тому

    It is literally enlightenment

  • @6612770
    @6612770 6 років тому +1

    Excellent!
    Thank you

  • @UnathiGX
    @UnathiGX 6 років тому +2

    Good Job BPRP!

  • @gordonglenn2089
    @gordonglenn2089 4 роки тому +1

    And, of course, Box The Answer!

  • @yos1227
    @yos1227 4 роки тому

    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 3 роки тому

      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.

  • @yos1227
    @yos1227 4 роки тому

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

  • @0381-k5e
    @0381-k5e 6 років тому

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

  • @doodelay
    @doodelay 4 роки тому

    Is this how mathematicians integrate? This is really fast method

  • @noobest254
    @noobest254 5 років тому +1

    Can the DI method be used for all equations ?

    • @carultch
      @carultch Рік тому

      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.

  • @kashafnaz_
    @kashafnaz_ 6 років тому +1

    wow
    so easy ID METHOD

  • @Hexanitrobenzene
    @Hexanitrobenzene 6 років тому

    Now that's efficient !

  • @khabarovskabdulaahi6477
    @khabarovskabdulaahi6477 5 років тому

    老师你的讲得特别好!

  • @raulverastegui3309
    @raulverastegui3309 6 років тому

    Elegante explicación. Thanks you.

  • @tatjanagobold2810
    @tatjanagobold2810 6 років тому

    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 6 років тому +1

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

  • @SUYASH_DEWANGAN
    @SUYASH_DEWANGAN 6 років тому

    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....

  • @JANJAN-vw3km
    @JANJAN-vw3km 5 років тому

    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.

  • @tareqabuelkomboz3912
    @tareqabuelkomboz3912 6 років тому +1

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

    • @vishalbhatia6652
      @vishalbhatia6652 6 років тому

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

    • @ochinglam599
      @ochinglam599 6 років тому

      There are some exceptions

    • @ochinglam599
      @ochinglam599 6 років тому

      Like e^x*sinx

    • @ochinglam599
      @ochinglam599 6 років тому

      So you may just try another one if you get stuck

    • @tareqabuelkomboz3912
      @tareqabuelkomboz3912 6 років тому

      @@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😅

  • @ronfung8846
    @ronfung8846 6 років тому

    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.

  • @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 Рік тому

      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

  • @mohammedgomaa704
    @mohammedgomaa704 5 років тому

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

  • @ssdd9911
    @ssdd9911 6 років тому +6

    #yay DI method

  • @evilotis01
    @evilotis01 6 років тому

    damn, that is some legit black magic there

    • @carultch
      @carultch 3 роки тому

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

  • @MegMegee07
    @MegMegee07 5 років тому

    thank YOU!!

  • @SuperMtheory
    @SuperMtheory 6 років тому

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

    • @blackpenredpen
      @blackpenredpen  6 років тому

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

    • @SuperMtheory
      @SuperMtheory 6 років тому

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

  • @sukritgill8510
    @sukritgill8510 6 років тому

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

  • @chandankar5032
    @chandankar5032 6 років тому

    🙏🙏🙏🙏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 5 років тому +1

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

  • @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.

    • @御御斋
      @御御斋 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.

  • @Mot-dh5sx
    @Mot-dh5sx 6 років тому

    Can you talk about quaternions like 3b1b

    • @quocanhnguyenle4952
      @quocanhnguyenle4952 6 років тому

      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 6 років тому

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

    • @carultch
      @carultch 3 роки тому

      @@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.

  • @hooligun90
    @hooligun90 5 років тому

    Legend!

  • @danji9485
    @danji9485 5 років тому +1

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

  • @jerryhuang2258
    @jerryhuang2258 6 років тому

    Can you explain the error function? ....

    • @carultch
      @carultch 3 роки тому

      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).

  • @OtiumAbscondita
    @OtiumAbscondita 6 років тому +1

    #YAY Did you create this method?

  • @connorhorman
    @connorhorman 6 років тому +1

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

    • @blackpenredpen
      @blackpenredpen  6 років тому +2

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

  • @kishorkumarkr3341
    @kishorkumarkr3341 6 років тому

    This is lebnitze rule for integration

  • @manjoker
    @manjoker 6 років тому +1

    u playing pupg ?

  • @hungryfareasternslav1823
    @hungryfareasternslav1823 6 років тому

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

  • @SeriousApache
    @SeriousApache 6 років тому +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 3 роки тому +1

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

  • @znhait
    @znhait 6 років тому

    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  6 років тому +4

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

  • @mohameddahir1774
    @mohameddahir1774 5 років тому

    tnx alot

  • @mattemen36
    @mattemen36 6 років тому

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

  • @brendanmorgenstern3176
    @brendanmorgenstern3176 5 років тому +1

    Why tf am I paying for uni again?

  • @AndDiracisHisProphet
    @AndDiracisHisProphet 6 років тому +2

    i don't get it

  • @shivimish9962
    @shivimish9962 6 років тому

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

    • @carultch
      @carultch 3 роки тому

      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.

  • @matheus_rml
    @matheus_rml 6 років тому

    How old are you?

  • @shokan7178
    @shokan7178 6 років тому +1

    YAY

  • @77tigers26
    @77tigers26 3 роки тому

    nice

  • @dimabrody3730
    @dimabrody3730 5 років тому +1

    Love u

  • @azylhalleywolf7842
    @azylhalleywolf7842 5 років тому

    Awesome :))))

  • @killing_gaming0973
    @killing_gaming0973 2 роки тому

    I cannot use this on test NOOOOOOOOOOO

  • @joelparker
    @joelparker 2 роки тому

    Cool 😎

  • @dibujosloks
    @dibujosloks 6 років тому

    #YAY !!!

  • @simpletn
    @simpletn 6 років тому

    Wait so Integration has a product rule now?

    • @khajiit92
      @khajiit92 6 років тому +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 3 роки тому

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

  • @sebaszb4123
    @sebaszb4123 6 років тому

    #yay

  • @aspiringcloudexpert5127
    @aspiringcloudexpert5127 6 років тому

    #YAY

  • @AlgyCuber
    @AlgyCuber 6 років тому

    DI stands for don't inhale

  • @mohamadali7524
    @mohamadali7524 5 років тому

    Cut the Bs, video starts at 7:01

  • @jonbdory
    @jonbdory 5 років тому

    Thank you!