Differential Equation and Mathematica

Click For Summary

Discussion Overview

The discussion revolves around the use of Mathematica for numerically solving a second order differential equation. Participants explore the syntax and functions necessary for implementing this in Mathematica, as well as troubleshooting issues encountered during the process.

Discussion Character

  • Technical explanation
  • Homework-related

Main Points Raised

  • One participant inquires whether Mathematica can numerically solve a second order differential equation.
  • Another participant confirms that Mathematica can do this and suggests using the NDSolve function.
  • A participant shares their experience of struggling to solve a specific differential equation using NDSolve, detailing the equation and initial conditions they are working with.
  • After resolving their issue with NDSolve, the participant seeks advice on how to graph the numerical solutions obtained.
  • Another participant recommends consulting the Mathematica help browser for examples on plotting solutions from NDSolve and suggests that the question may be more appropriate for a Mathematica newsgroup.

Areas of Agreement / Disagreement

Participants generally agree on the capability of Mathematica to solve differential equations using NDSolve, but there is no consensus on the specific syntax or methods for graphing the solutions, as one participant is still seeking clarification.

Contextual Notes

There are unresolved issues regarding the correct syntax for NDSolve and the specific steps needed to graph the solutions, which depend on the participant's understanding of Mathematica's functions.

b2386
Messages
34
Reaction score
0
Hi all,

Does anyone know if Mathematica can numerically solve a second order differential equation?
 
Physics news on Phys.org
Sure can. Look up NDSolve.
 
Well, I have been trying to solve this equation with mathematica for the past two hours with no luck.

The general differential equation I am trying to solve is u''_i(T) = .65\frac{u'_{i-1}(T)-u'_{i}(T)}{u_{i-1}(T)-u_{i}(T)}+750(u_{i-1}(T)-u_{i}(T)-1)^3 where i= 1,2,3 and u'_0(T)=2\pi*Sin(2*\pi*T)

The initial conditions are u_i(0)=-i and u'_i(0)=0. I tried using NDSolve but it kept saying that the input was not a differential equation. Does anyone know what should be the syntax of the NDSolve function I need?
 
Last edited:
Well, I finally was able to get the NDSolve to work for this differential equation for T values from 0 to 24 and I set the NDSolve function to the variable "soln". So what function should I use to graph the numerical solutions?
 
b2386 said:
So what function should I use to graph the numerical solutions?
Look into the help browser of Mathematica (press F1) under NDSolve. There should be a list of examples (see 'Further examples'). From this you will also see how to plot the solution provided by NDSolve. See also http://documents.wolfram.com/mathematica/Built-inFunctions/NumericalComputation/EquationSolving/FurtherExamples/NDSolve.html .

Finally, I should point out, that this question really belongs in the Mathematica newsgroup, found through Google Groups.
 
Last edited by a moderator:

Similar threads

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