Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Matlab for differential equations

  1. May 24, 2014 #1
    Does matlab solve differential equations?
     
  2. jcsd
  3. May 24, 2014 #2

    SteamKing

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper

    Depends on what you mean by 'solve'. Are you talking analytically or numerically?
     
  4. May 24, 2014 #3
    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
     
  5. May 24, 2014 #4

    SteamKing

    User Avatar
    Staff Emeritus
    Science Advisor
    Homework Helper

    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.
     
  6. May 25, 2014 #5
    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.
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook