posted by COFFEE .
Please check my work and correct any errors/point out any errors. Thanks.
Solve the initial-value problem using the method of undetermined coefficients.
y''-4y=e^xcos(x), y(0)=1, y'(0)=2
r^2-4=0, r1=2, r2=-2
Can someone please answer this question? I have yet to get any help with it.
The line just above A= -1/5, B=1/10
Shouldn't that equal e^xcosx? I don't follow your work.
I'm missing some terms in y'p and y''p (Leibnitz rule, you also have to differentiate the exponential...).
Anyway, to solve problems with less chance of making mistakes, you must cut down on the number of steps you use. In this case you can write:
e^x cos(x) =
1/2 [e^(x(1+i)) + e^(x(1-i))]
Using the superposition principle yo can solve the equations:
y'' - 4 y = 1/2 e^(x(1+i))
y'' - 4 y = 1/2 e^(x(1-i))
separately and add them up.
So, all you have to do is solve the equation:
y'' - 4 y = 1/2 e^(a x) ---->
yp = 1/2 e^(ax)/[a^2 - 4]
insert a = 1 + i and a = 1 - i and add the two terms up.
Then you add the homogeneous solution: yh = A e(2x) + B^e^(-2x)