According to my chemistry textbook, 2-hydroxy-1,2,3-propanetricarboxylic acid is represented as:
But 5-bromoheptanoic acid is given as:
In the former naming, propane is considered in the base chain while the COOH carbons are not. In the latter one, the COOH carbons are considered in the base carbon chain.
On checking NCBI Pubchem, I found the following:
Why are the carbons of carboxylic acids excluded in the former name but included in the latter?