The chemical reactions and pathways involving retinoic acid, one of the three components that makes up vitamin A.