Research Article

An Extension of the Legendre-Galerkin Method for Solving Sixth-Order Differential Equations with Variable Polynomial Coefficients

Algorithm 1

Compute the matrices , and
from Theorem 2.2.
Find the tensor product of the matrices in the previous step.
Compute and write it in a column vector .
Obtain a column vector by solving (3.9).