Section 1.2 Some Basic Examples
Subsection 1.2.1 Solve
First, we solve the homogeneous version
Question 1.2.1. How to solve
For 2nd order linear ODEs (basically ODEs of the form \(a x'' + bx' + cx = 0\) for constants \(a,b,c\)), remember that we always start off by plugging in \(x = e^{rt}\text{.}\)
If \(x = e^{rt}\text{,}\) then \(x' = re^{rt}\) and \(x'' = r^2e^{rt}\text{.}\) Substituting these into \(x'' - 4x = 0\) shows that
Dividing out by \(e^{rt} > 0\) gives us the characteristic polynomial \(r^2 - 4 = 0\text{.}\) Solving this has solutions \(r = \pm 2\text{.}\) This means that \(e^{2t}\) and \(e^{-2t}\) are solutions of \(x'' - 4x = 0\text{.}\)
So, we get that \(x(t) = c_1 e^{2t} + c_2 e^{-2t}\) is the general solution of \(x'' - 4x = 0\text{.}\)
Example 1.2.2. If you've memorized the form of the solution.
Great! Then, this should be a simple task of plugging in stuff (although the simplification might be a little messy).
In this exercise, we have \(g(t) = e^t\) and \(p(t) = 1\text{.}\) Let's also take \(t_0 = 0\text{,}\) just to hopefully make the integration a little easier. So, directly from the formula, the particular solution \(Y(t)\) that we want is
Simplifying this will be a bit of a hassle, but the integration shouldn't be too bad:
Although not necessary, with a little careful observation, one may note that \(e^{-2t}/12 + e^{2t}/4\) solves \(x'' - 4x = 0\text{,}\) so we may instead take \(Y(t) = -e^t/3\) to be our particular solution of choice.
Example 1.2.3. Memorizing it is too much!
This is okay! The solution that variation of parameters gives is long, and misremembering one small detail could waste a lot of time. A lot of the work to find this solution the βlong wayβ is slightly tedious, so I'll skip over some more of the computational details.
Remember that the basic principle of variation of parameters is that we set \(x = Y(t) = u_1(t) y_1(t) + u_2(t) y_2(t)\text{.}\) In this case, we set \(Y(t) = u_1(t) e^{2t} + u_2(t) e^{-2t}\text{.}\) We want to solve for \(u_1\) and \(u_2\text{.}\)
Now, calculate \(Y'(t)\text{.}\)
We set \(u_1'(t)e^{2t} + u_2'(t) e^{-2t} = 0\text{,}\) and keep this in the back of our heads. Next up, calculate \(Y''(t)\text{:}\)
Substitute \(x = Y(t)\) into \(x'' - 4x = e^t\) to get
So in all, we get a system of equations (which is what we should expect).
Turn this into a matrix equation to get
Now, we have \(u_1'(t) = e^{-t}/4\) and \(u_2'(t) = -e^{3t}/4\text{.}\) We can choose any \(u_1, u_2\) with these derivatives, so for sake of simplicity, choose \(u_1(t) = -e^{-t}/4\) and \(u_2(t) = -e^{3t}/12\text{.}\)
Substitute these into \(Y(t) = u_1(t) e^{2t} + u_2(t) e^{-2t}\text{:}\)
Subsection 1.2.2 Solve
Try it yourself! First, solve
Question 1.2.4. How do I solve
Set \(x = e^{rt}\text{.}\) Substituting this into \(x'' - 3x' + 2x = 0\) shows that
This occurs when \(r = 1,2\text{,}\) so the general solution to \(x'' - 3x' + 2x = 0\) is
Question 1.2.5. I need some help with starting variation of parameters!
Set \(Y(t) = u_1(t) y_1(t) + u_2(t) y_2(t)\text{.}\) Then, find \(Y'\) and \(Y''\text{,}\) using the special condition that we've set before (it's to avoid terms like \(u_1''\) and \(u_2''\))
Substituting these into \(x'' - 3x' + 2x = 1\text{,}\) along with the special condition, gives us a system of equations that we can solve!
HintAlternatively, one might remember that \(Y(t)\) takes the form
What's \(g(t)\) and \(p(t)\) in the ODE \(x'' - 3x' + 2x = 1\text{?}\)
Here's one possible general solution (there are multiple, based on the \(Y(t)\) chosen)