Help in Mathematica code for solutions expansion of differential equations

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 3K views
jadyliber
Messages
11
Reaction score
0
I need to NDsolve four differential equations.
But I find my code does not work. Who can give me some suggestions? Thanks!
 
Last edited:
Physics news on Phys.org
jadyliber said:
I need to NDsolve four differential equations.
But I find my code does not work. Who can give me some suggestions? Thanks!
the equations:

Move it to the Mathematica forum, get rid of all that messy code, scrap all but one of them, write it neatly, and wait for help.
 
I am sorry for it.
by the way, is there a Mathematica forum? thanks for advices
 
jadyliber said:
is there a Mathematica forum?

Here
https://www.physicsforums.com/forumdisplay.php?f=189
or here
http://forums.wolfram.com/student-support/discussions/4/

As suggested, simplify your notebook as much as possible and describe exactly what the problem is with the result you are getting. Look at other postings there to see how people include a small notebook with their question, demonstrate their problem and ask their questions. Look at the posts that get answers for good examples.

The posts that do not get good answers say "Something is wrong using NDSolve. what do I do?"
 
Last edited:
Also, if you need to cut and paste your code, first convert it to Raw input form: highlight it, then select Cell/Convert To/Raw Input form. Then cut and paste it like I do below. Then wrap it in the code blocks:

Code:
mysol = NDSolve[{Derivative[1][y][x] + 
      (2*x + 1)*y[x] == 0, y[0] == 1}, y, {x, 0, 5}]
myPlot = Plot[y[x] /. mysol, {x, 0, 5}]
 
Thanks again to bill & jack