4.8.15 · HinglishNumerical Methods

Numerical integration — trapezoidal rule (composite), error

1,253 words6 min readRead in English

4.8.15 · Maths › Numerical Methods


1. Pehle principles se — ek strip

EK strip jis ki width hai, ko hum kaise approximate karte hain:

ki jagah seedhi line lo jo endpoints aur se guzre. ke neeche ka region ek trapezium hai jis ki parallel sides aur hain aur height hai.


2. Composite rule — strips ko chain karo

Summing se derivation: Terms likhke dekho: . Har interior node do strips mein aata hai → do baar count hota hai. Endpoints ek baar aate hain.


Figure — Numerical integration — trapezoidal rule (composite), error

3. Error — aata kahan se hai?

Single-strip error (order derive karo). pe Taylor-expand karo aur difference integrate karo. Exact result (ek line ke interpolation error ko integrate karne se):

Composite error. strips pe sum karo aur values ka mean use karo : Ab hai, isliye :


4. Worked examples


5. Common mistakes (steel-manned)


Recall Feynman: ek 12-saal ke bachche ko explain karo

Socho ek ulhji hui pahari hai aur tum uske neeche ka area chahte ho. Ek wiggle measure nahi kar sakte, lekin seedhe slopes CAN measure kar sakte ho. Toh pahari ko patli slices mein kato aur maan lo ki har slice ka top ek seedha ramp hai. Ek ramp ke neeche ka area aasaan hai (ek tircha box). Saare boxes add karo — wahi tumhara answer hai. Agar pahari zyada curve karti hai, patli slices thodi galat guess karti hain; slices ko do guna patla karne se galti chaar guna chhoti ho jaati hai.


Flashcards

Composite trapezoidal formula
,
Node weights ka pattern
(endpoints 1, interiors 2)
Composite trapezoidal ka global error
, yaani
double karne par error ka kya hota hai?
Approximately guna kam ho jaata hai (kyunki )
Trapezoidal rule polynomials ke liye degree kitni tak exact hai?
1 (linear), kyunki error mein hai
Jab convex ho () toh error ka sign kya hoga?
Positive — rule overestimate karta hai (chord curve ke upar hoti hai)
Single-strip error term
har strip pe
Interior nodes ko weight 2 kyun milta hai
Har interior node do adjacent strips ke beech share hota hai
strips ke liye nodes ki sankhya

Connections

  • Simpson's Rule — parabolas fit karta hai, error , degree 3 tak exact
  • Riemann Sums — trapezoidal = left & right Riemann sums ka average
  • Taylor's Theorem — interpolation error term ka source
  • Linear Interpolation — har strip pe line
  • Richardson Extrapolation combine karo term ko khatam karne ke liye → Romberg
  • Numerical Methods — parent index

Concept Map

often no antiderivative

curve looks straight

area under line

avg height x width

chain n strips and add

interior counted twice

ignores curvature

scales with f''

sum over n strips

f''>0 convex

smaller h

Need integral a to b

Approximate numerically

Replace f by line per strip

Trapezium area

Single strip = h/2 f0+f1

Composite rule Tn

Weights 1,2,...,2,1

Error source

Strip error = -h^3/12 f''

Composite error order h^2

Overestimate

Better accuracy as h to 0