49.10.2 problem 1(b)

Internal problem ID [7660]
Book : An introduction to Ordinary Differential Equations. Earl A. Coddington. Dover. NY 1961
Section : Chapter 2. Linear equations with constant coefficients. Page 89
Problem number : 1(b)
Date solved : Wednesday, March 05, 2025 at 04:49:49 AM
CAS classification : [[_3rd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime \prime }-8 y&={\mathrm e}^{i x} \end{align*}

Maple. Time used: 0.004 (sec). Leaf size: 41
ode:=diff(diff(diff(y(x),x),x),x)-8*y(x) = exp(I*x); 
dsolve(ode,y(x), singsol=all);
 
\[ y = \left (-\frac {8}{65}+\frac {i}{65}\right ) {\mathrm e}^{i x}+{\mathrm e}^{2 x} c_{1} +c_{2} {\mathrm e}^{-x} \cos \left (\sqrt {3}\, x \right )+c_3 \,{\mathrm e}^{-x} \sin \left (\sqrt {3}\, x \right ) \]
Mathematica. Time used: 0.424 (sec). Leaf size: 59
ode=D[y[x],{x,3}]-8*y[x]==Exp[I*x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {1}{65} e^{-x} \left (-(8-i) e^{(1+i) x}+65 c_1 e^{3 x}+65 c_2 \cos \left (\sqrt {3} x\right )+65 c_3 \sin \left (\sqrt {3} x\right )\right ) \]
Sympy. Time used: 0.227 (sec). Leaf size: 46
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-8*y(x) - exp(x*complex(0, 1)) + Derivative(y(x), (x, 3)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{3} e^{2 x} + \left (C_{1} \sin {\left (\sqrt {3} x \right )} + C_{2} \cos {\left (\sqrt {3} x \right )}\right ) e^{- x} + \frac {e^{x \operatorname {complex}{\left (0,1 \right )}}}{\operatorname {complex}^{3}{\left (0,1 \right )} - 8} \]