MATLAB Matlab for differential equations

AI Thread Summary
MATLAB can solve differential equations, but the type of solution—analytical or numerical—determines its effectiveness. The discussion highlights that while MATLAB is primarily designed for numerical computations, it does have a symbolic math toolbox that can provide analytical solutions. An example given is the general solution to the differential equation xy' - 4y = (x^6)(e^x), which can be solved analytically. However, for more complex symbolic manipulations, software like Mathematica or Maple may be more suitable. The MATLAB toolbox can yield analytical solutions, as indicated by resources from MathWorks, although access to verify specific capabilities may be limited for some users.
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.
 

Similar threads

Replies
3
Views
380
Replies
3
Views
5K
Replies
5
Views
3K
Replies
5
Views
3K
Replies
4
Views
4K
Replies
1
Views
2K
Replies
32
Views
4K
Back
Top