Finding Particular Integral for Non-Homogenous Differential Equation

  • Thread starter Thread starter Kawakaze
  • Start date Start date
  • Tags Tags
    Integral
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
23 replies · 4K views
Kawakaze
Messages
144
Reaction score
0

Homework Statement



Find a particular integral of the non-homogenous differential equation

[tex]\frac{d^2y}{dx^2}+6\frac{dy}{dx}+10y=-6sin(x)+9cos(x)[/tex]

The Attempt at a Solution



Solution is of the sort
[tex]qsin(x)+pcos(x)[/tex]

Derivatives are
[tex]\frac{dy}{dx}=qcos(x)-psin(x)[/tex]

[tex]\frac{d^2y}{dx^2}=-qsin(x)-pcos(x)[/tex]

Substituting these in I eventually get that I require

[tex](6p+9p)cos(x)+(10q-7p)sin(x)=-6sin(x)+9cos(x)[/tex]

Comparing sin and cos terms I get

[tex]10q-7p=-6[/tex] (1)
[tex]6q+9p=9[/tex] (2)

Then I get the two simultaneous equations, rearranging 2 and putting it into 1 i get

[tex]p=\frac{21}{22}[/tex]

This isn't the nice round number I have come expect from "simple" examples, so i stopped here and ask you all to put me back on track please. :)
 
Last edited:
Physics news on Phys.org
Yes you are correct, I typed the question in wrong. :S

Edited
 
Kawakaze said:

Homework Statement



Find a particular integral of the non-homogenous differential equation

[tex]\frac{d^2y}{dx^2}+6\frac{dy}{dx}+10y=-6sin(x)+9cos(x)[/tex]

The Attempt at a Solution



Solution is of the sort
[tex]qsin(x)+pcos(x)[/tex]

Derivatives are
[tex]\frac{dy}{dx}=qcos(x)-psin(x)[/tex]

[tex]\frac{d^2y}{dx^2}=-qsin(x)-pcos(x)[/tex]
so y''+ 6y'+ 10y= -q sin(x)- pcos(x)+ 6qcos(x)- 6psin(x)+ 10qsin(x)+ 10pcos(x)
= (-q- 6p+ 10q)sin(x)+ (-p+ 6q+ 10p)cos(x)
= (9q- 6p)sin(x)+ (6q+ 9p)cos(x)

Substituting these in I eventually get that I require

[tex](6p+9p)cos(x)+(10q-7p)sin(x)=-6sin(x)+9cos(x)[/tex]
Then I suggest you do that over again. You seem to have gotten a "p" and "q" confused in the coefficient of sin(x).

Comparing sin and cos terms I get

[tex]10q-7p=-6[/tex] (1)
[tex]6q+9p=9[/tex] (2)

Then I get the two simultaneous equations, rearranging 2 and putting it into 1 i get

[tex]p=\frac{21}{22}[/tex]

This isn't the nice round number I have come expect from "simple" examples, so i stopped here and ask you all to put me back on track please. :)
 
Thats great, thanks a lot. Its always the little things that are the hardest to track down.

I get p=1 and q=0

Does that tally at your end? :)
 
Oops forgot to ask, how does this apply to the general solution? I get

[tex]C + De^{6x} + cos(x)[/tex]
 
The 6 comes from the second term of the original equation. The b so to speak.
 
The solution of the homogenous ODE must include [itex]e^{\alpha x}[/itex] as solutions, where

[tex]\alpha^2 + 6\alpha + 10 = 0[/tex]

So I don't see any e^(6x) as 6 is not a solution of the quadratic.
 
Sorry i don't understand, do i need to find the auxillary equation as well? Or is it simply

[tex]C + De^{x} + cos(x)[/tex]
 
Perhaps we're not speaking the same language here. The full solution of the ODE is a sum between the general solution (which I showed you how to find it) and the particular solution which was the purpose of this thread to which both Halls and me gave you some support.
 
I just reread thngs again, i see what you mean. I am sorry for being a little slow, this stuff is new to me and its overloading my fragile little braincell. :) Thanks for your help I do really appreciate it.
 
Take 2 :)

[tex]\alpha^2 + 6\alpha + 10 = 0[/tex]

