How should I approach this ODE

Then you'll see it's a circle. No? Come on man! heheI don't know what the integral of that is though. I don't have any way of computing it.Is there a way to do this without solving an integral? I was hoping there'd be a clever way to manipulate the equation so that I could solve for y explicitly.Also, I'm not a dude. :)Ok. Well, you'll be one when you grow up. I don't know how old you are. I'm 61. So like I said, I don't think there's an elementary antiderivative of that. So you'd have to solve
  • #1
Icebreaker
[tex]y''=-e^{-2y}[/tex]

Second order, homogenous, nonlinear. I think.
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
Try multiplying both sides by [tex] y' [/tex] and see what you can do.
 
  • #3
I got nothing that I've seen before.
 
  • #4
Icebreaker said:
I got nothing that I've seen before.

The point of learning the theory and techniques is to be able to solve problems you haven't seen before. Surely, you have some tools at your disposal if you've gotten into the ODE course.


Follow PM's advice:

[tex]y' \frac {dy'}{dx} = -e^{-2y} \frac {dy}{dx}[/tex]

Now multiply both sides by dx and integrate. Then see what you can do after that.
 
  • #5
[tex]\int y'' \frac{dy}{dx}dx = \int -e^{-2y}\frac{dy}{dx}dx[/tex]

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

[tex]2e^{2y}\frac{dy}{dx}=1[/tex]

[tex]2\int e^{2y} \frac{dy}{dx}dx=\int 1dx[/tex]

[tex]e^{2y}=x[/tex]

[tex]\ln e^{2y}=\ln x[/tex]

[tex]y = \ln \sqrt{x}[/tex]

Is this right?

However, I have not included any constants of integration during the process. My thought is that since I have an IVP, I can use the final equation to find the constants backwards. It seems easier. Can I do that?
 
  • #6
Hey Icebreaker, your notation is awkward:

Icebreaker said:
[tex]\int y'' \frac{dy}{dx}dx = \int -e^{-2y}\frac{dy}{dx}dx[/tex]

Tide said this:

Tide said:
Follow PM's advice:

[tex]y' \frac {dy'}{dx} = -e^{-2y} \frac {dy}{dx}[/tex]

Now multiply both sides by dx and integrate. Then see what you can do after that.

So that would just be:

[tex]y^{'}dy^{'}=-e^{-2y}dy[/tex]

That's just two differentials with "variables separated" so:

[tex]\int y^{'}dy^{'}=-\int e^{-2y}dy[/tex]

And I'd leave the constant of integration in this one and the other one you have to integrate, and then use the initial conditions with the constants in place to find the solution.
 
Last edited:
  • #7
How does one integrate

[tex]\int y'dy'[/tex]
 
  • #8
Do a change in variables, let x=y', can you do it now?
 
  • #9
Ok let me start over:

[tex]y''=-e^{-2y}[/tex]

[tex]y''\frac{dy}{dx}dx = -e^{-2y}\frac{dy}{dx}dx[/tex]

[tex]y'dy'=-e^{-2y}dy[/tex]

[tex]\int y'dy'=-\int e^{-2y}dy[/tex]

But now a constant comes in. Suppose it's zero, then it's easy:

