So the question is to solve this differential equation: $y'' - 4y' + 5y = 1 + t$.
I've got the general solution to $\ C_1e^{2t}\cos(2t) + C_2e^{2t}\sin(2t) $
However, I don't really know how to proceed with the particular solution.
I know that t is a polynomial of the first degree and should be written as $At + B$. After that I'm pretty much stuck. One particular question I have though, should $1$ be a constant $D$ which would make the equation for the particular solution: $y = At + B + D$? Or is that redundant since we already have the constant $B$?
As you see, my main concern is how handle the "set-up" of the particular solution.
Follow up question: Is it some general rule to follow when setting up these particular solutions? I'm feeling pretty lost and want to really learn the concept.
The method of undetermined coefficients has been called 'educated guesswork' for finding particular solutions. One attempts trial solutions based on the form of the right-hand-side (RHS), bearing in mind the form of the complementary function. In this case, the RHS is a polynomial of degree 1, and as it does not appear in your complementary function, you pick a trial solution as a polynomial of degree 1 i.e. $y_P=At+B$. Just one additive constant. Note there are other, more systematic, methods for solving these problems such as variation of parameters.