(1) Here is the infinitives as a purpose:
I have come here to see her.
I left my village to enter university.
I went to the station to see off а friend.
(2) Here, the infinitives is used to show that the action expressed by the infinitive and the action of the verb happens simultaneously (unfortunately I don't know what name for this kind of adverbial phrase):
Hydrogen and oxygen unite to form water.
The atom may eject another particle to become a different atom.
Elements combine to produce a compound.
Attractions and repulsions often cooperate to reduce the viscosity of molecules.
Both the infinitives-(1) and infinitives-(2) are in the end of the sentence. I'm trying to find something that helps me distinguish one infinitive from another.
Couldn't you give me a little examples and I'll try to define what type of the infinitive it refer to?