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

  • Level: Undergrad 
  • Thread starter Thread starter shehpar
  • Start date Start date
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
3 replies · 3K views
shehpar
Messages
9
Reaction score
0
Anybody can guide me about it. At least start me in right direction . thanks
 
Physics news on Phys.org
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.
 
loveequation said:
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.

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.