Non-homogenous differential equation

Click For Summary

Homework Help Overview

The discussion revolves around solving a non-homogeneous differential equation of the form y'' + 4y = tsin(t), with initial conditions y(0) = 0 and y'(0) = 1. Participants are exploring the general solution and particular solution approaches within the context of differential equations.

Discussion Character

  • Mixed

Approaches and Questions Raised

  • Participants discuss the form of the general solution and the need for a particular solution, with some suggesting the inclusion of additional terms. There are attempts to substitute back into the original equation to find coefficients. Questions arise regarding the determination of constants C_1 and C_2 based on initial conditions.

Discussion Status

Several participants are actively engaging with the problem, attempting different methods to find the particular solution and discussing the implications of their findings. Some guidance has been offered regarding the structure of the solution and the relationship between the general and particular solutions, but no consensus has been reached on the correctness of the approaches taken.

Contextual Notes

Participants express uncertainty about the initial conditions and how they affect the constants in the general solution. There is also mention of alternative methods, such as Variation of Parameters, as a potential approach to finding the particular solution.

James889
Messages
190
Reaction score
1
Hi,

My memory ran away, i completely forgot how to do this =/

I need to solve
[tex]y'' + 4y = tsint,~~y(0) = 0,~y'(0) = 1[/tex]

with the general solution [tex]C_1sin(2t) + C_2cos(2t)[/tex]

[tex]y = Atsin(t) +Btcos(t)[/tex]

[tex]y' = Asin(t) + Atcos(t) +Bcos(t) -Btcos(t)[/tex]

[tex]y'' = Acos(t) + Acos(t) -Atsin(t) - Bsin(t) -Bsin(t) -Btsin(t)[/tex]

substitute back into the first equation:

[tex]2Acos(t) - 2Bsin(t) + 3Atsin(t) + 3Btcos(t)[/tex]

So if i let A be [tex]1/3[/tex] i get [tex]2/3cos(t) + tsin(t)[/tex]

How did you determine the [tex]C_1[/tex] and [tex]C_2[/tex] constants ?
 
Physics news on Phys.org
James889 said:
Hi,

My memory ran away, i completely forgot how to do this =/

I need to solve
[tex]y'' + 4y = tsint,~~y(0) = 0,~y'(0) = 1[/tex]

with the general solution [tex]C_1sin(2t) + C_2cos(2t)[/tex]

[tex]y = Atsin(t) +Btcos(t)[/tex]
Your particular solution needs two more terms:
yp = Asin(t) + Bcos(t) + Ctsin(t) + Dtcos(t)
James889 said:
[tex]y' = Asin(t) + Atcos(t) +Bcos(t) -Btcos(t)[/tex]

[tex]y'' = Acos(t) + Acos(t) -Atsin(t) - Bsin(t) -Bsin(t) -Btsin(t)[/tex]

substitute back into the first equation:

[tex]2Acos(t) - 2Bsin(t) + 3Atsin(t) + 3Btcos(t)[/tex]

So if i let A be [tex]1/3[/tex] i get [tex]2/3cos(t) + tsin(t)[/tex]

How did you determine the [tex]C_1[/tex] and [tex]C_2[/tex] constants ?
From the initial conditions.
 
ARGH!

I struggled with this all day trying to figure out what i did wrong..
 
Right

[tex]y = ASin(t) + BCos(t) +CtSin(t) + DtCos(t)[/tex]

[tex]y' = ACos(t) - BSin(t) + CSin(t) + CtCos(t) + DCos(t) -DtSin(t)[/tex]

[tex]y'' = -ASin(t) -BCos(t) + CCos(t) +CCos(t) -CtSin(t) - DSin(t) - DSin(t) -DtCos(t)[/tex]


[tex]= -ASin(t) - BCos(t) +2CCos(t) -2DSin(t) -CtSin(t) -DtCos(t)[/tex]


Adding 4y gives me:

[tex]3ASin(t) + 3BCos(t) - 2DSin(t) + 2CCos(t) + 3CtSin(t) + 3DtCos(t)[/tex]

So [tex]C = 1/3[/tex]
and [tex]B = -2/9[/tex]

But this does not satisfy y(0) = 0
 
This is your particular solution. The general solution is the solution to the homogeneous problem (you miscalled it the general solution) plus the particular solution. Use the general solution and the initial conditions to find C1 and C2.
 
James889:

If you have problem finding the particular solution using Undetermined Coefficients method,
you can always try using the inginiuos Variation of Parameters by Lagrange ;)

y1(x), y2(x) : are two linearly independent homogeneous solutions.
g(x) : the particular expression, in your case = x*sin(x).

u'1(x)*y1(x) + u'2(x)*y2(x) = 0
u'1'(x)*y'1(x) + u'2(x)*y'2(x) = g(x)

solve the system of equations and find u1(x) and u2(x) by integration.
the particular part of the answer will be:

Y(x) = u1(x)*y1(x) + u2(x)*y2(x).

the complete answer for the ODE (A,B are constants):

y(x) = [A*y1(x)] + [B*y1(x)] + [u1(x)*y1(x) + u2(x)*y2(x)].

*Lagrange was a genius !
 
Mark44 said:
This is your particular solution. The general solution is the solution to the homogeneous problem (you miscalled it the general solution) plus the particular solution. Use the general solution and the initial conditions to find C1 and C2.
Hm,
So if i put
[tex]y =\frac{t}{3}sin~t - \frac{2}{9}cos~t + C_1sin(2t) + C_2cos(2t)[/tex]for the condition y(0) = 0 [tex]C_2 = \frac{2}{9}[/tex]

then i have
[tex]y' = \frac{t}{3}cos~t + \frac{2}{9}sin~t + 2C_1cos(2t) -2C_2sin(2t)[/tex]

and for
[tex]y'(0) = 1[/tex]

[tex]\frac{1}{3} + 2C_1 = 1, \rightarrow C_1 = \frac{2}{6}[/tex]

Is this correct?
 
Check it for yourself. You have y = (1/3) tsin(t) - (2/9) cos(t) + (1/3) sin(2t) + (2/9) cos(2t).

This is the solution if
1) it satisfies the initial conditions y(0) = 0 and y'(0) = 1, and
2) it satisfies the diff. equation y'' + 4y = tsin(t).
 

Similar threads

Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
4
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
Views
9K
Replies
4
Views
2K
  • · Replies 12 ·
Replies
12
Views
5K