The math optional, made finite. Daily Practice

Simpson’s 1/3 and 3/8 rules

At a Glance

Why This Chapter Matters

Simpson’s rules appear in 5 of the last 13 UPSC papers, always in Section B as medium-to-high-mark questions (7.5–20 marks). The two formulas share the same structure — a weighted sum of function values scaled by a step-size factor — and differ only in the number of nodes per panel and the weight pattern. Learning to read the weight pattern correctly (1-4-2-4-2-…-4-1 for the 1/3 rule; 1-3-3-2-3-3-2-…-3-3-1 for the 3/8 rule) eliminates the most common errors. The 2017 derivation question is the only outlier; the Newton forward-difference derivation is fully worked below.

Minimum Theory

Simpson’s 1/3 rule (composite). Subdivide [a,b][a,b] into nn equal sub-intervals of width h=(ba)/nh=(b-a)/n where nn is even. With yi=f(a+ih)y_i = f(a+ih): abydxh3[y0+yn+4(y1+y3++yn1)+2(y2+y4++yn2)].\int_a^b y\,dx \approx \frac{h}{3}\bigl[y_0 + y_n + 4(y_1+y_3+\cdots+y_{n-1}) + 2(y_2+y_4+\cdots+y_{n-2})\bigr]. Weight pattern: 1, 4, 2, 4, 2, …, 4, 1. Error: (ba)h4180f(4)(ξ)\displaystyle-\frac{(b-a)h^4}{180}f^{(4)}(\xi) for some ξ(a,b)\xi\in(a,b).

Simpson’s 3/8 rule (composite). Subdivide into nn equal intervals where nn is a multiple of 3. With the same notation: abydx3h8[y0+yn+3(y1+y2+y4+y5++yn1)+2(y3+y6++yn3)].\int_a^b y\,dx \approx \frac{3h}{8}\bigl[y_0 + y_n + 3(y_1+y_2+y_4+y_5+\cdots+y_{n-1}) + 2(y_3+y_6+\cdots+y_{n-3})\bigr]. Weight pattern: 1, 3, 3, 2, 3, 3, 2, …, 3, 3, 1 (the weight 2 appears at every third interior node, i.e., at the joints between groups). Single-panel formula: 3h8(y0+3y1+3y2+y3)\tfrac{3h}{8}(y_0+3y_1+3y_2+y_3); exact for polynomials of degree 3\leq 3. Error: (ba)h480f(4)(ξ)\displaystyle-\frac{(b-a)h^4}{80}f^{(4)}(\xi).

anatomy

Unit conversion note. When speed is in km/h and time is in minutes, the step size hh measured in minutes must be converted to hours before using the formula. Write hhr=hmin/60h_{\text{hr}} = h_{\text{min}}/60 and compute distance =(hhr/3)×(bracket sum)= (h_{\text{hr}}/3)\times(\text{bracket sum}) for the 1/3 rule. Forgetting this factor of 60 inflates the answer by exactly 60.

“Starts from rest” note. If the problem states a vehicle starts from rest, v(0)=0v(0)=0 must be inserted as the first data point even when it is not listed in the table. This extra point shifts all existing indices by one and ensures the total number of intervals is even (for 1/3) or a multiple of 3 (for 3/8).

Question Archetypes

ArchetypeRecognition
simpsons-ruleTabular data or a function given; compute an integral numerically using Simpson’s rule
simpsons-derivation”Derive the composite Simpson’s 3/8 formula”; state restriction on nn; state error bound

simpsons-rule (4 question(s); 2013, 2018, 2022, 2024)

Apply Simpson’s 1/3 or 3/8 rule to tabular data or a function

Recognition Cues

A table of (xi,yi)(x_i, y_i) or (ti,vi)(t_i, v_i) values is given, or a function is to be sampled at equally-spaced nodes. The instruction is “using Simpson’s rule” or “apply Simpson’s 1/31/3 (or 3/83/8) rule.” Velocity–time problems typically say “starts from rest” or give data only from t>0t>0, signalling that a v(0)=0v(0)=0 row must be prepended.

