How Can I Solve This Complicated Bernoulli Equation?

1d20
Messages
12
Reaction score
0
I've been unable to fully solve this: \frac{dy}{dx} + y = xy^4

The U: u = y^{-3}, so y = u^\frac{-1}{3}, and \frac{dy}{dx} = \frac{-1}{3}u^\frac{-4}{3}\frac{du}{dx}

The substitution: \frac{-1}{3}u^\frac{-4}{3}\frac{du}{dx} + u^\frac{-1}{3} = xu^\frac{-4}{3}

Simplified: \frac{du}{dx} - 3u = -3x

AKA: \frac{du}{dx} + 3x = 3u

I've tried solving the resulting equation as a linear:

p(x) = 3x, so the integrating factor is e^{\frac{3}{2}x^2}.

Which creates this unworkable equation: e^{\frac{3}{2}x^2}\frac{du}{dx} + 3xe^{\frac{3}{2}x^2} = 3ue^{\frac{3}{2}x^2}

And I've tried solving it as a homogenous (3udx - 3xdx - du = 0):

u = vx, so du = vdx + xdv

Subing those in creates this unworkable mess: 3vxdx - 3xdx - vdx - xdv = 0

Which leaves me stuck, because I've only learned to solve separable, exact, homogenous, linear and bernoullis.
 
Physics news on Phys.org
The equation is most easily solved at this stage: \frac{du}{dx} - 3u = -3x

The integrating factor is just e^{-3x}. Solve from there.
 
1d20 said:
Simplified: \frac{du}{dx} - 3u = -3x

AKA: \frac{du}{dx} + 3x = 3u

I've tried solving the resulting equation as a linear:

p(x) = 3x, so the integrating factor is e^{\frac{3}{2}x^2}.

You don't need an integrating factor here. This is a linear equation with constant coefficients. Find the general solution of
\frac{du}{dx} - 3u = 0
plus a particular integral of
\frac{du}{dx} - 3u = -3x
which is going to be of the form u(x) = a + bx, for some constants of a and b.
 
Both methods solve the equation in about 2 lines, but yeah you can do complimentary function and particular integral if you prefer.
 
Also the particular integral is u(x) = a - 3x. You don't get two arbitrary constants from a first order ODE
 
Sorry it's a + x
 
Ben M said:
Also the particular integral is u(x) = a - 3x. You don't get two arbitrary constants from a first order ODE

You don't get any arbitary constants in a particular integral. My a and b were values to be found, not arbitrary constants.

Ben M said:
Sorry it's a + x

No, see above. N.B. I was trying not to give the OP the complete answer to something that might be a homework question.
 
Thanks for the help!

A final question: I thought all integrating factors must have the p(x) part integrated, but this seems to be an exception. How come?
 
1d20 said:
A final question: I thought all integrating factors must have the p(x) part integrated, but this seems to be an exception. How come?

The way I did it is a standard method, but maybe you haven't learned it yet. This logic behind it is:
For a linear equation like this one, any solution of ##du/dx -3u = -3x## is the sum of the solutions of two equations, the "given" equation
##du/dx -3u = -3x##
and the simpler equation
##du/dx - 3u = 0##
You can easily find the general solution of the equation with 0 on the right hand side, and that solution ##Ce^{3x}## contans an arbitrary constant.

You know there is only one arbitrary constant in the complete solution, so you don't need another one. Instead of finding the general solution of ##du/dx -3u = -3x##, now we only need one particular solution. You can usually guess the form of a particular solution from the function on the right hand side, and then equate the coefficients of different terms in the equation to find the unknown values.

In this case, we can guess that ##u = ax + b## is a solution for some values of a and b. Then ##du/dx = a##, and the substituting in the differential equation we have
##a -3(ax + b) = -3x##
To satisfy that equation for all values of ##x##, the constant terms and the coefficients of ##x## must both cancel out. So we have
##a - 3b = 0##
and
##-3ax = -3x## for all ##x##
which gives ##a = 1## and ##b = 1/3##
and the general solution is ##u = Ce^{3x} + x + 1/3##.
That method might seem longwinded (or even sneaky) but the real benefit comes because most of the "interesting" differential equations in physics and engineering are second order not first order, and finding integrating factors for second order equations is hard. (And most of the longwindedness was explaining it, not actually doing it).

Alternatively you can solve this equation using an integrating factor without any "trickery".
##du/dx -3u = -3x##
The integrating factor is ##e^{-3x}##
##e^{-3x}du/dx - 3u e^{-3x} = -3xe^{-3x}##
##d/dx (ue^{-3x}) = -3xe^{-3x}##
##ue^-3x = -3\int x e^{-3x}\,dx##
And you need to integrate by parts to do the integral on the right hand side.
 
Back
Top