Initial Value Problem (complex example)

Click For Summary
The discussion revolves around solving the initial value problem given by the differential equation dy/dx + y(-2) Sin(3x) = 0 with the condition y(0) = 2. Participants clarify that to solve the equation, separation of variables is necessary, moving all y terms to one side and x terms to the other. There is confusion regarding the dependent variable due to the notation involving both x and t. After some back-and-forth, the correct integration approach is established, leading to the solution for the constant C. The final expression derived is y^3/3 = 1/3 Cos(3x) + C, with C calculated as 2 1/3.
King_Silver
Messages
83
Reaction score
6
I know the method and can solve other initial value problems. This is the question given:
dy/dx + y(-2) Sin(3x) = 0 for t > 0, with y(0) = 2.

I've brought the dy/dx and let it equal to the rest of the expression so it is now:
dy/dx = -y-2 Sin(3x) , with y(0) = 2 (i.e. when x = 0, y = 2 )

The -y-2 is obstructing me from integrating both sides and solving for constant C using the information given. What would I have to do to eliminate the -y-2 entirely from the question so I can continue standard procedures?
 
Physics news on Phys.org
Maybe I'm overlooking something, but can't you just multiply the original equation by ##y^2##?
 
Krylov said:
Maybe I'm overlooking something, but can't you just multiply the original equation by ##y^2##?
But if you multiply the original by y2 then you will need to do the same to the left hand side as you have done to the right hand side, meaning the dy/dx would also be affected.
 
King_Silver said:
I know the method and can solve other initial value problems. This is the question given:
dy/dx + y(-2) Sin(3x) = 0 for t > 0, with y(0) = 2.

It's not clear which is the dependent variable here. The equation suggests x, but there's this 't > 0' restriction. I'm confused.
I've brought the dy/dx and let it equal to the rest of the expression so it is now:
dy/dx = -y-2 Sin(3x) , with y(0) = 2 (i.e. when x = 0, y = 2 )

It looks like you want to use separation of variables here. Do you know how to get all y and dy to one side of the equation, and all x and dx to the other?
The -y-2 is obstructing me from integrating both sides and solving for constant C using the information given. What would I have to do to eliminate the -y-2 entirely from the question so I can continue standard procedures?

If you separate the variables, everything should be smooth sailing after that. :smile:
 
SteamKing said:
It's not clear which is the dependent variable here. The equation suggests x, but there's this 't > 0' restriction. I'm confused.It looks like you want to use separation of variables here. Do you know how to get all y and dy to one side of the equation, and all x and dx to the other?If you separate the variables, everything should be smooth sailing after that. :smile:

What do you mean by that? all y to the left and all x terms to the right?

so like ∫ y-2 dy = ∫Sin(3x) dx ? :)
 
SteamKing said:
If you separate the variables, everything should be smooth sailing after that. :smile:
Indeed. Just allow yourself to do the usual abuse of differentials.
 
King_Silver said:
What do you mean by that? all y to the left and all x terms to the right?

so like ∫ y-2 ∫dy = Sin(3x) dx ? :)
I think you have too many integral signs on one side of the equation, and not enough on t'other.
 
  • Like
Likes King_Silver
SteamKing said:
I think you have too many integral signs on one side of the equation, and not enough on t'other.
Sorry that was just an accident edited the post :) thanks! got it sorted now cheers! :D
 
King_Silver said:
What do you mean by that? all y to the left and all x terms to the right?

so like ∫ y-2 dy = ∫Sin(3x) dx ? :)
Shouldn't that be ∫ y+2 dy?
 
  • Like
Likes King_Silver
  • #10
Samy_A said:
Shouldn't that be ∫ y+2 dy?
And a -Sin(3x) I think, sorry my bad!
I'm sure it should be a -Sin(3x) as well.
 
  • Like
Likes Samy_A
  • #11
integrated it.
y3/3 = 1/3 Cos(3x) + C, with y(0) = 2

so 23/3 = 1/3 Cos(0) + C
2 2/3 = 1/3 + C

C = 2 1/3

That is what I got :)
 

Similar threads

  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 11 ·
Replies
11
Views
3K
  • · Replies 10 ·
Replies
10
Views
1K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 8 ·
Replies
8
Views
744
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 4 ·
Replies
4
Views
4K