Solution Template

  1. Set up the table. List all xx (or tt) values and corresponding yy (or vv) values. If “starts from rest,” insert (0,0)(0, 0) at the front.
  2. Check nn (number of intervals). Count intervals, not points: n=(number of points)1n = (\text{number of points})-1. Verify nn is even (1/3 rule) or a multiple of 3 (3/8 rule). State h=(xnx0)/nh = (x_n - x_0)/n.
  3. Assign weights. Label each yiy_i with its weight: endpoints get 1; for 1/3, odd-indexed get 4 and even-indexed interior get 2; for 3/8, indices not divisible by 3 get 3 and interior indices divisible by 3 get 2.
  4. Compute the bracket sum S=wiyiS = \sum w_i y_i.
  5. Apply the prefactor. Distance =(h/3)S= (h/3)\,S for 1/3; =(3h/8)S= (3h/8)\,S for 3/8. Apply the unit conversion if needed.
  6. State the answer to two or three significant figures.

Worked Example 1

2013 Paper 2, 2013-P2-Q7c (15 marks)

A train starts from rest and attains the following speeds (in km/h) at regular intervals of 2 minutes: v=16,28.8,40,46.4,51.2,32,17.6,8,3.2,0v = 16, 28.8, 40, 46.4, 51.2, 32, 17.6, 8, 3.2, 0 at t=2,4,6,8,10,12,14,16,18,20t = 2, 4, 6, 8, 10, 12, 14, 16, 18, 20 min. Estimate the distance travelled in 30 minutes by Simpson’s 1/31/3 rule.

Step 1 — Prepend v(0)=0v(0)=0 and extend to 30 min. The train starts from rest, so v(0)=0v(0)=0. After t=20t=20 min the speed is 0 and stays 0, so the extra 10 minutes contribute nothing.

Step 2 — Table and interval count.

iitt (min)vv (km/h)weight
0001
12164
2428.82
36404
4846.42
51051.24
612322
71417.64
81682
9183.24
102001

n=10n = 10 (even, 1/3 rule valid), h=2h = 2 min.

Step 3 — Bracket sum.

Step 4 — Convert and apply formula. h=2h = 2 min =260= \tfrac{2}{60} hours. d=hhr3×S=2/603×742.4=2×742.4180=1484.81808.249 km.d = \frac{h_{\text{hr}}}{3}\times S = \frac{2/60}{3}\times742.4 = \frac{2\times742.4}{180} = \frac{1484.8}{180} \approx 8.249 \text{ km}.

d8.25 km\boxed{d \approx 8.25 \text{ km}}


Worked Example 2

2018 Paper 2, 2018-P2-Q5d (10 marks)

Using Simpson’s 1/31/3 rule, find the distance (in km) travelled in 20 minutes by a train that starts from rest and reaches the following speeds (km/h): 10,18,25,29,32,20,11,5,210, 18, 25, 29, 32, 20, 11, 5, 2 at t=2,4,6,8,10,12,14,16,18t = 2, 4, 6, 8, 10, 12, 14, 16, 18 min; speed at t=20t=20 min is 8.58.5 km/h.

Step 1 — Prepend v(0)=0v(0)=0.

iitt (min)vv (km/h)weight
0001
12104
24182
36254
48292
510324
612202
714114
81652
91824
10208.51

n=10n=10 (even), h=2h=2 min =130= \tfrac{1}{30} hour.

Step 2 — Bracket sum.

Step 3 — Apply formula. d=hhr3×S=1/303×472.5=472.590=5.25 km.d = \frac{h_{\text{hr}}}{3}\times S = \frac{1/30}{3}\times 472.5 = \frac{472.5}{90} = 5.25 \text{ km}.

d=5.25 km\boxed{d = 5.25 \text{ km}}


Worked Example 3

2022 Paper 2, 2022-P2-Q7b (15 marks)

A train starts from rest and the speed (in km/h) is recorded at 2-minute intervals: 16,28.8,40,46.4,51.2,32,17.6,8,3.2,016, 28.8, 40, 46.4, 51.2, 32, 17.6, 8, 3.2, 0 at t=2,4,,20t=2,4,\ldots,20 min. Estimate the distance in 20 minutes using Simpson’s 1/31/3 rule.

