Tracking-error-based control of a chemical reactor using decoupled dynamic variables