How is Christ the son of David?

Mark 12:35a And Jesus answered and said, while he taught in the temple, Matt 22:41 While the Pharisees were gathered together, Jesus asked them, 42 Saying, What think ye of Christ? whose son is he? They say unto him, The Son of David. Luke 20:41a And he said unto them,
Mark 12:35b How say the scribes that Christ is the Son of David? 36 For David himself said by the Holy Ghost [1], The Lord said to my Lord, Sit thou on my right hand, till I make thine enemies thy footstool. 37 David therefore himself calleth him Lord; and whence is he then his son? And the common people heard him gladly. Matt 22:43 He saith unto them, How then doth David in spirit call him Lord, saying [1], 44 The Lord said unto my Lord, Sit thou on my right hand, till I make thine enemies thy footstool? 45 If David then call him Lord, how is he his son? 46 And no man was able to answer him a word, neither durst any man from that day forth ask him any more questions. Luke 20:41b How say they that Christ is David's son? 42 And David himself saith in the book of Psalms [1], The Lord said unto my Lord, Sit thou on my right hand, 43 Till I make thine enemies thy footstool. 44 David therefore calleth him Lord, how is he then his son?
Mark 12:38a And he said unto them in his doctrine, Matt 23:1 Then spake Jesus to the multitude, and to his disciples, Luke 20:45 Then in the audience of all the people he said unto his disciples,

Matt 23:2 Saying, The scribes and the Pharisees sit in Moses' seat: 3 All therefore whatsoever they bid you observe, that observe and do; but do not ye after their works: for they say, and do not. 4 For they bind heavy burdens and grievous to be borne, and lay them on men's shoulders; but they themselves will not move them with one of their fingers. 5 But all their works they do for to be seen of men: they make broad their phylacteries, and enlarge the borders of their garments,

Mark 12:38b Beware of the scribes, which love to go in long clothing, and love salutations in the marketplaces, 39 And the chief seats in the synagogues, and the uppermost rooms at feasts: Matt 23:6 And [the scribes and the Pharisees] love the uppermost rooms at feasts, and the chief seats in the synagogues, 7 And greetings in the markets, and to be called of men, Rabbi, Rabbi. Luke 11:43 Woe unto you, Pharisees! for ye love the uppermost seats in the synagogues, and greetings in the markets. Luke 20:46 Beware of the scribes, which desire to walk in long robes, and love greetings in the markets, and the highest seats in the synagogues, and the chief rooms at feasts;

Matt 23:8 But be not ye called Rabbi: for one is your Master, even Christ; and all ye are brethren. 9 And call no man your father upon the earth: for one is your Father, which is in heaven. 10 Neither be ye called masters: for one is your Master, even Christ. 11 But he that is greatest among you shall be your servant. 12 And whosoever shall exalt himself shall be abased; and he that shall humble himself shall be exalted.

Matt 23:13 But woe unto you, scribes and Pharisees, hypocrites! for ye shut up the kingdom of heaven against men: for ye neither go in yourselves, neither suffer ye them that are entering to go in.

Mark 12:40 Which devour widows' houses, and for a pretence make long prayers: these shall receive greater damnation. Matt 23:14 Woe unto you, scribes and Pharisees, hypocrites! for ye devour widows' houses, and for a pretence make long prayer: therefore ye shall receive the greater damnation. Luke 20:47 Which devour widows' houses, and for a shew make long prayers: the same shall receive greater damnation.

Matt 23:15 Woe unto you, scribes and Pharisees, hypocrites! for ye compass sea and land to make one proselyte, and when he is made, ye make him twofold more the child of hell than yourselves. 16 Woe unto you, ye blind guides, which say, Whosoever shall swear by the temple, it is nothing; but whosoever shall swear by the gold of the temple, he is a debtor! 17 Ye fools and blind: for whether is greater, the gold, or the temple that sanctifieth the gold?

Matt 23:18 And, Whosoever shall swear by the altar, it is nothing; but whosoever sweareth by the gift that is upon it, he is guilty. 19 Ye fools and blind: for whether is greater, the gift, or the altar that sanctifieth the gift? 20 Whoso therefore shall swear by the altar, sweareth by it, and by all things thereon.

Matt 23:21 And whoso shall swear by the temple, sweareth by it, and by him that dwelleth therein. 22 And he that shall swear by heaven, sweareth by the throne of God, and by him that sitteth thereon.

