Symbolic Math Toolbox | ![]() ![]() |
Several Differential Equations
The function dsolve
can also handle several ordinary differential equations in several variables, with or without initial conditions. For example, here is a pair of linear, first-order equations.
The computed solutions are returned in the structure S
. You can determine the values of f
and g
by typing
If you prefer to recover f
and g
directly as well as include initial conditions, type
[f,g] = dsolve('Df=3*f+4*g, Dg =-4*f+3*g', 'f(0) = 0, g(0) = 1') f = exp(3*t)*sin(4*t) g = exp(3*t)*cos(4*t)
This table details some examples and Symbolic Math Toolbox syntax. Note that the final entry in the table is the Airy differential equation whose solution is referred to as the Airy function.
The Airy function plays an important role in the mathematical modeling of the dispersion of water waves. It is a nontrivial exercise to show that the Fourier transform of the Airy function is exp(iw3/3).
![]() | Single Differential Equation | Special Mathematical Functions | ![]() |