Document Type : Research Paper
Department of Mathematics, Payame Noor University, P. O. BOX 19395-3697, Tehran, Iran
An effective numerical method based on Legendre polynomials is proposed for the solution of a class of variational problems with suitable boundary conditions. The Ritz spectral method is used for finding the approximate solution of the problem. By utilizing the Ritz method, the given nonlinear variational problem reduces to the problem of solving a system of algebraic equations. The advantage of the Ritz method is that it provides greater flexibility in which the boundary conditions are imposed at the end points of the interval. Furthermore, compared with the exact and eigenfunction solutions of the presented problems, the satisfactory results are obtained with low terms of basis elements. The convergence of the method is extensively discussed and finally two illustrative examples are included to demonstrate the validity and applicability of the proposed technique.