First order ODEs and environmental balance
A differential equation connects a state to its rate of change. A balance model starts from a simple accounting principle: rate of stored amount equals input minus output plus internal production. Writing that principle before selecting a solution formula prevents unit errors and missing volume factors.
1 States initial conditions and existence
A first-order ODE has form . A solution is a differentiable function satisfying it on an interval. An initial condition selects a trajectory when uniqueness holds.
A useful local theorem is: if is continuous near and locally Lipschitz in there, then a unique local solution exists. Continuous is a sufficient Lipschitz condition on a smaller rectangle by the mean value theorem. This is a local result; solutions can still blow up in finite time, as , , with solution shows. A full proof uses contraction of the integral map on a short interval: boundedness keeps it in a closed function ball, and the Lipschitz constant times interval length makes it a contraction. Uniform completeness and geometric error bounds give the unique fixed point, which the fundamental theorem turns into the solution.
2 Linear equations and the integrating factor
For with continuous coefficients, define . It is positive and . The product rule gives , hence
This derives the formula, proves existence and proves uniqueness directly for linear equations. Homogeneous solutions are multiplied by the decaying or growing factor .
3 A well-mixed reservoir
A reservoir has constant positive volume , input and output volume rate , incoming concentration , and first-order removal rate . Let be stored contaminant mass and . Assuming perfect mixing, output mass rate is . The balance is
Equivalently,
If and the inputs are constant, the equilibrium is and
The exponential rate has units inverse time. The solution approaches , not necessarily because internal removal may persist. If the volume varies, the identity differentiates to ; using the constant-volume concentration equation would then omit a term.
For , , in consistent units and , the equilibrium is 4 and . With initially clean water, half the equilibrium level is reached at .
4 Separable equations and equilibrium caution
For with , nonzero nonequilibrium solutions separate:
Integrating partial fractions and applying a positive initial value gives
For positive initial value, this formula holds on the maximal interval containing on which its denominator is nonzero. It is valid for every ; if , its extension into the past has a finite-time pole and is not a solution through that pole. The equilibria and must be recorded separately before dividing by . For , the solution increases toward . Such a logistic model is a specified phenomenological assumption, not a universal ecological law.
The uniform Lipschitz theorem, including finite real systems
Here is the precise meaning and proof of the local Lipschitz assumption used above. Let be finite, let be open, and let be continuous. Around assume there are and such that the closed cylinder is contained in , and
The same works for every time in the rectangle. Continuity of the derivative with respect to is one sufficient way to obtain this bound by integrating along the segment in the closed ball, but existence of that derivative is not required in the theorem.
Continuity and compactness give on . Set , , and . Consider the continuous functions with , in the supremum distance. This space is complete. Indeed, a uniformly Cauchy sequence is pointwise Cauchy in each of its finitely many real coordinates; real completeness provides pointwise limits. Passing to the limit in a common Cauchy bound gives uniform convergence in the vector norm. The limit is continuous by the three-term estimate using a fixed continuous member of the sequence, and the closed value bound passes to the limit. This proves completeness of this particular space rather than assuming it for arbitrary targets.
Define , integrating components. Then
For times before , reversing the integration limits gives the same estimates. Start at the constant function and iterate . If , is constant, so is its fixed point. If , let . Induction gives . Hence for ,
Completeness gives . The estimate makes , and letting gives the same geometric error bound to the limit. The fundamental theorem in each coordinate gives on the interior of and .
Two fixed points satisfy , hence coincide. Any other local solution has its graph in on a sufficiently small common closed interval about , by continuity at its initial value. Integrating its equation there gives the same fixed-point equation, now with contraction factor at most , so it agrees with . This proves local existence and local uniqueness for the stated uniform Lipschitz condition, including its scalar case. No global existence or nonlinear stability conclusion has been added.
For a physical reservoir interpretation use forward time , nonnegative flow rates and incoming/initial concentrations, and positive volume. The integrating-factor integral then proves nonnegativity while those hypotheses hold. If volume changes, retain its positive-time interval and the term in the mass derivative.
5 Graded practice
E1 Foundation. Solve with and verify directly.
E2 Balance. A constant-volume lake has , , no internal removal and clean inflow. If , find and its half-life.
E3 Forcing. Solve with .
E4 Modelling. A tank has inflow and outflow , with incoming concentration and no reaction. Derive the concentration equation while volume remains positive.
6 Full solutions
S1. . Then and ; its initial value is 1.
S2. , so and half-life is . The removal parameter is , not the bare flow rate 20.
S3. The integrating factor is . Since , . Substitution and verify it.
S4. and . Combining yields . Outflow cancels explicitly from this concentration equation but still affects . Perfect mixing and the stated rates remain assumptions.
Summary
Write a mass balance before solving an ODE. Integrating factors solve linear equations with controlled hypotheses; separation must not discard equilibria. Initial conditions, time units, mixing assumptions and volume evolution are part of the model, not optional interpretation after the calculation.
Further study
Worked example 2.1.1
(A filling tank: an integrating factor with a variable coefficient)
A tank initially holds units of clean water. Water of concentration enters at rate , and the mixed contents leave at rate , all in consistent units and with no reaction. Then for . The concentration equation of Solution S4, which keeps the term of , gives
This equation is linear with continuous coefficients on , so the integrating-factor formula of Section 2 applies with and :
Dividing by gives
Check: and , while . At the concentration is . Without internal removal the concentration approaches , but the gap decays algebraically rather than exponentially, because each unit of inflow is diluted into a growing volume. Freezing the volume at 100 would have predicted the exponential rate for all time.
Worked example 2.1.2
(Logistic solutions on both sides of the carrying capacity)
Take and in the logistic equation of Section 4. For , the displayed solution formula has , so
The denominator exceeds 1 for every real , so this solution exists for all time, increases and tends to 100. It reaches when , that is, at .
For , the same formula has , so
For the denominator lies in , so decreases from 150 toward 100. Backward in time the denominator vanishes when , at ; the maximal interval of this solution is . Neither solution crosses the equilibrium , which was recorded separately before dividing: by the local uniqueness of Section 1, a crossing would give two different solutions through one point.
Worked example 2.1.3
(The contraction interval for , )
Apply the uniform Lipschitz theorem with , , and . On we have and
so works. The step is , and . On the map keeps functions in the ball, because .
The iterates starting from are
Here . Letting in the Cauchy estimate of the proof gives , which for equals . The exact solution is ; at the actual error is , well inside the bound. The theorem certifies only , although the solution exists on : the interval is what the proof can guarantee, not the maximal interval of existence.
Counterexample mode
Continuity without a Lipschitz bound: two solutions from one initial value
The Lipschitz hypothesis of the uniform Lipschitz theorem cannot be weakened to continuity. Let , which is continuous on , and impose . The zero function is a solution. So is , since . Indeed, for every the function equal to for and to for is a solution, so infinitely many trajectories leave the same initial point. The proof fails exactly at the contraction step: near ,
so no constant works on any cylinder around . A removal law proportional to has the same defect at : for a positive solution reaches zero at the finite time , so the value zero at a later time does not determine the earlier history.
Quick check
(A reservoir has , , removal rate and inflow concentration , in consistent units. Find the equilibrium concentration and the exponential rate of approach.)
Use the constant-input solution of Section 3.
Solution · Answer
The rate is , and . Hence . Internal removal keeps the equilibrium at half the inflow concentration.
Quick check
(Solve with by an integrating factor.)
The coefficient is continuous on the whole line.
Solution · Answer
and , so and . Check: and , whose sum is ; also .
Quick check
(Solve with . What is the largest interval containing on which the solution exists?)
Separate variables away from the equilibrium .
Solution · Answer
Separation gives , so on . The solution blows up as . The equilibrium is a different solution, since its initial value is 0, not 2.