David wasn’t a biological son of Jesse. And his mother maybe wasn’t the mother of earlier sons of Jesse either.
David himself states he was conceived in sin (out of wedlock?)
Behold, I was brought forth in
iniquity, And in sin my mother conceived me. New King James Version PS51:5
Also he states that he were monogeneous (all genes from one parent only, and him being a male it has to be his father as only males have Y chromosome):
ῥῦσαι ἀπὸ ῥομφαίας τὴν ψυχήν μου, καὶ ἐκ χειρὸς κυνὸς τὴν μονογενῆ
μου· Swete's Septuagint Ps22:20
Rescue from the the sword my soul and from the hand promiscuous my
monogeneous [genome]
Here I could not find an adequate and relevant translation, so above translation into English is mine.
Herewith we are making a case that Nahash could be argued as David's biological father and Jesse as the adoptive one, with a possible motivation by God to infuse the qualities of a successful military leader into the lineage of the king of Judah.
Nahash was a king of the Ammonites, a group often in conflict with Israel, yet possessing strong military leaders. This military prowess could be seen as beneficial for David's lineage, particularly as he was to lead the Israelites in many battles. The Ammonites and the tribe of Judah had intertwined histories, with land disputes often at the center of their conflicts. The Ammonites claimed rights to parts of the land of Canaan based on their descent from Lot and their historical occupation of the land (Deuteronomy 2:19).
In the time of Samuel, the Israelites demanded a king to lead them like other nations, signaling a transition from a tribal confederation to a monarchy. This request was granted in the form of Saul, and later David took over (1 Samuel 12:12-13). The need for a king arose from the necessity of organized military leadership and governance, and a leader of Ammonite descent like Nahash could be seen as meeting these needs due to the Ammonites' known military capabilities.
The assertion that David was not the biological son of Jesse but was instead the son of Nahash can be inferred from several passages. For instance, the cryptic mention of Abigail as the daughter of Nahash in 2 Samuel 17:25 may suggest a closer relationship between David and Nahash.
Furthermore, Psalm 51 provides a window into David's own perception of his sinful nature from birth (Psalm 51:5). The emphasis on sinfulness from conception could be seen as an allusion to a controversial or non-traditional lineage.
Finally, the questioning of David's lineage in 1 Samuel 17:58 could imply uncertainty or ambiguity about his paternal ancestry.
This hypothesis suggests a deliberate divine intervention to strengthen Israel through the qualities of a formidable leader like Nahash, thus ensuring the survival and success of David's kingship and the people of Israel.
So David can indeed be biologically a first born son to his biological mother, and biological(?) father(?) and as an adoptive son to Jessy not be the oldest son of Jesse.