Mathematica Mathematica error when solving a DE -- "exceeded RecursionLimit"

  • Thread starter Thread starter Abhisheko07
  • Start date Start date
  • Tags Tags
    Error Mathematica
Click For Summary
The discussion revolves around troubleshooting a differential equation in Mathematica. The user is struggling to solve and plot the equation, seeking assistance. Suggestions include using the correct syntax for the DSolve function, specifically advising to replace 'y' with 'y[x]' in the command. Additionally, it is recommended to explicitly define the equation within the DSolve command and to ensure that 'x' is properly cleared before rerunning the code. These tips aim to resolve the user's issues with the Mathematica code for effective plotting and solving of the differential equation.
Abhisheko07
Messages
5
Reaction score
0
Homework Statement:: I don't know where the mistake is happening. I need to solve the give differential equation in mathematica and have to plot it but i am facing problem in doing so.
Can anyone help me in this?
Relevant Equations:: I have attached the picture of equation as well as my mathematica code.

IMG-20210607-WA0020.jpeg
20210608_075359.jpg
 
Physics news on Phys.org
not sure, maybe try sol=DSolve[eqn,y[x],x], that is put y[x] there instead of just y.
Also try putting the equation explicitly into the DSolve command, for example like
sol=Dsolve[y''[x]==-y[x],y[x],x]
 
What is x. It looks like x is defined somewhere above. Try clearing x first and then re run your code
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K