Some time ago, I wrote a post discussing the solution to Legendre’s ODE. In that post, I discussed what is an alternative definition of Legendre polynomials in which I stated Rodriguez’s formula:
where
,
and
in which I have let and
corresponding to the even and odd expressions for the Legendre polynomials.
However, in this post I shall be using the approach of the generating function. This will be from a purely mathematical perspective, so I am not applying this to any particular topic of physics.
Consider a triangle with sides and angles
. The law of cosines therefore maintains that
We can factor out from the left hand side of Eq.(1), take the square root and invert this yielding
Now, we can expand this by means of the binomial expansion. Let , therefore the binomial expansion is
Hence if we expand this in terms of the sides and angle(s) of the triangle and group by powers of we get
Notice the coefficients, these are precisely the expressions for the Legendre polynomials. Therefore, we see that
or
Thus we see that the generating function generates the Legendre polynomials. Two prominent uses of these polynomials includes gravity and its application to the theory of potentials of a spherical mass distributions, and the other is that of electrostatics. For example, suppose we have the potential equation
We may use the result of the generating function to get the following result for the electric potential due an arbitrary charge distribution
(For more details, see Chapter 3 of Griffith’s text: Introduction to Electrodynamics.)