First order differential equations

With the command dsolve you can solve differential equations symbolically. For example, the general solution of the differential equation $ \dot{x}=Ax$ is obtained by entering:
>> dsolve('Dx1=A*x1')

ans =
    exp(A*t)*C1
You can also add an initial condition:
>> dsolve('Dx1=A*x1','x1(0)=2')

ans =
    2*exp(A*t)



Previous      Next      Up      Contents


Esteur 2010-03-22