How Natural Selection Works
Let us imagine a population of green and brown beetles. Organisms exhibit individual variation, in this case,in terms of colour. Although we are more conscious of human diversity than individuality in populations of plants and animals, Darwin calls these slight differences between individuals the 'raw material' for natural selection.
Individuals possessing traits more suited to the environment will contribute more offspring to the next generation.In this case, green beetles tend to get eaten more often by birds and reproduce less often than the brown variety. Hence, there is differential reproduction.
Owing also to the fact that the environment cannot support unlimited population growth and not all individuals get to reproduce to their full potential, there is a high population growth rate where competition for scarce resources leads to mortality faced by each generation.
As a result, the surviving brown beetles have more offspring and pass down the advantageous trait to their young. Thus, there is heredity because the brown colour trait has a genetic basis. Should this process repeat itself, allinsividuals in the beetle population will eventually be brown.