1. You are right. To is a preposition in your sentence and consequently achieving is a gerund.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
Ben9108I explore a new idea to solve the problem.The infinitive expresses purpose in your sentence. It indicates why something was done. This is a very common way to use the infinitive. Other examples: