Adverbs answer one of the following questions about the verb, adjective, or adverb that they are modifying. read more
To gain knowledge is an adverb. It's an infinitive phrase functioning as an adverb, and it's modifying the verb study. This question is usually answered by phrases or clauses that are acting as adverbs rather than by one-word adverbs. read more