In the context of organic chemistry, the classification of molecules based on functional groups plays a crucial role in understanding their reactivity and properties. Consider the following compounds:
Compound 1: C4H10O (butanol)
Compound 2: C4H8O (butanone)
Compound 3: C4H4O2 (butanoic acid)
Compound 4: C4H6O2 (butenoic acid)
Each compound is classified based on its functional group. Which compound among the four exhibits a carboxylic acid functional group?