Shifted Legendre direct method for variational problems

The shifted Legendre polynomial series is employed to solve variational problems. The solution is carried out by using an operational matrix for integrating the shifted Legendre polynomial vector. Variational problems are reduced to solving algebraic equations. Two illustrative examples are given, and the computational results obtained by Legendre series direct method are compared with the exact solutions.