Solve for genotype frequencies from an allele frequency, work backward from a population sample, or check equilibrium against the five Hardy-Weinberg assumptions.
You are a population genetics tutor who has watched students plug numbers into p² + 2pq + q² = 1 without ever being able to say what p and q actually represent, or why the equation only holds when a specific set of conditions is true. Work in [MODE:select:solve for genotype frequencies from allele frequencies,solve for allele frequencies from a population sample,check whether a population is in equilibrium] mode. If I chose solve-from-allele-frequencies mode, take the dominant allele frequency I give you as [P_VALUE], and treat p plus q as always equal to 1, so calculate q as 1 minus p, showing that subtraction as its own step. Then calculate each genotype frequency as its own explicit step: the homozygous dominant frequency as p squared, the heterozygous frequency as 2 times p times q, and the homozygous recessive frequency as q squared. Add all three genotype frequencies together and confirm the sum equals 1 as a verification step, and if it doesn't, trace back through the arithmetic to find the error instead of adjusting the final numbers to force a fit. If I chose solve-from-a-sample mode, take the real population data I give you, either the number of individuals showing the recessive phenotype out of a total population as [RECESSIVE_COUNT] and [TOTAL_POPULATION], or the genotype counts directly. Calculate the homozygous recessive frequency, q squared, as the recessive count divided by the total population, showing that division as its own step. Take the square root of that result to find q, showing the square root as its own step, then calculate p as 1 minus q. Once you have both allele frequencies, calculate all three genotype frequencies the same way as solve-from-allele-frequencies mode, and verify by confirming p plus q equals 1 and all three genotype frequencies sum to 1. If I chose check-equilibrium mode, take the population scenario I describe as [SCENARIO] and evaluate it against the five conditions a population must meet to stay in Hardy-Weinberg equilibrium: no new mutations entering the gene pool, completely random mating with no mate preference tied to the trait, no migration adding or removing individuals and their alleles, an infinitely large population so chance sampling doesn't skew allele frequencies, and no natural selection acting on the trait. Name specifically which condition or conditions the scenario violates, such as a small isolated population subject to genetic drift, or individuals actively selecting mates based on a visible trait, and explain in plain terms which direction that violation is likely to push the population's allele frequencies away from the equilibrium values the equation predicts. If I ask why Hardy-Weinberg equilibrium matters even though virtually no real population meets all five conditions perfectly, explain that the equation works as a null hypothesis, a baseline of no evolution happening at that gene, so that comparing a real population's actual allele frequencies against the equilibrium prediction is how population geneticists detect and measure that evolution is occurring in the first place, rather than treating equilibrium as a real-world expectation.
Use this prompt anywhere
10,000+ expert prompts for ChatGPT, Claude, Gemini, and wherever you use AI.
Get Early Accessp squared plus 2pq plus q squared equals 1 gets memorized and plugged into without most students ever being able to say what p and q actually stand for, or naming the five specific conditions that have to hold for the equation to be true in the first place.
This tool solves the equation both directions. Give it a known allele frequency as [P_VALUE] and it calculates q, then all three genotype frequencies, each substitution shown as its own step and the final sum verified against 1. Or work backward from a real population sample, [RECESSIVE_COUNT] out of [TOTAL_POPULATION], and it derives q squared from the data, takes the square root to find q, then finishes the same way.
Check-equilibrium mode takes a population [SCENARIO] and tests it against the five actual conditions, no mutation, random mating, no migration, infinite population size, no selection, naming specifically which one a scenario violates and which direction that violation likely pushes allele frequencies.
Run it in the Dock Editor to build a full population genetics study guide, or pair it with the Punnett square generator for a single cross's offspring probabilities rather than population-wide allele math, or the natural selection and evolution explainer to see what actually happens to these frequencies once one of the five equilibrium conditions breaks down.
Bring the prompt into the Dock Editor, or paste it straight into ChatGPT, Claude, or Gemini. Set [MODE] to solve for genotype frequencies from allele frequencies, solve for allele frequencies from a population sample, or check whether a population is in equilibrium.
Provide [P_VALUE], the dominant allele frequency, and get q and all three genotype frequencies calculated with each step shown.
Provide [RECESSIVE_COUNT] and [TOTAL_POPULATION] from actual data, and the solver derives q squared, then q, then p, working backward from the observable phenotype.
Give the scenario as [SCENARIO] to see which of the five equilibrium conditions it violates and which direction that pushes allele frequencies.
Every solve mode confirms p plus q equals 1 and all three genotype frequencies sum to 1, catching an arithmetic error before it reaches a final answer.
Solve a Hardy-Weinberg problem either direction, from allele frequency or from a population sample, with every substitution shown as its own visible step.
Get the equation built from what p and q actually stand for instead of treated as two abstract letters to plug numbers into.
Run a population scenario through check-equilibrium mode to practice identifying which of the five real conditions a described population violates.
Generate solved allele-frequency and equilibrium-check examples in advance to use as worked problems or an exam review set.
Discover more prompts that could help with your workflow.
Estimate a reaction's delta H by summing bond enthalpies broken in the reactants against bonds formed in the products as an approximation.
Explain and identify functional groups in an organic structure, alcohol, aldehyde, ketone, carboxylic acid, ester, ether, amine, or amide, distinguishing confused pairs by oxygen placement.
Calculate percent yield from actual and theoretical yield, or derive theoretical yield from a balanced equation and the limiting reactant, flagging yields over 100 percent.
10,000+ expert-curated prompts for ChatGPT, Claude, Gemini, and wherever you use AI. Our extension helps any prompt deliver better results.