Matlab for 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
4 replies · 3K views
Mathmanman
Messages
60
Reaction score
0
Does MATLAB solve differential equations?
 
Physics news on Phys.org
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.