Higher order differential equations

MATLAB also enables you to solve higher order differential equations symbolically without first having to rewrite them as a set of first order differential equations. For example, the differential equation:

$\displaystyle m\ddot{y}(t)+c\dot{y}(t)+ k y(t)=0,$    

with initial conditions $ y(0)=1$ , $ \dot{y}(0)=0$ can be solved with the command:

>> dsolve('m*D2y+c*Dy+k*y=0','y(0)=1','Dy(0)=0')



Previous      Next      Up      Contents


Esteur 2010-03-22