1630s, "words used in a ceremony or ritual" (earlier as a Latin word in English), from Latin formula "form, draft, contract, regulation;" in law, "a rule, method;" literally "small form," diminutive of forma "form" (see form (n.)). Modern sense is colored by Carlyle's use (1837) of the word in a sense of "rule slavishly followed without understanding" [OED]. From 1706 as "a prescription, a recipe;" mathematical use is from 1796; chemistry sense is from 1842. In motor racing, "class or specification of a car" (usually by engine size), 1927.
word-formation element meaning "pertaining to, of the nature of," from Latin -arem, -aris "of the kind of, belonging to," a secondary form (by dissimilation) of -alis, used after syllables with an -l- (such as insularis for *insulalis, stellaris for *stellalis).
<a href="https://www.etymonline.com/word/formular">Etymology of formular by etymonline</a>
Harper, D. (n.d.). Etymology of formular. Online Etymology Dictionary. Retrieved $(datetime), from https://www.etymonline.com/word/formular