The functional groups are written in the pictures attached. The first picture is aspirin. The functional groups are carboxylic group(O=COH), ester (O=COR), and aromatic group (benzene ring), where R is any hydrocarbon chain. The second picture is acetaminophen. The functional groups are amide group (O=CNHR), hydroxyl group (ROH) and aromatic group (benzene ring).