Section 6.2 Ordinary Point Solution Example
Subsection 6.2.1 Solve \(y'' + 2xy' + y = 0\) with a series around \(x=0\)
The first thing we do is set
We can differentiate this like we would for any polynomial:
(Technically, \(y'\) should start with \(n=1\) and \(y''\) should start with \(n=2\) but that shouldn't matter all too much.)
And now, we substitute these into our ODE \(y'' + 2xy' + y = 0\text{:}\)
We want to combine all the sums so that there's only one summation. To combine the two sums above, we need to use an “index shift” on the sum
so that the powers of \(x\) match in each sum.
Question 6.2.1. What is an index shift?
We bascially replace the index variable (which in the case of our sums is \(n\)) with something else.
Since we want to match the powers of \(x\text{,}\) let's write \(n = k+2\) in the first sum above. That way, we'd have
The \(k = -2\) is a little scary, but notice that \((k+2) (k+1) a_{k+2} x^k = 0\) when \(k = -2\) and when \(k = -1\text{.}\) So, we can rewrite the sum as
where in the last step, we've just replaced all the \(k\)'s with \(n\)'s.
This would get us
In order for equality to hold, the coefficient of \(x^n\) must equal \(0\text{,}\) so our recurrence relation for \(a_n\) is
This is usually enough to solve an exercise, since it can be difficult to find an explicit expression (no \(a_{n+2}\) or anything) for \(a_n\text{.}\)
Something very important to mention here though, is that only even terms depend on even terms, and only odd terms depend on odd terms.
If we solve for \(a_{n+2}\) in \((n+2)(n+1) a_{n+2} + (2n+1)a_n = 0\text{,}\) we get
So, \(a_{n+2}\) is proportional to \(a_n\text{.}\) Similarly, \(a_n\) is proportional to \(a_{n-2}\) and so on. At the very end, note that all even terms \(a_{2k}\) are proportional to \(a_0\) and all odd terms are proportional to \(a_1\text{.}\)
Since each \(a_{2k}\) is proportional to \(a_0\text{,}\) let's write \(a_{2k} = \alpha_{2k} a_0\text{,}\) and since each \(a_{2k+1}\) is proportional to \(a_1\text{,}\) let's write \(a_{2k+1} = \beta_{2k+1} a_0\text{.}\) Then, our solution \(y(x)\) becomes
This is actually very similar to the more familiar general solution \(y(x) = c_1y_1 + c_2y_2\text{,}\) except with \(c_1 = a_0\text{,}\) \(c_2 = a_1\text{,}\) and
These choices of \(y_1\) and \(y_2\) form a fundamental pair of solutions (take it as a given for now). Thus, the solution \(y(x)\) was actually the general solution for the ODE!
With these kinds of questions, we're often asked about the first few terms:
Question 6.2.2. Write the first 6 terms of \(y(x)\).
Remember our recurrence relation:
Now, we just need to plug in certain values of \(n\text{.}\) (Don't forget that \(a_0\) and \(a_1\) are arbitrary.)
So, the first six terms of \(y(x)\) are
Question 6.2.3. Bonus: Find an explicit form of \(a_n\).
This is usually something that you'd rarely have to do. We have to consider different cases based on whether \(n = 2k\) is even or if \(n = 2k+1\) is odd.
Our recurrence relation tells us that \(a_n = f(n) a_{n-2}\) where
When \(n = 2k\) is even, we find that
When \(n = 2k+1\) is odd, we find that
Put together, we get the explicit form of \(a_n\text{.}\)