Skip to main content
6-Contributor
December 2, 2021
Solved

ODE Solve issue

  • December 2, 2021
  • 1 reply
  • 5703 views

Hi all,

 

I am trying to figure out if it is (mathematically) possible to obtain a x(y) function via the following system with odesolve:

 

dx/dy=F(x)

 

Do you guys have a idea if it is possible in mathcad, and if so, how?

Best answer by Werner_E

As x is your function and dependent on y, you have to always write x(y) and not just x!

And the initial condition can't be that of F but that of the function to solve for -> x(0)=...

After all, in your example F(0)=5 and not 4 🙂

Werner_E_0-1638457199703.png

The plots also show the exact symbolic solution of your ODE.

 

1 reply

25-Diamond I
December 2, 2021

Give an example and post the initial worksheet please.

 

Here is an example done in MC15

Werner_E_0-1638455031591.png

If you use Prime keep in mind that solve blocks and the syntax for odesolve is different there.

 

6-Contributor
December 2, 2021

TW_9638511_0-1638454493247.png

So something like this. I want to plot x versus y, given the equations in the screenshot. (this is a simplified version of what i want to actually solve).

 

Werner_E25-Diamond IAnswer
25-Diamond I
December 2, 2021

As x is your function and dependent on y, you have to always write x(y) and not just x!

And the initial condition can't be that of F but that of the function to solve for -> x(0)=...

After all, in your example F(0)=5 and not 4 🙂

Werner_E_0-1638457199703.png

The plots also show the exact symbolic solution of your ODE.