Systematic names of carboxylic acids are generally formed using the suffix ‘oic acid’ $\ce{{}-(C)OOH}$, or ‘carboxylic acid’ $\ce{{}-COOH}$, or the prefix ‘carboxy’ $\ce{{}-COOH}$. Note that the $\ce{{}-(C)OOH}$ group of ‘oic acid’ formally replaces a terminal $\ce{{}-CH3}$ group whereas the $\ce{{}-COOH}$ group of ‘carboxylic acid’ or ‘carboxy’ is a usual substituent that replaces just a $\ce{{}-H}$.
The relevant rules in the current version of Nomenclature of Organic Chemistry – IUPAC Recommendations and Preferred Names 2013 (Blue Book) read as follows.
P-65.1.2.1 Carboxylic acid groups, $\ce{{}-COOH}$, that conceptually replace a $\ce{{}-CH3}$ group of methane or terminate an unbranched hydrocarbon chain are named by replacing the final ‘e’ of the name of the corresponding hydrocarbon by the suffix ‘oic acid’. No locants are necessary to denote the positions of the carboxylic acid groups in a hydrocarbon chain; locants are used when hydrocarbon chains are modified by skeletal replacement, as shown in P-15.4.3.2.3. Except for formic acid, acetic acid, oxalic acid (see P-65.1.1.1), and oxamic acid (see P-65.1.1.1), systematically formed names are preferred IUPAC names; the names given in P-65 .1.1.2 are retained names for use in general nomenclature.
That’s why the name of the unsubstituted parent structure of the first compound that is given in the question is a heptanedioic acid.
P-65.1.2.2.1 If an unbranched chain is linked to more than two carboxy groups, all carboxy groups are named from the parent hydride by substitutive use of the suffix ‘carboxylic acid’, preceded by the appropriate numerical prefix ‘tri’, ‘tetra’ etc. and appropriate locants.
That’s why the name of the second compound is pentane-1,3,5-tricarboxylic acid.
P-65.1.2.2.3 The prefixes ‘carboxy’ and ‘oxalo’
When another group is present that has priority for citation as suffix, for example, a free valence, or when all carboxylic acid groups cannot be described by a suffix, carboxylic acid groups, $\ce{{}-COOH}$, are indicated by the preferred prefix ‘carboxy’ (also used in general nomenclature). The prefix ‘oxalo’ is recommended as the preferred prefix for $\ce{{}-CO-COOR}$, but cannot be used to lengthen a carbon chain. In general nomenclature, the compound prefix ‘carboxycarbonyl’ may be used, but the compound prefix ‘carboxyformyl’ is not recommended.
That’s why the complete name of the first compound is 4-(carboxymethyl)heptanedioic acid.