The reaction between carboxylic acid and an alcohol in the presence of conc. H2SO4 to form a sweet odoured substance, ester with the functional
group
is called esterification.The esterification reaction is slow and reversible.
The equation for the reaction between an acid RCOOH and an alcohol
R/OH
(where R and R/ can be the same or different) is:

So, for example, if you want to prepare ethyl ethanoate or ethyl acitate from ethanoic acid and ethanol, the equation would be:
Do you know what ‘soap’ is?
Soap is a sodium or potassium salt of a higher fatty acid like palmitic
acid (C15H31COOH), stearic acid (C17H35COOH), oleic acid (C17H33COOH)
etc. The formula of a soap in general is RCOONa or RCOOK, where
R = C15H31 ; C17H35 etc.
Fats are esters of higher fatty acids and the trihydroxy alcohol known asglycerol.
When fats are treated with sodium hydroxide, sodium salts the fatty acids and glycerol is formed. The sodium salts of these higher fatty acids being soaps the reaction is the soap formation reaction which is generally called as ‘saponification reaction’.
Alkaline hydrolysis of tri esters of higher fatty acids producing soaps is called saponification.