carboxilic acid is that formed from the oxidation of : primary,secondary acohols, aldehyde or ketones with KMNo4 it is of formula CnH2nO2
ester is the result of reacyion between a carboxilic acid and an alcohol where water is released:
carboxilic acid + alcohol --> ester + water