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

  • Context: Mathematica 
  • Thread starter Thread starter Abhisheko07
  • Start date Start date
  • Tags Tags
    Error Mathematica
Click For Summary
SUMMARY

The forum discussion addresses an error encountered in Mathematica when attempting to solve a differential equation, specifically the "exceeded RecursionLimit" issue. Users suggest using the DSolve function with explicit equations, such as sol=DSolve[y''[x]==-y[x],y[x],x], and recommend clearing any previous definitions of the variable x before executing the code. These steps are essential for resolving the recursion limit error and successfully plotting the solution.

PREREQUISITES
  • Familiarity with Mathematica syntax and functions
  • Understanding of differential equations
  • Knowledge of variable management in programming
  • Experience with plotting functions in Mathematica
NEXT STEPS
  • Research how to manage recursion limits in Mathematica
  • Learn about the DSolve function in Mathematica
  • Explore techniques for clearing variable definitions in Mathematica
  • Investigate plotting solutions of differential equations in Mathematica
USEFUL FOR

Students, educators, and researchers working with Mathematica who are solving differential equations and encountering recursion limit errors.

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
4K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K