Find the general solution of the differential equation

Click For Summary

Homework Help Overview

The discussion revolves around solving the differential equation \(\frac{dx}{dt}=\frac{t^2+1}{x+2}\) with the initial condition \(x(0) = -2\). Participants are exploring methods to find the general solution and addressing the implications of the initial value.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation

Approaches and Questions Raised

  • The original poster attempts to apply the method of separation of variables and integrates both sides of the equation. Some participants suggest completing the square as a potential next step, while others mention using the initial condition to determine the constant involved.

Discussion Status

The discussion has progressed with participants providing feedback on the original poster's approach. Some guidance has been offered regarding the next steps, including the use of the initial condition and the consideration of completing the square.

Contextual Notes

There is a note about the initial condition leading to an undefined derivative at \(t=0\), which raises questions about the behavior of the solution at that point.

Umayer
Messages
12
Reaction score
0

Homework Statement



The equation:

\frac{dx}{dt}=\frac{t^2+1}{x+2}.

Where the initial value is: x(0) = -2.

Homework Equations



I believe you have to use the method of seperations of variables.

The Attempt at a Solution



So I multiplied both sides with x+2. Then I integrated both sides with respect to t.

(x+2)\frac{dx}{dt}=t^2+1

\int(x+2)\frac{dx}{dt}\,dt=\int (t^2+1)\,dt

\int(x+2)\,dx=\int (t^2+1)\,dt

\frac{x^2}{2}+2x=\frac{t^3}{3}+t+C

(Note: I've added the two constants of both sides into one constant.)

Then, I multiplied everything with 2.

x^2+4x=\frac{2}{3}t^3+2t+C'

Where C'=2C

Now I'm not so sure how I should go further then this. Any help would be nice.
 
Physics news on Phys.org
It's correct so far -- if you have to solve for x, I think completing the square would work nicely.
 
  • Like
Likes   Reactions: 1 person
Use the initial condition to find the constant C'.

ehild
 
  • Like
Likes   Reactions: 1 person
Umayer said:

Homework Statement



The equation:

\frac{dx}{dt}=\frac{t^2+1}{x+2}.

Where the initial value is: x(0) = -2.

Homework Equations



I believe you have to use the method of seperations of variables.

The Attempt at a Solution



So I multiplied both sides with x+2. Then I integrated both sides with respect to t.

(x+2)\frac{dx}{dt}=t^2+1

\int(x+2)\frac{dx}{dt}\,dt=\int (t^2+1)\,dt

\int(x+2)\,dx=\int (t^2+1)\,dt

\frac{x^2}{2}+2x=\frac{t^3}{3}+t+C

(Note: I've added the two constants of both sides into one constant.)

Then, I multiplied everything with 2.

x^2+4x=\frac{2}{3}t^3+2t+C'

Where C'=2C

Now I'm not so sure how I should go further then this. Any help would be nice.

x^2 + 4x = (x + 2)^2 - 4.

You might ask "what sign goes before the square root?", and normally the answer would be "use the ODE to work out whether x'(0) is positive or negative", but in this case the ODE tells you that x'(0) is undefined ...
 
  • Like
Likes   Reactions: 1 person
Thanks allot guys I've found the answer.
 
Umayer said:
Thanks allot guys I've found the answer.

Just as a matter of interest: what is your solution? (This IVP is a bit tricky!)
 
Ray Vickson said:
Just as a matter of interest: what is your solution? (This IVP is a bit tricky!)

x = \pm\sqrt{\frac{2}{3}t^3+2t} -2

The constant is zero. It is tricky indeed.
 

Similar threads

  • · Replies 105 ·
4
Replies
105
Views
8K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
4
Views
2K
Replies
6
Views
3K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
3
Views
2K
Replies
3
Views
2K
Replies
8
Views
2K
Replies
5
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K