Results 1 to 3 of 3

Math Help - Question about efficient integration

  1. #1
    Newbie
    Joined
    Feb 2009
    Posts
    2

    Question about efficient integration

    Hi,

    In the provided answers for a question set on PDE's, the following integral was solved really quickly:



    Any ideas what he's actually doing? Integration by parts?

    Thanks for your help
    Follow Math Help Forum on Facebook and Google+

  2. #2
    MHF Contributor
    Opalg's Avatar
    Joined
    Aug 2007
    From
    Leeds, UK
    Posts
    4,041
    Thanks
    7
    Integration by parts twice, in quick succession. The first one (slowed down just a bit) goes like this:

    \begin{aligned}\frac2a\int_0^a\!\!\!(ax-x^2)\sin\tfrac{n\pi x}a\,dx &= \frac2a\biggl[(ax-x^2)\frac{\bigl(-\cos\tfrac{n\pi x}a\bigr)}{n\pi/a}\biggr]_0^a-\frac2a\int_0^a\!\!\!(a-2x)\frac{\bigl(-\cos\tfrac{n\pi x}a\bigr)}{n\pi/a}dx \\ &=\frac2{n\pi}\int_0^a\!\!\!(a-2x)\cos\tfrac{n\pi x}a\,dx,\end{aligned}

    because the expression in square brackets vanishes at both ends of the interval. Now you have to integrate by parts again, and the same thing happens to the expression in brackets.
    Follow Math Help Forum on Facebook and Google+

  3. #3
    Newbie
    Joined
    Feb 2009
    Posts
    2
    Thanks very much
    Follow Math Help Forum on Facebook and Google+

Similar Math Help Forum Discussions

  1. Efficient Matrix Update for XDX'?
    Posted in the Advanced Algebra Forum
    Replies: 0
    Last Post: August 28th 2010, 05:29 PM
  2. Replies: 8
    Last Post: April 8th 2010, 01:04 PM
  3. Efficient floorplan optimization
    Posted in the Advanced Applied Math Forum
    Replies: 0
    Last Post: February 3rd 2010, 07:23 AM
  4. Replies: 2
    Last Post: May 27th 2008, 02:57 PM
  5. co-efficient of correlation
    Posted in the Advanced Statistics Forum
    Replies: 1
    Last Post: April 9th 2007, 08:31 PM

Search Tags


/mathhelpforum @mathhelpforum