Mathematical problem-solving in scientific practice