The data table is identical to the 2013 problem (same ten speeds). Prepend v(0)=0v(0)=0; the computation is exactly as in Worked Example 1 above.

S=742.4,hhr=260,d=2/603×742.48.25 km.S = 742.4, \quad h_{\text{hr}} = \tfrac{2}{60}, \quad d = \frac{2/60}{3}\times742.4 \approx 8.25 \text{ km.}

d8.25 km\boxed{d \approx 8.25 \text{ km}}

Note: The 2013 question asked for distance in 30 minutes, but since v=0v=0 for t>20t>20 min the answer is the same. The 2022 question asks explicitly for 20 minutes — same answer.


Worked Example 4

2024 Paper 2, 2024-P2-Q7b-i (7.5 marks)

Using Simpson’s 3/83/8 rule with h=1h=1, evaluate 24(5x33x2+2x+1)dx\displaystyle\int_{-2}^{4}(5x^3-3x^2+2x+1)\,dx.

Step 1 — Compute function values. With h=1h=1, the nodes are x=2,1,0,1,2,3,4x = -2,-1,0,1,2,3,4 (7 points, n=6n=6 intervals — a multiple of 3, so 3/8 rule is valid).

Let f(x)=5x33x2+2x+1f(x)=5x^3-3x^2+2x+1:

iixix_if(xi)f(x_i)weight
02-25(8)3(4)+2(2)+1=40124+1=555(-8)-3(4)+2(-2)+1=-40-12-4+1=-551
11-15(1)3(1)+2(1)+1=532+1=95(-1)-3(1)+2(-1)+1=-5-3-2+1=-93
200113
31153+2+1=55-3+2+1=52
4225(8)3(4)+2(2)+1=4012+4+1=335(8)-3(4)+2(2)+1=40-12+4+1=333
5335(27)3(9)+2(3)+1=13527+6+1=1155(27)-3(9)+2(3)+1=135-27+6+1=1153
6445(64)3(16)+2(4)+1=32048+8+1=2815(64)-3(16)+2(4)+1=320-48+8+1=2811

Step 2 — Apply by groups of 3.

Group 1 (x=2x=-2 to x=1x=1): 3h8[y0+3y1+3y2+y3]=38[55+3(9)+3(1)+5]=38[5527+3+5]=38(74)=27.75.\frac{3h}{8}[y_0+3y_1+3y_2+y_3] = \frac{3}{8}[-55+3(-9)+3(1)+5] = \frac{3}{8}[-55-27+3+5] = \frac{3}{8}(-74) = -27.75.

Group 2 (x=1x=1 to x=4x=4): 3h8[y3+3y4+3y5+y6]=38[5+3(33)+3(115)+281]=38[5+99+345+281]=38(730)=273.75.\frac{3h}{8}[y_3+3y_4+3y_5+y_6] = \frac{3}{8}[5+3(33)+3(115)+281] = \frac{3}{8}[5+99+345+281] = \frac{3}{8}(730) = 273.75.

Step 3 — Total. 24f(x)dx27.75+273.75=246.\int_{-2}^{4} f(x)\,dx \approx -27.75 + 273.75 = \mathbf{246}.

Verification: The exact value is [5x44x3+x2+x]24=(32064+16+4)(20+8+42)=27630=246\left[\frac{5x^4}{4}-x^3+x^2+x\right]_{-2}^{4} = (320-64+16+4)-(20+8+4-2) = 276-30 = 246. The 3/8 rule gives the exact answer because ff is a cubic.

246\boxed{246}

Common Traps


simpsons-derivation (1 question(s); 2017)

Derive the composite Simpson’s 3/8 formula; state the restriction on nn; state the error bound

Recognition Cues

The question says “derive Simpson’s 3/83/8 rule” or “obtain the composite formula and state the restriction on nn.” It typically asks for the error bound as well. A 20-mark question of this type requires the Newton forward-difference derivation of the single-panel formula, then the composite extension, followed by the error statement.

