What we are solvingEstimate
∫01xe(x2+1)dx with the trapezium rule (6 ordinates)
Then compare with the true value 2.335 and suggest how to do better
Chapter: Numerical methods
Topic: trapezium rule, percentage error
Concept and formulasSix ordinates give five strips
h=nb−a=51−0=0.2Trapezium rule
∫abydx≈2h[(y0+y5)+2(y1+y2+y3+y4)]Percentage error
exact∣estimate−exact∣×100%(a) (7 marks)| x | x2+1 | y=xe(x2+1) |
|---|
| 0 | 1.00 | y0=0.0000 |
| 0.2 | 1.04 | y1=0.5658 |
| 0.4 | 1.16 | y2=1.2760 |
| 0.6 | 1.36 | y3=2.3377 |
| 0.8 | 1.64 | y4=4.1241 |
| 1.0 | 2.00 | y5=7.3891 |
y0+y5=7.3891y1+y2+y3+y4=8.3036∫01xe(x2+1)dx≈20.2[7.3891+2(8.3036)]=0.1×23.9963≈2.400(b) (3 marks)error=2.400−2.335=0.065percentage error=2.3350.065×100%=2.78%(c) (2 marks)Use more ordinates (more strips, so a smaller width h)
Keep more decimal places in the ordinates during the working
Answer: (a) 2.400 (b) 2.78% (c) Increase the number of ordinates (smaller h) and round less
Tip: n ordinates give n − 1 strips; that is the commonest slip in this question