Gerunds and infinitives are non-finite verb forms that can be used in different grammatical constructions. Gerunds function as nouns and can be subjects, objects, or follow prepositions. Infinitives can be used with certain verbs, adjectives, nouns, and modal verbs or to express purpose. Both gerunds and infinitives can be used in complex grammatical forms.