Solving a Simple Differential Equation: x.dy/dx+1-y^2=0

Click For Summary

Homework Help Overview

The discussion revolves around solving the differential equation x.dy/dx + 1 - y^2 = 0, which falls under the subject area of differential equations. Participants are exploring various methods of separation and integration to arrive at a solution.

Discussion Character

  • Exploratory, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss separating variables and integrating both sides. There are attempts to break down the left-hand side into partial fractions. Questions arise regarding the correctness of the integration steps and the handling of logarithmic expressions. Some participants also explore the implications of absolute values in their solutions.

Discussion Status

The discussion is active, with participants providing alternative forms of the solution and identifying potential algebraic errors in each other's work. There is an ongoing examination of the initial conditions and how they affect the constants in the solutions presented.

Contextual Notes

Some participants note discrepancies in the solutions due to algebraic errors and the treatment of logarithmic terms, particularly regarding the use of modulus signs. The initial condition provided (x=1 when y=0) is also a point of contention in determining the correct constant.

CNS92
Messages
8
Reaction score
0

Homework Statement


Solve x.dy/dx+1-y^2=0


Homework Equations





The Attempt at a Solution



Separate:
dy/(y^2-1) = dx/x

The LHS can be broken into
dy/(2(y-1))-dy/(2(y+1))

Integrating:

Log[y-1]/[y+1] = log[x^2] + c

Given x=1 when y=0 c=0

Y-1=x^2.y+x^2

Y=(x^2+1)/(x^2-1)

The answer is the reciprocal of mine, can anyone see my mistake?

Thanks
 
Physics news on Phys.org
Actually it's not the reciprocal, it is the negative:
y = (x^2+1)/(1-x^2) = -(x^2+1)/(x^2-1)
is the correct answer.

There is a simple algebraic error in the last step, everything is correct up to
y-1=x^2.y+x^2

Then,
y - x^2 y = 1 + x^2
(1 - x^2) y = (1 + x^2)
y = (1 + x^2) / (1 - x^2)
 
Last edited:
The answer is
y=(1-x^2)/(1+x^2)
I think you lost a sign with the logarithms.
y=(C-x^2)/(C+x^2)
y=1
for example are solutions
Given x=1 when y=0 we see C=1.
Your answer is the case C=-1 which does not satisfy the initial conditions, but since you were working in absolute value the condition |C|=1 was satisfied.
 

Similar threads

Replies
4
Views
3K
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
6
Views
2K
Replies
3
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 24 ·
Replies
24
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K