What is the issue with the two methods used to solve the ODE dy/dx=x(1-y)?

Click For Summary
SUMMARY

The discussion centers on solving the ordinary differential equation (ODE) dy/dx = x(1-y) using both the integrating factor method and the separable method. The integrating factor method yields the solution y = 1 + c*e^(-x^2/2), while the separable method results in y = 1 - 1/K*e^(x^2/2). Despite the apparent differences, both methods ultimately lead to equivalent solutions upon correcting minor errors in the calculations. The key takeaway is that both methods are valid, and discrepancies arise from typographical mistakes rather than fundamental differences in the solutions.

PREREQUISITES
  • Understanding of ordinary differential equations (ODEs)
  • Familiarity with integrating factors in differential equations
  • Knowledge of separation of variables technique
  • Basic integration techniques and properties of exponential functions
NEXT STEPS
  • Review the method of integrating factors for solving linear ODEs
  • Practice solving separable differential equations with various examples
  • Explore the concept of equivalence in solutions of differential equations
  • Investigate common pitfalls in ODE calculations and how to avoid them
USEFUL FOR

Students and professionals in mathematics, particularly those studying differential equations, as well as educators looking for clarification on solving ODEs using different methods.

badtwistoffate
Messages
81
Reaction score
0
Got the eqn dy/dx=x(1-y) and it can be solved both linear and separable methods.(Linear method being using a integrating factor) Problem I am having is that with this two methods i get two different (yet similar answers) and was wondering if you can see my problem with this two methods I am using.

Integrating Factor method:
y'+xy=x, u'(x)=e^(x^2/2)

[e^(x^2/2)y]'=x*e^(x^2/2)

e^(x^2/2)y=integral(x*e^(x^2/2)), do u substitution, get...

e^(x^2/2)y=e^(x^2/2)+c

y=1+c/e^(x^2/2) or y=1+c*e^(-x^2/2)

Separable method:
dy/(1-y)=x dx, integrate both sides

-ln(1-y)=e^(x^2/2)+C, raise both sides to e.

1/(1-y)=K*e^(x^2/2)+C, rearrange to get y=.

y=1-1/K*e^(x^2/2)

so we get two different answers with these methods, where is the problem lieing or are both wrong?
 
Physics news on Phys.org
badtwistoffate said:
Separable method:
dy/(1-y)=x dx, integrate both sides

-ln(1-y)=e^(x^2/2)+C, raise both sides to e.

1/(1-y)=K*e^(x^2/2)+C, rearrange to get y=.

y=1-1/K*e^(x^2/2)
You got a bit sloppy near the end. Some mistakes are just typo's I think.

[tex]-\ln(1-y)=\frac{1}{2}x^2+C[/tex]
[tex]1-y=K\exp(-\frac{1}{2}x^2)[/tex]
[tex]y=1-K\exp(-\frac{1}{2}x^2)[/tex]

So it's the same.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
7
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
6
Views
2K
Replies
20
Views
2K