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.