Every person capable of reasoning sees himself as a thinking being who belongs to the world of understanding (the world of pure reason, which the senses cannot reach). In that world, he is an active cause, and only as such a cause does he call his power to choose a will. At the same time, he sees himself as part of the world of sense, the world we know through our senses. There, his actions appear as effects of that power. But we cannot understand how they are possible from that hidden cause, which we do not know. Instead, his actions in the world of sense must be seen as caused by other appearances, namely desires and inclinations.
If I were only a member of the world of understanding, all my actions would always match the autonomy of the pure will (the will that gives itself its own law). If I were only part of the world of sense, my actions would have to follow the natural law of desires and inclinations. Kant calls this heteronomy (being ruled by something outside oneself). The first would rest on morality as the highest principle, and the second on happiness. But the world of understanding is the foundation of the world of sense, and so of its laws too. It gives the law directly to my will, which belongs fully to that world. So although I must see myself as part of the world of sense, I must also see myself as a thinking being bound by the law of the world of understanding. That law is reason, and it holds this law within the idea of freedom. So I am bound by the autonomy of the will. Therefore I must treat the laws of the world of understanding as commands for me, and the actions that match them as duties.
Every rational being reckons himself qua intelligence as belonging to the world of understanding, and it is simply as an efficient cause belonging to that world that he calls his causality a will. On the other side he is also conscious of himself as a part of the world of sense in which his actions, which are mere appearances [phenomena] of that causality, are displayed; we cannot, however, discern how they are possible from this causality which we do not know; but instead of that, these actions as belonging to the sensible world must be viewed as determined by other phenomena, namely, desires and inclinations. If therefore I were only a member of the world of understanding, then all my actions would perfectly conform to the principle of autonomy of the pure will; if I were only a part of the world of sense, they would necessarily be assumed to conform wholly to the natural law of desires and inclinations, in other words, to the heteronomy of nature. (The former would rest on morality as the supreme principle, the latter on happiness.) Since, however, the world of understanding contains the foundation of the world of sense, and consequently of its laws also, and accordingly gives the law to my will (which belongs wholly to the world of understanding) directly, and must be conceived as doing so, it follows that, although on the one side I must regard myself as a being belonging to the world of sense, yet on the other side I must recognize myself as subject as an intelligence to the law of the world of understanding, i.e., to reason, which contains this law in the idea of freedom, and therefore as subject to the autonomy of the will: consequently I must regard the laws of the world of understanding as imperatives for me and the actions which conform to them as duties.
This is what makes categorical imperatives (commands that hold without any condition) possible. The idea of freedom makes me a member of an intelligible world, a world known only to reason. If I were only that, all my actions would always match the autonomy of the will. But I also see myself as a member of the world of sense, so my actions ought to match that autonomy too. This categorical "ought" is a synthetic a priori proposition, meaning a statement that adds new knowledge and is known before experience. Besides my will as moved by sensible desires, there is added the same will viewed as part of the world of understanding. That will is pure and practical in itself. It contains the highest rational condition for my ordinary will. This works just as concepts of the understanding are added to what the senses give us. Those concepts signify nothing more than regular form in general. In this way, synthetic a priori propositions become possible, and all our knowledge of physical nature rests on them.
And thus what makes categorical imperatives possible is this, that the idea of freedom makes me a member of an intelligible world, in consequence of which, if I were nothing else, all my actions would always conform to the autonomy of the will; but as I at the same time intuite myself as a member of the world of sense, they ought so to conform, and this categorical "ought" implies a synthetic a priori proposition, inasmuch as besides my will as affected by sensible desires there is added further the idea of the same will but as belonging to the world of the understanding, pure and practical of itself, which contains the supreme condition according to reason of the former will; precisely as to the intuitions of sense there are added concepts of the understanding which of themselves signify nothing but regular form in general and in this way synthetic a priori propositions become possible, on which all knowledge of physical nature rests.