AI is essentially just math and programming.
Math and programming is also necessary for machine learning.
Mathematics is at the core of AI and machine learning because it provides means of implementing [put (a decision, plan, agreement) etc into effect] how their goals can be reached.