DEtools - Maple Programming Help

Home : Support : Online Help : Mathematics : Differential Equations : DEtools : Solving Methods : DEtools/constcoeffsols

DEtools

 constcoeffsols
 find solutions of a linear constant coefficient ODE

 Calling Sequence constcoeffsols(lode, v) constcoeffsols(coeff_list, x)

Parameters

 lode - homogeneous linear differential equation v - dependent variable of the lode coeff_list - list of coefficients of a linear ode x - independent variable of the lode

Description

 • The constcoeffsols routine returns a basis of the space of solutions of a homogeneous linear differential equation having constant coefficients.
 • There are two input forms. The first has as the first argument a linear differential equation in diff or D form and as the second argument the variable in the differential equation.
 • A second input sequence accepts for the first argument a list of coefficients of the linear ode, and for the second argument the independent variable of the lode. This input sequence is useful for programming with the constcoeffsols routine.
 • In the second calling sequence, the list of coefficients is given in order from low differential order to high differential order and does not include the nonhomogeneous term.
 • This function is part of the DEtools package, and so it can be used in the form constcoeffsols(..) only after executing the command with(DEtools). However, it can always be accessed through the long form of the command by using DEtools[constcoeffsols](..).

Examples

 > $\mathrm{with}\left(\mathrm{DEtools}\right):$
 > $\mathrm{ode}≔3\mathrm{diff}\left(z\left(t\right),\mathrm{}\left(t,3\right)\right)+\mathrm{diff}\left(z\left(t\right),\mathrm{}\left(t,2\right)\right)-\mathrm{diff}\left(z\left(t\right),t\right)-3z\left(t\right)=0:$
 > $\mathrm{constcoeffsols}\left(\mathrm{ode},z\left(t\right)\right)$
 $\left[{{ⅇ}}^{{t}}{,}{{ⅇ}}^{{-}\frac{{2}{}{t}}{{3}}}{}{\mathrm{sin}}{}\left(\frac{\sqrt{{5}}{}{t}}{{3}}\right){,}{{ⅇ}}^{{-}\frac{{2}{}{t}}{{3}}}{}{\mathrm{cos}}{}\left(\frac{\sqrt{{5}}{}{t}}{{3}}\right)\right]$ (1)
 > $\mathrm{ode}≔3{\mathrm{D}}^{\left(3\right)}\left(z\right)\left(t\right)+{\mathrm{D}}^{\left(2\right)}\left(z\right)\left(t\right)-\mathrm{D}\left(z\right)\left(t\right)-3z\left(t\right)=0$
 ${\mathrm{ode}}{≔}{3}{}{{\mathrm{D}}}^{\left({3}\right)}{}\left({z}\right){}\left({t}\right){+}{{\mathrm{D}}}^{\left({2}\right)}{}\left({z}\right){}\left({t}\right){-}{\mathrm{D}}{}\left({z}\right){}\left({t}\right){-}{3}{}{z}{}\left({t}\right){=}{0}$ (2)
 > $\mathrm{constcoeffsols}\left(\mathrm{ode},z\left(t\right)\right)$
 $\left[{{ⅇ}}^{{t}}{,}{{ⅇ}}^{{-}\frac{{2}{}{t}}{{3}}}{}{\mathrm{sin}}{}\left(\frac{\sqrt{{5}}{}{t}}{{3}}\right){,}{{ⅇ}}^{{-}\frac{{2}{}{t}}{{3}}}{}{\mathrm{cos}}{}\left(\frac{\sqrt{{5}}{}{t}}{{3}}\right)\right]$ (3)
 > $\mathrm{ode}≔\left[-3,-1,1,3\right]:$
 > $\mathrm{constcoeffsols}\left(\mathrm{ode},t\right)$
 $\left[{{ⅇ}}^{{t}}{,}{{ⅇ}}^{{-}\frac{{2}{}{t}}{{3}}}{}{\mathrm{sin}}{}\left(\frac{\sqrt{{5}}{}{t}}{{3}}\right){,}{{ⅇ}}^{{-}\frac{{2}{}{t}}{{3}}}{}{\mathrm{cos}}{}\left(\frac{\sqrt{{5}}{}{t}}{{3}}\right)\right]$ (4)

This command also outputs the answer in RootOf form in some cases:

 > $\mathrm{ode}≔\mathrm{diff}\left(z\left(t\right),\mathrm{}\left(t,5\right)\right)+\mathrm{diff}\left(z\left(t\right),\mathrm{}\left(t,2\right)\right)-\mathrm{diff}\left(z\left(t\right),t\right)-3z\left(t\right):$
 > $\mathrm{constcoeffsols}\left(\mathrm{ode},z\left(t\right)\right)$
 $\left[{{ⅇ}}^{{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{5}}{+}{{\mathrm{_Z}}}^{{2}}{-}{\mathrm{_Z}}{-}{3}{,}{\mathrm{index}}{=}{1}\right){}{t}}{,}{{ⅇ}}^{{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{5}}{+}{{\mathrm{_Z}}}^{{2}}{-}{\mathrm{_Z}}{-}{3}{,}{\mathrm{index}}{=}{2}\right){}{t}}{,}{{ⅇ}}^{{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{5}}{+}{{\mathrm{_Z}}}^{{2}}{-}{\mathrm{_Z}}{-}{3}{,}{\mathrm{index}}{=}{3}\right){}{t}}{,}{{ⅇ}}^{{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{5}}{+}{{\mathrm{_Z}}}^{{2}}{-}{\mathrm{_Z}}{-}{3}{,}{\mathrm{index}}{=}{4}\right){}{t}}{,}{{ⅇ}}^{{\mathrm{RootOf}}{}\left({{\mathrm{_Z}}}^{{5}}{+}{{\mathrm{_Z}}}^{{2}}{-}{\mathrm{_Z}}{-}{3}{,}{\mathrm{index}}{=}{5}\right){}{t}}\right]$ (5)