1. He dislikes going to school.

2. He dislikes to go to school.
(Are both grammatical? Which one is commonly used?)

#1 is good. #2 is not. "Dislkes" is a transitive verb so needs a direct object. "Going" is a gerund (used as a noun) so is the direct object "To go" is a verb, so cannot be the direct object of another verb.

going" is a gerund (used as a noun) so is the direct object. "go" as in "to go" is a verb, not a noun, so cannot be the direct object of another verb.

the first one is commonly used, when you say the second one out loud it doesn't really make sense.

Both sentences are grammatically correct, but the more commonly used construction is "He dislikes going to school."

In general, the verb "dislike" is followed by a gerund (verb form with "-ing") rather than an infinitive (verb form with "to"). Therefore, the phrase "dislikes going to school" is preferred.

To verify this, you can analyze the structure of the sentence:

1. "He dislikes going to school."
- "He" is the subject of the sentence.
- "dislikes" is the main verb.
- "going" is a gerund (verb form used as a noun).
- "to school" is a prepositional phrase acting as an adverbial modifier.

2. "He dislikes to go to school."
- "He" is the subject of the sentence.
- "dislikes" is the main verb.
- "to go" is an infinitive phrase functioning as the direct object of the verb "dislikes."
- "to school" is a prepositional phrase modifying the infinitive phrase.

So, while both sentences are grammatically correct, "He dislikes going to school" is generally more natural and commonly used.