For more information about gerunds and infinitives, please see section 3 of the Verbs page. For this lesson in particular, the best way to learn it is through practice. Reading a lot is the best way to practice telling whether you should use a gerund or infinitive in each situation, but the practice I have created below will also help.