An optimal control problem for linear systems is solved by the use of the Fourier series approach. The Fourier operational matrix is extended to reduce the system equations to a set of linear algebraic equations and to obtain the approximate solution. An illustrative example is given and some useful results are provided.