Solution Template

  1. Set up a single panel [x0,x3][x_0, x_3] with step hh. Introduce the forward-difference substitution x=x0+uhx = x_0 + uh so dx=hdudx = h\,du, and uu ranges from 0 to 3.
  2. Write Newton’s forward interpolation formula truncated to the cubic term (four nodes).
  3. Integrate term by term from u=0u=0 to u=3u=3 using the five definite integrals listed in Step 3 of the derivation below.
  4. Collect and simplify to obtain the single-panel formula (3h/8)(y0+3y1+3y2+y3)(3h/8)(y_0+3y_1+3y_2+y_3).
  5. Composite extension: Sum n/3n/3 such panels; node yjy_j shared by two panels appears twice and its weight doubles from 1 to 2 (only at the group-joint positions).
  6. State the restriction: n0(mod3)n \equiv 0\pmod{3}.
  7. State the error: single-panel 3h580f(4)(ξ)-\tfrac{3h^5}{80}f^{(4)}(\xi); composite (ba)h480f(4)(ξ)-\tfrac{(b-a)h^4}{80}f^{(4)}(\xi).

Worked Example

2017 Paper 2, 2017-P2-Q7b (20 marks)

Derive the composite Simpson’s 3/83/8 rule. State the restriction on nn and give the error bound.

Part A — Single-panel derivation.

Let four equally-spaced nodes be x0,x1=x0+h,x2=x0+2h,x3=x0+3hx_0, x_1=x_0+h, x_2=x_0+2h, x_3=x_0+3h with corresponding ordinates y0,y1,y2,y3y_0,y_1,y_2,y_3. Substitute x=x0+uhx=x_0+uh, dx=hdudx=h\,du: x0x3ydx=h03y(u)du.\int_{x_0}^{x_3} y\,dx = h\int_0^3 y(u)\,du.

Newton’s forward interpolation formula: y(u)=y0+uΔy0+u(u1)2!Δ2y0+u(u1)(u2)3!Δ3y0+y(u) = y_0 + u\,\Delta y_0 + \frac{u(u-1)}{2!}\Delta^2 y_0 + \frac{u(u-1)(u-2)}{3!}\Delta^3 y_0 + \cdots

Integrate each term from u=0u=0 to u=3u=3: 031du=3,03udu=92,03u(u1)2du=9212(careful).\int_0^3 1\,du = 3, \quad \int_0^3 u\,du = \frac{9}{2}, \quad \int_0^3 \frac{u(u-1)}{2}\,du = \frac{9}{2} \cdot \frac{1}{2}\cdot\text{(careful)}.

Computing carefully: 03u(u1)du=03(u2u)du=[u33u22]03=992=92.\int_0^3 u(u-1)\,du = \int_0^3 (u^2-u)\,du = \left[\frac{u^3}{3}-\frac{u^2}{2}\right]_0^3 = 9-\frac{9}{2} = \frac{9}{2}. 03u(u1)(u2)du=03(u33u2+2u)du=[u44u3+u2]03=81427+9=81108+364=94.\int_0^3 u(u-1)(u-2)\,du = \int_0^3 (u^3-3u^2+2u)\,du = \left[\frac{u^4}{4}-u^3+u^2\right]_0^3 = \frac{81}{4}-27+9 = \frac{81-108+36}{4} = \frac{9}{4}.

Substituting back: h03ydu=h[3y0+92Δy0+1292Δ2y0+1694Δ3y0].h\int_0^3 y\,du = h\left[3y_0 + \frac{9}{2}\Delta y_0 + \frac{1}{2}\cdot\frac{9}{2}\Delta^2 y_0 + \frac{1}{6}\cdot\frac{9}{4}\Delta^3 y_0\right]. =h[3y0+92Δy0+94Δ2y0+38Δ3y0].= h\left[3y_0 + \frac{9}{2}\Delta y_0 + \frac{9}{4}\Delta^2 y_0 + \frac{3}{8}\Delta^3 y_0\right].

Now express in terms of the ordinates using Δy0=y1y0\Delta y_0 = y_1-y_0, Δ2y0=y22y1+y0\Delta^2 y_0 = y_2-2y_1+y_0, Δ3y0=y33y2+3y1y0\Delta^3 y_0 = y_3-3y_2+3y_1-y_0:

