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

Click For Summary
The differential equation x.dy/dx + 1 - y^2 = 0 is solved by separating variables and integrating. The integration leads to the expression Log[(y-1)/(y+1)] = Log[x^2] + c, with the initial condition x=1, y=0 determining c=0. The correct solution is derived as y = (1 + x^2) / (1 - x^2), which was initially miscalculated due to an algebraic error. The confusion arose from handling logarithmic signs and constants, with the final correct form being y = (1 - x^2) / (1 + x^2). The discussion highlights the importance of careful algebraic manipulation in solving differential equations.
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.
 
Question: A clock's minute hand has length 4 and its hour hand has length 3. What is the distance between the tips at the moment when it is increasing most rapidly?(Putnam Exam Question) Answer: Making assumption that both the hands moves at constant angular velocities, the answer is ## \sqrt{7} .## But don't you think this assumption is somewhat doubtful and wrong?

Similar threads

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