I got a question about his ODE: $(D-3)^3(D^2+25)^2(D-2)y = 7x^2e^{3x} + x\sin (5x)+4x^3$. So, in the solutions of the homogeneous eq. appears a complex root ($r = \pm5i$) with multiplicity 2. What I need to do with the soluctions?.
$\endgroup$1 Answer
$\begingroup$It helps to look at the homogeneous solution first
$$ y_h(x) = (c_1x^2+c_2x+c_3)e^{3x} + (c_4x + c_5)\sin (5x) + (c_6x + c_7)\cos(5x) + c_8e^{2x} $$
where the 8 constants correspond to the 8th degree characteristic polynomial.
Let's look at each individual term on the non-homogeneous side. Let's say we have $y_h = y_1+y_2+y_3$ and
\begin{align} Ly_1 &= 4x^3 \\ Ly_2 &= 7x^2e^{3x} \\ Ly_3 &= x\sin(5x) \end{align}
where $L = (D-3)^3(D^2+25)^2(D-2)$
The first one is easy enough, since it's not part of the homogeneous solution. It's simply
$$ y_1(x) = a_1 x^3 + a_2 x^2 + a_3 x + a_4 $$
The second one is a polynomial multiplied with a solution of the homogeneous equation, so we should guess a solution of the same form. This turns out to be
$$ y_2(x) = (b_1x^2 + b_2 x + b_3)x^3e^{3x} $$
where the quadratic factor corresponds to the $x^2$, and the additional power of $x$ is needed to "offset" the homogeneous solution. Note that this power needs to be at least higher than the highest power of the homogenous solution (i.e. $c_1x^2e^{3x}$), or otherwise equal to the multiplicity of its root.
With that in mind, we can make a guess for the last trigonometric term. Its multiplicity is $2$, therefore
$$ y_3(x) = (d_1 x + d_2)x^2\sin (5x) + (d_3 x + d_4)x^2\cos(5x) $$
You do need both $\sin$ and $\cos$ terms, and this particular form works for any linear combination of trig functions in the non-homogeneous function.
$\endgroup$ 0