Chemical formula for Carboxylic acid

The general chemical formula for a carboxylic acid is RCOOH, where R is a hydrocarbon chain or ring.