[tex](y')^2=e^{-2y}[/tex]

[tex]y'=e^{-2y}[/tex]

However with the constant, the equation becomes:

[tex](y')^2+c=e^{-2y}[/tex]
 
  • #10
Ice breaker, may have seen my earlier post. Couldn't debug it here. This is it bug-free:

Icebreaker . . . that y'dy' got you doesn't it? That's just y' multiplied by it's differential. It could be anything:

[tex]fd(f)[/tex]

[tex][xy]d(xy)[/tex]

[tex][f(x)g(y)]d(f(x)g(y))[/tex]

even:

[tex](anything)d(anything)[/tex]

So when you integrate it, it's just:

[tex]\frac{\text{anything}^2}{2}+c[/tex]

so:

[tex]\int y^{'}dy^{'}=\frac{(y^{'})^2}{2}+c[/tex]

other side is just:

[tex]\frac{1}{2}e^{-2y}+c[/tex]

put um' together, combine the constants:

[tex]\frac{(y^{'})^2}{2}=\frac{1}{2}e^{-2y}+k_1[/tex]

so, when you extract the root you get TWO differential equations for [itex]y^{'}[/itex]. Gotta solve them both or just figure. So anyway, how do we proceed from here?[/QUOTE]
 
Last edited:
  • #11
Do you mean

[tex]y' = \pm \sqrt{2e^{-2y}+k}[/tex]

I suppose a substitution where [tex]u = 2e^{-2y}+k[/tex]?

This is quite odd considering we haven't talked about total differentials, much less how they are manipulated...
 
Last edited by a moderator:
  • #12
Icebreaker, there seems to still be bugs with the edit software of the new update here (I'm having problems editing posts). I hope it's fixed soon. It's unpleasnt. This is what I get:

[tex]y^{'}=\pm\sqrt{e^{-2y}+k_1}[/tex]

so:

[tex]\frac{dy_1}{\sqrt{e^{-2y_1}+k_1}}=dx[/tex]

-0r-

[tex]\frac{dy_2}{\sqrt{e^{-2y_2}+k_1}}=-dx[/tex]

Choose according to the value of y'(0).

Edit: Perhaps I should edit that last line up there: choose which ever one works.
 
Last edited:
  • #13
Well, the IVP consists of y(3)=0 and y'(3)=0. Is it possible to solve for an explicit solution of y in terms of x? Is it necessary? Because I don't understand how using dx and dy alone I can solve the equation.
 
  • #14
Tell you what, solve this one first:

[tex]y^{''}=-e^{-2y};\quad y(0)=0,\quad y'(0)=1[/tex]

Look at the equation:

[tex]\frac{dy}{dx}=\sqrt{e^{-2y}+c}[/tex]

can you figure what c is? Well, it's sayin' the derivative is equal to that expression. But we have what the derivative is at x=0 and what the value of y is at 0 too. So:

[tex]1=\sqrt{e^{0}+c}[/tex]

or c=0.

That makes the integration a little easier and you can in that case solve for y in terms of x explicitly. What's the answer for that one then?
 
  • #15
For my equation,

[tex]y'=\sqrt{e^{-2y}+c}[/tex]

Since y' and y are both 0 at x=3, then

[tex]0=\sqrt{e^0+c}[/tex]

So c=-1. This means,

[tex]y'=\sqrt{e^{-2y}-1}[/tex]
 
  • #16
Icebreaker said:
For my equation,

[tex]y'=\sqrt{e^{-2y}+c}[/tex]

Since y' and y are both 0 at x=3, then

[tex]0=\sqrt{e^0+c}[/tex]

So c=-1. This means,

[tex]y'=\sqrt{e^{-2y}-1}[/tex]

That will do it. Know how to integrate that right? You can just integrate it definitely: y goes from 0 to y, x goes from 3 to x or just change the dummy variables of the integrands to keep the purist in here happy else they'll tell me "salty, your notation is awkward".
 
Last edited:
  • #17
Actually I don't. Do you mean,

[tex]\int_0^y \int_3^x \sqrt{e^{-2y}-1} dxdy?[/tex]

Or perhaps,

[tex]\int_0^y dy = \int_3^x \sqrt{e^{-2y}-1} dx?[/tex]
 
  • #18
Icebreaker said:
Actually I don't. Do you mean,

[tex]\int_0^y \int_3^x \sqrt{e^{-2y}-1} dxdy?[/tex]

Or perhaps,

[tex]\int_0^y dy = \int_3^x \sqrt{e^{-2y}-1} dx?[/tex]

Icebreaker, you fell off a cliff with this you know that don't you? We have:

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

so:

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

and so we integrate one more time:

[tex]\int_0^y \frac{dq}{\sqrt{e^{-2q}-1}}=\int_3^x dt[/tex]

Now, that's it dude. You just have to know how to integrate that stuf on the left. You get ArcTan, some this, some that, then solve for an explicit expression of y in terms of x.
 
Last edited:
  • #19
ODE is confusing. Very confusing.

Now, Mathematica gives this thing for the integral. I'm assuming I did something wrong there as well?
 

Attachments

  • untitled.JPG
    untitled.JPG
    5.7 KB · Views: 354
Last edited by a moderator:
  • #20
Icebreaker said:
ODE is confusing. Very confusing.

Now, Mathematica gives this thing for the integral. I'm assuming I did something wrong there as well?

Mathematica returns:

[tex]\int \frac{dy}{\sqrt{e^{-2y}-1}}=-ArcTan[-1+e^{-2y}][/tex]

however, you can just solve it from scratch using the substitution:

[tex]u=e^{-y}[/tex]

and get the answer expressed in terms of ArcSec.
 
  • #21
Well then. Thanks.
 
  • #22
saltydog said:
Mathematica returns:
[tex]\int \frac{dy}{\sqrt{e^{-2y}-1}}=-ArcTan[-1+e^{-2y}][/tex]
however, you can just solve it from scratch using the substitution:
[tex]u=e^{-y}[/tex]
and get the answer expressed in terms of ArcSec.

You know Icebreaker, I made a mistake up there.

[tex]\int \frac{dy}{\sqrt{e^{-2y}-1}}=-ArcTan\left(\sqrt{e^{-2y}-y}\right)[/tex]

Sorry about that. Perhaps I was a bit direct with the cliff stuf up there. See. I recognize when I make mistakes. Anyway, we do the integration and finally we get:

[tex]
y(x)=-ln\left(\sqrt{\text{Tan}^2(x-3)+1}\right)
[/tex]
 
  • #23
Perhaps I shall one day learn to regonise mistakes as well, after actually learning half the materials up there. ODE + Deadlines, not a good mix.
 

Related to How should I approach this ODE

1. What is an ODE and how does it differ from other equations?

An ODE (Ordinary Differential Equation) is a mathematical equation that relates a function to its derivatives. It differs from other equations because it involves derivatives, which represent the rate of change of the function. ODEs are commonly used in modeling physical and natural phenomena.

2. What are the steps to solve an ODE?

The steps to solve an ODE are as follows:

  • 1. Identify the type of ODE (linear, nonlinear, separable, etc.)
  • 2. Determine the order of the ODE (the highest derivative present)
  • 3. Rewrite the ODE in standard form, if necessary
  • 4. Use appropriate techniques to solve the ODE (e.g. separation of variables, integrating factor, substitution, etc.)
  • 5. Check for any constants of integration and simplify the solution, if necessary
  • 6. Verify the solution by plugging it back into the original ODE

3. What are initial conditions and why are they important in solving an ODE?

Initial conditions are values given for the function and its derivatives at a specific point, typically denoted by x = 0. They are important because they help us find the particular solution to the ODE, as the general solution may have multiple solutions depending on the initial conditions. Without initial conditions, the solution to the ODE would not be unique.

4. Are there any software programs or tools that can help me solve ODEs?

Yes, there are various software programs and tools that can help solve ODEs, such as MATLAB, Wolfram Mathematica, and Maple. These programs use numerical methods to solve ODEs and can handle more complex equations that may be difficult to solve by hand.

5. How do I know if my solution to an ODE is correct?

To verify the correctness of a solution to an ODE, you can plug the solution back into the original equation and see if it satisfies the equation. Additionally, you can also compare your solution to known solutions or use a software program to double-check your work. It is also important to check for any potential mistakes or errors made during the solving process.

Similar threads

Replies
4
Views
591
  • Calculus and Beyond Homework Help
Replies
2
Views
1K
  • Calculus and Beyond Homework Help
Replies
3
Views
625
  • Calculus and Beyond Homework Help
Replies
3
Views
431
  • Calculus and Beyond Homework Help
Replies
5
Views
1K
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Calculus and Beyond Homework Help
Replies
1
Views
539
  • Calculus and Beyond Homework Help
Replies
11
Views
808
  • Calculus and Beyond Homework Help
Replies
16
Views
645
  • Calculus and Beyond Homework Help
Replies
7
Views
566
Back
Top