introduced to solve high order ordinary differential equations with some nonlinear terms
arising in physics and mechanics. This technique transforms the nonlinear differential
equation via mixed conditions into a matrix equation with unknown Legendre coefficients.
This solution of this matrix equation yields the Legendre coefficients of the solution function.
Thus, the approximate solution is obtained in terms of Legendre polynomials. Some test …