p2+q2+2pq is the Hardy - Weinberg equation which is used to determine or predict the relative frequency of different alleles even if there is population growth.
Here p2 represent the frequency of a homozygous dominant allele (AA), q2 represents the frequency of homozygous recessive allele (aa) and 2pq is the frequency of heterozygotes (Aa)
The sum of all these frequencies is dominant + recessive, plus two heterozygous dominant, which can also be expressed as capital A capital A, plus a small, plus two times A capital A small a. When the frequency measured differs from the expected values, the difference indicates the extent of evolutionary change in the population.