The psalm is not easily classified in the usual form-critical categories. It is usually placed in the general classification of the laments of the individual . . . . However, such characteristic features as complaint about enemies and prayer for their defeat and/or punishment is missing, as well as any protestation of innocence on the part of the speaker in the psalm . . . , and there is not motivational appeal to God for action . . . . On the other hand, there is a full confession of sin which is without parallel in any other biblical psalm.
The identity of the psalmist and the reason he composed this prayer are given in the Hebrew title as David’s act of adultery with Bathsheba . . . . Most modern commentators do not believe that the title reflects the actual circumstances in which the psalm was written . . . . Some, however, strongly defend the traditional view . . . and, like the others, recognize that the last two verses are a later addition . . . , since these verses reflect a situation which did not exist in David’s lifetime. The Jewish commentator Ibn Ezra, of the twelfth century A.D., suggested that they were added by a Jew who was in exile in Babylonia.