Here's the breakdown:
* Had is the past participle of the verb "to have".
* Expected is the past participle of the verb "to expect".
Together, they form the past perfect tense of the verb "to expect". This tense is used to describe an action that happened before another action in the past.
Example:
* I had expected to see him at the party, but he didn't show up.