Hi everyone – here is a step-by-step solution to Problem 2 from the Exam 3 Review. If you have any questions (or notice an error), please leave a comment in reply to this post.
2. Given the differential equation ,
a. Suppose that has a Taylor series about , Substitute into the differential equation and simplify by grouping together terms with similar powers of .
We start with the assumption that . Find the first and second derivatives:
Now substitute and into the differential equation :
Get rid of parentheses (don’t forget to distribute the and the in front of the second and third sets of parentheses):
Now group together by powers of :
(Remember, there is more stuff hidden in the “” – if we wanted to, we could write down more terms of and and therefore get more terms here as well).
Finally, simplify each set of parentheses and factor out :
Finally, we compare each term on the left with the corresponding term on the right – since the right side is zero, each of the expressions in the parentheses (which give the coefficients of the powers of ) must also be equal to zero:
b. Given the initial conditions , find the first five terms of the Taylor series solution .
We need to find the coefficients . The first two coefficients are given by and , so we have:
To find the remaining coefficients, we use the equations we found at the end of part a) above, and solve each one for the unknown coefficient:
- becomes
- becomes
- becomes
Substituting into the first equation gives .
Substituting into the second equation gives .
Substituting into the third equation gives .
This gives us enough coefficients to determine the first five terms of the Taylor Series. Remembering that , we substitute in the values of to obtain:
NOTE: Since we have only given the first five terms of the Taylor series, the resulting expression is only an approximation of — in order to make it exactly equal to we would need to give all infinitely many terms. This is why we replace the equals sign with the ‘wavy equals’. (Note that I also dropped the $\ldots$ at the end).
c. Use the answer to part b to obtain an approximation of
Here, we just substitute into the expression we obtained above: