Particular solutions - DE

  • Thread starter shiri
  • Start date
  • #1
85
0
Consider the equation [tex]y''+4y=2sin(2x)+e^{2x}+2[/tex]. According to the method of Undetermined Coefficients, the particular solution has the form:

C1 = 1st constant
C2 = 2nd constant
C3 = 3rd constant
.
.
.

A) [tex]C1xsin(2x) + C3x + C4xe^{2x} + C5xe^{-2x}[/tex]
B) [tex]C1sin(2x) + (C2)2 + C3xe^{-2x}[/tex]
C) [tex]C1xcos(2x) + C2xsin(2x) + C3 + C4e^{2x}[/tex]
D) [tex]C1cos(2x) + C2xsin(2x) + C3 + C4xe^{2x}[/tex]

Solution:
[tex]y^2 + 16 = 0[/tex]
[tex]y = -4, 4[/tex]
[tex]yh = c1cos(x) + c2sin(x)[/tex]

[tex]yp = Acos(2x) + Bsin(2x) + C + De^{2x}[/tex]
[tex]y'p = -2Asin(2x) + 2Bcos(2x) + 2De^{2x}[/tex]
[tex]y''p = -4Acos(2x) - 4Bsin(2x) + 4De^{2x}[/tex]

[tex]y'' + 4y = 2sin(2x) + 2 e^{2x}[/tex]
[tex][-4Acos(2x) - 4Bsin(2x) + 4De^{2x}] + 16[Acos(2x) + Bsin(2x) + C + De^{2x}] = 2sin(2x) + 2 + e^{2x}[/tex]
[tex]12Acos(2x) + 12Bsin(2x) + 20De^{2x} + 16C = 2sin(2x) + 2 + e^{2x}[/tex]

[tex]cos(2x)[/tex] ===> 12A = 0 ===> A = 0
[tex]sin(2x)[/tex] ===> 12B = 2 ===> B = 1/6
[tex]16[/tex] ===> 16C = 2===> C = 1/8
[tex]e^{2x}[/tex] ===> 20D = 1 ===> D = 1/20

So far what I got B) as a right answer, but I'm not too sure about A), C), and D)

Can anybody help me out here, please?
 
Last edited:
Physics news on Phys.org
  • #2
Check your work. Your homogeneous solution is wrong, which is causing your particular solution to be wrong as well.
 
  • #3
Also, you have y2 + 16 = 0 right at the start of your solution section. I guess this is your auxiliary equation, but it doesn't have anything to do with this problem.
 
  • #4
vela said:
Check your work. Your homogeneous solution is wrong, which is causing your particular solution to be wrong as well.

Bold: Changes

Solution:
[tex]y^2 + 4 = 0[/tex]
[tex]y = -2i, 2i[/tex]

[tex]yh = c1cos(x) + c2sin(x)[/tex]

[tex]yp = Acos(2x) + Bsin(2x) + C + De^{2x}[/tex]
[tex]y'p = -2Asin(2x) + 2Bcos(2x) + 2De^{2x}[/tex]
[tex]y''p = -4Acos(2x) - 4Bsin(2x) + 4De^{2x}[/tex]

[tex]y'' + 4y = 2sin(2x) + 2 e^{2x}[/tex]
[tex][-4Acos(2x) - 4Bsin(2x) + 4De^{2x}] + 4[Acos(2x) + Bsin(2x) + C + De^{2x}] = 2sin(2x) + 2 + e^{2x}[/tex]
[tex]0Acos(2x) + 0Bsin(2x) + 8De^{2x} + 4C = 2sin(2x) + 2 + e^{2x}[/tex]

[tex]cos(2x)[/tex] ===> 0A = 0 ===> A = 0
[tex]sin(2x)[/tex] ===> 0B = 2 ===> B = 0
[tex]16[/tex] ===> 4C = 2===> C = 1/2
[tex]e^{2x}[/tex] ===> 8D = 1 ===> D = 1/8


Am I doing this right, vela?
 
Last edited:
  • #5
No. Your homogeneous solution is still wrong. First, you solved the characteristic equation incorrectly. Second, the roots you did find don't appear in the homogeneous solution. The whole reason to find the roots is to determine what the homogeneous solution is.

Side note: You shouldn't write y2+4=0 because the symbol y already stands for the function you're looking for. You should use a different variable in the characteristic equation, e.g. r2+4=0.
 
  • #6
vela said:
No. Your homogeneous solution is still wrong. First, you solved the characteristic equation incorrectly. Second, the roots you did find don't appear in the homogeneous solution. The whole reason to find the roots is to determine what the homogeneous solution is.

Side note: You shouldn't write y2+4=0 because the symbol y already stands for the function you're looking for. You should use a different variable in the characteristic equation, e.g. r2+4=0.

so it should be like this [tex]yh = c1e^{2x}+c2e^{-2x}[/tex] ?

Update: I made an error on the equation from a 1st post. It was suppose to be

[tex]y''+4y=2sin(2x)+e^{2x}+2[/tex]

I forgot to put an addition sign between 2 and [tex]e^{2x}[/tex]
 
Last edited:
  • #7
shiri said:
so it should be like this [tex]yh = c1e^{2x}+c2e^{-2x}[/tex] ?
No, it shouldn't.
shiri said:
Update: I made an error on the equation from a 1st post. It was suppose to be

