I am having some difficulty having a more deep understanding of solving general ODE,
I will give an example because it is hard to explain without me showing some work.
Find the general solution to the ODE;
$$y''-2y'-3y=3e^{2t}$$
So, what I did was first considered the characteristic equation of the associated homogenous ODE,
ie $$r^{2}-2r-3=0$$
$$(r+1)(r-3)=0$$
giving $r_1=-1$ and $r_2=3$ which is two real distinct roots, therefor we will have a complementary solution of the form $$y_c=c_1e^{3t}+c_2e^{-t}$$ with $c_1,c_2 \in \mathbb{R}$
Now here is where my issue begins, so I want to use undetermined coefficients
I was taught that here it is advised to look at $g(x)=3e^{2t}$ and consider what the form of the particular solution may be, that is $$y_p(t)=At^{s}e^{kt}$$ where s is the smallest non zero integer that assures we don't have our particular solution to be a linear combination of our complementary solution.
However, when I first see this, it would seem to me that I would need to take s=1 as by looking at the complementary solution it looks like it would be a linear combination. However, I checked the wronskian to see that actually $\{e^{3t},e^{-t},e^{2t}\}$ is linearly independent. So is that why I would take s here to be zero.
So in order to find s for these type of problems, including those of the form $t^{s}(Asin(t)+Bcos(t))$ etc, is it required that I start with s=0? and test the Wronskian with the fundamental solutions, and increase s by 1 until we find that specific s which is largest and gives us a 0 wronskian?
Thank you a lot, I really hope I can get some help here.