Solving differential equation(separable)

  • Context: Undergrad 
  • Thread starter Thread starter aerograce
  • Start date Start date
  • Tags Tags
    Differential
Click For Summary
SUMMARY

The discussion focuses on solving the separable differential equation \(\frac{dy}{dx}=\frac{y-1}{x+1}\) with the initial condition \(y(0)=0\). Two methods are presented: the first leads to potential solutions \(y=3\) or \(y=-1\), while the second method, endorsed by the teacher, results in \(y=-1\). The confusion arises from the interpretation of the absolute value in the logarithmic solution, where the behavior of the function indicates that if \(y < 1\), then \(y\) remains less than 1 for all \(x \geq 0\).

PREREQUISITES
  • Understanding of separable differential equations
  • Familiarity with logarithmic functions and properties
  • Basic knowledge of initial value problems
  • Concept of stability in differential equations
NEXT STEPS
  • Study the method of separation of variables in differential equations
  • Learn about the behavior of solutions to first-order ordinary differential equations (ODEs)
  • Explore the implications of initial conditions on the uniqueness of solutions
  • Investigate the concept of stability in differential equations and its applications
USEFUL FOR

Students studying calculus, particularly those focusing on differential equations, educators teaching ODEs, and mathematicians interested in the analysis of solution behavior in initial value problems.

aerograce
Messages
63
Reaction score
1
Let y be a solution of the di®erential equation,
[itex]\frac{dy}{dx}[/itex]=[itex]\frac{y-1}{x+1}[/itex]

such that

y(0)=0;

Then y(1) is:

My attempt:

[itex]\frac{1}{y-1}[/itex]dy=[itex]\frac{1}{x+1}[/itex]dx

ln|y-1|= ln |x+1| +C

Problems start to occur from here:

My method:

When x=0, y=0. Hence ln0=ln0+C C=0;
When x=1, ln|y-1|= ln2 + 0;
Hence |y-1| = 2
y=3 or y=-1.

My teacher's method
[itex]\frac{1}{y-1}[/itex]dy=[itex]\frac{1}{x+1}[/itex]dx

ln|y-1|= ln |x+1| +C

(y-1)=A(x+1)

Because y(0)=0 Hence A=-1

And when x=1, y-1=-2 y=-1



I am quite confused. My method seems to be legit also, but why I got different answer.
 
Physics news on Phys.org
aerograce said:
Let y be a solution of the di®erential equation,
[itex]\frac{dy}{dx}[/itex]=[itex]\frac{y-1}{x+1}[/itex]

such that

y(0)=0;

Then y(1) is:

My attempt:

[itex]\frac{1}{y-1}[/itex]dy=[itex]\frac{1}{x+1}[/itex]dx

ln|y-1|= ln |x+1| +C

Problems start to occur from here:

My method:

When x=0, y=0. Hence ln0=ln0+C C=0;

You of course mean [itex]\ln 1 = \ln 1 + C[/itex] so that [itex]0 = 0 + C[/itex].

When x=1, ln|y-1|= ln2 + 0;
Hence |y-1| = 2
y=3 or y=-1.

If you look at the ODE you'll see that if [itex]y < 1[/itex] then [itex]dy/dx < 0[/itex] and if [itex]y > 1[/itex] then [itex]dy/dx > 0[/itex] (in both cases this assumes [itex]x \geq 0[/itex]). Thus if [itex]y(0) < 1[/itex] then [itex]y(x) < 1[/itex] for all [itex]x \geq 0[/itex], so you must take [itex]|y - 1| = 1 - y[/itex].
 

Similar threads

  • · Replies 16 ·
Replies
16
Views
4K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
6K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 7 ·
Replies
7
Views
5K