Applied mathematics for machine learning