The categorical imperative is an idea that Immanuel Kant had about ethics . An ` imperative ' is something that one must do . On this basis , Kant derives second formulation of the categorical imperative from the first .