Mark44 said:
You are making this much more complicated than it needs to be. Try yp = C. Don't forget that you need to solve the homogeneous problem f'' - 3f' + 2f = 0. The solution to the homogeneous problem, plus the particular solution, will be your general solution.
Ok, so, by considering f_p = C just as you said, I got f_p = \frac{3}{2}, and it worked!
Then the general solution will be:
f(x) = A_1e^{x} + A_2e^{2x} + f_p
f(x) = A_1e^{x} + A_2e^{2x} + \frac{3}{2}
I won't bother you folks showing all the work done to find A_1 and A_2, but I eventually got to
A_1 = -4,\ and\ A_2 = \frac{5}{2}
f(x) = -4e^{x} + \frac{5}{2}e^{2x} + \frac{3}{2}
Let's verify it by plugging-in the above function in the original equation,
f'' - 3f' + 2f = 3
Where,
\frac{df(x)}{dx} = -4e^x + 5e^{2x}
\frac{d^2 f(x)}{dx^2} = -4e^x + 10e^{2x}
(-4e^x + 10e^{2x}) - 3(-4e^x + 5e^{2x}) + 2(-4e^{x} + \frac{5}{2}e^{2x} + \frac{3}{2}) = 3
-4e^x + 10e^{2x} + 12e^x - 15e^{2x} - 8e^x + 5e^{2x} + 3 = 3
(-4e^x + 12e^x - 8e^x) + (10e^{2x} - 15e^{2x} + 5e^{2x}) + 3 = 3
Indeed, 3 = 3
This is pathetically easy, my god.. I don't even know how or why I complicated it so much.
Thank you very much for your time LCKurtz and Mark44.
