1.2 Linear first-order equations

Theorem 1.2.1. Let \(p\) and \(q\) be continuous on an open interval \(I\), \(t_0 \in I\) and \(y_0 \in \mathbb R\). The initial value problem \[ y' + p(t)y = q(t), \qquad y(t_0) = y_0, \] has exactly one solution on \(I\), namely \[ y(t) = e^{-P(t)}\Bigl (y_0 + \int _{t_0}^te^{P(s)}q(s)\,ds\Bigr ), \qquad P(t) = \int _{t_0}^tp(s)\,ds . \]

Proof. The function \(\mu (t) = e^{P(t)}\), the integrating factor, is positive and differentiable with \(\mu ' = p\mu \). For any differentiable \(y\) on \(I\), \[ (\mu y)' = \mu y' + p\mu y = \mu (y' + py) . \] If \(y\) solves the problem, then \((\mu y)' = \mu q\), and integrating from \(t_0\), using \(\mu (t_0) = 1\), gives \(\mu (t)y(t) = y_0 + \int _{t_0}^t\mu q\), which is the formula; so any solution must be this function, which proves uniqueness. Conversely, the function defined by the formula is differentiable, by the fundamental theorem of calculus, and satisfies \((\mu y)' = \mu q\), hence \(y' + py = q\), with \(y(t_0) = y_0\). □

Two features of the linear case will not survive in general. The solution exists on the whole interval \(I\) on which the coefficients are continuous, however large; and the solution depends linearly on \(y_0\) and on \(q\). The solution is the sum of \(y_0e^{-P(t)}\), the solution of the homogeneous equation \(y' + py = 0\) with the given initial value, and the particular solution with zero initial value, a pattern that the theory of linear systems generalises.

Example 1.2.2. A tank holds \(100\) litres of brine with \(5\) kg of salt. Brine with \(0.2\) kg of salt per litre flows in at \(3\) litres a minute, and the well-mixed solution flows out at the same rate. The salt \(y(t)\) satisfies \(y' = 0.6 - 0.03y\), \(y(0) = 5\). Here \(p = 0.03\), \(q = 0.6\), and \[ y(t) = e^{-0.03t}\Bigl (5 + \int _0^t0.6e^{0.03s}\,ds\Bigr ) = 20 - 15e^{-0.03t} . \] The salt approaches \(20\) kg, the amount at the inflow concentration, and half the gap closes in \(\log 2/0.03 = 23.1\) minutes.

Questions on this section

Stuck on something here? Ask below and it stays attached to this topic.