There is no rule as such. All we can say is that the to-infinitive clause is used after certain abstract nouns to show what action they relate to. So we can say: ...
When do we use definite articles here? And what about abstract uncountable nouns? We are taught that when qualified they can take a definite (or indefinite article) but when should we consider ...