Analysis of feedback control applied with command shaping to minimize residual vibration