Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Show that trapezoidal rule is exact for y(t)=t and y(t)=1?

  1. Sep 7, 2009 #1
    Anybody can guide me about it. At least start me in right direction . thanks
     
  2. jcsd
  3. Sep 7, 2009 #2
    Let the interval of integration be from t = a to t = b.

    Next do an an exact integration. For example the linear function integrates to
    [tex]
    \frac{1}{2} (b^2 - a^2)
    [/tex]

    Then apply the trapezoidal rule using one interval and see that it gives the same result. I won't do it for you except to recall that the trapezoidal rule is:
    [tex]
    \frac{1}{2}(b - a)(y(a) + y(b))
    [/tex]

    Hope you get it.
     
  4. Sep 7, 2009 #3
    Thanks for guiding me, I found the solution.
     
  5. Sep 7, 2009 #4

    LCKurtz

    User Avatar
    Science Advisor
    Homework Helper
    Gold Member

    And you will probably need to do it with n intervals. So your subintervals will be length

    [tex] \delta = \frac {(b-a)}{n}[/tex].

    and your subdivision points will be

    [tex] t_k = a + k\delta[/tex]

    for k from 0 to n. Now put these values in the formula

    [tex]T_n = \frac \delta 2 (y_0 + 2y_1 + ... + 2y_{n-1} + y_n)[/tex]

    You will have to put in the y values using y = t (or y = 1 for the simpler problem). Then if you look carefully, you will see that you can factor and collect terms and add up an arithmetic series. Substitute in your value for delta and with any luck, you're done.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook