System - Maple Help

Student[ODEs][Solve]

 System
 Solve a system of first order linear ODEs

 Calling Sequence System(SYS, vars) System(SYS)

Parameters

 SYS - list, set, or equation; a system of first order linear ordinary differential equations vars - list or set of functions; the solving variables

Description

 • The System(SYS, vars) command finds the solution of a system of first order linear ODEs.
 • The system SYS may be written as a list or set of ODEs. If the solving variables cannot be unambiguously determined from the form of SYS, vars must also be specified as a list or set containing the solving variables.
 • Alternatively, SYS may be written as a single equation of the form:

$\mathrm{DY}=A·Y+B$

 where Y is a Vector of solving variables, DY a Vector of their derivatives, and A and B are a Matrix and Vector of coefficients. In this case, vars does not need to be specified since it can be determined from the form of SYS.

Examples

 > $\mathrm{with}\left(\mathrm{Student}\left[\mathrm{ODEs}\right]\left[\mathrm{Solve}\right]\right):$

Here the system is written as a set of equations:

 > $\mathrm{sys1}≔\left\{\mathrm{diff}\left(y\left[1\right]\left(x\right),x\right)=7y\left[1\right]\left(x\right)+y\left[2\right]\left(x\right),\mathrm{diff}\left(y\left[2\right]\left(x\right),x\right)=-4y\left[1\right]\left(x\right)+3y\left[2\right]\left(x\right)\right\}$
 ${\mathrm{sys1}}{≔}\left\{\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{{y}}_{{1}}{}\left({x}\right){=}{7}{}{{y}}_{{1}}{}\left({x}\right){+}{{y}}_{{2}}{}\left({x}\right){,}\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{{y}}_{{2}}{}\left({x}\right){=}{-}{4}{}{{y}}_{{1}}{}\left({x}\right){+}{3}{}{{y}}_{{2}}{}\left({x}\right)\right\}$ (1)
 > $\mathrm{System}\left(\mathrm{sys1},\left\{y\left[1\right]\left(x\right),y\left[2\right]\left(x\right)\right\}\right)$
 $\left\{{{y}}_{{1}}{}\left({x}\right){=}{-}\frac{{{ⅇ}}^{{5}{}{x}}{}\left({2}{}{\mathrm{_C2}}{}{x}{+}{2}{}{\mathrm{_C1}}{+}{\mathrm{_C2}}\right)}{{4}}{,}{{y}}_{{2}}{}\left({x}\right){=}{{ⅇ}}^{{5}{}{x}}{}\left({\mathrm{_C2}}{}{x}{+}{\mathrm{_C1}}\right)\right\}$ (2)
 > $\mathrm{sys2}≔\left\{\mathrm{diff}\left(y\left[1\right]\left(x\right),x\right)=7y\left[1\right]\left(x\right)+y\left[2\right]\left(x\right)+1,\mathrm{diff}\left(y\left[2\right]\left(x\right),x\right)=-4y\left[1\right]\left(x\right)+3y\left[2\right]\left(x\right)+\mathrm{exp}\left(x\right)\right\}$
 ${\mathrm{sys2}}{≔}\left\{\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{{y}}_{{1}}{}\left({x}\right){=}{7}{}{{y}}_{{1}}{}\left({x}\right){+}{{y}}_{{2}}{}\left({x}\right){+}{1}{,}\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{{y}}_{{2}}{}\left({x}\right){=}{-}{4}{}{{y}}_{{1}}{}\left({x}\right){+}{3}{}{{y}}_{{2}}{}\left({x}\right){+}{{ⅇ}}^{{x}}\right\}$ (3)
 > $\mathrm{System}\left(\mathrm{sys2}\right)$
 $\left\{{{y}}_{{1}}{}\left({x}\right){=}\frac{\left(\left({-}{200}{}{x}{-}{100}\right){}{\mathrm{_C2}}{+}{260}{}{x}{-}{200}{}{\mathrm{_C1}}{+}{23}\right){}{{ⅇ}}^{{5}{}{x}}}{{400}}{+}\frac{{{ⅇ}}^{{x}}}{{16}}{-}\frac{{3}}{{25}}{,}{{y}}_{{2}}{}\left({x}\right){=}\frac{\left(\left({200}{}{\mathrm{_C2}}{-}{260}\right){}{x}{+}{200}{}{\mathrm{_C1}}{+}{107}\right){}{{ⅇ}}^{{5}{}{x}}}{{200}}{-}\frac{{3}{}{{ⅇ}}^{{x}}}{{8}}{-}\frac{{4}}{{25}}\right\}$ (4)
 > $\mathrm{sys3}≔\left\{\mathrm{diff}\left(y\left[1\right]\left(x\right),x\right)=6y\left[1\right]\left(x\right)-3y\left[2\right]\left(x\right)+1,\mathrm{diff}\left(y\left[2\right]\left(x\right),x\right)=-4y\left[1\right]\left(x\right)+9y\left[2\right]\left(x\right)+\mathrm{cos}\left(x\right)\right\}$
 ${\mathrm{sys3}}{≔}\left\{\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{{y}}_{{1}}{}\left({x}\right){=}{6}{}{{y}}_{{1}}{}\left({x}\right){-}{3}{}{{y}}_{{2}}{}\left({x}\right){+}{1}{,}\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{{y}}_{{2}}{}\left({x}\right){=}{-}{4}{}{{y}}_{{1}}{}\left({x}\right){+}{9}{}{{y}}_{{2}}{}\left({x}\right){+}{\mathrm{cos}}{}\left({x}\right)\right\}$ (5)
 > $\mathrm{System}\left(\mathrm{sys3}\right)$
 $\left\{{{y}}_{{1}}{}\left({x}\right){=}\frac{\left(\left({380247}{}{\mathrm{_C2}}{+}{59492}\right){}\sqrt{{57}}{+}{1140741}{}{\mathrm{_C2}}{+}{424080}\right){}{{ⅇ}}^{{-}\frac{\left({-}{15}{+}\sqrt{{57}}\right){}{x}}{{2}}}}{{3041976}}{+}\frac{\left(\left({-}{380247}{}{\mathrm{_C1}}{-}{59492}\right){}\sqrt{{57}}{+}{1140741}{}{\mathrm{_C1}}{+}{424080}\right){}{{ⅇ}}^{\frac{\left({15}{+}\sqrt{{57}}\right){}{x}}{{2}}}}{{3041976}}{-}\frac{{123}{}{\mathrm{cos}}{}\left({x}\right)}{{1906}}{+}\frac{{45}{}{\mathrm{sin}}{}\left({x}\right)}{{1906}}{-}\frac{{3}}{{14}}{,}{{y}}_{{2}}{}\left({x}\right){=}\frac{\left({1520988}{}{\mathrm{_C2}}{+}{20467}{}\sqrt{{57}}{+}{176567}\right){}{{ⅇ}}^{{-}\frac{\left({-}{15}{+}\sqrt{{57}}\right){}{x}}{{2}}}}{{1520988}}{+}\frac{\left({1520988}{}{\mathrm{_C1}}{-}{20467}{}\sqrt{{57}}{+}{176567}\right){}{{ⅇ}}^{\frac{\left({15}{+}\sqrt{{57}}\right){}{x}}{{2}}}}{{1520988}}{-}\frac{{261}{}{\mathrm{cos}}{}\left({x}\right)}{{1906}}{+}\frac{{49}{}{\mathrm{sin}}{}\left({x}\right)}{{1906}}{-}\frac{{2}}{{21}}\right\}$ (6)

In these examples the systems are written in Vector-Matrix format:

 > $Y≔⟨v\left(x\right),w\left(x\right)⟩$
 ${Y}{≔}\left[\begin{array}{c}{v}{}\left({x}\right)\\ {w}{}\left({x}\right)\end{array}\right]$ (7)
 > $A≔⟨⟨7|1⟩,⟨-4|3⟩⟩$
 ${A}{≔}\left[\begin{array}{cc}{7}& {1}\\ {-4}& {3}\end{array}\right]$ (8)
 > $\mathrm{sys4}≔\mathrm{diff}\left(Y,x\right)=A·Y$
 ${\mathrm{sys4}}{≔}\left[\begin{array}{c}\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{v}{}\left({x}\right)\\ \frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{w}{}\left({x}\right)\end{array}\right]{=}\left[\begin{array}{c}{7}{}{v}{}\left({x}\right){+}{w}{}\left({x}\right)\\ {-}{4}{}{v}{}\left({x}\right){+}{3}{}{w}{}\left({x}\right)\end{array}\right]$ (9)
 > $\mathrm{System}\left(\mathrm{sys4}\right)$
 $\left\{{v}{}\left({x}\right){=}{-}\frac{{{ⅇ}}^{{5}{}{x}}{}\left({2}{}{\mathrm{_C2}}{}{x}{+}{2}{}{\mathrm{_C1}}{+}{\mathrm{_C2}}\right)}{{4}}{,}{w}{}\left({x}\right){=}{{ⅇ}}^{{5}{}{x}}{}\left({\mathrm{_C2}}{}{x}{+}{\mathrm{_C1}}\right)\right\}$ (10)
 > $\mathrm{sys5}≔\mathrm{diff}\left(Y,x\right)=\mathrm{%.}\left(A,Y\right)+⟨1,\mathrm{exp}\left(x\right)⟩$
 ${\mathrm{sys5}}{≔}\left[\begin{array}{c}\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{v}{}\left({x}\right)\\ \frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{w}{}\left({x}\right)\end{array}\right]{=}{\mathrm{Typesetting}}{:-}{\mathrm{_Hold}}{}\left(\left[{\mathrm{%.}}{}\left({\mathrm{RTABLE}}{}\left({36893628210968881980}{,}\left[\begin{array}{cc}{7}& {1}\\ {-4}& {3}\end{array}\right]{,}{\mathrm{Matrix}}\right){,}\left[\begin{array}{c}v{}\left(x\right)\\ w{}\left(x\right)\end{array}\right]\right)\right]\right){+}\left[\begin{array}{c}{1}\\ {{ⅇ}}^{{x}}\end{array}\right]$ (11)
 > $\mathrm{System}\left(\mathrm{sys5}\right)$
 $\left\{{v}{}\left({x}\right){=}\frac{\left(\left({-}{200}{}{x}{-}{100}\right){}{\mathrm{_C2}}{+}{260}{}{x}{-}{200}{}{\mathrm{_C1}}{+}{23}\right){}{{ⅇ}}^{{5}{}{x}}}{{400}}{+}\frac{{{ⅇ}}^{{x}}}{{16}}{-}\frac{{3}}{{25}}{,}{w}{}\left({x}\right){=}\frac{\left(\left({200}{}{\mathrm{_C2}}{-}{260}\right){}{x}{+}{200}{}{\mathrm{_C1}}{+}{107}\right){}{{ⅇ}}^{{5}{}{x}}}{{200}}{-}\frac{{3}{}{{ⅇ}}^{{x}}}{{8}}{-}\frac{{4}}{{25}}\right\}$ (12)
 > $\mathrm{sys6}≔\mathrm{diff}\left(Y,x\right)=\mathrm{%.}\left(⟨⟨1|2⟩,⟨3|2⟩⟩,Y\right)+⟨1,\mathrm{exp}\left(x\right)⟩$
 ${\mathrm{sys6}}{≔}\left[\begin{array}{c}\frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{v}{}\left({x}\right)\\ \frac{{ⅆ}}{{ⅆ}{x}}\phantom{\rule[-0.0ex]{0.4em}{0.0ex}}{w}{}\left({x}\right)\end{array}\right]{=}{\mathrm{Typesetting}}{:-}{\mathrm{_Hold}}{}\left(\left[{\mathrm{%.}}{}\left({\mathrm{RTABLE}}{}\left({36893628211180960092}{,}\left[\begin{array}{cc}{1}& {2}\\ {3}& {2}\end{array}\right]{,}{\mathrm{Matrix}}\right){,}\left[\begin{array}{c}v{}\left(x\right)\\ w{}\left(x\right)\end{array}\right]\right)\right]\right){+}\left[\begin{array}{c}{1}\\ {{ⅇ}}^{{x}}\end{array}\right]$ (13)
 > $\mathrm{System}\left(\mathrm{sys6}\right)$
 $\left\{{v}{}\left({x}\right){=}\frac{\left({-}{30}{}{\mathrm{_C2}}{-}{12}\right){}{{ⅇ}}^{{-}{x}}}{{30}}{+}\frac{\left({20}{}{\mathrm{_C1}}{+}{7}\right){}{{ⅇ}}^{{4}{}{x}}}{{30}}{-}\frac{{{ⅇ}}^{{x}}}{{3}}{+}\frac{{1}}{{2}}{,}{w}{}\left({x}\right){=}\frac{\left({20}{}{\mathrm{_C2}}{+}{8}\right){}{{ⅇ}}^{{-}{x}}}{{20}}{-}\frac{{3}}{{4}}{+}\frac{\left({20}{}{\mathrm{_C1}}{+}{7}\right){}{{ⅇ}}^{{4}{}{x}}}{{20}}\right\}$ (14)

Compatibility

 • The Student[ODEs][Solve][System] command was introduced in Maple 2021.