How do i solve this ODE?

f"(y) + y = cosx

char. eqn = r^2 + 1

therefore r = (+/-)j

therefore yc = Acos jx + Bsin jx ?

For RHS

yp = Ccosx + Dsinx <<<<< Do i need to multiply x or x^2 here?

many thks.

Printable View

- Apr 25th 2008, 02:27 AMMilK2nd order ODE
How do i solve this ODE?

f"(y) + y = cosx

char. eqn = r^2 + 1

therefore r = (+/-)j

therefore yc = Acos jx + Bsin jx ?

For RHS

yp = Ccosx + Dsinx <<<<< Do i need to multiply x or x^2 here?

many thks. - Apr 25th 2008, 03:22 AMPeritus
multiply by x

- Apr 25th 2008, 03:37 AMMilK
as long as there is same family members( cos x, cos3x, 3cosx etc) i multiply by x? (cos^2 x not same family)

since its not double root for char.eqn( if double root x^2)?

correct? - Apr 25th 2008, 04:50 AMPeritus
wrong.

Here's a quote from wikipedia:

Quote:

If a term in the particular solution for y appears in the homogeneous solution, it is necessary to multiply by a sufficiently large power of*x*in order to make the two solutions linearly independent

- Apr 25th 2008, 06:22 AMKalter Tod
I'm wondering why you say that

When you solve the homogeneous solution with irregular roots you get a solution of the form

So, unless you know something I don't, so it's not required in your solution as part of the angles.

As for what your question was, just to follow up on the answer Peritus gave, you never want to multiply by a degree of x greater than what is needed. A double root would never occur here, because you have irregular roots, so you will never have to multiply by more than x. The only situation you would need x^2 in is if you had a double root for the homogeneous solution, that was also the same form as the inhomogeneous solution. Very rarely is x^2 needed in the Method of Undetermined Coefficients, although I don't want you to think that it is never used.