prefix of negation, Old English un-, from Proto-Germanic *un- (source also of Old Saxon, Old Frisian, Old High German, German un-, Gothic un-, Dutch on-), from PIE *n- (source of Sanskrit a-, an- "not," Greek a-, an-, Old Irish an-, Latin in-), combining form of PIE root *ne- "not." Often euphemistic (such as untruth for "lie").
The most prolific of English prefixes, freely and widely used in Old English, where it forms more than 1,000 compounds. It underwent a mass extinction in early Middle English, but emerged with renewed vigor 16c. to form compounds with native and imported words. It disputes with Latin-derived cognate in- (1) the right to form the negation of certain words (indigestable/undigestable, etc.), and though both might be deployed in cooperation to indicate shades of meaning (unfamous/infamous), typically they are not.
It also makes words from phrases (such as uncalled-for, c. 1600; undreamed-of, 1630s; uncome-at-able, 1690s; unputdownable, 1947, of a book; un-in-one-breath-utterable, Ben Jonson; etc., but the habit is not restricted to un-; such as put-up-able-with, 1812). As a prefix in telegramese to replace not and save the cost of a word, it is attested by 1936.
element meaning "into, in, on, upon" (also im-, il-, ir- by assimilation of -n- with following consonant), from Latin in- "in," from PIE root *en "in."
In Old French (and hence in Middle English) this often became en-, which in English had a strong tendency to revert to Latin in-, but not always, which accounts for pairs such as enquire/inquire. There was a native form, which in West Saxon usually appeared as on- (as in Old English onliehtan "to enlighten"), and some of those verbs survived into Middle English (such as inwrite "to inscribe"), but all now seem to be extinct.
Not related to in- (1) "not," which also was a common prefix in Latin, causing confusion: to the Romans impressus could mean "pressed" or "unpressed;" inaudire meant "to hear," but inauditus meant "unheard of;" in Late Latin investigabilis could mean "that may be searched into" or "that cannot be searched into." Latin invocatus was "uncalled, uninvited," but invocare was "to call, appeal to."
The trouble has continued in English; the hesitation over what is meant by inflammable being a commonly cited example. Implume (1610s) meant "to feather," but implumed (c. 1600) meant "unfeathered." Impliable can mean "capable of being implied" (1865) or "inflexible" (1734). Impartible in 17c. could mean "incapable of being divided" or "capable of being imparted." Impassionate can be "free from passion" or it can mean "strongly stirred by passion." Inanimate (adj.) is "lifeless," but Donne uses inanimate (v.) to mean "infuse with life or vigor." Irruption is "a breaking in," but irruptible is "unbreakable."
In addition to improve "use to one's profit," Middle English also had a verb improve meaning "to disprove" (15c.). To inculpate is "to accuse," but inculpable means "not culpable, free from blame." Infestive has meant "troublesome, annoying" (1560s, from infest) and "not festive" (1620s). In Middle English inflexible could mean "incapable of being bent" or "capable of being swayed or moved." In 17c., informed could mean "current in information," formed, animated," or "unformed, formless" ("This was an awkward use" [OED]). Inhabited has meant "dwelt in" (1560s) and "uninhabited" (1610s); inhabitable likewise has been used on opposite senses, a confusion that goes back to Late Latin.