For decades, the mathematician Frank Merle has been embracing the messy math behind lasers and fluids