I am trying to solve and plot a solution to an ODE, but Mathematica keeps returning other useless answers
In[0] DSolve[y'[x] == 1 + y[x]^4, y[x], x]
Out[0] DSolve[True,y(x),x]
Can someone help me on this?
Now I am trying to plot the solution
In[1] Plot[DSolve[y'[x] == 1 + y[x]^4, y[x], x], {x, -10, 10}]
Out[1] DSolve::dsvar: -9.99959 cannot be used as a variable. >>
DSolve::dsvar: -9.99959 cannot be used as a variable. >> DSolve::dsvar: -9.59143 cannot be used as a variable. >> General::stop: Further output of DSolve::dsvar will be suppressed during this calculation. >>
It also outputed a blank plot
Trying again
sol1 = First@DSolve[y'[x] == 1 + y[x]^4, y[x], x]
Plot[y[x] /. sol1 // Evaluate , {x, -10, 10}]
y. I get the solution to the DE. Clear your variables or quit your kernel and try again. – rm -rf♦ Sep 24 '12 at 18:04Quitand evaluate it. – rm -rf♦ Sep 24 '12 at 18:06sol = DSolve[y'[x] == 1 + y[x]^4, y[x], x][[1]]thenPlot[Table[y[x] /. sol /. C[1] -> i/4, {i, 5}] // Release, {x, -1, 1}]its monday.... – chris Sep 24 '12 at 18:34