This is the complimentary function right? I would solve this with the standard a, b, c formula. To save precious time I am using wolphram alpha :)

This gives x = -3 - i and x = -3 + i

How does this apply to my particular integral?
 
Hi Kawakaze! :smile:
Kawakaze said:
This gives x = -3 - i and x = -3 + i

Yes, so your general solution is Ae(-3 + i)x + Be(-3 - i)x

you can simplify that to e-3x(Aeix + Be-ix),

which it's more convenient to write as e-3x(Ccosx + Dsinx) :wink:
 
Bingo, I get it. Thanks guys for your patience. If it frustrates me to spend so long on what turns out to be relatively quick if i had know what to do, i don't know where you get your patience from. :)
 
This question turns to an initial value problem now, the general solution is

[tex]y=e^{-3x}(Ccos(x)+Dsin(x))+cos(x)[/tex]

I need to find the initial values for when y(0)=3 and y'(0)=12

Differentiate general solution and plug in the values, get 2 simultaneous equations to solve? The reason i ask is that looks like a nightmare to differentiate.
 
Kawakaze said:
I need to find the initial values for when y(0)=3 and y'(0)=12

Differentiate general solution and plug in the values, get 2 simultaneous equations to solve? The reason i ask is that looks like a nightmare to differentiate.

Scaredy-cat! :biggrin:
 
tiny-tim said:
Scaredy-cat! :biggrin:

No arguments here! :P

[tex] \frac{dy}{dx}=-3e^{-3x}C-sin(x)+3e^{-3x}Dcos(x)-sin(x)[/tex]

close?
 
Hi Kawakaze! :smile:

(just got up :zzz: …)

hmm … I think I'd better do this one for you, and then you can try d2y/dx2

to differentiate e-3x(Ccosx + Dsinx),

you use the product rule … differentiate the left bit on its own (and multiply by the right), then add on the result of differentiating the right bit on its own (and multiply by the left) …

so that's -3e-3x(Ccosx + Dsinx) + e-3x(Dcosx - Csinx),

= e-3x((D - 3C)cosx - (C + 3D)sinx) …

ok, now you try d2y/dx2 :wink:
 
Good morning, sleeping beauty, is this a new meaning to sleeps with the fishes? :)

Product rule, *facepalm* yes its glaring me in the face, i know that one. Working a full 8hr day and then going on to 5am on an assessment that is due really shuts your brain down!

[tex] \frac{d^2y}{dy^2}=-3e^{-3x}((D - 3C)cosx - (C + 3D)sinx) + e^{-3x}((D - 3C)-sinx + (C + 3D)cosx)-cos(x)[/tex]

but where did the cos(x) go, from the end of the solution?
 
Last edited:
Kawakaze said:
Good morning, sleeping beauty, is this a new meaning to sleeps with the fishes? :)

oh yes, I've heard of that saying …

we have a similar saying, "he sleeps with the apes!" :biggrin:
but where did the cos(x) go, from the end of the solution?

I knew you could do that, so I left it off :wink:

ok, now rearrange all the cos together, and all the sin together, inside that big bracket,

then go back to the original equation, put cos = 1, sin = 0, and e-3x = 1, and solve! :smile:
 
tiny-tim said:
oh yes, I've heard of that saying …

we have a similar saying, "he sleeps with the apes!" :biggrin:

Not heard that one, I am sure my missus will agree that she sleeps with an ape :D

[tex] e^{-3x)(-3Dcos(x)+9Ccos(x)+3Ccos(x)+9Dsin(x)-Dsin(x)+3Csin(x)-Ccos(x)-3Dcos(x)-cos(x))[/tex]
[tex] e^{-3x}((-6D+11C)cos(x)+(8D+3C)sin(x)-cos(x))[/tex]

this is not what wolphram alpha gives me, :S
 
tiny-tim said:
then go back to the original equation, put cos = 1, sin = 0, and e-3x = 1, and solve! :smile:

where does this come from?
 
Kawakaze said:
where does this come from?

From putting x = 0 to get the initial values …
Kawakaze said:
I need to find the initial values for when y(0)=3 and y'(0)=12

(oh, you don't need y''(0) after all … it was on page 1, and I didn't check it :redface:)