I was working with NDSolve, and suddenly this question, appeared, so I decide to try something:
Define a differential equation:
sole = DSolve[{D[n[x] (x)^4, x] == (n[x])^(1/2), n[1] == 1}, n, x]
Plot the results
Plot[Evaluate[n[x] /. sole], {x, 0.4, 1}]
Now I tried to solve the same differential equation numerically
sol = NDSolve[{D[n[x] (x)^4, x] == (n[x])^(1/2), n[1] == 1}, n, {x, 0.4, 1}]
Plot the results
Plot[n[x] /. sol, {x, 0.4, 1}]
Now mathematica gives only one plot
Question
What happened to the other solution?
DSolve
appears to be spitting out an unacceptable solution. I believe the blue curve satisfies the differential equationD[n[x] (x)^4, x] == -(n[x])^(1/2)
, whereas the orange curve satisfies the differential equationD[n[x] (x)^4, x] == (n[x])^(1/2)
. $\endgroup$D[n[x] (x)^4, x] == -(n[x])^(1/2)
$\endgroup$DSolve[D[n[x] (x)^4, x] == (n[x])^(1/2), n[x], x]
yields only one solution. Something about that initial condition is making Mathematica choke. $\endgroup$