I want to get the general solution of a first-order ODE in implicit form. It should be something like this:
- With input
y'[x] == 1
, the desired output isC[1]->y[x] - x
. - With input
y'[x] == 1/y[x]^2
(nonlinear ODE), the desired output isC[1]->y[x]^3/3 - x
DSolve
tries to evaluate the explicit form of y[x]
by default. Is it possible to keep the implicit solution?
I tried explicit equation integration using Integrate
and tracing (Trace
with TraceInternal -> True
). Neither helped me with this problem.
Quiet@Trace[DSolve[y'[x] == 1, y[x], x], Solve[e_, y[x]] -> (eqn = e), TraceInternal -> True]; eqn
returns-1 + y[x] == 0
with no integration constant $\endgroup$