Find the general solution of y''-2y'+2y=xe^x cosx

Tyra

Tyra

Answered question

2020-10-20

Find the general solution of y2y+2y=xexcosx

Answer & Explanation

Aniqa O'Neill

Aniqa O'Neill

Skilled2020-10-21Added 100 answers

y2y+2y=xexcos(x).
Let s=sin(x),c=cos(x), s'=c, c'=-s, then:
y2y+2y=xexc.
First solve the homogeneous equation: y2y+2y=0.
The characteristic equation is r22r+2=0=(r1+i)(r1i).
So y=Ae(1+i)x+Be(1i)x, which can be written:
y=ex(Aeix+Beix), where A and B are constants.
Use Euler’s expansion:
y=ex(Acos(x)+Aisin(x)+Bcos(x)Bisin(x)),
y=ex((A+B)cos(x)+i(AB)sin(x)).
Let C=A+B and D=A-B, then:
y=ex(Ccos(x)+Dsin(x)).
Call this general solution y1=ex(Ccos(x)+Dsin(x))=ex(Cc+Ds)
Now we have to deal with xeˣc, the particular solution, which will give us y₂, such that the entire solution is y=y1+y2.
We guess the solution, where P, Q, R and S are constants:
Let u=(Px+Q)s+(Rx+S)c and apply the tentative solution y2=xexu:
u=(Px+Q)c+Ps(Rx+S)s+Rc,
u=(Px+Q)s+2Pc(Rx+S)c2Rs,
y2=xexu+uex(x+1),

Do you have a similar question?

Recalculate according to your conditions!

New Questions in Differential Equations

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?