Carboxylic acids have the general formula R-COOH where R is an alkyl group. They contain a carboxyl group consisting of a carbonyl group bonded to a hydroxyl group. Carboxylic acids can be prepared through oxidation of alcohols or aldehydes, hydrolysis of esters or nitriles, and carboxylation of alkenes. They undergo reactions like forming salts, acyl halides, amides, and esters. Common carboxylic acids include acetic acid and benzoic acid which have applications as preservatives and flavorings.