Jump to content

Numerical integration: simpsons rule error analysis.

Featured Replies

I'm trying to numerically integrate the function [math]f(x) = |x| + |x|^3, x\in[-1,1][/math] using Simpsons rule and analyse the error. I've been trying to analyse the rate of convergence of the error but can't seem to get anywhere. Experimentally I've got that it's about [math]O(J^-2)[/math] (I think) but I can't show it mathematically.

 

I tried using the approach of splitting up the function into subintervals, then using the formula [math]|E_2,J| = \frac{-1}{2880} (b-a)h^4 |f^{(4)} (x)|[/math] but this fails as [math]|f^{(4)}(x)|\equiv 0, \forall x\in \Re^+ [/math]

 

Any hints?

The only subinterval that contributes to the error is the one where you pass x=0.

  • Author

but the derivative at [math]x=0[/math] is undefined?

Sure. I am not exactly sure what you want to do and why? But for a start, explicitly calculating the correct integral in the interval containing x=0 and the value that the numerical integration would give is easy.

Archived

This topic is now archived and is closed to further replies.

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.