This works because I'm ADHD and it calms me down, but I'm not sure if it will work for anyone else.
Play Calm music when working on math homework. It calms you down and allows your brain to run smoother. Music without words is better good artists would be:
-C418
-Yanni
It helps me calm down and pay attention a ton.