Mechanics and mathematical modeling