This paper presents a numerical solution for solving optimal control p
roblems, and the controlled Duffing oscillator. A new Chebyshev spectr
al procedure is introduced. Control variables and state variables are
approximated by Chebyshev series. Then the system dynamics is transfor
med into systems of algebraic equations. The optimal control problem i
s reduced to a constrained optimization problem. Results and compariso
ns are given at the end of the paper.