20.5 KB · commit e092022
← Previous: T-03.05 Legendre's Equation & Rodrigues' Formula | 🏠 Index | Next: T-03.07 Legendre Orthogonality & Normalization →
Section: B | Priority: 🔴 Critical / Must | Exam Frequency: 3/5 Years (CT-03, 2018, 2021)
Sources: M.D. Raisinghania (Advanced Differential Equations, Ch. 9, pp. 5 to 15), Shepley Ross (Differential Equations, Ch. 4, pp. 48 to 53), Fahad Class Notes Section 3 (Lecture 05), Oishe Class Notes Section 3, Jaipal Sir Video Lecture 07
The generating function is the Swiss Army knife for Legendre polynomials. Instead of solving a differential equation or evaluating n derivatives, you expand a single algebraic function: (1−2xz+z2)−1/2 (or (1−2xt+t2)−1/2).
Professor Zakir Hossain set a 10-mark question on Class Test 03. He asked students to extract P2,P3,P5, and P6 directly from this function. In semester finals, this function provides the fastest proofs for Pn(1)=1, parity Pn(−x)=(−1)nPn(x), orthogonality integrals, and all recurrence relations.
Generating Function for Legendre Polynomials:
"The function (1−2xz+z2)−1/2 (equivalently (1−2xt+t2)−1/2) generates the Legendre polynomials. Pn(x) is the coefficient of zn (or tn) in its Taylor expansion: (1−2xz+z2)−1/2=∑n=0∞znPn(x),∣z∣<1,∣x∣≤1."
Source: M.D. Raisinghania, Advanced Differential Equations, Chapter 9, Article 9.3, p. 5
💡 In Plain Words: A generating function is like a clothesline holding an infinite family of polynomials. Each power zn acts as a tag that carries Pn(x) as its coefficient. If you expand the algebraic function, the polynomials drop right out.
Binomial Series Expansion:
"For any real variable u with ∣u∣<1: (1−u)−1/2=1+21u+2⋅41⋅3u2+⋯+2⋅4…2n1⋅3…(2n−1)un+…."
Source: Fahad Class Notes, Lecture 05, p. 17
💡 In Plain Words: This formula expands negative fractional powers into an infinite polynomial series. It lets us turn an algebraic square root in the denominator into a series of terms.
Endpoint Normalization Values:
"Setting x=1 in the generating function yields Pn(1)=1. Setting x=−1 yields Pn(−1)=(−1)n."
Source: M.D. Raisinghania, Advanced Differential Equations, Chapter 9, Article 9.4, p. 7
💡 In Plain Words: Every Legendre polynomial equals 1 at the right endpoint x=1. At the left endpoint x=−1, it equals 1 for even degrees and −1 for odd degrees.
Where does the strange function (1−2xz+z2)−1/2 come from? It comes directly from physics.
Imagine two electric charges or two masses in space. Place a point charge q at distance r′ from the origin along the polar axis. You want to find the potential at a field point P at distance r (r>r′), where the angle between the two position vectors is θ.
By the Law of Cosines, the distance R between the source charge and the field point is:
R=r2−2rr′cosθ+(r′)2=r1−2(rr′)cosθ+(rr′)2The gravitational or electrostatic potential depends on 1/R:
R1=r1(1−2xz+z2)−1/2Here, x=cosθ and z=r′/r<1.
When you expand this 1/R potential in powers of the ratio z=r′/r, each coefficient is a Legendre polynomial Pn(cosθ). This is the famous multipole expansion:
The generating function is simply the formula for electrostatic and gravitational distance.
We wish to prove that:
(1−2xz+z2)−1/2=n=0∑∞znPn(x)Let ∣x∣≤1 and ∣z∣<1. Group the second and third terms:
(1−2xz+z2)−1/2=[1−z(2x−z)]−1/2=(1−u)−1/2where u=z(2x−z).
Since ∣z∣<1 and ∣x∣≤1, we can choose ∣z∣ small enough so that ∣u∣<1.
Expand (1−u)−1/2 by the binomial theorem:
Substitute u=z(2x−z):
(1−2xz+z2)−1/2=1+21z(2x−z)+2⋅41⋅3z2(2x−z)2+…+2⋅4…(2n−2)1⋅3…(2n−3)zn−1(2x−z)n−1+2⋅4…2n1⋅3…(2n−1)zn(2x−z)n+…We collect all terms containing zn:
This series is the exact definition of the Legendre polynomial Pn(x).
Therefore:
Let u=2xz−z2=z(2x−z).
Write out the binomial coefficients for (1−u)−1/2:
Now compute the powers of u:
Now extract the coefficient of zn for each order n=0,1,2,3,4,5,6:
Constant term:
P0(x)=1Coefficient of z1 from 21u:
P1(x)=21(2x)=xCoefficient of z2:
Coefficient of z3:
Coefficient of z4:
Coefficient of z5:
Coefficient of z6:
| Order n | Parity | Factored Standard Form | Expanded Form | Value at x=1 |
|---|---|---|---|---|
| 0 | Even | 1 | 1 | 1 |
| 1 | Odd | x | x | 1 |
| 2 | Even | 21(3x2−1) | 23x2−21 | 1 |
| 3 | Odd | 21(5x3−3x) | 25x3−23x | 1 |
| 4 | Even | 81(35x4−30x2+3) | 835x4−415x2+83 | 1 |
| 5 | Odd | 81(63x5−70x3+15x) | 863x5−435x3+815x | 1 |
| 6 | Even | 161(231x6−315x4+105x2−5) | 16231x6−16315x4+16105x2−165 | 1 |
Substitute x=1 into the generating function:
(1−2(1)z+z2)−1/2=(1−2z+z2)−1/2=[(1−z)2]−1/2=(1−z)−1For ∣z∣<1, expand (1−z)−1 as a geometric series:
(1−z)−1=1+z+z2+⋯+zn+⋯=n=0∑∞znEquate this to the generating function series at x=1:
n=0∑∞znPn(1)=n=0∑∞znEquating the coefficient of zn on both sides:
Pn(1)=1Substitute x=−1 into the generating function:
(1−2(−1)z+z2)−1/2=(1+2z+z2)−1/2=[(1+z)2]−1/2=(1+z)−1Expand (1+z)−1:
(1+z)−1=1−z+z2−z3+⋯+(−1)nzn+⋯=n=0∑∞(−1)nznEquate to the generating function at x=−1:
n=0∑∞znPn(−1)=n=0∑∞(−1)nznEquating the coefficient of zn:
Pn(−1)=(−1)nIn the generating function identity:
(1−2xz+z2)−1/2=n=0∑∞znPn(x)(1)Replace x with −x and z with −z:
[1−2(−x)(−z)+(−z)2]−1/2=n=0∑∞(−z)nPn(−x)The left side simplifies:
[1−2xz+z2]−1/2=n=0∑∞(−1)nznPn(−x)(2)Compare equation (1) and equation (2). The left sides are identical:
n=0∑∞znPn(x)=n=0∑∞(−1)nznPn(−x)Equate the coefficient of zn:
Pn(x)=(−1)nPn(−x)⟹Pn(−x)=(−1)nPn(x)Problem Statement:
Define the generating function of Legendre's polynomial. Using the generating function, determine P2(x), P3(x), P5(x), and P6(x).
💡 Strategy & Mental Roadmap: On an exam, look for questions asking to extract Pn(x) without using Rodrigues' formula. First, write the binomial series for (1−u)−1/2 up to the required order. Second, substitute u=2xz−z2 and expand only the powers that can yield zn. Third, collect all matching coefficients of zn and simplify fractions. Always verify by checking if the sum of coefficients equals 1 at x=1.
Complete Step-by-Step Solution:
The generating function for Legendre polynomials is defined by:
(1−2xz+z2)−1/2=n=0∑∞znPn(x),∣z∣<1,∣x∣≤1The polynomial Pn(x) is the coefficient of zn in the Taylor series expansion of (1−2xz+z2)−1/2 in powers of z.
Set u=2xz−z2:
(1−u)−1/2=1+21u+83u2+165u3+12835u4+25663u5+1024231u6+…Select terms producing z2:
Teacher tip: Notice how u1 provides the constant term and u2 provides the x2 term. Together they produce 21(3x2−1).
P2(x)=23x2−21=21(3x2−1)Select terms producing z3:
Select terms producing z5:
Teacher tip: Watch out for missing contributions. The power z5 comes from three different terms: u3, u4, and u5. Do not stop at u5.
P5(x)=863x5−870x3+815x=81(63x5−70x3+15x)Select terms producing z6:
Teacher tip: Test the coefficients at x=1: 231−315+105−5=16. Dividing by 16 gives 1. This confirms your arithmetic.
P6(x)=16231x6−16315x4+16105x2−165=161(231x6−315x4+105x2−5)| Year / Source | Marks | Exam Question Summary | Core Technique Required | Key Result |
|---|---|---|---|---|
| CT-03 · Q1 | 10 | Define generating function; extract P2,P3,P5,P6 | Binomial expansion of [1−z(2x−z)]−1/2; collect matching powers of z | P2,P3,P5,P6 explicit expressions |
| Standard Final | 5 | Prove that Pn(1)=1 and Pn(−1)=(−1)n | Set x=±1 in generating function; expand (1∓z)−1 | Pn(1)=1, Pn(−1)=(−1)n |
| Standard Final | 4 | Prove parity property Pn(−x)=(−1)nPn(x) | Replace x→−x and z→−z; compare with original generating function | Pn(−x)=(−1)nPn(x) |
| Lecture Problem | 6 | Prove ∑n=0∞n+1Pn(cosθ)=log(1+csc2θ) | Integrate generating function with x=cosθ with respect to z from 0 to 1 | Logarithmic sum identity |
Appeared: Standard Final Exam Problem [6 Marks]
Question:
Using the generating function for Legendre polynomials, prove that:
(i) Pn(1)=1
(ii) Pn(−1)=(−1)n
(iii) Pn(−x)=(−1)nPn(x)
Full Answer:
The generating function is:
(1−2xz+z2)−1/2=n=0∑∞znPn(x)(i) For Pn(1):
Put x=1:
Equating to ∑n=0∞znPn(1) gives:
Pn(1)=1(ii) For Pn(−1):
Put x=−1:
Equating to ∑n=0∞znPn(−1) gives:
Pn(−1)=(−1)n(iii) For Parity Pn(−x)=(−1)nPn(x):
Replace x with −x and z with −z:
The left side remains unchanged. Expanding the right side gives:
n=0∑∞(−z)nPn(−x)=n=0∑∞(−1)nznPn(−x)Since (1−2xz+z2)−1/2=∑n=0∞znPn(x), equating coefficients of zn yields:
(−1)nPn(−x)=Pn(x)⟹Pn(−x)=(−1)nPn(x)Appeared: Advanced Lecture Problem [6 Marks]
Question:
Show that:
Full Answer:
Start from the generating function:
n=0∑∞znPn(x)=(1−2xz+z2)−1/2Integrate both sides with respect to z from 0 to 1:
n=0∑∞Pn(x)∫01zndz=∫011−2xz+z2dzThe left side evaluates to:
n=0∑∞Pn(x)[n+1zn+1]01=n=0∑∞n+1Pn(x)On the right side, set x=cosθ:
1−2zcosθ+z2=(z−cosθ)2+(1−cos2θ)=(z−cosθ)2+sin2θUsing the standard integral ∫(z−a)2+b2dz=log(z−a)+(z−a)2+b2:
∫01(z−cosθ)2+sin2θdz=[log(z−cosθ+1−2zcosθ+z2)]01Evaluate at upper limit z=1:
1−cosθ+1−2cosθ+1=1−cosθ+2(1−cosθ)Recall 1−cosθ=2sin2(θ/2):
1−cosθ+4sin2(θ/2)=2sin2(θ/2)+2sin(θ/2)=2sin(θ/2)[1+sin(θ/2)]Evaluate at lower limit z=0:
−cosθ+1=1−cosθ=2sin2(θ/2)Subtract the limits:
log2sin2(θ/2)2sin(θ/2)[1+sin(θ/2)]=log(sin(θ/2)1+sin(θ/2))=log(1+csc2θ)Therefore:
n=0∑∞n+1Pn(cosθ)=log(1+csc2θ)❌ Common Trap: Stopping at the highest power of u when extracting Pn(x). For example, taking only u5 to find P5(x), missing the z5 contributions inside u3 and u4.
✔️ Correct Fix: Check every power uk where k≤n≤2k. For P5(x), collect z5 terms from u3, u4, and u5.
💡 Why It Costs Marks: Missing a single power ruins the polynomial coefficients. You lose up to half the marks for that question.
❌ Common Trap: Leaving algebraic sign errors unverified in the final expression for Pn(x).
✔️ Correct Fix: Always set x=1 in your final answer. The sum of the coefficients must equal 1. For P6(x), 16231−315+105−5=1616=1.
💡 Why It Costs Marks: If the sum does not equal 1, the polynomial is wrong. Examiners spot this arithmetic mistake instantly.
❌ Common Trap: Writing terms with the wrong parity, such as including an x2 term in P5(x).
✔️ Correct Fix: Remember that Pn(x) has the exact parity of n. Odd n contains only odd powers of x. Even n contains only even powers and constants.
💡 Why It Costs Marks: Mixing parities violates the fundamental symmetry Pn(−x)=(−1)nPn(x). Examiners deduct marks immediately.
← Previous: T-03.05 Legendre's Equation & Rodrigues' Formula | 🏠 Index | Next: T-03.07 Legendre Orthogonality & Normalization →