#(d^2y)/(dt^2)− y = 2e^t qquad star#
The general solution (#y_g#) is made up of the complementary (#y_c#) and particular (#y_p#) solutions.
The complementary solution is the solution to homogeneous DE:
#(d^2y)/(dt^2)− y = 0#
This has characteristic equation #lambda^2 - 1 = 0#, #lambda = pm 1#
And so #y_c = A e^t + B e^(-t)#
For the particular solution, we might think that #y_g = alpha e^(t)# is the way to go but that term is already in the complementary solution and so we look instead at #y_p = alpha t e^t#
So:
#y_p = alpha t e^t#
#y_p' = alpha e^t + alpha t e^t = alpha e^t(1 + t )#
#y_p'' = alpha e^t (1 + t ) + alpha e^t = alpha e^t (2+t)#
Plugging that into #star# yields:
#alpha e^t (2+t) - alpha t e^t = 2 e^(t) implies alpha = 1#
So the general solution is:
#y_g = A e^t + B e^(-t) + te^t#