Dynamic analysis of a motor-gear-mechanism system