[tex]y''+4y=2sin(2x)+e^{2x}+2[/tex]

I forgot to put an addition sign between 2 and [tex]e^{2x}[/tex]
The homogeneous equation is y'' + 4y = 0. The characteristic equation is r2 + 4 = 0. Vela's remark about using a different variable in the characteristic equation is one you should heed.

The solutions to the characteristic equation are r = +/- 2i. Vela remarked that you didn't have the right solutions, but you edited your work, so I can't tell if he was talking about something you had that you changed.

Since the roots of the char. equation are +/- 2i, you could have as your homogeneous solution yh = c1e2ix + c2e-2ix, but it's much more convenient to use yh = c1cos(2x) + c2sin(2x) and not have to worry about imaginary parts.

Now, for your particular solution. The problematic part is the sin(2x) term. The other two are straightforward. Since your homogeneous solution already has a sin(2x) term (and a cos(2x) term), what you need for the sin(2x) term on the right side is two terms: xcos(2x) and xsin(2x). This means your particular solution will start off with 4 terms.
 
  • #8
Mark44 said:
No, it shouldn't.
The homogeneous equation is y'' + 4y = 0. The characteristic equation is r2 + 4 = 0. Vela's remark about using a different variable in the characteristic equation is one you should heed.

The solutions to the characteristic equation are r = +/- 2i. Vela remarked that you didn't have the right solutions, but you edited your work, so I can't tell if he was talking about something you had that you changed.

Since the roots of the char. equation are +/- 2i, you could have as your homogeneous solution yh = c1e2ix + c2e-2ix, but it's much more convenient to use yh = c1cos(2x) + c2sin(2x) and not have to worry about imaginary parts.

Now, for your particular solution. The problematic part is the sin(2x) term. The other two are straightforward. Since your homogeneous solution already has a sin(2x) term (and a cos(2x) term), what you need for the sin(2x) term on the right side is two terms: xcos(2x) and xsin(2x). This means your particular solution will start off with 4 terms.

yh [tex] = Axcos(2x) + Bxsin(2x) + C + De^{2x}[/tex]
y'h [tex] = Acos(2x) - 2Axsin(2x) + Bsin(2x) + 2Bxcos(2x) + 2De^{2x}[/tex]
y''h [tex] = -2Asin(2x) - 2Asin(2x) - 4Axcos(2x) + 2Bcos(2x) + 2Bcos(2x) -4Bxsin(2x) + 4De^{2x}[/tex]
y''h [tex] = -4Asin(2x) - 4Axcos(2x) + 4Bcos(2x) - 4Bxsin(2x) + 4De^{2x}[/tex]


[tex]y'' + 4y = 2sin(2x) + 2 + e^{2x}[/tex]
[tex](-4Asin(2x) - 4Axcos(2x) + 4Bcos(2x) - 4Bxsin(2x) + 4De^{2x}) + 4(Axcos(2x) + Bxsin(2x) + C + De^{2x}) = 2sin(2x) + 2 + e^{2x}[/tex]
[tex]4Bcos(2x) - 4Asin(2x) + 4C + 8De^{2x} = 2sin(2x) + 2 + e^{2x}[/tex]


sin(2x) ===> -4A = 2 ===> A = -1/2
cos(2x) ===> 4B = 0 ===> B = 0
[tex]4[/tex] ===> 4C = 2 ===> C = 1/2
[tex]e^{2x}[/tex] ===> 8D = 1 ===> D = 1/8

So is that mean C) and D) from the first post are true?
 
  • #9
anyone?
 
  • #10
No, C and D are different. The particular solution has the form of one of them and not the other, so they can't both be the right answer. By the way, is one of the terms in C supposed to have a cosine? The first and second terms are of the same form otherwise.
 
  • #11
vela said:
No, C and D are different. The particular solution has the form of one of them and not the other, so they can't both be the right answer. By the way, is one of the terms in C supposed to have a cosine? The first and second terms are of the same form otherwise.

oops...the first term in C) was suppose to be cosine

C) [tex]C1xcos(2x) + C2xsin(2x) + C3 + C4e^{2x}[/tex]

so according to my work (post #8), the answer is C) right?

yh [tex] = Axcos(2x) + Bxsin(2x) + C + De^{2x}[/tex]
 
  • #12
For this question, you don't need to actually solve the problem. It's just asking you what the particular solution should look like. Now you wrote:

shiri said:
yp [tex] = Axcos(2x) + Bxsin(2x) + C + De^{2x}[/tex]

which is correct. Which choice does yp match?
 
  • #13
vela said:
For this question, you don't need to actually solve the problem. It's just asking you what the particular solution should look like. Now you wrote:



which is correct. Which choice does yp match?

thanks vela!

I got another question I want to ask. It is same as the first post but this question had a different equation

[tex]y'' - 16y = 4cos(4x) + 4 +e^{4x}[/tex]

The particular equation for this question is

[tex]C1cos(4x) + C2sin(4x) + C3 + C4xe^{4x}[/tex]

right?
 
  • #14
shiri said:
thanks vela!

I got another question I want to ask. It is same as the first post but this question had a different equation

[tex]y'' - 16y = 4cos(4x) + 4 +e^{4x}[/tex]

The particular equation for this question is

[tex]C1cos(4x) + C2sin(4x) + C3 + C4xe^{4x}[/tex]

right?
Yup!
 

Suggested for: Particular solutions - DE

Back
Top