Section 1.1 Variation of Parameters
Straight to the point....
Variation of Parameters tells us that the ODE \(p(t) y'' + q(t) y' + r(t)y = g(t)\) has a particular solution \(Y(t) = u_1(t) y_1(t) + u_2(t) y_2(t)\text{,}\) where
Here, we take \(\{y_1, y_2\}\) to be a fundamental set of solutions of the homogeneous ODE \(p(t) y'' + q(t) y' + r(t)y = 0\text{,}\) that is to say, \(y_1 y_2' - y_1'y_2 \neq 0\text{.}\)
We also take \(t_0\) to be some number that lies in the range of \(t\) that the ODE is defined on. Choosing an appropriate \(t_0\) can sidestep a lot of the computational work.
Another way one can look at Variation of Parameters is that, given \(Y(t) = u_1(t) y_1(t) + u_2(t) y_2(t)\text{,}\) the functions \(u_1\) and \(u_2\) satisfy the equation
Memorizing this (or the process below) is certainly less meticulous than memorizing the direct integral form above. Notice that the \(2 \times 2\) matrix on the left hand side above is the matrix whose determinant equals the \(W[y_1,y_2](t)\text{.}\)
We are often interested in finding a particular solution of a nonhomogenous linear ODE \(p(t) y'' + q(t) y' + r(t)y = g(t)\text{,}\) mainly because the general solution of this ODE is
where \(h(t)\) is the general solution of the homogeneous linear ODE \(p(t) y'' + q(t) y' + r(t)y = 0\) and \(Y(t)\) is any particular solution of the nonhomogeneous ODE \(p(t) y'' + q(t) y' + r(t)y = g(t)\text{.}\)
Using Variation of Parameters or Duhamel's Principle helps us find some particular solution \(Y(t)\) for the nonhomogeneous ODE. Here, we'll start with Variation of Parameters.
Subsection 1.1.1 Starting Variation of Parameters
Variation of Parameters begins by assuming that a particular solution \(Y(t)\) to
is of the form
Here, \(y_1\) and \(y_2\) are fundamental solutions to the homogeneous ODE \(p(t) y'' + q(t) y' + r(t)y = 0\text{,}\) that is, the Wronskian \(W[y_1,y_2](t) \neq 0\) for all applicable \(t\text{.}\)
Review of Wronskian.
Let \(y_1, y_2\) be solutions of the homogeneous ODE \(p(t) y'' + q(t) y' + r(t)y = 0\text{.}\) Recall that the Wronskian of \(y_1, y_2\) is denoted \(W[y_1, y_2](t)\text{,}\) and
The idea behind Variation of Parameters is to kind of "generalize" the general solution of the homogenous ODE. Note that if we have that \(u_1(t) = c_1\) and \(u_2(t) = c_2\) are constant for all \(t\text{,}\) then the solution \(Y(t) = c_1 y_1(t) + c_2 y_2(t)\) is actually a solution of the homogeneous ODE!
So, we generalize the homogeneous solution by \(Y(t) = u_1(t) y_1(t) + u_2(t) y_2(t)\) in hopes that we find one (we only need one particular nonhomogeneous solution to describe them all!) solution to the nonhomogeneous ODE.
The algebra here can get a bit tricky, but I'll do my best to describe all the steps used!
Subsection 1.1.2 Equations involving \(u_1(t)\) and \(u_2(t)\)
Now, since \(Y(t)\) is a particular solution of \(p(t) y'' + q(t) y' + r(t)y = g(t)\text{,}\) we have that
We'll want to calculate \(Y'(t)\) and \(Y''(t)\text{,}\) using the form \(Y(t) = u_1(t) y_1(t) + u_2(t) y_2(t)\text{.}\) Doing so will create equations for \(u_1\) and \(u_2\text{,}\) which we will hopefully be able to solve.
First, calculate \(Y'(t)\text{:}\) (try it yourself! Remember that \(Y(t) = u_1 y_1 + u_2 y_2\text{,}\) all of those terms being functions of \(t\text{.}\))
Question 1.1.1. What's \(Y'(t)\) equal to?
We make good use of the product rule! Note that
We have 4 terms in our representation of \(Y'(t)\text{.}\) This means that \(Y''(t)\) will have 8 terms! To reduce down on the number of terms we have, we set
This may seem arbitrary for now, but this will ease up a lot of our calculations. We now have that
Now, we calculate \(Y''(t)\text{,}\) using our representation of \(Y'(t)\) above.
Question 1.1.2. What's \(Y''(t)\) equal to?
Again, this should be another quick differentiation exercise.
Now, we have expressions for \(Y'(t)\) and \(Y''(t)\text{.}\) Substitute these into (1.1.1) (Why isn't this working? This should expand out to show equation (1.1.1), will fix later). Doing so would yield that
Question 1.1.3. Why does this occur?
Since \(y_1\) and \(y_2\) are solutions of the homogeneous equation, notice that
and
Now, we directly substitute \(Y'(t)\) and \(Y''(t)\) into (1.1.1):
Finish off by dividing \(p(t)\) on both sides. Note that we must have that \(p(t) \neq 0\) for all \(t\) in the appropriate interval.
Subsection 1.1.3 Solving for \(u_1(t)\) and \(u_2(t)\)
We can write the two equations from the previous section as a matrix system.
With our knowledge from linear algebra, we can solve for \(u_1'\) and \(u_2'\) using matrix inverses:
At last! We have solved for \(u_1'(t)\) and \(u_2'(t)\text{:}\)
We want \(u_1\) and \(u_2\text{.}\) We can choose \(t_0\) to be some number for which \(u_1(t_0) = 0\) and \(u_2(t_0) = 0\text{.}\)
Question 1.1.4. Why can we choose \(t_0\) to satisfy \(u_1(t_0) = u_2(t_0) = 0\text{?}\)
When we perform "indefinite integrals" we always have to add a constant to our answer (that "\(+ C\)"). For example, we would write
In general, we have that
That is to say, given \(f'(x)\text{,}\) we can find infinitely many unique \(f(x)\text{.}\) As in the case before, any function of the form \(x^3/3 + C\text{,}\) for any constant \(C\text{,}\) has the derivative \(x^2\)
All this is to say that we know what \(u_1'\) and \(u_2'\) are. But, we can find infinitely many unique \(u_1\) and \(u_2\) whose derivatives satisfy the forms we have. So we can shift \(u_1\) and \(u_2\) up or down until both intersect at some \(t_0\) with a value of \(0\text{.}\)
This helps us in that we can write that
and
Subsection 1.1.4 Final Form of \(Y(t)\)
With all this, our final form of \(Y(t) = u_1y_1 + u_2y_2\) becomes
All in one integral, this is expressed as
This is the particular solution we obtain with Variation of Parameters! It's certainly a handful to memorize, but starting with \(Y = u_1y_1 + u_2y_2\) and remembering the general steps we took along the way is another good way of remembering variation of parameters.
An interesting viewpoint of this is that we can write the general solution to a nonhomogeneous linear second order ODE of the form \(p(t) y'' + q(t) y' + r(t)y = g(t)\) using only a fundamental set of solutions \(\{y_1, y_2\}\) of the homogeneous ODE \(p(t) y'' + q(t) y' + r(t)y = 0\text{,}\) and a constant \(t_0\) that lies in the interval the ODE is defined on.
Namely, the general solution of \(p(t) y'' + q(t) y' + r(t)y = g(t)\) is
where \(c_1,c_2\) are real constants.