Solving the Differential Equation

maphysique
Messages
3
Reaction score
0
Could anyone teach how to solve the following differential equation?

\frac{d^2 y}{dx^2}+2\left(\frac{dy}{dx}\right)^2+y=0
 
Last edited:
Physics news on Phys.org
Well this is a 2nd order nonlinear homogeneous differential equation. Its tougher because the y' is of 2nd power.
 
Last edited:
Make the substitution v = \frac{dy}{dx} so that v \frac{dv}{dy} = \frac{d^2y}{dx^2}. This results in a first-order ODE (where y is now the indep. variable). Solve this DE for v(y), then sub back in \frac{dy}{dx} for v to get a first-order DE for y(x) and solve (I don't have time to do it right now, so it may not be very pretty).

The reason that this method works in this case is that x does not appear explicitly in the DE.
 
How are you going to solve it if its v^2 ?
 
\frac{d^2y}{dx^2} + 2\left(\frac{dy}{dx}\right)^2 + y = 0 \Longrightarrow<br /> v\frac{dv}{dy} + 2v^2 + y = 0

which is an inexact DE, ie. it is in the form P(y, \ v) + Q( y, \ v)v^\prime = 0 with \frac{\partial P}{\partial v} \neq \frac{\partial Q}{\partial y}. We look for an integrating factor I(y) such that

\ln{I(y)} = \int \frac{P_v -Q_y}{Q} dy

In this case, Q(y, \ v) = v and P(y, \ v) = 2v^2 + y so

\ln{I(y)} = \int \frac{ 4v - 0 }{v} dy = \int 4 dy \Longrightarrow I(y) = e^{4y}

note that not including a constant of integration makes no difference for our purposes. From the above, we know that

e^{4y}(2v^2 + y) + e^{4y}v\frac{dv}{dy} = 0

is an exact equation.

Then you need to know how to solve exact equations, but that's not hard~

Note that I skipped a bunch of steps on the theory of inexact first-order ODEs (as in, why did I look for an integrating factor that way?), but you can look those up or just ask and I can post them~
 
Last edited:
Come on guys. I'd like to see this to completion. Maphysique, can you solve the exact equation in v, and get an expression in terms of F(y,v)=c? I end up with an expression for y' that I cannot integrate (a radical). Don't want to interfere with Data helping you though.
 
Getting an expression for y' that you cannot integrate is fairly typical of problems like this. In general, solutions to non-linear equations cannot be written in terms of elementary functions. Do you have reason to think that this one can be?
 
Yeah, the resulting integral for y is not nice at all. But at least he has it down to an integral, which is perfectly sufficient for approximating a solution :).
 
Data said:
Yeah, the resulting integral for y is not nice at all. But at least he has it down to an integral, which is perfectly sufficient for approximating a solution :).

Thanks Data. When I first saw the problem, I didn't think to solve it that way. Just in case you guys don't feel like typing it all in, I'll do the next part. Perhaps Maphysique will follow it through:

I'll write the exact equation as follows:

