Assume that the solution has a Taylor series expansion about

We'll use the initial condition and the differential equation to solve for the coeffients.
From the initial condition,

Let's start with the left hand side of the differential equation . Differentiating the series for term by term yields

Here we substituted the dummy variable , (i.e. ) in the third step, and then renamed as . (This substitution of dummy variable was done purely for <<cosmetic reasons>> to be able to compare the two Taylor series of the LHS and the RHS of the differential equation more easily. In general it helps with both series start with .)
The right hand side of the differential equation gives

Now we can equate the left hand side with the right hand side of the differential equation to get
- Failed to parse (unknown function "\begin{align}"): {\displaystyle \begin{align} \frac{dy}{dx} &= y-x \\ {\color{green} a_1} + {\color{red} 2a_2x} + {\color{blue} 3a_3x^2} + {\color{magenta} 4a_4x^3} + \dots &= {\color{green} a_0} + {\color{red} (a_1-1)x} + {\color{blue} a_2x^2} + {\color{magenta} a_3x^3} + \dots \\ {\color{green} a_1} + {\color{red} 2a_2x} + \sum_{n=2}^\infty a_{n+1} (n+1) x^{n} &= {\color{green} a_0} + {\color{red} (a_1-1)x} + \sum_{n=2}^\infty a_n x^n. \end{align} }
From the differential equation, we can equate each of the coefficients of the above series.
For (i.e. the coefficients in from of x0) we have
For (i.e. the coefficients in from of x1) hence,
For all .
That is, For example, Similarly, We can see that for all
Hence, the solution is

Note: We can easily check that this is indeed a solution to the initial value problem: and .
|