Aspirin has a chemical formula of C9H8O4 and it is prepared through a chemical synthesis process from salicylic acid and acetic anhydride.