Here's an AP Calculus exam question in differential equations:
When have you ever seen a differential equation of this form used?
What is this problem about?
There are many ways to make a mistake. How do you know if you have it right? By getting one of the answers, unless they tricked you by anticipating the mistake you made.
ya = makeFun(((3/4) * x^4)^(1/3) ~ x)
yb = makeFun(((3/4) * x^4)^(1/3) + (15)^(1/3) ~ x)
yc = makeFun(((3/4) * x^4)^(1/3) + 15 ~ x)
yd = makeFun(((3/4) * x^4 + 5)^(1/3) ~ x)
ye = makeFun(((3/4) * x^4 + 15)^(1/3) ~ x)
c(ya(2), yb(2), yc(2), yd(2), ye(2))
## [1] 2.289 4.756 17.289 2.571 3.000
x = 1:5
yf = ya
dydx = D(yf(x) ~ x)
dydx(x) - x^3/yf(x)^2
## [1] 0.000e+00 0.000e+00 -8.882e-16 -6.661e-16 -1.332e-15
yf = yb
dydx = D(yf(x) ~ x)
dydx(x) - x^3/yf(x)^2
## [1] 1.1236 1.1726 1.0874 0.9793 0.8781
yf = yc
dydx = D(yf(x) ~ x)
dydx(x) - x^3/yf(x)^2
## [1] 1.207 1.500 1.672 1.775 1.830
yf = yd
dydx = D(yf(x) ~ x)
dydx(x) - x^3/yf(x)^2
## [1] -5.551e-17 -4.441e-16 -1.332e-15 -6.661e-16 -1.332e-15
yf = ye
dydx = D(yf(x) ~ x)
dydx(x) - x^3/yf(x)^2
## [1] -2.776e-17 -2.220e-16 -8.882e-16 -1.554e-15 -1.332e-15
(b) and ( c ) don't satisfy the equation. Now at least we know the form of the solution!
Here is [part of] the treatment given in MathQuest Maths C Year 12 for Queensland,
We will begin by stating …
\[ \frac{dN}{dt} = a N - b N^2 \] …
From this we may say
\[ \int \frac{dN}{N(a-bN)} = \int dt \]
Consider breaking the expression \( \frac{1}{N(a-bN)} \) into partial fractions
… a half page later …
\[ \int \frac{dN}{N(a-bN)} = \int \left( \frac{1/a}{N} + \frac{b/a}{a-bN} \right) dN \]
… another half page of algebra …
With some algebraic manipulation, it follows that :
\[ N(t) = \frac{\frac{a}{b}N_0}{N_0 + \left( \frac{a}{b} - N_0 \right) e^{-at}} \]
Two significant features emerge from this solution:
Feature 1: \( \lim_{\rightarrow \infty} N(t) = a/b \). This value is called the limiting population.
Feature 2: a long paragraph later … \( N_{maximal} = \frac{a}{2b} \).
Similar treatments are given in many textbooks and on the web web example:
A video about the logistic equation. Finding what time the population will reach 450 when it starts from 500 and the carrying capacity is 400. As the speaker says, “It's really more just algebraic than anything.” He finds \( t=0.75 \).
Perhaps better to use the computer rather than a calculator.
pop = integrateODE(dP ~ 0.8 * P * (1 - P/K), P = 500, K = 400, tdur = 1)
findZeros(pop$P(t) - 450 ~ t, t.lim = c(0, 1))
## [1] 0.7347
Or,
findZeros(K/(1 - 0.2 * exp(-0.8 * t)) ~ t, K = 400, t.lim = c(0,
1))
## Warning: No zeros found. You might try modifying your search window or
## increasing npts.
## numeric(0)
Which answer is right?