“Categorical imperative”

Kant presents the “categorical imperative” as the cornerstone of his a priori ethics (Foundations 38). Explain what Kant means by the “categorical imperative” and how he argues for this view.