The first graph is correct. The population rises above then below the carrying capacity repeatedly. When the population rises above the carrying capacity, the population can no longer be supported and so it will decrease. When the population decreases below the carrying capacity, there will be more available resources so the population can grow.