2nd order non homogeneous equation

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 \sin x and \cos x, you should try x\sin x and x\cos x.
 
of course! Forgot that the particular solution cannot equal the homogeneous solution.
Thanks for your help.
 
There are two things I don't understand about this problem. First, when finding the nth root of a number, there should in theory be n solutions. However, the formula produces n+1 roots. Here is how. The first root is simply ##\left(r\right)^{\left(\frac{1}{n}\right)}##. Then you multiply this first root by n additional expressions given by the formula, as you go through k=0,1,...n-1. So you end up with n+1 roots, which cannot be correct. Let me illustrate what I mean. For this...
Back
Top