What task are you talking about, I don't see anything?
In what gym are you referencing to?
The correct answer is option two.
An infinitive phrase consists of an infinitive verb, and can be followed by a complement or a modifier, which is usually an adverb.
In the sentence above, the infinitive phrase comes before a complement "variety and interest to their writing."