Luke 11:37 [2] And as he spake, a certain Pharisee besought him to dine with him: and he went in, and sat down to meat. 38 And when the Pharisee saw it, he marvelled that he had not first washed before dinner.
Matt 23:23 Woe unto you, scribes and Pharisees, hypocrites! for ye pay tithe of mint and anise and cummin, and have omitted the weightier matters of the law, judgment, mercy, and faith:these ought ye to have done, and not to leave the other undone. Luke 11:42 But woe unto you, Pharisees! for ye tithe mint and rue and all manner of herbs, and pass over judgment and the love of God:these ought ye to have done, and not to leave the other undone.

Matt 23:24 Ye blind guides, which strain at a gnat, and swallow a camel.

Matt 23:25 Woe unto you, scribes and Pharisees, hypocrites! for ye make clean the outside of the cup and of the platter, but within they are full of extortion and excess. Luke 11:39 And the Lord said unto him, Now do ye Pharisees make clean the outside of the cup and the platter; but your inward part is full of ravening and wickedness.
Matt 23:26 Thou blind Pharisee, cleanse first that which is within the cup and platter, that the outside of them may be clean also. Luke 11:40 Ye fools, did not he that made that which is without make that which is within also? 41 But rather give alms of such things as ye have; and, behold, all things are clean unto you.
Matt 23:27 Woe unto you, scribes and Pharisees, hypocrites! for ye are like unto whited sepulchres, which indeed appear beautiful outward, but are within full of dead men's bones, and of all uncleanness. Luke 11:44 Woe unto you, scribes and Pharisees, hypocrites! for ye are as graves which appear not, and the men that walk over them are not aware of them.

Matt 23:28 Even so ye also outwardly appear righteous unto men, but within ye are full of hypocrisy and iniquity. 29 Woe unto you, scribes and Pharisees, hypocrites! because ye build the tombs of the prophets, and garnish the sepulchres of the righteous, 30 And say, If we had been in the days of our fathers, we would not have been partakers with them in the blood of the prophets. 31 Wherefore ye be witnesses unto yourselves, that ye are the children of them which killed the prophets.

Matt 23:32 Fill ye up then the measure of your fathers. 33 Ye serpents, ye generation of vipers, how can ye escape the damnation of hell? 34 Wherefore, behold, I send unto you prophets, and wise men, and scribes: and some of them ye shall kill and crucify; and some of them shall ye scourge in your synagogues, and persecute them from city to city: 35 That upon you may come all the righteous blood shed upon the earth, from the blood of righteous Abel [3] unto the blood of Zacharias [4] son of Barachias [5], whom ye slew between the temple and the altar. 36 Verily I say unto you, All these things shall come upon this generation.

Matt 23:37 O Jerusalem, Jerusalem, thou that killest the prophets, and stonest them which are sent unto thee, how often would I have gathered thy children together, even as a hen gathereth her chickens under her wings, and ye would not! Luke 13:34 O Jerusalem, Jerusalem, which killest the prophets, and stonest them that are sent unto thee; how often would I have gathered thy children together, as a hen doth gather her brood under her wings, and ye would not!
Matt 23:38 Behold, your house is left unto you desolate. 39 For I say unto you, Ye shall not see me henceforth, till ye shall say, Blessed is he that cometh in the name of the Lord. Luke 13:35 Behold, your house is left unto you desolate: and verily I say unto you, Ye shall not see me, until the time come when ye shall say, Blessed is he that cometh in the name of the Lord.

[1]Psalms 110:1 The Lord said unto my Lord, Sit thou at my right hand, until I make thine enemies thy footstool. Part of a poem in which God promises victory to a king.

[2]Verses 37 and 38 are the transition to the denouncement of the Pharisees from the parable of the lighted candle (Luke 11:33-36). This transition cannot be reconciled either with the end of the candle parable in Matthew and Mark (which has Jesus leaving on a ship) or the beginning of the denouncement in Matthew (in which Jesus is addressing a crowd).

[3]Genesis 4:8 And Cain talked with Abel his brother: and it came to pass, when they were in the field, that Cain rose up against Abel his brother, and slew him. 9 And the LORD said unto Cain, Where is Abel thy brother? And he said, I know not: Am I my brother's keeper? 10 And he said, What hast thou done? the voice of thy brother's blood crieth unto me from the ground.

[4]This may refer to 2 Chr 24:20 And the Spirit of God came upon Zechariah the son of Jehoiada the priest, which stood above the people, and said unto them, Thus saith God, Why transgress ye the commandments of the Lord, that ye cannot prosper? because ye have forsaken the Lord, he hath also forsaken you.

[5]Zechariah 1:1 In the eighth month, in the second year of Darius, came the word of the Lord unto Zechariah, the son of Berechiah, the son of Iddo the prophet, saying...