Skip to content
Advertisement

Differential equation change of variables with sympy

I have an ordinary differential equation like this:

JavaScript

I want to perform a variable change :

JavaScript

How can I do this with sympy?

Advertisement

Answer

Use the following function:

JavaScript

For the example posted:

JavaScript

Under this substitution the differential equation outputted is then:

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement