Tracking and disturbance attenuation for unstable systems: algebraic