Nonlinear First Order ODE: Bernoulli Equation with n = 2

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
Mangoes
Messages
92
Reaction score
1

Homework Statement



[tex](y^2 + xy)dx - x^2dy = 0[/tex]

The Attempt at a Solution



Put it into derivative form.

[tex]y^2 + xy - x^2 \frac{dy}{dx} = 0[/tex]

[tex]\frac{dy}{dx} - \frac{y^2}{x^2} - \frac{xy}{x^2} = 0[/tex]

[tex]\frac{dy}{dx} + \frac{-1}{x}y = \frac{1}{x^2}y^2[/tex]

I recognized this as a Bernoulli equation where n = 2.

[tex]\frac{dy}{dx}\frac{1}{y^2} + \frac{-1}{x}\frac{1}{y} = \frac{1}{x^2}[/tex]

Plan to make a substitution of [itex]v = y^{-1}[/itex] and [itex]\frac{dv}{dx} = -y^{-2} \frac{dy}{dx}[/itex]

[tex]-\frac{dv}{dx} + \frac{-1}{x}v = \frac{1}{x^2}[/tex]

[tex]\frac{dv}{dx} + \frac{1}{x}v = \frac{-1}{x^2}[/tex]

[tex]u(x) = e^{\int{\frac{1}{x}}dx}[/tex]

[tex]u(x) = x[/tex]

[tex]\int{x\frac{dv}{dx} + v} = \int{\frac{-1}{x}}[/tex]

LHS is product of product rule.

[tex]xv = -lnx + c[/tex]

Since v = y^(-1)

[tex]\frac{x}{y} = ln{\frac{c}{x}}[/tex]

You could arrange the above equation into various forms, but I see no way to arrange it into the form in the answer key:

[tex]x + yln{|x|} = cy[/tex]

I've checked again and again and can't see where I'm going wrong with this...
 
Physics news on Phys.org
Recall what the logarithm of a ratio is.
 
Mangoes said:

Homework Statement



[tex](y^2 + xy)dx - x^2dy = 0[/tex]

The Attempt at a Solution



Put it into derivative form.

[tex]y^2 + xy - x^2 \frac{dy}{dx} = 0[/tex]

[tex]\frac{dy}{dx} - \frac{y^2}{x^2} - \frac{xy}{x^2} = 0[/tex]

[tex]\frac{dy}{dx} + \frac{-1}{x}y = \frac{1}{x^2}y^2[/tex]

I recognized this as a Bernoulli equation where n = 2.

[tex]\frac{dy}{dx}\frac{1}{y^2} + \frac{-1}{x}\frac{1}{y} = \frac{1}{x^2}[/tex]

Plan to make a substitution of [itex]v = y^{-1}[/itex] and [itex]\frac{dv}{dx} = -y^{-2} \frac{dy}{dx}[/itex]

[tex]-\frac{dv}{dx} + \frac{-1}{x}v = \frac{1}{x^2}[/tex]

[tex]\frac{dv}{dx} + \frac{1}{x}v = \frac{-1}{x^2}[/tex]

[tex]u(x) = e^{\int{\frac{1}{x}}dx}[/tex]

[tex]u(x) = x[/tex]

[tex]\int{x\frac{dv}{dx} + v} = \int{\frac{-1}{x}}[/tex]

LHS is product of product rule.

[tex]xv = -lnx + c[/tex]

Since v = y^(-1)

[tex]\frac{x}{y} = ln{\frac{c}{x}}[/tex]
Strictly speaking this should be
[tex]\frac{x}{y} = ln{\left|\frac{c}{x}\right|}[/tex]
and, of course, [itex]ln|c/x|= ln|c|- ln|x|[/itex]

You could arrange the above equation into various forms, but I see no way to arrange it into the form in the answer key:

[tex]x + yln{|x|} = cy[/tex]

I've checked again and again and can't see where I'm going wrong with this...