Results 1 to 6 of 6

Math Help - integration by parts

  1. #1
    Junior Member
    Joined
    Aug 2007
    Posts
    34
    Awards
    1

    integration by parts

    I need to prove:

    I(subscript 2k)=integral[-1,1](x^2k)*(cos(pi*x))dx

    is equal to

    I(subscript 2k)=-(4k/pi^2)-((2k)(2k-1)/(pi^2))*I(subscript 2k-2)

    but i keep getting

    I(subscript 2k)=-(4k/pi^2)+((2k)(2k-1)/(pi^2))*I(subscript 2k-2)

    can anyone help?
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor red_dog's Avatar
    Joined
    Jun 2007
    From
    Medgidia, Romania
    Posts
    1,252
    Thanks
    5
    \displaystyle\int_{-1}^1x^{2k}\cos\pi xdx=\int_{-1}^1x^{2k}\left(\frac{\sin\pi x}{\pi}\right)'dx=
    \displaystyle =\left.\frac{1}{\pi}x^{2k}\sin\pi x\right|_{-1}^1-\frac{2k}{\pi}\int_{-1}^1x^{2k-1}\sin\pi xdx=
    \displaystyle =\frac{2k}{\pi}\int_{-1}^1x^{2k-1}\left(\frac{\cos\pi x}{\pi}\right)'dx=
    \displaystyle =\left. \frac{2k}{\pi^2}x^{2k-1}\cos\pi x\right|_{-1}^1-\frac{2k(2k-1)}{\pi^2}I_{2k-2}=-\frac{4k}{\pi^2}-\frac{2k(2k-1)}{\pi^2}I_{2k-2}

    Edited.
    Last edited by red_dog; August 24th 2007 at 11:45 AM.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Junior Member
    Joined
    Aug 2007
    Posts
    34
    Awards
    1
    Thanks,

    but this is not the solution that I need to prove,

    I need to prove the first version of the proof,

    but I keep getting the second???
    Follow Math Help Forum on Facebook and Google+

  4. #4
    is up to his old tricks again! Jhevon's Avatar
    Joined
    Feb 2007
    From
    New York, USA
    Posts
    11,663
    Thanks
    3
    Quote Originally Posted by ubhik View Post
    I need to prove:

    I(subscript 2k)=integral[-1,1](x^2k)*(cos(pi*x))dx

    is equal to

    I(subscript 2k)=-(4k/pi^2)-((2k)(2k-1)/(pi^2))*I(subscript 2k-2)

    but i keep getting

    I(subscript 2k)=-(4k/pi^2)+((2k)(2k-1)/(pi^2))*I(subscript 2k-2)

    can anyone help?
    Here, if you have any questions please say so. I think you just mixed up the signs somewhere when you had to multiply the second integral by - \frac {2k}{\pi}


    I_{2k} = \int_{-1}^{1} x^{2k} \cos ( \pi x)~dx

    Using integration by parts with u = x^{2k} and dv = \cos ( \pi x), we get:

    I_{2k} = \left. \frac {x^{2k}}{\pi} \sin ( \pi x) \right|_{-1}^{1} - \frac {2k}{\pi} \int_{-1}^{1} x^{2k - 1} \sin ( \pi x )~dx

    = - \frac {2k}{\pi} \int_{-1}^{1} x^{2k - 1} \sin ( \pi x )~dx

    Again, using by parts with u = x^{2k - 1} and dv = \sin( \pi x), we get:

    I_{2k} = - \frac {2k}{\pi} \left[ \left. - \frac {x^{2k - 1}}{\pi} \cos (\pi x) \right|_{-1}^{1} + \frac {2k - 1}{\pi} { \color {red} \int_{-1}^{1} x^{2k - 2} \cos (\pi x )~dx} \right] .........Note, the red is I_{2k - 2}

    = \left. \frac {2kx^{2k - 1}}{\pi^2} \cos (\pi x) \right|_{-1}^{1} -  \frac {2k(2k - 1)}{\pi^2} I_{2k - 2}

    = \frac {-4k}{\pi^2} - \frac {2k(2k - 1)}{\pi^2} I_{2k - 2}

    as desired
    Follow Math Help Forum on Facebook and Google+

  5. #5
    MHF Contributor red_dog's Avatar
    Joined
    Jun 2007
    From
    Medgidia, Romania
    Posts
    1,252
    Thanks
    5
    I was also wrong!
    I edited. See again my previous post.
    Follow Math Help Forum on Facebook and Google+

  6. #6
    Junior Member
    Joined
    Aug 2007
    Posts
    34
    Awards
    1
    Thank you, thats brilliant!
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Replies: 2
    Last Post: January 11th 2012, 03:30 PM
  2. Replies: 8
    Last Post: September 2nd 2010, 01:27 PM
  3. Replies: 0
    Last Post: April 23rd 2010, 04:01 PM
  4. Integration by Parts!
    Posted in the Calculus Forum
    Replies: 7
    Last Post: January 22nd 2010, 04:19 AM
  5. Replies: 1
    Last Post: February 17th 2009, 07:55 AM

Search Tags


/mathhelpforum @mathhelpforum