When the verb is the sentence's subject, we employ the gerund.
When we make an effort to complete a task that we may or may not succeed in, we say that we are trying to do it.
After would rather or had better, use the infinitive without the preposition to.
After some statements, such as "have difficulties," "have difficulty (in)," "have a hard/difficult time," etc., the gerund is used.
When the meaning is passive, we use the expression need doing. Something must be done. = "Action must be taken."
You need to cut your hair.
You should cut your hair.
When the verb comes after a preposition or a phrasal verb, the gerund is used.
-ing is added after recommending.
When there is something you need to remember to do, use forget to do. The most frequent usage is this.
When you can't recall a recent occurrence or circumstance, use forget doing (it has to do with recollections).
When we do anything as an experiment to see if it aids in solving a problem that we wish to tackle, we say try doing something (gerund).
In this line, someone is trying to get in touch with someone and they can try calling to see if it works.
Use the gerund after remember if you are recalling a former event (memory), and the infinitive if there is something you need to keep in mind.
When we stop completing one task to begin another, we say we are stopping to do something.
When we quit doing something, we use the phrase (on that occasion of forever).
We can use either the gerund or the to + infinitive after like, love, hate, or prefer (the gerund is more common in British English).
However, we should use the infinitive after would like, would love, would detest, or would prefer.
After mind or would mind, use -ing.
After some phrases, such as "can't help," add the -ing.
You cannot quit doing anything if you are unable to stop.
Use the gerund after remember if you are recalling a former event (memory), and the infinitive if there is something you need to keep in mind.
Make/let someone do something is how we say it (infinitive without to).