Is this the correct solution to this DiffEq?

  • Thread starter Thread starter vanceEE
  • Start date Start date
  • Tags Tags
    Diffeq
Click For Summary

Homework Help Overview

The discussion revolves around a differential equation given in the form $$ xy' = y + xy^2 $$, which participants are attempting to solve. The subject area is differential equations, specifically focusing on the methods for solving first-order equations and the implications of linearity versus nonlinearity.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the original poster's approach using an integrating factor and question the validity of assuming that $$y$$ is constant during integration. There is also a suggestion to reconsider the method due to the nonlinearity of the equation. Another participant proposes a substitution method to transform the equation into a linear form.

Discussion Status

The discussion is ongoing, with some participants providing supportive feedback on the methods used while others raise critical points about the assumptions made. There is a recognition of the need to explore different approaches due to the nonlinear nature of the differential equation.

Contextual Notes

Participants are navigating the complexities of solving a nonlinear differential equation, with some expressing uncertainty about the appropriateness of the integrating factor method. The original poster also references an alternative solution found via Wolfram, prompting further exploration of the correctness of both approaches.

vanceEE
Messages
109
Reaction score
2
$$ xy' = y + xy^2 $$
$$ xy' - y = xy^2 $$
$$ y' + (-1/x)y = y^2 $$
$$ e^{∫(-1/x)dx} = 1/x $$
$$ (1/x)[y' + (-1/x)y = y^2] $$
$$ (1/x)y' - (1/x^2)y = (1/x)y^2 $$
$$ ∫((1/x)y)' = ∫((1/x)y^2) dx $$
$$ (1/x)y = (y^2)ln|x| + C $$
$$ y = (xy^2)ln|x|+Cx $$

Wolfram shows me another solution...
$$y = \frac{-2x}{C+x^2}$$
Are both correct?
 
Physics news on Phys.org
vanceEE said:
$$ xy' = y + xy^2 $$
$$ xy' - y = xy^2 $$
$$ y' + (-1/x)y = y^2 $$
$$ e^{∫(-1/x)dx} = 1/x $$
$$ (1/x)[y' + (-1/x)y = y^2] $$
$$ (1/x)y' - (1/x^2)y = (1/x)y^2 $$
$$ ∫((1/x)y)' = ∫((1/x)y^2) dx $$
$$ (1/x)y = (y^2)ln|x| + C $$
$$ y = (xy^2)ln|x|+Cx $$
I don't see anything wrong in what you did.
vanceEE said:
Wolfram shows me another solution...
$$y = \frac{-2x}{C+x^2}$$
Are both correct?
It's easy enough to check. Differentiate your solution implicitly and verify that it satisfies the differential equation.
 
When you say [tex]∫((1/x)y^2) dx = (y^2)ln|x| + C[/tex] you are assuming that ##y## is constant with respect to ##x##, contrary to the assumption of the problem that ##y## is a function of ##x##.

If memory serves, the method of multiplying by an integrating factor in the manner that you have done works for first-order linear differential equations; ones that can be written in the form ##y'+f(x)y=g(x)##. The existence of a ##y^2## term means that this DE is not linear. So integrating factors may not be the way to go.
 
gopher_p said:
this DE is not linear.

gopher_p, you're correct, is this is nonlinear, so my method was incorrect. I needed to solve by substitution, see below:

$$xy' = xy^{2} + y $$
$$xy' - y = xy^{2} $$
$$ \frac{xy'}{xy^2} - \frac{y}{xy^2} = 1 $$
$$ \frac{y'}{y^2} - \frac{1}{xy} = 1 $$
if $$ z = \frac{1}{y} $$.. and $$ z' = \frac{-1}{y^2} \frac{dy}{dx} $$
then..
$$ \frac{y'}{y^2} - \frac{1}{xy} = z' + \frac{1}{x}z $$
this is now a linear equation..
$$ z' + \frac{1}{x}z = -1 $$
$$ e^{∫\frac{1}{x}} = x $$
$$ ∫[x*z]' = ∫ -x dx $$
$$ xz = -\frac{x^2}{2} + C $$
$$ z = -\frac{x^2 + 2C}{2x} $$
$$ \frac{1}{y} = -\frac{x^2+ 2C}{2x} $$
$$ y = -\frac{2x}{x^2 + D} $$ where D = 2C
 
Last edited:
Looks good. Nice work.
 

Similar threads

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