Ups and downs are important in life, proven by mathematics