1. Introduction
As we know that the Legendre polynomial is known to many who work in the field of mathematics due to its multiple uses, and it can be found by well-known linear algebraic methods based on the Liouville-Sturm theorem [7,8], and we will try to find the matrix of the differential exponent of these polynomials and the corresponding eigenvalues, and this method differs from other standard methods that depend on solving the Legendre differential equation using power sequences, and the generating function.
Legendre polynomials are solutions of an ordinary differential equation, such as the hyper-geometric equation that appears when solving LaPlace's equation in spherical coordinates and solving the Schrodinger equation in three dimensions [1].
The hyper-geometric equation can be written in the form:
𝑠(𝑥)𝐹″(𝑥) + 𝑡(𝑥)𝐹′(𝑥) + 𝜆F(𝑥), = 0 … … … … … … … . . (1). Where F is a real function 𝐹: 𝑈→ℛ, and 𝑈⊂ℛ, ℛ∈𝜆 is an eigenvalue. Also, s(x), t(x) are real polynomials with degree one or two. Many special cases can be obtained according to s(x), for example if s(x) is constant, then (1) becomes 𝐹″(𝑥) −2𝛼𝑥𝐹′(𝑥) + 𝜆F(𝑥) = 0. If s(x) is of degree one, then (1) becomes 𝑥𝐹″(𝑥) + (−𝛼𝑥+ 𝛽+ 1)𝐹′(𝑥) + 𝜆F(𝑥) = 0. There is a close correlation between Liouville-sturm theorem and other linear algebraic concepts, for example, functions take the role of vectors while effects take the role of Matrices and diagonalization of a real symmetric matrix corresponding to the solution of an ordinary differential equation, this matrix is known through the effect of the self-adjoint where its eigenfunctions are continuous and corresponding to eigenvectors [2,3]. Legendre functions are studied in most Sciences as we have already mentioned, which focus on differential equations and special functions, and here we will get the Legendre differential operator matrix in addition to eigenvalues and eigenvectors and from the form of vectors we get Legendre polynomials and we can apply this method to other polynomials such as, Hermite and Chebyshev [3,4,5,6]. Legendre Polynomials and matrices The general formula of a polynomial is 𝛼0 + 𝛼1𝑥+ 𝛼2𝑥2 + ⋯… … … … + 𝛼𝑛𝑥𝑛 (2) Where 𝛼0, 𝛼1, … … … , 𝛼𝑛∈ℛ can be represented as a vector
![𝛼0 𝛼1 𝛼2 (3) ⋮ ⋮ 𝛼𝑛] [](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-1.png)
The derivatives of (2) are:
![𝑑𝑥[𝛼0 + 𝛼1𝑥+ 𝛼2𝑥2 + ⋯… … … … + 𝛼𝑛𝑥𝑛] = 𝛼1 + 2𝛼2𝑥+ 3𝛼3𝑥2 + ⋯… … … … + 𝑛𝛼𝑛𝑥𝑛−1 (4) 𝑑 𝑑 𝑑𝑥→ 𝑑2 𝑑𝑥[𝛼1 + 2𝛼2𝑥+ 3𝛼3𝑥2 + ⋯… … … … + 𝑛𝛼𝑛𝑥𝑛−1] = 2𝛼2 + 6𝛼3𝑥+ 12𝛼4𝑥2 + ⋯… … … … + 𝑛(𝑛− 1)𝛼𝑛𝑥𝑛−2 (5) The matrix representations of first derivative are: 𝑑 𝑑𝑥2 → 𝛼0 𝛼1 𝛼2 𝛼3 𝛼1 2𝛼2 3𝛼3 ⋯ 𝑛𝛼𝑛 [ 0 1 0 0 ⋯ 0 0 0 0 2 0 ⋯ 0 0 0 0 0 3 ⋯ 0 0 ⋮ ⋮ ⋮ ⋮ ⋯ ⋮ ⋮ 0 0 0 0 ⋯ 0 𝑛 0 0 0 0 ⋯ 0 0] (6) = ⋯ 𝛼𝑛−1 [ 0 ] [ 𝛼𝑛] or [ 0 1 0 0 ⋯ 0 0 0 0 2 0 ⋯ 0 0 0 0 0 3 ⋯ 0 0 ⋮ ⋮ ⋮ ⋮ ⋯ ⋮ ⋮ 0 0 0 0 ⋯ 0 𝑛 0 0 0 0 ⋯ 0 0] 𝑑 (7) 𝑑𝑥](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-2.png)
The matrix representations of the second derivative are:
![𝛼0 𝛼1 𝛼2 𝛼3 [ 2𝛼2 6𝛼3 12𝛼4 ⋯ 𝑛(𝑛−1)𝛼𝑛 [ 0 0 2 0 ⋯ 0 0 0 0 0 6 ⋯ 0 0 ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ 0 0 0 0 ⋯ 0 𝑛(𝑛−1) 0 0 0 0 ⋯ 0 0 0 0 0 0 ⋯ 0 0 ] (8) = ⋯ 𝛼𝑛−1 0 0 ] [ 𝛼𝑛] أor [ 0 0 2 0 ⋯ 0 0 0 0 0 6 ⋯ 0 0 ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ ⋯ 0 0 0 0 ⋯ 0 𝑛(𝑛−1) 0 0 0 0 ⋯ 0 0 0 0 0 0 ⋯ 0 0 ] 𝑑2 (9) 𝑑𝑥2 →](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-3.png)
We change (7), (9) in Legendre differential operator to get:
where
![(1 −𝑥2) 𝑑2 𝑑𝑥2 −2𝑥𝑑 𝑑𝑥 = (1 −𝑥2)[2𝛼2 + 6𝛼3𝑥+ 12𝛼4𝑥2 + ⋯… … … … + 𝑛(𝑛−1)𝛼𝑛𝑥𝑛−2] −2𝑥[𝛼1 + 2𝛼2𝑥+ 3𝛼3𝑥2 + ⋯… … … … + 𝑛𝛼𝑛𝑥𝑛] = 2𝛼2 + (−2𝛼1 + 6𝛼3)𝑥+ (−6𝛼2 + 12𝛼4)𝑥2 + ⋯… … + (−𝑛(𝑛−1) −2𝑛)𝛼𝑛𝑥𝑛. Thus, we get the matrix representation of Legendre differential operator:](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-5.png)
![[ 0 0 0 0 0 0 . . 0 0 −2 0 6 0 0 . . 0 0 0 −6 0 12 0 . . 0 0 0 0 −12 0 20 . . 0 0 0 0 0 −20 0 . . 0 . . . . . . . . . . ⋯ . . . . 0 0 0 0 ⋯ 0 . . 𝑛(𝑛−1) 0 0 0 0 ⋯ 0 . . 0 0 0 0 0 ⋯ 0 . . −𝑛(𝑛−1) −2𝑛] 𝛼0 𝛼1 𝛼2 𝛼3 [ 2𝛼2 −2𝛼1 + 6𝛼3 −6𝛼2 + 12𝛼4 −12𝛼3 + 20𝛼5 = . . 𝛼𝑛−2 𝛼𝑛−1 . . 𝑛(𝑛−1)𝛼𝑛 0 [−𝑛(𝑛−1) −2𝑛]𝛼𝑛] [ 𝛼𝑛]](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-6.png)
(10) or
![[ 0 0 0 0 0 0 . . 0 0 −2 0 6 0 0 . . 0 0 0 −6 0 12 0 . . 0 0 0 0 −12 0 20 . . 0 0 0 0 0 −20 0 . . 0 . . . . . . . . . . ⋯ . . . . 0 0 0 0 ⋯ 0 . . 𝑛(𝑛−1) 0 0 0 0 ⋯ 0 . . 0 0 0 0 0 ⋯ 0 . . −𝑛(𝑛−1) −2𝑛] (1 −𝑥2) 𝑑2 𝑑 𝑑𝑥2 −2𝑥 𝑑𝑥→](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-7.png)
Example:
Consider the Legendre differential operator of size 4*4:
![0 0 0 2 0 0 −2 0 0 6 0 0 −6 −6 0 0 0 0 0 −12 ].(12) 𝑀= [](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-8.png)
The eigenvalues are:
![𝛼0 𝛼1 𝛼2 𝛼3 0 −𝜆𝑖 0 2 0 0 −2 −𝜆𝑖 0 6 0 0 −6 −𝜆𝑖 0 0 0 0 −12 −𝜆𝑖 0 0 0 0 𝑣= [ ] [ ] [ ] = [](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-10.png)
For 𝜆1 = 0, we get:
![𝛼0 𝛼1 𝛼2 𝛼3 0 0 2 0 0 −2 0 6 0 0 −6 0 0 0 0 −12 0 0 0 0 ] [ ] [ ] = [](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-12.png)
Thus,
![1 0 0 0 ] 𝑣1 = [](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-13.png)
Which is the corresponding vector to the polynomial:
![𝛼0 𝛼1 𝛼2 𝛼3 2 0 2 0 0 0 0 6 0 0 −4 0 0 0 0 −10 0 0 0 0 ]. [ ] [ ] = [](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-16.png)
] (13).
Thus,
![0 1 0 0 ] 𝑣2 = [](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-17.png)
![𝛼0 𝛼1 𝛼2 𝛼3 6 0 2 0 0 4 0 6 0 0 0 0 0 0 0 −6 0 0 0 0 ] [ ] [ ] = [](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-19.png)
![0 1 0 0 ] 𝑣3 = [](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-20.png)

![𝛼0 𝛼1 𝛼2 𝛼3 12 0 2 0 0 10 0 6 0 0 6 0 0 0 0 0 0 0 0 0 ] [ ] [ ] = [](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-22.png)
![0 3 0 −5 ] 𝑣4 = [](https://americaspg.com/storage/fulltext/2057/d545768e9b31cd36/eq-23.png)
2 . Finally, here the Legendre polynomials were obtained in a direct way using basic linear algebra concepts such as the eigenvalue and eigenvector of a matrix, once the Matrix corresponding to the Legendre differential exponent is obtained, the eigenvalues of this matrix and the eigenvectors corresponding to these values corresponding to the coefficients of the Legendre polynomials are found and the above was obtained in a way that does not use classical methods and which is based on solving the Legendre equation using power sequences, the Rodrigue formula and the generating function. Suggestions and recommendations
We recommend using this method that was followed in this research on other polynomials such as orthogonal polynomials and especially the classical chebchev – Laguerre – Hermite – Jacobi polynomials.