If I have the following equation
(y - 1) ^5 == 32
I can select the real solution with
Solve[(y - 1) ^5 == 32, x, Reals]
Now, I have the following differential equation
y'[x] == Cos[x] / (y[x] - 1) ^4
and the implicit solution should be
(y[x] - 1) ^5 == 5 Sin[x] + 5 C[1])
DSolve gives the five complex solutions in the form
y[x] -> Root[...]
How can I ask only for the solution?
y[x] -> 1 + (5 Sin[x] + 5 C[1]) ^ (1/5)
(5 Sin[x] + 5 C[1]) ^ (1/5)the system doesn't know which one of 5 solutions is appropriate and for certain initial conditions there are no solutions. – Artes Jun 22 '20 at 10:50x^(1/5): it is the root with the greater real part, and between these, the one with greater imaginary part. – enzotib Jun 22 '20 at 10:57Mathematicaprovides 5 roots and one of them could be an appropriate solution to the Cauchy problem. This is non-trivial problem, since in general there are no exact radicals to fifth order polynomials. – Artes Jun 22 '20 at 11:45C[1]>=1the solution that I wrote exists and is a real function, while the others four are always complex, assumingxandC[1]real), cannot be automated by Mathematica. – enzotib Jun 22 '20 at 12:24DSolve[y'[x] == Cos[x]/(y[x] - 1)^4 && y[0] == 0, y[x], x]is well defined and you could expect a correct solution. You might also reformulate the problem to make(5 Sin[x] + 5 C[1]) ^ (1/5)a solution. This needs finding appropriate restriction forC[1]. – Artes Jun 22 '20 at 12:33