I have this differential equation in terms of the variable $y$
deq[y_]=y^2 U''[y] + (a y^2 + b y + c) U'[y] + (d y + f) U[y]=0
and I want to make the change of variable y=t x and express deq[y_] as deq[x_]. Just defining y=t x, the above equation will be
(f + d t x) U[t x] + (c + b t x + a t^2 x^2) U'[t x] + t^2 x^2 U''[t x]
as can be seen, in this way, Mathematica only substitutes y by t x but according to these tranformation
$$ \frac{d}{\text{dy}}= \frac{\text{dx}}{\text{dy}} \frac{d}{\text{dx}}=\frac{1}{t} \frac{d}{\text{dx}} $$ and
$$ \frac{d^2}{\text{dy}^2}=\frac{1}{t^2} \frac{d^2}{\text{dx}^2}$$
I expect the differential equation deq[x_] as
deq[x_]=(f + d t x) U[x] + (c + b t x + a t^2 x^2) 1/t U'[ x] +
t^2 x^2 1/t^2 U''[x]=0
How can I ask Mathematica to do this directly (I mean change the derivative functions as well)?



DSolveChangeVariables[DSolve[(f + d y) U[y] + (c + b y + a y^2) U'[y]+ y^2U''[y] == 0, U[y], y], u, x, x == y/t]– PhysFan Feb 03 '24 at 15:15DSolveChangeVariables[Inactive[DSolve]correct? – PhysFan Feb 03 '24 at 15:18DSolveChangeVariablesis new in Verion 14. If I recall correctly, code to change ODE independent variables for earlier versions of Mathematica was posted somewhere on this site. – bbgodfrey Feb 03 '24 at 15:49