The optimal control problem of a linear distributed parameter system is studied via shifted Legendre polynomials (SLPs) in this paper. The partial differential equation, representing the linear distributed parameter system, is decomposed into an n set of ordinary differential equations, the optimal control problem is transformed into a two-point boundary value problem, and the twopoint boundary...