52.9.15 problem 15

Internal problem ID [8393]
Book : DIFFERENTIAL EQUATIONS with Boundary Value Problems. DENNIS G. ZILL, WARREN S. WRIGHT, MICHAEL R. CULLEN. Brooks/Cole. Boston, MA. 2013. 8th edition.
Section : CHAPTER 8 SYSTEMS OF LINEAR FIRST-ORDER DIFFERENTIAL EQUATIONS. EXERCISES 8.1. Page 332
Problem number : 15
Date solved : Wednesday, March 05, 2025 at 05:44:32 AM
CAS classification : system_of_ODEs

\begin{align*} \frac {d}{d t}x \left (t \right )&=x \left (t \right )+2 y \left (t \right )+z \left (t \right )\\ \frac {d}{d t}y \left (t \right )&=6 x \left (t \right )-y \left (t \right )\\ \frac {d}{d t}z \left (t \right )&=-x \left (t \right )-2 y \left (t \right )-z \left (t \right ) \end{align*}

Maple. Time used: 0.032 (sec). Leaf size: 60
ode:=[diff(x(t),t) = x(t)+2*y(t)+z(t), diff(y(t),t) = 6*x(t)-y(t), diff(z(t),t) = -x(t)-2*y(t)-z(t)]; 
dsolve(ode);
 
\begin{align*} x \left (t \right ) &= \frac {2 \,{\mathrm e}^{3 t} c_{2}}{3}-\frac {c_3 \,{\mathrm e}^{-4 t}}{2}+\frac {c_{1}}{6} \\ y &= c_{1} +{\mathrm e}^{3 t} c_{2} +c_3 \,{\mathrm e}^{-4 t} \\ z \left (t \right ) &= -\frac {2 \,{\mathrm e}^{3 t} c_{2}}{3}+\frac {c_3 \,{\mathrm e}^{-4 t}}{2}-\frac {13 c_{1}}{6} \\ \end{align*}
Mathematica. Time used: 0.005 (sec). Leaf size: 190
ode={D[x[t],t]==x[t]+2*y[t]+z[t],D[y[t],t]==6*x[t]-y[t],D[z[t],t]==-x[t]-2*y[t]-z[t]}; 
ic={}; 
DSolve[{ode,ic},{x[t],y[t],z[t]},t,IncludeSingularSolutions->True]
 
\begin{align*} x(t)\to \frac {1}{84} e^{-4 t} \left (c_1 \left (-7 e^{4 t}+64 e^{7 t}+27\right )+24 c_2 \left (e^{7 t}-1\right )+c_3 \left (-7 e^{4 t}+16 e^{7 t}-9\right )\right ) \\ y(t)\to \frac {1}{14} e^{-4 t} \left (c_1 \left (-7 e^{4 t}+16 e^{7 t}-9\right )+c_2 \left (6 e^{7 t}+8\right )+c_3 \left (-7 e^{4 t}+4 e^{7 t}+3\right )\right ) \\ z(t)\to \frac {1}{84} e^{-4 t} \left (c_1 \left (91 e^{4 t}-64 e^{7 t}-27\right )-24 c_2 \left (e^{7 t}-1\right )-c_3 \left (-91 e^{4 t}+16 e^{7 t}-9\right )\right ) \\ \end{align*}
Sympy. Time used: 0.136 (sec). Leaf size: 63
from sympy import * 
t = symbols("t") 
x = Function("x") 
y = Function("y") 
z = Function("z") 
ode=[Eq(-x(t) - 2*y(t) - z(t) + Derivative(x(t), t),0),Eq(-6*x(t) + y(t) + Derivative(y(t), t),0),Eq(x(t) + 2*y(t) + z(t) + Derivative(z(t), t),0)] 
ics = {} 
dsolve(ode,func=[x(t),y(t),z(t)],ics=ics)
 
\[ \left [ x{\left (t \right )} = - \frac {C_{1}}{13} - C_{2} e^{- 4 t} - C_{3} e^{3 t}, \ y{\left (t \right )} = - \frac {6 C_{1}}{13} + 2 C_{2} e^{- 4 t} - \frac {3 C_{3} e^{3 t}}{2}, \ z{\left (t \right )} = C_{1} + C_{2} e^{- 4 t} + C_{3} e^{3 t}\right ] \]