=h[3y0+92(y1y0)+94(y22y1+y0)+38(y33y2+3y1y0)].= h\left[3y_0 + \frac{9}{2}(y_1-y_0) + \frac{9}{4}(y_2-2y_1+y_0) + \frac{3}{8}(y_3-3y_2+3y_1-y_0)\right].

Collect coefficients:

x0x3ydxh38(y0+3y1+3y2+y3).\int_{x_0}^{x_3} y\,dx \approx h\cdot\frac{3}{8}(y_0+3y_1+3y_2+y_3).

x0x3ydx3h8(y0+3y1+3y2+y3).\boxed{\int_{x_0}^{x_3} y\,dx \approx \frac{3h}{8}(y_0+3y_1+3y_2+y_3).}

Part B — Composite formula.

Divide [a,b][a,b] into nn sub-intervals where nn is a multiple of 3. Group the n+1n+1 nodes into n/3n/3 consecutive panels, each covering 4 nodes. Summing: abydx3h8[(y0+3y1+3y2+y3)+(y3+3y4+3y5+y6)+].\int_a^b y\,dx \approx \frac{3h}{8}\bigl[(y_0+3y_1+3y_2+y_3)+(y_3+3y_4+3y_5+y_6)+\cdots\bigr].

The endpoints y0y_0 and yny_n appear once each (weight 1). The panel-joint nodes y3,y6,,yn3y_3, y_6, \ldots, y_{n-3} each appear as the last node of one panel and the first node of the next, so they are counted twice (weight 2). All remaining interior nodes appear in exactly one panel with weight 3.

abydx3h8[y0+yn+3(y1+y2+y4+y5++yn1)+2(y3+y6++yn3)].\boxed{\int_a^b y\,dx \approx \frac{3h}{8}\bigl[y_0 + y_n + 3(y_1+y_2+y_4+y_5+\cdots+y_{n-1}) + 2(y_3+y_6+\cdots+y_{n-3})\bigr].}

Part C — Restriction and error bound.

Restriction: nn must satisfy n0(mod3)n \equiv 0 \pmod{3} (a multiple of 3), since the integration panels each require exactly 3 sub-intervals.

Single-panel truncation error (from the omitted u(u1)(u2)(u3)u(u-1)(u-2)(u-3) term): Esingle=3h580f(4)(ξ),ξ(x0,x3).E_{\text{single}} = -\frac{3h^5}{80}\,f^{(4)}(\xi), \quad \xi\in(x_0,x_3).

Composite error (summing n/3n/3 panels, with 3h(n/3)=ba3h(n/3)=b-a): Ecomposite=(ba)h480f(4)(ξ),ξ(a,b).E_{\text{composite}} = -\frac{(b-a)h^4}{80}\,f^{(4)}(\xi), \quad \xi\in(a,b).

Common Traps


Marks-Aware Writing

For a 10-mark or 7.5-mark computation question: Write out the full table with weights shown explicitly; show the three sub-sums (endpoints, odd/3-weights, even-weights/2) separately; write the prefactor and unit-conversion step clearly; box the final answer. Omitting the weight column or the unit step each costs 1–2 marks.

For a 15-mark computation question: Everything above, plus: state explicitly that nn is even (or a multiple of 3) and name the rule being used; include the unit conversion as a labelled intermediate line (not a silent in-line multiplication). A clearly structured table and correct bracket sum earn the bulk of the marks even if arithmetic slips slightly.

For a 20-mark derivation question: Work all four stages — setup of Newton interpolation, definite integration of each difference-quotient term, collecting coefficients to arrive at the single-panel formula, and the composite extension. State the restriction and the two forms of the error (single-panel and composite). A derivation that only quotes the final formula earns at most 5 of 20 marks. Showing the coefficient computation for y0,y1,y2,y3y_0, y_1, y_2, y_3 explicitly is expected.

Practice Set

We've mapped all 13 years of this exam. Get new chapters, tools, and solutions as we release them — free.