4.8.17 · HinglishNumerical Methods

Gaussian quadrature — Gauss-Legendre

1,436 words7 min readRead in English

4.8.17 · Maths › Numerical Methods


WHAT: hum kya karne ki koshish kar rahe hain

interval kyun? Kyunki magic hoti hai Legendre polynomials ke saath, jo par orthogonal hain. Koi bhi real integral ko ek linear change of variable se mein convert kiya jaata hai (niche dikhaya gaya hai).


HOW: 2-point rule scratch se derive karo

Hum chahte hain degree ke liye exact. Chaar unknowns , toh basis par exactness impose karo:

Ye equations kyun? Agar rule har monomial ko exactly integrate karta hai, toh linearity se yeh degree ke har polynomial ko exactly integrate karega.

Symmetry se guess karo , .

  • se: . (Kyun? dono weights equal hain, sum 2 hai.)
  • aur odd symmetry se auto-satisfy ho jaate hain. (Kyun? symmetric nodes par odd function cancel ho jaata hai.)
  • se: .

Indeed ke roots hain — hamare derivation se match karta hai.


Weight formula (KYUN kaam karta hai)

Weights nodes par Lagrange basis ke integrals hain: jo degree ke liye exactness guarantee karta hai; orthogonality ise tak boost karta hai. Ek closed form:


Interval change ()

Figure — Gaussian quadrature — Gauss-Legendre

Worked examples


Common mistakes


Recall Feynman: 12-saal ke bacche ko samjhao

Socho ek tedhi-medhi saanp ka area nikalna hai. Purane rulers kehte hain fixed, equally-spaced jagahon par measure karo. Gauss kehta hai: "Mujhe khud sabse smart jagahein chunne do aur decide karne do ki har jagah kitni count karti hai." Same number of measurements se woh kaafi zyada tedhe-medhe curves ke liye bilkul sahi ho sakta hai. Uske secret spots special points hain jinhe zeros of Legendre polynomials kehte hain — aisi jagahein jo is tarah arranged hain ki bachi hui error bilkul cancel ho jaaye.


Active recall

-point Gauss rule degree tak exact kyun ho sakta hai?
Iske paas free parameters hain ( nodes + weights), jo moment conditions for match karne ke liye kaafi hain.
Gauss–Legendre ke nodes kahan placed hote hain?
par Legendre polynomial ke roots par.
2-point Gauss–Legendre nodes aur weights kya hain?
, .
ke roots extra accuracy kyun dete hain?
sabhi lower-degree polynomials ke saath orthogonal hai, isliye high-degree remainder ka integral 0 ho jaata hai aur nodes par bhi vanish karta hai.
ko par map karne wala change of variable kya hai?
, extra factor ke saath.
Closed-form weight formula kya hai?
.
Kya Gauss–Legendre endpoints include karta hai?
Nahi (yeh Gauss–Lobatto hai). Standard Gauss–Legendre nodes strictly interior hote hain.
par correctly scale kiya hai ya nahi, sanity check kya hai?
integrate karo toh aana chahiye.

Connections

  • Legendre polynomials — nodes ka source (orthogonality)
  • Orthogonal polynomials — Gauss-type rules ki general recipe
  • Newton-Cotes formulas — fixed-node cousins (trapezoid, Simpson)
  • Gauss-Lobatto quadrature — endpoints include karne wala variant
  • Polynomial interpolation — weights ke peeche Lagrange basis
  • Numerical integration error analysis — error

Concept Map

enables

defines

roots give

used in

property of

boosts degree to 2n-1

solved to find

for n=2 gives

Lagrange integrals

orthogonal on

works on

maps a b to

2n free numbers nodes plus weights

Integrate polynomials up to degree 2n-1 exactly

Gauss-Legendre rule sum wi f xi

Legendre polynomial Pn

Nodes xi = roots of Pn

Pn orthogonal to lower degrees

Weights wi

Exactness on monomials 1 x x2 x3

2-point rule f at plus-minus 1 over root3

Interval -1 to 1

Linear change of variable