advanced mathematics for ai