← 2014 Paper 2

UPSC 2014 Maths Optional Paper 2 Q5c — Step-by-Step Solution

10 marks · Section B

Trapezoidal rule (composite; error) · Numerical Analysis · asked 3× in 13 yrs · Read the full method →

Question

Use five subintervals to integrate 01dx1+x2\displaystyle\int_0^1\dfrac{dx}{1+x^{2}} using trapezoidal rule.

Technique

Composite trapezoidal rule with equal subintervals.

Solution

Setup. h=105=0.2h=\dfrac{1-0}{5}=0.2. Points xi=0,0.2,0.4,0.6,0.8,1.0x_i=0,\,0.2,\,0.4,\,0.6,\,0.8,\,1.0.

Step 1 — Tabulate f(xi)f(x_i) where f(x)=11+x2f(x)=\dfrac{1}{1+x^{2}}

iixix_if(xi)=1/(1+xi2)f(x_i)=1/(1+x_i^{2})
00.00.01.0000001.000000
10.20.21/1.04=0.9615381/1.04=0.961538
20.40.41/1.16=0.8620691/1.16=0.862069
30.60.61/1.36=0.7352941/1.36=0.735294
40.80.81/1.64=0.6097561/1.64=0.609756
51.01.01/2=0.5000001/2=0.500000

Step 2 — Apply composite trapezoidal rule

T=h2[f0+f5+2(f1+f2+f3+f4)].T=\dfrac{h}{2}\bigl[f_0+f_5+2(f_1+f_2+f_3+f_4)\bigr].

Sum of interior values: f1+f2+f3+f4=0.961538+0.862069+0.735294+0.609756=3.168657f_1+f_2+f_3+f_4=0.961538+0.862069+0.735294+0.609756=3.168657.

T=0.22[1.000000+0.500000+2(3.168657)]=0.1[1.500000+6.337314]=0.17.837314=0.7837.T=\dfrac{0.2}{2}\bigl[1.000000+0.500000+2(3.168657)\bigr]=0.1\cdot[1.500000+6.337314]=0.1\cdot 7.837314=0.7837.

Answer

  01dx1+x20.7837.  \boxed{\;\int_0^1\dfrac{dx}{1+x^{2}}\approx 0.7837.\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.