I'm trying to do something with DSolve and after I want to translate the solution of the problem to "ParametricNDSolve", however I can't.
This is the problem, I have a function, and a differential equation that depends on this function
f[c_] := c+c^2;
DE = DSolve[{D[r[x]/(1 + x)^4, x] == 0, r[f[c]] == 1}, r[x], x];
With this code I get
r[x] -> (1 + x)^4/(1 + c+c^2)^4
So if a choose a particular $c$, I get a particular initial condition, for example $c=1$, then
r[x] -> (1 + x)^4/(3)^4
Now, if I choose for example $x=0$, I get $r[0]=1/3^4$. However I have to do this "manually", I can't find a way to do with code.
I try with ParametricNDSolve, for example
DEP = ParametricNDSolve[{D[r[x]/(1 + x)^4, x] == 0, r[ f[c] ] == 0},r, {x, 0, 100}, {c}];
With $f$ defined as before. And after of this I try to evaluate the solution in a specific initial condition and in some specific point, for example $c=1$ and $x=0$ using
r[1][0]/.DEP
However this does not work, I know that ParametricNDSolve needs to have a predefined value of $f[c]$ in order to work, but I can't find a way fix this value.
I need to solve the problem with ParametricNDSolve because the differential equation that I'm working seems that doesn't have analytical solution.