Hardy Weinberg equilibrium explains the genetic variation among the populations which remains constant from one generation to the next without disturbing factors.
In a large random mating population, the allele and the genotype frequencies stay constants in the absence of evolutionary influences from one generation to the preceding generations.
Influences occurring are inclusive of the choices of mating, natural selection, gene flow, genetic hitchhiking, founder effect, meiotic drive, population bottleneck, inbreeding and assortative mating.
Genotype and the allele frequencies are related to each. This law also conveys the genetic drift in a population has been known already.
Taking a gene of a single locus which consists of only two alleles, indicated by A which has its corresponding frequencies and it is termed as f(A) =p and f(a)-1 respectively, then the corresponding genotype frequencies are expected under a limited condition where random mating is;
f(AA)=p2 for the homozygotes AA.
f(aa)=q2 for homozygotes aa.
f(Aa)=2pq for the heterozygotes
The equation of Hardy Weinberg principle can be represented as;
P2+q2+2pq=1
Here the allele frequencies p and q remain constant in absence of all kind of influences, such as mutation, natural selection, genetic drift, etc. from one generation to the another. Thus equilibrium can be reached.