If I were Prime Minister, I would strive to help develop a society that values young people and their contributions to their local and wider communities. I would do this by making every effort to train, develop and support them through their transition from a young person to adult, to become active citizens and leaders in society.
Since an infinitive phrase is a phrase that focuses on the object of the verb and an infinitive verb is an -ing verb, your phrase is "taking advanced math".