Unit 3: Ordinary Differential Equations - Part 2
Chapter 16: The Eigenvalue Problem
Sections16.3: Legendre's equation
Copyright
Copyright * 2001 by Addison Wesley Longman, Inc.
All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the United States of America.
Initializations
> restart;
>
with(student):
with(orthopoly):
> interface(showassumed=0);
> read(`C:/Program Files/Maple 6.01/pvac.txt`):
A Singular Sturm-Liouville Eigenvalue Problem
Legendre's equation
that is,
> q := (1-x^2)*diff(y(x),x,x)-2*x*diff(y(x),x)+lambda*y(x)=0;
>
on the interval
typically arises in physical problems being solved in spherical coordinates. With
it's clear the equation is in the self-adjoint form
(
)
+
where
and
. Although the values for
and the weighting function
are as simple as they could be, solving this equation presents unique challenges. In fact, we now realize that both
and
are regular singular points of the differential equation, and the problem is singular because
is not positive on the interval
. Hence, there are no boundary conditions at the endpoints! Instead, the solution
must be bounded throughout the interval, especially at each endpoint.
Our boundary value problem, then is the differential equation
(
)
along with the "boundary" conditions
finite
finite
>
Solving the Differential Equation
The eigenvalue problem based on the equation
presented some new challenges, but since the solutions were the familiar trig and exponential functions, we ultimately determined both the eigenvalues and eigenfunctions. The Bessel equation presented some additional challenges since the functions which satisfy the equation, the Bessel functions, are not part of the suite of elementary functions studied in calculus. Legendre's equation poses further challenges because, unlike the Bessel equation, there are not "Legendre functions" with which we can ultimately construct the solution. Each of these three classic BVPs differ in key ways, making it seem to the beginning student that there is no coherence in the subject at all.
We avoided grinding out the power series solution of Bessel's equation because we ultimately relied on Maple to generate the functions for us. We cannot do that with the solutions of Legendre's equation since Maple's dsolve command does not yield a useful solution to this equation. In fact, the two linearly independent solutions Maple provides, namely
>
q1 := dsolve(q,y(x),output=basis):
Y1 := q1[1];
Y2 := q1[2];
>
are unweildy, and contain the Legendre and associated Legendre functions which Maple does not readily manipulate. For example, Maple generates an imposing series expansion for the first (simpler) solution
> series(Y1,x);
>
Therefore, we now revert to a series solution at a fundamental level.
>
Power Series Solution
About
, seek a Taylor series solution of the form
. A seventh-order finite approximating sum satisfying the initial conditions
and
is
The solution appears to split into a series of even powers of
(multiplying
) and a series of od powers of
(multiplying
). Also, if
is an integer such as
, or 30, coefficients will be zero, and the possibility exists that instead of an infinite series, the solution is just a polynomial. However, verification of these suspicions requires knowing more about the general form of the general coefficient
.
These calculations can be implemented in Maple if we first set to 8 the system variable Order , whose default value is 6,
> Order := 8;
>
then impose the initial conditions y(0) = A and y'(0) = B, yielding
> q2 := dsolve({q,y(0)=A,D(y)(0)=B},y(x),series);
>
In order to manipulate the resulting series expansion, the term
needs to be removed. Thus, we obtain
> q3 := convert(rhs(q2),polynom);
>
To find a pattern in this solution, group terms with respect to y(0) and y'(0), obtaining
> q4 := collect(q3,[A,B,x],factor);
>
Recursion Relation
To obtain a general recursion formula for the coefficients, seek a solution of the form
As seen in Sections14.1, the sum
suffices, and substitution into the differential equation gives
Differentiating termwise leads to
where the coefficients of each power of
must separately vanish. Setting to zero the coefficient of
yields
and solving for
gives the desired recursion relationship
To implement these calculations in Maple, define the sum
> Y := Sum(a[n] * x^n, n=k .. k+2);
>
and substitute it into the differential equation, obtaining
> q6 := subs(y(x) = Y, q);
>
Differentiating termwise leads to
> q7 := simplify(value(q6));
>
where the coefficient of each power of
must separately vanish. Setting to zero the coefficient of
yields
> q8 := map(coeff,q7,x^k);
>
and solving for
gives the desired recursion relationship
> factor(isolate(q8,a[k+2]));
>
where we write the factor of
on the right as the function
> g := k -> (k*(k+1)-lambda)/(k+2)/(k+1);
>
Applying the Boundary Conditions
The recurrence relation
suggests that
determines all other even-indexed coefficients, and
determines all other odd-indexed coefficients. Moreover, if
is the integer
, then
=
=
so the series starting with
(if
is even) or with
(if
is odd) becomes a simple polynomial, called a
Legendre
polynomial
.
To determine the large-
behavior of the coefficients in either infinite series, express
in terms of
then
in terms of
and hence
etc.
In Maple, we can do this by writing the iteration as the function
> f := k-> if k<2 then a[0] else f(k-2)*'g'(k-2) fi;
>
and, since
for
, the first few even-indexed coefficients fit the pattern
>
for k from 0 to 5 do
a[2*k] = f(2*k);
od;
>
Thus, with
,
is the product
> q9 := Product(g(2*n),n=0..m-1);
>
A similar result holds when
is based on
.
Evaluating the expression for
gives the closed-form expression
>
assume(m,posint);
q10 := simplify(value(q9));
>
from which we can obtain
where
is the constant
To obtain this in Maple, replace
with a single symbol, say X, to obtain
> q11 := subs(sqrt(1+4*lambda)=X,q10);
>
Then, compute the limit
> q12 := limit(q11/(1/m),m=infinity);
>
and reverse the substitution, leading to
> c = subs(X=sqrt(1+4*lambda),q12);
>
Thus, the coefficients grow at the same rate as the coefficients in the harmonic series
, a series known to diverge. (See Sections7.2.) Hence, if this limit is true, solutions of Legendre's equation which are infinite series will diverge at
and 1. The only solutions which could then be bounded at the endpoints would be the polynomial solutions, the ones arising by choice of
as one of the integers
.