Differential Equations -- Diagnostic Tests
Differential Equations — Diagnostic Tests
Unit Tests
Tests edge cases, boundary conditions, and common misconceptions for differential equations.
UT-1: Separable Equation with Hidden Singular Solutions
Question:
Solve the initial value problem with .
A student separates variables and writes Obtaining . Using : So .
(a) Verify that (the constant zero function) is also a solution to the IVP. (b) Explain why the existence and uniqueness theorem for first-order ODEs does not apply here. (c) Find a third solution to the IVP (showing the solution is not unique).
Solution:
(a) If for all Then and So the ODE is satisfied. Also . So is a solution.
(b) The existence and uniqueness theorem (Picard-Lindelof) requires where and are continuous near . Here And Which is undefined at . Therefore the theorem does not guarantee uniqueness.
(c) A third solution can be constructed by patching:
y(x) = \begin{cases} 0 & \text{if x \leq a \\ \left(\dfrac{x - a}{3}\right)^3 & \text{if x > a \end{cases}
For any . At : from both sides, and from both sides (since at ). So this is a valid solution. For This gives:
y(x) = \begin{cases} 0 & \text{if x \leq 0 \\ \dfrac{x^3}{27} & \text{if x > 0 \end{cases}
This is a third distinct solution to the IVP.
The misconception: students assume separation of variables always produces the unique solution. When has a zero, the constant solution (or the constant at the zero of ) may also be a solution, and non-uniqueness can arise.
UT-2: Euler’s Method Step Size Error Analysis
Question:
Use Euler’s method with step size to approximate for the initial value problem , . Then use and compare. The exact solution is .
(a) Compute both approximations. (b) Compute the exact error for each. (c) Halving the step size roughly quarters the error for Euler’s method. Does your result confirm this? If not, explain why.
Solution:
(a) With Starting at :
| Step | y_{\text{new} = y + 0.5 \cdot y' | |||
|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 1.5 |
| 1 | 0.5 | 1.5 | 2.0 | 2.5 |
| 2 | 1.0 | 2.5 | 3.5 | 4.25 |
| 3 | 1.5 | 4.25 | 5.75 | 7.125 |
Approximation: .
With Starting at :
| Step | y_{\text{new} | |||
|---|---|---|---|---|
| 0 | 0 | 1 | 1 | 1.25 |
| 1 | 0.25 | 1.25 | 1.5 | 1.625 |
| 2 | 0.5 | 1.625 | 2.125 | 2.15625 |
| 3 | 0.75 | 2.15625 | 2.90625 | 2.8828125 |
| 4 | 1.0 | 2.8828125 | 3.8828125 | 3.853515625 |
| 5 | 1.25 | 3.853515625 | 5.103515625 | 5.129394531 |
| 6 | 1.5 | 5.129394531 | 6.629394531 | 6.786743164 |
| 7 | 1.75 | 6.786743164 | 8.536743164 | 8.920428955 |
Approximation: .
(b) Exact: .
Error with : . Error with : .
(c) Ratio: (not 4).
The error should scale as for Euler’s method (first-order), so halving should approximately halve the error, not quarter it. Quartering occurs for second-order methods (like improved Euler or Runge-Kutta). The result approximately confirms this: the error ratio is about 2.
The misconception: students often confuse the error order of different numerical methods, or they incorrectly assume that halving the step size always quarters the error.
UT-3: Logistic Growth with Non-Standard Carrying Capacity
Question:
A population satisfies the logistic differential equation:
With and carrying capacity . Suppose the population is growing fastest when .
(a) Find . (b) Find the particular solution . (c) At what time does the population reach ?
Solution:
(a) The logistic growth rate is maximized when . Given the maximum growth occurs at :
(b) The general solution to the logistic equation is:
Where . With K = 500$$P_0 = 100$$r = 0.04:
(c) Set :
The population reaches of carrying capacity at approximately time units.
Integration Tests
Tests synthesis of differential equations with other topics.
IT-1: Slope Field Synthesis with Definite Integrals (with Integrals)
Question:
A slope field for is drawn in the region , .
(a) Sketch the solution curve passing through . (b) A student claims that no solution curve can cross the -axis. Justify this claim using the existence and uniqueness theorem. (c) The solution through is a hyperbola. Find its equation and compute the arc length of this curve from to .
Solution:
(a) The slope field for has slopes that are positive in quadrants I and III (where and have the same sign) and negative in quadrants II and IV. Along the slope is ; along the slope is . The slopes are very steep near and nearly horizontal near . The solution through lies in quadrant I and is concave up (since Which is positive for ).
(b) is undefined when So the existence and uniqueness theorem does not apply on the -axis. A solution curve approaching would have Meaning the curve becomes vertical. Since the ODE is not defined on No solution curve can cross it.
(c) Separate variables: . Integrate: . Using : .
Arc length from to :
This integral does not have an elementary antiderivative. It can be evaluated numerically or expressed in terms of elliptic integrals. The setup itself tests whether students correctly compute from the implicit solution and set up the arc length integral.
IT-2: Separable DE Leading to Improper Integral (with Limits)
Question:
Solve with initial condition .
A student separates variables and writes:
Using : Giving .
(a) Identify the domain issues with this solution. (b) Does a solution exist on any interval containing ? Justify using the existence and uniqueness theorem. (c) If the initial condition is changed to Find the solution and determine its maximal interval of existence.
Solution:
(a) The “solution” requires I.e., . But the initial condition is at Where and . The domain does not include any interval around (it only includes as a boundary point). This is not a valid solution on any open interval.
(b) is undefined at (both and cause problems, but here specifically makes undefined). The existence and uniqueness theorem does not apply. In fact, no solution exists on any interval containing because the ODE is undefined when .
(c) With : is continuous near So a unique solution exists.
(We take the positive branch since .)
Domain: .
Maximal interval of existence: (excluding where is undefined, and the initial condition at places us on ). The maximal interval containing is .
IT-3: Qualitative Analysis with Phase Line (with Derivatives)
Question:
Consider the autonomous differential equation .
(a) Find all equilibrium solutions and classify their stability. (b) A student claims that since is a repeated root of The equilibrium at is “doubly stable.” Is this correct? (c) If Determine and . (d) For what initial values does as ?
Solution:
(a) Equilibrium solutions: , , .
Let . Test the sign of in each region:
| Region | Test point | sign | Behavior |
|---|---|---|---|
| Increasing | |||
| Decreasing | |||
| Increasing | |||
| Increasing |
Stability classification:
- : changes from to So solutions approach from above and leave from below. For : means increases toward . For : means decreases toward . So is stable (asymptotically stable).
- : changes from (just below 0, i.e., ) to (just above 0, i.e., ). So solutions move away from from both sides. Unstable.
- : for and for . Solutions increase through from below and continue increasing above. Semistable (solutions approach from below but depart from above).
(b) No. The multiplicity of the root affects the nature of the equilibrium, but “doubly stable” is not the correct interpretation. A root of even multiplicity in at an equilibrium means the equilibrium is a node — semistable, with solutions approaching from one side and departing from the other. The “double root” makes Which means the linearization test is inconclusive and we must use the sign chart instead.
(c) is in the region where So increases. Since is semistable (solutions pass through from below), increases toward asymptotically (it never actually reaches it in finite time). As : .
As : tracing backward, decreases from 1 toward the equilibrium below, which is . So as .
(d) as for any . For : (equilibrium). For : increases without bound (no equilibrium above ). For : does not approach .
Answer: .
Summary
The key principles covered in this topic are linked in the sub-pages above. Focus on understanding the definitions, applying the formulas or frameworks, and evaluating strengths and limitations of each approach.
Worked Examples
Worked examples demonstrating the application of key concepts are covered in the detailed sub-pages linked above.
Common Pitfalls
- Confusing terminology or concepts that appear similar but have distinct meanings.
- Overlooking key assumptions or boundary conditions that limit applicability.