How can I solve this non-linear first order differential equation?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
9 replies · 2K views
DryRun
Gold Member
Messages
837
Reaction score
4
Homework Statement
http://s1.ipicture.ru/uploads/20120128/U1SBMa6O.jpg

The attempt at a solution
I expanded the equation and got:
[tex]\frac{dy}{dx}=\frac{ylny-ylnx+y}{x}[/tex]
I can't use the method of separation of variables, nor is this a homogeneous equation. It's not a 1st order linear ODE nor in the Bernoulli format. I'm stuck.
 
Physics news on Phys.org
Hi ehild!

So, i guess this is a homogeneous equation.
[tex]\frac{dy}{dx}=u(lny-lnx+1)[/tex]
I'm supposed to eliminate all y and x on the R.H.S. and replace by u only.
[tex]\frac{dy}{dx}=u(lny-lnx+1)=u(lnu+1)=ulnu+u[/tex]
From [itex]y=ux[/itex], [itex]\frac{dy}{dx}=u+x\frac{du}{dx}[/itex]. Then, [itex]u+x\frac{du}{dx}=ulnu+u[/itex].

So, [itex]x\frac{du}{dx}=ulnu[/itex]
[tex]\frac{dx}{x}=\frac{1}{ulnu}\,.du[/tex]
 
Last edited:
I have edited my previous post but then I'm stuck at integrating the R.H.S. of: [tex]\int \frac{dx}{x}=\int \frac{1}{ulnu}\,.du[/tex]
[tex]lnx=\int \frac{1}{ulnu}\,.du[/tex]
If i consider integrating [itex]1/u[/itex] then i get [itex]lnu[/itex].
 
Last edited:
The integration result would then be [itex]ln(lnu)+lnA[/itex], where lnA is the arbitrary real constant of integration.
Therefore, [itex]lnx=ln(lnu)+lnA[/itex] or [itex]x=Alnu[/itex] or [itex]\frac{x}{A}=lnu[/itex]
[tex]\frac{x}{A}=ln\frac{y}{x}[/tex]
[tex]\huge e^\frac{x}{A}=\frac{y}{x}[/tex]
So, the final answer is (i'm using big font to make the power fraction more visible):
[tex]\huge y=xe^\frac{x}{A}[/tex]
Is that correct?
 
Last edited:
Yes, i get the same L.H.S and R.H.S. that is,
[tex]\huge \frac{xe^\frac{x}{A}}{A}+e^\frac{x}{A}[/tex]
So, i assume this is the proof. Thanks, ehild.:smile: