Consider a large haploid bacterial culture undergoing continuous chemostat growth where a mutant allele A arises that has a very small selective advantage s over the ancestral allele a, such that the relative growth rates are 1+s and 1.00, respectively. The frequency of the beneficial allele over time is governed by the differential equation dtdp=s⋅p(1−p), where t is measured in generations. (a) Derive the expression for the time t required for the allele frequency to shift from an initial value p0 to a final value pt. (b) In the asymptotic limit where a newly arisen mutation at frequency p0=1.00×10−4 sweeps toward fixation (pt→1), calculate the number of generations t required for the allele to reach p=0.999, assuming a selective advantage of s=0.0200. Express your answer to three significant figures.
Consider a large haploid bacterial culture undergoing continuous chemostat growth where a mutant allele A arises that has a very small selective advantage s over the ancestral allele a, such that the relative growth rates are 1+s and 1.00, respectively. The frequency of the beneficial allele over time is governed by the differential equation dtdp=s⋅p(1−p), where t is measured in generations. (a) Derive the expression for the time t required for the allele frequency to shift from an initial value p0 to a final value pt. (b) In the asymptotic limit where a newly arisen mutation at frequency p0=1.00×10−4 sweeps toward fixation (pt→1), calculate the number of generations t required for the allele to reach p=0.999, assuming a selective advantage of s=0.0200. Express your answer to three significant figures.
Common Mistakes & Teacher Diagnosis
01 The student forgets to apply the chain rule when integrating 1/(1 - p), missing the negative sign and producing an incorrect logarithm difference.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 11
p(1−p)dp=sdt⟹p(1−p)1=p1+1−p1
- Step 22
∫(p1+1−p1)dp=ln(p)+ln(1−p)
Correct∫(p1+1−p1)dp=ln(p)−ln(1−p)=ln(1−pp)
When integrating 1−p1 with respect to p, the derivative of the denominator is dpd(1−p)=−1. By u-substitution, ∫1−p1dp=−ln(1−p), not +ln(1−p).
Made a similar mistake?Check my work on ACEpath → - Step 33
\ln[p(1-p)]\Big|_{p_0}^{p_t} = s\cdot t \implies t = \frac{1}{s}\ln\left[\frac{p_t(1-p_t)}{p_0(1-p_0)} ight]_
Correct\left[\ln\left(\frac{p}{1-p}\right)\right]_{p_0}^{p_t} = s\cdot t \implies t = \frac{1}{s}\ln\left(\frac{p_t(1-p_0)}{p_0(1-p_t)} ight)_
Because of the missing negative sign in the integral, you combined the logarithms as a product rather than a quotient (the logit/odds ratio).
- Step 44
t=0.02001ln[1.00×10−4⋅0.99990.999⋅0.001]⟹t=115 generations
Correctt=0.02001ln[(1.00×10−4)×0.0010.999×0.9999]≈806 generations
You substituted the numerical parameters into your derived formula correctly and evaluated it accurately, but the result was altered by the sign error from part (a).
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly separated the differential variables to prepare for integration.
You decomposed p(1−p)1 into correct partial fraction terms.
You correctly executed the arithmetic and logarithmic calculations with the given parameter values in part (b).
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou treated ∫1−p1dp as ln(1−p) instead of −ln(1−p).
WHY IT HAPPENED
ACEpath Teacher's DiagnosisOverlooking the inner derivative dpd(a−p)=−1 during u-substitution when integrating reciprocals of linear binomials.
REASONING PATH
Your ACEpath teacher’s suggested approach- Linear Substitution Rule for Reciprocals
For any constant a, ∫a−u1du=−ln∣a−u∣+C because d(a−u)=−du.
Differentiate your proposed antiderivative mentally: dpd[ln(1−p)]=1−p−1, which reveals the need for a compensatory negative sign.
- Biological Sense Check on Selection Trajectory
Allele frequency changes under selection follow a log-odds transformation ln(1−pp), mapping p∈(0,1) monotonically to (−∞,∞).
Check that the integrated function increases as p approaches fixation (p→1); p(1−p) is symmetric and drops near 1, whereas 1−pp increases monotonically.
CORRECTED PATH
ACEpath Teacher's DemonstrationApply u=1−p (du=−dp) so that ∫1−p1dp=−ln(1−p).
Combine logarithms using subtraction: ∫p0pt(p1+1−p1)dp=[ln(p)−ln(1−p)]p0pt=[ln(1−pp)]p0pt.
Set equal to ∫0tsdt=st, giving \ln\left(\frac{p_t}{1-p_t}\right) - \ln\left(\frac{p_0}{1-p_0}\right) = st \implies t = \frac{1}{s}\ln\left(\frac{p_t(1-p_0)}{p_0(1-p_t)} ight).
Substitute p0=1.00×10−4, pt=0.999, and s=0.0200: p0(1−pt)pt(1−p0)=1.00×10−70.999×0.9999≈9.989×106.
Calculate t=0.0200ln(9.989×106)=0.020016.117≈806 generations.
(a) t = \frac{1}{s}\ln\left(\frac{p_t(1-p_0)}{p_0(1-p_t)} ight); (b) t=806 generations
NEXT STEPS
Final Takeaways from Your TeacherPractice integrating expressions of the form c−kx1 with explicit u-substitution to avoid missing negative coefficients.
Verify your population genetics formulas by checking asymptotic behavior: sweeping toward pt→1 must take much longer (t→∞) than reaching an intermediate frequency.
02 The student ignores the ancestral allele depletion term (1 - p) by mistaking logistic allele growth for simple exponential growth, leading to dp/dt = s · p.
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 11
dtdp=s⋅p⟹pdp=sdt
Correctdtdp=s⋅p(1−p)⟹p(1−p)dp=sdt
You dropped the factor (1−p) from the differential equation provided in the problem statement, which models the finite availability and replacement of the ancestral allele.
Made a similar mistake?Check my work on ACEpath → - Step 22
ln(pt/p0)=s⋅t⟹t=s1ln(p0pt)
Correct\int_{p_0}^{p_t} \left(\frac{1}{p} + \frac{1}{1 - p}\right) dp = \int_0^t s\,dt \implies t = \frac{1}{s}\ln\left(\frac{p_t(1 - p_0)}{p_0(1 - p_t)} ight)
Your integration technique was mathematically valid for your stated equation, but because the (1−p) term was missing, you integrated p1 instead of using partial fractions on p(1−p)1.
- Step 33
t=(0.02001)⋅ln(1.00×10−40.999)⟹t=50⋅ln(9990)≈460 generations
Correctt = \frac{1}{0.0200}\ln\left(\frac{0.999(1 - 1.00 \times 10^{-4})}{(1.00 \times 10^{-4})(1 - 0.999)} ight) \approx 806\text{ generations}
You substituted the numerical parameters accurately and calculated the logarithm correctly, but using the exponential model severely underestimated the total time by neglecting the deceleration that occurs as p→1.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly identified separation of variables as the right analytical technique to solve for time t.
You evaluated natural logarithms and solved for t accurately from your working equation.
You correctly substituted the numerical constants p0, pt, and s in part (b).
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeYou accidentally dropped the (1−p) term when copying the differential equation dtdp=s⋅p(1−p).
WHY IT HAPPENED
ACEpath Teacher's DiagnosisConfusing relative allele frequency dynamics with unconstrained absolute population growth, overlooking that an increase in beneficial allele frequency p requires a corresponding decrease in alternative allele frequency (1−p), making growth logistic rather than exponential.
REASONING PATH
Your ACEpath teacher’s suggested approach- Allele Frequency Boundaries
Allele frequencies are proportions bounded between 0 and 1, where p+q=1.
Always check whether your rate equation approaches zero as p→1. If dtdp>0 when p=1, the equation allows p to exceed 1, which is biologically impossible.
- Partial Fraction Integration
p(1−p)1=p1+1−p1, which integrates to ln(p)−ln(1−p)=ln(1−pp).
When separating variables for logistic selection, integrate both fractions to obtain the change in log-odds ln(1−pp).
CORRECTED PATH
ACEpath Teacher's DemonstrationSeparate variables: p(1−p)dp=sdt.
Decompose into partial fractions: (p1+1−p1)dp=sdt.
Integrate from (0,p0) to (t,pt): \left[\ln\left(\frac{p}{1 - p}\right)\right]_{p_0}^{p_t} = st \implies t = \frac{1}{s}\ln\left(\frac{p_t(1 - p_0)}{p_0(1 - p_t)} ight)._
Substitute s=0.0200, p0=1.00×10−4, and pt=0.999: p0(1−pt)pt(1−p0)=1.00×10−4×1.00×10−30.999×0.9999≈9.989×106.
Calculate t: t=0.0200ln(9.989×106)=0.020016.117≈805.85≈806 generations.
(a) t = \frac{1}{s} \ln\left(\frac{p_t(1 - p_0)}{p_0(1 - p_t)} ight); (b) t=806 generations
NEXT STEPS
Final Takeaways from Your TeacherReview partial fraction decomposition for expressions of the form x(1−x)1.
Practice sketching dtdp versus p to visualize why selection slows down when p≈0 and p≈1.
03 The student uses base-10 common logarithm instead of the natural logarithm when integrating 1/x, resulting in an answer scaled down by ln(10).
Sample Student Work
Reviewed by ACEpath TeacherStep-by-Step Review
Walk Through It with Your Teacher- Step 11
p(1−p)dp=sdt⟹p(1−p)1=p1+1−p1
- Step 22
∫(p1+1−p1)dp=log(p)−log(1−p)⟹t=s1⋅log[p0(1−pt)pt(1−p0)]
Correct∫(p1+1−p1)dp=ln(p)−ln(1−p)⟹t=s1ln[p0(1−pt)pt(1−p0)]
The antiderivative of x1dx is the natural logarithm ln(x) (base e), not the common logarithm log10(x). Writing and treating this as a base-10 logarithm introduces an error of factor ln(10).
Made a similar mistake?Check my work on ACEpath → - Step 33
t=(0.02001)⋅log[1.00×10−4⋅0.0010.999⋅0.9999]⟹t=50⋅log(9.989×106)⟹t=50⋅6.9995
Correctt=(0.02001)⋅ln[1.00×10−4⋅0.0010.999⋅0.9999]⟹t=50⋅ln(9.989×106)⟹t=50⋅16.117
You evaluated the odds ratio arithmetic correctly, but you computed the base-10 logarithm log10(9.989×106)≈6.9995 rather than the natural logarithm ln(9.989×106)≈16.117.
- Step 44
t=350 generations
Correctt=806 generations
Because of using base 10 instead of base e, your final numerical value is roughly 350 generations instead of 806 generations.
WHAT YOU DID WELL
Compliments from Your TeacherYou correctly separated variables and set up the differential equation.
You accurately completed the partial fraction decomposition of p(1−p)1.
You correctly substituted the numerical initial and boundary conditions into the algebraic form.
THE ERROR
Where Your ACEpath Teacher Spotted the MistakeNo, this was a conceptual error in calculus integration rules rather than a simple arithmetic slip.
WHY IT HAPPENED
ACEpath Teacher's DiagnosisYou treated the antiderivative of x1dx as a base-10 logarithm rather than the natural logarithm (base e), which caused the evaluated time t to be multiplied by log10(e)=ln(10)1≈0.434.
REASONING PATH
Your ACEpath teacher’s suggested approach- Standard Antiderivative Rule
∫u1du=ln∣u∣+C, where ln is the natural logarithm with base e≈2.718.
Always write and compute ln (natural log) when solving differential equations and integrating reciprocal functions.
- Base-10 Conversion Check
log10(x)=ln(10)ln(x), meaning ln(x)=ln(10)⋅log10(x)≈2.3026⋅log10(x).
If you ever compute log10 by habit, multiply the result by ln(10)≈2.303 to recover the true natural logarithm.
CORRECTED PATH
ACEpath Teacher's DemonstrationEvaluate the natural logarithm of the odds ratio: ln(9.989×106)≈16.117.
Multiply by s1=0.02001=50: t=50×16.117=805.85.
Round to three significant figures.
t=806 generations
NEXT STEPS
Final Takeaways from Your TeacherReview the fundamental integration formulas to ensure you associate ∫x1dx directly with ln∣x∣.
Check whether your calculator is set to the natural logarithm button (ln) or the common logarithm button (log) when working with calculus problems.
Practice integrating logistic growth equations to build automaticity with odds ratios and natural logs.
Foundational Rules & Step-by-Step Breakdown
Part (a): Deriving the Time Required for Allele Frequency Change
The rate of change of the beneficial allele frequency p over time t (measured in generations) is modeled by the logistic selection equation: dtdp=s⋅p(1−p)
To find the time t required for the frequency to increase from an initial value p0 to a final value pt, separate the variables: p(1−p)dp=sdt
Use partial fraction decomposition on the left-hand side: p(1−p)1=p1+1−p1
Now, integrate both sides from the initial state (t=0,p=p0) to the final state (t,p=pt): ∫p0pt(p1+1−p1)dp=∫0tsdt
Evaluate the definite integrals: [ln(p)−ln(1−p)]p0pt=s⋅t
Combine the logarithmic terms: [ln(1−pp)]p0pt=s⋅t ln(1−ptpt)−ln(1−p0p0)=s⋅t ln(p0(1−pt)pt(1−p0))=s⋅t
Solving for t yields: t=s1ln(p0(1−pt)pt(1−p0))
Part (b): Calculating the Number of Generations
Substitute the given values into the derived equation:
- Initial frequency: p0=1.00×10−4, so 1−p0=1−0.000100=0.9999
- Final frequency: pt=0.999, so 1−pt=1−0.999=0.001
- Selection coefficient: s=0.0200
Compute the argument of the natural logarithm (the odds ratio): p0(1−pt)pt(1−p0)=(1.00×10−4)×(1.00×10−3)0.999×0.9999=1.00×10−70.9989001≈9.989×106
Evaluate the natural logarithm: ln(9.989×106)≈16.117
Divide by the selection coefficient s: t=0.020016.117≈805.85 generations
Rounding to three significant figures gives: t=806 generations
Common Pitfall: Remember that natural selection is slowest when p is extremely close to 0 or 1 because the product p(1−p) becomes very small. The majority of generations during a selective sweep are spent during these initial and final phases rather than the rapid rise through intermediate frequencies.
Check Final Answer
(a) t=s1ln(p0(1−pt)pt(1−p0))
(b) t=806 generations
Lock It In
What is the antiderivative ∫1−x1dx, and why is there a negative sign?
−ln∣1−x∣+C. Using substitution u=1−x, du=−dx, which introduces a factor of −1.
Similar Questions & Related Knowledge
Similar Questions
A continuous haploid selection model satisfies dtdp=s⋅p(1−p). If an advantageous allele has selection coefficient s=0.050, how many generations are required for its frequency to increase from p0=0.10 to pt=0.90?
Answer
t = \frac{1}{s}\ln\left(\frac{p_t(1 - p_0)}{p_0(1 - p_t)} ight) = \frac{1}{0.050}\ln\left(\frac{0.90 \times 0.90}{0.10 \times 0.10}\right) = 20 \ln(81) \approx 87.9\text{ generations}.
In a chemostat, the frequency of an allele declines under negative selection according to dtdp=−s⋅p(1−p) with s=0.010. Derive the time t required for the allele frequency to drop from p0=0.80 to pt=0.20, paying careful attention to the integration signs.
Answer
Separating variables gives ∫p0pt(p1+1−p1)dp=−s∫0tdt⟹[ln(1−pp)]p0pt=−st. Thus t = \frac{1}{s}\ln\left(\frac{p_0(1 - p_t)}{p_t(1 - p_0)} ight) = \frac{1}{0.010}\ln\left(\frac{0.80 \times 0.80}{0.20 \times 0.20}\right) = 100 \ln(16) \approx 277\text{ generations}._
A diploid population undergoes selection favoring a completely dominant beneficial allele A with frequency p, modeled by dtdp=s⋅p(1−p)2. Write down the partial fraction decomposition needed to integrate ∫p(1−p)2dp and find its antiderivative.
Answer
Decomposition: p(1−p)21=p1+1−p1+(1−p)21. Integrating each term gives: ∫p1dp=ln∣p∣, ∫1−p1dp=−ln∣1−p∣, and ∫(1−p)−2dp=1−p1. Combining terms gives ln1−pp+1−p1+C.
Related Knowledge
- 01Explain natural selection
- 02Differentiate adaptation, variation and selection pressures
- 03Explain behavior using adaptation and natural selection
- 04Explain that evolution occurs in populations, not individuals
- 05Explain mutation, gene flow, genetic drift, and natural selection
- 06Evidence to support or evaluate evolutionary explanations