[e^{4y}(2v^2 + y]dy + [e^{4y}v]dv = 0

"Exact" means its a total differential of some function F(y,v), that is:

dF=[e^{4y}(2v^2 + y]dy + [e^{4y}v]dv

Then surely:

\frac{\partial F}{\partial y}=[e^{4y}(2v^2 + y]

and:

\frac{\partial F}{\partial v}=[e^{4y}v]

To find F(y,v), let's integrate the partial with respect to y:

\int{\frac{\partial F}{\partial y}=\int{[e^{4y}(2v^2 + y]}dy

And thus:

F(y,v)=\frac{1}{2}v^2e^{4y}+\frac{1}{4}ye^{4y}-\frac{1}{16}e^{4y}+T(v)

Where integrating the partial with respect to y necessarilly yields some arbitrary function of v, T(v).

Differentiating F(y,v) with respect to v now yields:

\frac{\partial F}{\partial v}=ve^{4y}+\frac{dT}{dv}

But according to the exact differential, this is also equal to e^{4y}v

Or:

ve^{4y}+\frac{dT}{dv}=e^{4y}v

or:

\frac{dT}{dv}=0

Integrating yields:

T(v)=k

So that:

F(y,v)=\frac{1}{2}v^2e^{4y}+\frac{1}{4}ye^{4y}-\frac{1}{16}e^{4y}+k

Where k is a constant which we'll absorb into the constant c:

\frac{1}{2}v^2e^{4y}+\frac{1}{4}ye^{4y}-\frac{1}{16}e^{4y}=c

Finally, solving for v (which is y') yields:

(\frac{dy}{dx})^2=ce^{-4y}-\frac{1}{2}y+\frac{1}{8}

or:

\frac{dy}{dx}=\pm \sqrt{ce^{-4y}-\frac{1}{2}y+\frac{1}{8}}

But that's ok. You just solve two differential equations now and use whatever part meets the initial conditions. Anyway, I'll spend some time studying this numerically in Mathematica and report some useful results with select initial conditions.
 
  • #10
Thank you for your replies,and sorry for my delaying reply,everyone.

I have just solved for myself without using the solution by exact differential equation.

Here is my solution.


As pointed by Data, Set

v=\frac{dy}{dx},

we can rewrite the differential equation in question

\frac{d^2y}{dx^2}+2\left(\frac{dy}{dx}\right)^2+y=0

as follows.

v\frac{dv}{dy}+2v^2+y=0.

For v\neq 0,

we have

\frac{dv}{dy}+2v=-\frac{1}{v}y\ \cdots [E]

Considering the solution of the differential equation

\frac{dv}{dy}+2v=0

we set

v=ze^{-2y},differentiating with respect to y

\frac{dv}{dy}=\frac{dz}{dy}e^{-2y}-2ze^{-2y}

plugging this into [E]

we have

z\frac{dz}{dy}=-ye^{4y},

\frac{d}{dy}\left(\frac{1}{2}z^2\right)=-ye^{4y}

integrating with respect to y

\frac{1}{2}z^2=-\int ye^{4y}dy

using integral by parts

\frac{1}{2}z^2=-\left(\frac{1}{4}ye^{4y}-\frac{1}{16}e^{4y}\right)+C&#039;

i.e.

z^2=-\left(\frac{1}{2}ye^{4y}-\frac{1}{8}e^{4y}\right)+C

where C=2C&#039;

therefore we obtain

v^2=z^2e^{-4y}

v^2=-\left(\frac{1}{2}y-\frac{1}{8}\right)+Ce^{-4y}

Consequently,as deduced by saltydog,

\frac{dy}{dx}=\pm \sqrt{Ce^{-4y}-\left(\frac{1}{2}y-\frac{1}{8}\right)}


Thank you.

maphysique
 
Last edited:
  • #11
Hello Maphysique. Glad you're still with us and can explain how you approached it. This is my study of it:

It's interesting to note that if one would have approached this equation by converting it to two ODEs:

y&#039;=u

u&#039;=-2u^2-y

The constraint on y described below would not have been immediately clear unless the particular application it was describing would have indicated such.

As stated earlier, the equation is reduced to:

\frac{dy}{dx}=\pm\sqrt{ce^{4y}-\frac{1}{2}y+\frac{1}{8}}

Solving (for c=1):

e^{4x}-\frac{1}{2}x+\frac{1}{8}=0

we obtain x\approx 0.51003 and becomes negative when x is greater than this value. Thus, the ODE is valid only when y is less than the root of this equation.

Looking at the ODE again:

\frac{d^2 y}{dx^2}+2\left(\frac{dy}{dx}\right)^2+y=0


Since y' is squared, then y'' must necessarilly be negative for the LHS to have any chance of being zero.

If y'(0)>0 then the graph slopes upward and concaving downward until y reaches the zero of the radical.

If y'(0)<0 then the graphs slopes downward and concaving downward and becomes more so to balance the square of the derivative.

Attached are two particular solutions with y'(0)>0 and y'(0)<0 respectively.
 

Attachments

  • odep.JPG
    odep.JPG
    5 KB · Views: 416
  • oden.JPG
    oden.JPG
    4.9 KB · Views: 438
Last edited:
  • #12
actually, salty, I believe the solution to the exact DE is

\frac{dy}{dx} = \pm \sqrt{ ce^{-4y} - \frac{y}{2} + \frac{1}{8}}

(note the ce^{-4y} as opposed to ce^{4y})

Edit: I just noticed you had it right in your first post. Undoubtedly just a typo~
 
Last edited:
  • #13
And maphysique, that is a nice method. Unfortunately it doesn't lead to any additional simplifications that I can see (you still get the messy square root), but maybe you've figured out how to get around that too! :)
 
  • #14
I have just edited.

Thank you, everyone!

maphysique
 
  • #15
Un petit coup de Laplace devrait marcher...
 
  • #16
If your suggestion is to use the Laplace transform, then tell me what the Laplace transform of f^\prime(x)^2 is~
 
  • #17
U can't use Laplace transformation for nonlinear ODE-s...


Daniel.
 
  • #18
"U can't use Laplace transformation for nonlinear ODE-s...


Daniel."

why?
 
  • #19
Like I asked before, what's the Laplace transform of f^\prime(x)^2?
 
  • #20
tyutyu fait le train said:
"U can't use Laplace transformation for nonlinear ODE-s...


Daniel."

why?


I assume it's very easy to ask questions without doing some documenting first.I think there are plenty of books on the application of integral transformations (Laplace & Fourier) to PDE-s/ODE-s...You can find one,i'm sure.

Daniel.
 
  • #21
"I assume it's very easy to ask questions without doing some documenting first.I think there are plenty of books on the application of integral transformations (Laplace & Fourier) to PDE-s/ODE-s...You can find one,i'm sure.

Daniel."


OK
 
Back
Top