# What is a general formula for an ester?

The substitution of a hydrogen atom in a carboxylic acid by alkyl or aryl groups, $\text{R}$ or $\text{Ar}$, yields another class of compounds known as esters