2nd order non homogeneous equation

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
mitch987
Messages
7
Reaction score
0

Homework Statement


y'' + y = -2 Sinx


Homework Equations





The Attempt at a Solution


finding the homogeneous solution, is simple;
yh(x) = C1 Cos(x) + C2 Sin(x)

for the particular solution,
I let y = A Cos(x) + B Sin(x)
thus, y' = -A Sin(x) + B Cos(x)
y'' = -A Cos(x) - B Sin(x)

substituting these into the differential equation;
-A Cos(x) - B Sin(x) + A Cos(x) + B Sin(x) = -2 Sin(x)
0 = -2 Sin(x)

This is where i get stuck as I'm unable to find any values for A & B and hence, cannot find the particular solution in order to find the general solution y(x) = yh(x) + yp(x)
Any help would be greatly appreciated.
Thanks,
 
Physics news on Phys.org
The particular solution must be linearly independent of the homogeneous solutions. Since those are already [tex]\sin x[/tex] and [tex]\cos x[/tex], you should try [tex]x\sin x[/tex] and [tex]x\cos x[/tex].
 
of course! Forgot that the particular solution cannot equal the homogeneous solution.
Thanks for your help.