Finding a Solution to a Differential Equation with Complex Solutions

  • Thread starter Thread starter Jameson
  • Start date Start date
AI Thread Summary
The discussion revolves around solving the differential equation dy/dx + x/y = 0, leading to the separation of variables and integration. The user encounters a problem when reaching y^2 = -x^2, realizing that taking the square root is problematic due to the negative sign. It is suggested that the user may be restricting themselves to real solutions, while complex solutions are also valid. The importance of including boundary conditions or initial values in the problem statement is emphasized, as it affects the completeness of the solution. The conversation highlights the need to consider complex numbers in differential equations.
Jameson
Insights Author
Gold Member
MHB
Messages
4,533
Reaction score
13
Find a solution to the following D.E.

\frac{dy}{dx} + \frac{x}{y}=0

\frac{dy}{dx}=-\frac{x}{y}

Separate variables...

ydy = -xdx

Integrate both sides...

\frac{y^2}{2}=-\frac{x^2}{2}

Multiply both sides by 2, and here is where my problem arises...

y^2=-x^2

Stuck. x^2 will always be positive, so after applying the negative, I can't take the squareroot. It has to be a simple mistake. Please give a small bit of help or a small hint. :confused:
 
Physics news on Phys.org
Aaargh... nearly there...

y^2=-x^2+C

Does this ring a bell?
 
Is there some reason you must restrict yourself to the reals? Even with the constant of integration which you need (as above) there is the possibility of a complex solution. A complete problem statement will include the boundary conditions or initial values. You have not provided a complete problem statement. Without that. your solution is complete with the addion of the constant of integration.
 
Thread 'Variable mass system : water sprayed into a moving container'
Starting with the mass considerations #m(t)# is mass of water #M_{c}# mass of container and #M(t)# mass of total system $$M(t) = M_{C} + m(t)$$ $$\Rightarrow \frac{dM(t)}{dt} = \frac{dm(t)}{dt}$$ $$P_i = Mv + u \, dm$$ $$P_f = (M + dm)(v + dv)$$ $$\Delta P = M \, dv + (v - u) \, dm$$ $$F = \frac{dP}{dt} = M \frac{dv}{dt} + (v - u) \frac{dm}{dt}$$ $$F = u \frac{dm}{dt} = \rho A u^2$$ from conservation of momentum , the cannon recoils with the same force which it applies. $$\quad \frac{dm}{dt}...
Back
Top