In a given population one can find out the frequency of occurence of alleles of a gene or a locus. This frequency is supposed to remain fixed and even remain the same through generations. Hardy-Weinberg principle stated it using algebraic equations.
This principle says that allele frequencies in a population are stable and is constant from generation to generation. The gene pool (total genes and their alleles in a population) remains a constant. this is called genetic equilibrium. Sum total of all the allelic frequencies is 1. Individual frequencies, for example, can be named p, q, etc. In a diploid, p and q represent the frequency of allele A and allele a. The frequency of AA individuals in a population is simply p2. This is simply stated in another ways, i.e., the probability that an allele A with a frequency of p appear on both the chromosomes of a diploid individual is simply the product of the probabilities, i.e., p2. Similarly of aa is q2, of Aa 2pq. Hence, p2 + 2pq + q2 = 1. This is a binomial expansion of (p + q)2. When frequency measured, differs from expected values, the difference (direction) indicates the extent of evolutionary change. Disturbance in genetic equilibrium, or Hardy-Weinberg equilibrium, i.e., change of frequency of alleles in a population would then be interpreted as resulting in evolution.