5. Homogeneous solutions¶
Step one of our overall solution strategy is to solve the homogeneous problem \(\opA[x]=0\), or
Let’s riff on the exponential solution we found with constant \(a\) by guessing that
for some \(q(t)\) yet to be determined. Note that
If this is to be a solution of \(x'=ax\), all we need is that \(q'(t)=a(t)\). This is solved by simple integration. To summarize:
Example
Solve \(x'=\sin(t) x\).
Solution
We integrate \(a(t)=\sin(t)\) to get
The general solution is thus \(e^{\,q(t)}\), or
Note
As seen in the preceding example, the integration constant pops up additively in \(q\) and then multiplicatively in \(x\). You can ignore the integration constant until the end and then just tack it on; remember that by linearity, any constant multiple of a homogeneous solution is also a solution.
Example
Solve the homogeneous IVP
Solution
First we rewrite the ODE as
from which we see that \(a(t)=2/t\). We first find the general solution by integration:
This is the general solution. To eliminate the integration constant, we apply the initial condition:
Hence \(x(t) = 3t^2\).
5.1. Initial-value formula¶
We can take a shortcut in the case of a homogeneous IVP that avoids introducing an integration constant and then eliminating it. The trick is to use a definite integral to compute \(q\), as in
The advantage of doing so is that by its construction, \(\tilde{q}(t_0)=0\). Therefore if we define
we find that \(x(t_0)=c_1\exp(0)=c_1\).
Example (continued)
We revisit the preceding example of
and apply the new formula to solve it:
This is the same result as before.