In the first and the third examples you give above, the infinitive is functioning as a noun (and as the object of the sentence). In the middle example, it is functioning as an adverb.
It's not always easy to tell. But here's how you can try.
If used as a noun, it tells what the object of the verb is. As in this example:
I wanted to buy the house. (What received my wanting? To buy the house. So it's a noun and an object.)
Or in your example, what received Chen's learning?
If it's used as an adverb, it tells you why or how the verb is happening. As in this example:
We were impatient to start the game. (Why were we impatient? To start the game.)
Or in your example, why am I going?
The previous poster is right, but I want to add another way to understand this subject, even if it's nowhere near foolproof.
In addition to asking the function of the infinitive -- sentences 1 and 2 give a reason (a "why"), so the infinitives are adverbs; sentence 3 give a thing (a "what"), so the infinitive is a noun -- you can also look at the placement of the infinitive in the sentence. If it comes right before or after the verb, it's very possibly a noun (the subject or direct object).
This method works, even if imperfectly, because English has fairly predictable word order (or syntax).