Please tell me what I did wrong when solving this DE

  • Context: Undergrad 
  • Thread starter Thread starter asdfghhjkl
  • Start date Start date
Click For Summary
SUMMARY

The discussion centers on solving the differential equation x(dy/dx) = y² - 1. The user initially attempted to solve it by separating variables and integrating, leading to the incorrect result y = (1 + x²)/(1 - x²). The correct solution is y = (1 - x²)/(1 + x²). The mistake was identified as neglecting the absolute values in the integration process, specifically in the expression (y - 1)/(y + 1) = x², which should have been |(y - 1)/(y + 1)| = x².

PREREQUISITES
  • Understanding of differential equations and separation of variables
  • Knowledge of integration techniques, particularly logarithmic integration
  • Familiarity with absolute values in mathematical expressions
  • Basic algebraic manipulation skills
NEXT STEPS
  • Study the concept of absolute values in differential equations
  • Learn about the method of integrating factors for solving differential equations
  • Explore advanced techniques in solving nonlinear differential equations
  • Review the properties of logarithmic functions and their applications in calculus
USEFUL FOR

Students and professionals in mathematics, particularly those studying differential equations, as well as educators looking for examples of common mistakes in solving such equations.

asdfghhjkl
Messages
15
Reaction score
0
Hello everyone,

I have a brief question. I am trying to solve the following simple differential equation:
x\dfrac{dy}{dx}= y^2-1
I manage to solve it one way, but when I try to solve it in the following way, I cannot get the correct answer. I would really appreciate if someone could point out my mistake :)

\dfrac{dy}{y^2-1}= \dfrac{dx}{x}
Rewriting the fraction on the left as the sum of two fractions
\dfrac{1}{2}(\dfrac{-1}{y+1}+\dfrac{1}{y-1})dy= \dfrac{dx}{x}
Integrating both sides:
\dfrac{1}{2}∫(\dfrac{-1}{y+1}+\dfrac{1}{y-1})dy= ∫\dfrac{dx}{x}
\dfrac{1}{2}∫(-1ln(y+1)+ln (y-1))dy= ln(x)+c
\dfrac{1}{2} ln(\dfrac{y-1}{y+1})= ln(x)+c
It is given that when x=1, y=0, thus c=0
\dfrac{1}{2} ln(\dfrac{y-1}{y+1})= ln(x)
\dfrac{y-1}{y+1}= x^2
Which gives:
y= \dfrac{1+x^2}{1-x^2}
But, he correct result is:
y= \dfrac{1-x^2}{1+x^2}

I would really appreciate if anyone could point out the mistake. Thank you. :)
 
Physics news on Phys.org
Hi asdfghhjkl :smile:

Welcome to Physicsforums !

\dfrac{y-1}{y+1}= x^2 should be \dfrac{|y-1|}{|y+1|}= x^2

and this will give you \dfrac{1-y}{y+1}= x^2 .You can check that from the initial conditions.

Remember ∫(1/x)dx =ln|x|.
 
Oh, I see thank you very much for your help :)
 

Similar threads

  • · Replies 16 ·
Replies
16
Views
3K
Replies
2
Views
2K
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
Replies
3
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K