Find the general solution to the differential equation:
y'' + 3y' + 2y = cosx
I know how to find the homogeneous solution and I started solving for the particular solution:
y = acosx + bsinx
y' = -asinx + bcosx
y'' = -acosx - bsinx
and I ended up with:
cosx(a-3b) + sinx(b-3a) = cosx
I wasn't sure what to do after that, so I checked my professor's answer key and she had:
a-3b=1
b-3a=0
How do I know that I'm supposed to set a-3b equal to 1 and b-3a equal to 0. I just don't understand where she got those numbers. Any help would be appreciated. Thanks!
y'' + 3y' + 2y = cosx
I know how to find the homogeneous solution and I started solving for the particular solution:
y = acosx + bsinx
y' = -asinx + bcosx
y'' = -acosx - bsinx
and I ended up with:
cosx(a-3b) + sinx(b-3a) = cosx
I wasn't sure what to do after that, so I checked my professor's answer key and she had:
a-3b=1
b-3a=0
How do I know that I'm supposed to set a-3b equal to 1 and b-3a equal to 0. I just don't understand where she got those numbers. Any help would be appreciated. Thanks!