Matlab for differential equations

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
4 replies · 3K views
Mathmanman
Messages
60
Reaction score
0
Does MATLAB solve differential equations?
 
Physics news on Phys.org
Depends on what you mean by 'solve'. Are you talking analytically or numerically?
 
I mean like the general solution of a differential equation.
For example:
Solve xy'-4y = (x^6)(e^x)
General solution: y = x^5e^x – x^4e^x + cx^4
 
Mathmanman said:
I mean like the general solution of a differential equation.
For example:
Solve xy'-4y = (x^6)(e^x)
General solution: y = x^5e^x – x^4e^x + cx^4

This is called the 'analytical' solution. The 'numerical' solution obviously uses just numbers.

I think Matlab is more geared to numerical computation that symbolic manipulation.

For the latter, a package like Mathematica or Maple would have that capability.
 
I believe Matlab includes a symbolic math toolbox. It has been a long time, but I think that might have once been provided by an included subset of Maple, but I think they then switched to MuPad. This page seems to show that Matlab can give analytic solutions to differential equations via the toolbox and dsolve.

http://www.mathworks.com/help/symbolic/functionlist.html

I don't have access to that so I can't verify that it can solve your example.