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

In summary, the conversation discusses solving a differential equation involving x and y, and a mistake made in the process. The correct solution is found to be y = (1-x^2)/(1+x^2), with the mistake being a missing sign in the logarithms.
  • #1
CNS92
8
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
  • #2
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)
 
  • #3
http://www.wolframalpha.com/input/?i=solve+x*dy/dx+++(1-y^2)=0+

Weirdly, I can't get this question right doing it as above, but if I divide by (1-y^2) it does work.

If you drop modulus signs, the constant wasn't 0 but 0.5log(-1).

Not really sure why the mod signs mess it up like that..
 
Last edited:
  • #4
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.
 

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

What is an easy differential equation?

An easy differential equation is a mathematical equation that involves one or more derivatives of an unknown function. It is considered easy when the solution can be found using basic mathematical operations and without the need for advanced techniques.

How do you solve an easy differential equation?

To solve an easy differential equation, you need to first identify the type of differential equation it is (e.g. separable, linear, etc.). Then, you can use the appropriate method or technique to find the solution. This may involve integrating, manipulating, or substituting variables.

What is the purpose of solving easy differential equations?

The purpose of solving easy differential equations is to model and understand various phenomena in the natural world, such as the growth of populations, the spread of diseases, and the motion of objects. It also has applications in many fields, including physics, engineering, and economics.

Are there any tools or software that can solve easy differential equations?

Yes, there are many tools and software available that can solve easy differential equations. Some popular ones include Wolfram Alpha, MATLAB, and Maple. These tools use powerful algorithms to find solutions and can handle more complex equations as well.

Can you give an example of an easy differential equation?

One example of an easy differential equation is the exponential growth equation, which can be written as dy/dt = ky, where k is a constant. This equation describes the growth of a population with a constant growth rate, and its solution is y(t) = y0e^(kt), where y0 is the initial population size. This equation can be solved using basic integration techniques.

Back
Top