If you're a globe-trotting frequent flier, you know how painfully irritating jet lag can be — losing sleep, headaches, fatigue, and other general awfulness. Fortunately, there's now a more efficient way to fight jet lag — math.

Researchers at the University of Michigan have just released Entrain, a free iPhone app which is designed to beat jet lag by keeping track of how much light your body takes in during different times of the day. (ViaYouTube / Olivia Walch)

The app is based on research published this week in PLoS Computational Biology, which focuses on the daily cycle of light exposure our body expects to get, and details mathematical formulas for tweaking that light exposure.

App designer Olivia Walch told the Los Angeles Times the result should be a quicker rehabilitation from the effects of jet lag. "These are the fastest schedules that have ever been proposed. ... Our schedule takes what could be 12 days of adjusting down to four," she said.

Of course, Entrain's mathematical models are still theoretica. Entrain's developers are asking users to submit feedback on how well the schedules work for them, so programmers can adjust the app. (Via University of Michigan)

But one sleep researcher at Harvard Medical School is optimistic about the app's effects. Elizabeth Klerman told NPR the formulas behind Entrain are backed up by years of research.

"You need to do experiments to make sure whether it works, because humans don't always respond the way mathematical models expect them to. ... But he has based his model on decades of thorough experiment, and a model that has been tested very thoroughly," she said.

Entrain is currently only available for iOS, but the developers say an Android version is in the works. And if you're smartphone-averse, all of the tables used in the app can be found in the team's published research at PLoS.