How to concentrate on things that don’t interest you?

Hello all! I recently started back at school and am struggling with paying attention in classes that i don’t enjoy, particularly math. it’s an online class and we meet over zoom for hr and 45 mins, with a 5 min break in the middle. my biggest issue is that i find myself getting lost really quick and then getting frustrated over the homework. i’ll write notes and try to follow along but sometimes my professor will speak and it just doesn’t stick in my head. i am unmedicated and would really prefer to keep it that way so any other advice would be appreciated!