the0 said:
And now I don't know how to go about finding a particular solution, could somebody please point me in the right direction as to which method I could use?
Thanks a lot!
How about the method of inverted operator techniques? (which i personally find easier). Although some people use the Wronskian method, i think.
The D operator is simply [itex]\frac{d}{dx}[/itex].
Expressing first, the L.H.S. in terms of D: [itex]L(D)=D^2-2D+5[/itex], where L(D) is a function of D.
[tex]L(D)y_p=e^x(cos^{2}(x)+x^{2})[/tex]
So, [tex]y_p=\frac{1}{L(D)}(e^xcos^{2}(x)+e^xx^{2})<br />
\\y_p=\frac{1}{L(D)}e^xcos^{2}(x)+\frac{1}{L(D)}e^xx^{2}[/tex]
Here, [itex]y_p=y_1+y_2[/itex],
[tex]y_1=\frac{1}{L(D)}e^xcos^{2}(x)[/tex]
[tex]y_2=\frac{1}{L(D)}e^xx^{2}[/tex]
Now, you have to use the Shift theorem to evaluate both [itex]y_1[/itex] and [itex]y_2[/itex].
The Shift theorem simply shifts D to (D+a) and simultaneously separates [itex]e^x[/itex] from [itex](cos^2x+x^2)[/itex].
To find [itex]y_1[/itex]:
[tex]y_1=\frac{1}{L(D)}e^xcos^{2}(x)=\frac{1}{(D^2-2D+5)}e^xcos^{2}(x)[/tex]
Applying the Shift theorem:
[tex]y_1=e^x\frac{1}{((D+1)^2-2(D+1)+5)}cos^{2}(x)<br />
\\=e^x\frac{1}{(D^2+5)}cos^{2}(x)<br />
\\=e^x\frac{1}{(D^2+5)}(\frac{1}{2}+\frac{1}{2} \cos 2x)<br />
\\=e^x\frac{1}{(D^2+5)}(\frac{1}{2})+e^x\frac{1}{(D^2+5)}(\frac{1}{2} \cos 2x)<br />
\\=e^x(\frac{1}{10})+e^x(\frac{1}{2} \cos 2x)<br />
\\=e^x(\frac{1}{10}+\frac{1}{2} \cos 2x)[/tex]
Now, find [itex]y_2[/itex]. Applying the Shift theorem again, you'll get:
[tex]y_2=e^x\frac{1}{(D^2+5)}x^2<br />
\\=e^x(\frac{1}{5}-\frac{D^2}{25})x^2<br />
\\=e^x(\frac{1}{5}x^2-\frac{2}{25})[/tex]
Therefore, [tex]y_p=e^x(\frac{1}{10}+\frac{1}{2} \cos 2x)+e^x(\frac{1}{5}x^2-\frac{2}{25})<br />
\\=\frac{1}{50}e^x+\frac{1}{5}e^xx^2+ \frac {1}{2} e^x \cos 2x[/tex]
The final answer (the general solution) is: [itex]y_c+y_p[/itex] where [itex]y_c[/itex] is the complementary function that you've already obtained in your first post.