In this paper, we investigate the spectral approximation of optimal control problem governed by nonlinear parabolic equations. A spectral approximation scheme for the nonlinear parabolic optimal control problem is presented. We construct a fully discrete spectral approximation scheme by using the backward Euler scheme in time. Moreover, by using an orthogonal projection operator, we obtain a posteriori error estimates of the approximation solutions for both the state and the control. Finally, by introducing two auxiliary equations, we also obtain a posteriori error estimates of the approximation solutions for both the state and the control.
Keywords: A posteriori error estimates; Nonlinear parabolic equations; Optimal control problem; Spectral method; Variational discretization.