Skip to main content
1-Visitor
July 7, 2016
Solved

Second order differential equation, Odesolve: "Unknown error: Ode%_function%_illegal%_context"

  • July 7, 2016
  • 2 replies
  • 2969 views

Hey,

When I tried to solve a second order differential equation with odesolve I get the above mentioned error. First order ode's work fine. Odesolve problem.png

Best answer by AndyWesterman

Something like this?

The 2nd order differential equation can be written as the d/dt style, but I think that the initial condition needs to be in the x' format for prime to understand.

Probably explains why the 1st order ode worked as you don't need the initial condition for the differential term.

Regards

Andy

2 replies

12-Amethyst
July 7, 2016

Something like this?

The 2nd order differential equation can be written as the d/dt style, but I think that the initial condition needs to be in the x' format for prime to understand.

Probably explains why the 1st order ode worked as you don't need the initial condition for the differential term.

Regards

Andy

fvlaar1-VisitorAuthor
1-Visitor
July 7, 2016

Thank you very much! this worked!

Because mathcad did nog recognize the error I had no idea.

23-Emerald IV
July 7, 2016

Using some advanced techniques (A classical math problem: differential equations) I've determined that the solution to your DE, for s=2, is:

Maybe this helps.

Luc