0
$\begingroup$

As a result of solving an ODE system using ParametricNDSolveValue I obtain 4 functions, each of them a ParametricFunction depending on the parameter specified in ParametricNDSolveValue.

Even though what I want looks 'simple' to me, I've searched through the documentation and this site with no success, so here goes my question:

Can I transform my solution ParametricFunction into an expression of some kind? The motivation is manipulating this expression, and this may involve different software.

If that's not possible, is there any other way in Mathematica to solve a $2\times 2$ system of ODEs at a point with a free parameter? Here's the question where I first asked about that.

$\endgroup$
3
$\begingroup$

Towards your highlighted question: The answer is no. ParametricFunction objects are actually not pure functions but rather information containers that enable Mathematica to quickly generate InterpolatingFunctions once a numerical parameter is supplied. There is usually a complicated numerical solver involved in this and so there is no simple analytical expression into which a ParametricFunction could be transformed to.

Similar are InterpolatingFunction objects: They represent piecewise-polynomial functions or rather enough information so that numerical evaluation of the underlying functions can be done (more or less) efficiently. While it would be possible to turn an InterpolatingFunction into a Piecewise expression, it would not be meaningful as there are usually thousands (or even millions) of cases to be distinguished; the output expression would be nothing a human mind would find elevating.

If you look for symbolic solutions to ODE then try DSolve instead of NDSolve. But do not expect that you find a symbolic solution in general. In fact, most ODEs do not have closed form solutions.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.