7.10.43 problem 49

Internal problem ID [313]
Book : Elementary Differential Equations. By C. Henry Edwards, David E. Penney and David Calvis. 6th edition. 2008
Section : Chapter 2. Linear Equations of Higher Order. Section 2.3 (Homogeneous equations with constant coefficients). Problems at page 134
Problem number : 49
Date solved : Saturday, March 29, 2025 at 04:50:31 PM
CAS classification : [[_high_order, _missing_x]]

\begin{align*} y^{\prime \prime \prime \prime }&=y^{\prime \prime \prime }+y^{\prime \prime }+y^{\prime }+2 y \end{align*}

With initial conditions

\begin{align*} y \left (0\right )&=0\\ y^{\prime }\left (0\right )&=0\\ y^{\prime \prime }\left (0\right )&=0\\ y^{\prime \prime \prime }\left (0\right )&=15 \end{align*}

Maple. Time used: 0.079 (sec). Leaf size: 23
ode:=diff(diff(diff(diff(y(x),x),x),x),x) = diff(diff(diff(y(x),x),x),x)+diff(diff(y(x),x),x)+diff(y(x),x)+2*y(x); 
ic:=y(0) = 0, D(y)(0) = 0, (D@@2)(y)(0) = 0, (D@@3)(y)(0) = 15; 
dsolve([ode,ic],y(x), singsol=all);
 
\[ y = -\frac {5 \,{\mathrm e}^{-x}}{2}+{\mathrm e}^{2 x}-\frac {9 \sin \left (x \right )}{2}+\frac {3 \cos \left (x \right )}{2} \]
Mathematica. Time used: 0.004 (sec). Leaf size: 32
ode=D[y[x],{x,4}]==D[y[x],{x,3}]+D[y[x],{x,2}]+D[y[x],x]+2*y[x]; 
ic={y[0]==0,Derivative[1][y][0] ==0,Derivative[2][y][0] ==0,Derivative[3][y][0] ==15}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {1}{2} \left (-5 e^{-x}+2 e^{2 x}-9 \sin (x)+3 \cos (x)\right ) \]
Sympy. Time used: 0.226 (sec). Leaf size: 27
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-2*y(x) - Derivative(y(x), x) - Derivative(y(x), (x, 2)) - Derivative(y(x), (x, 3)) + Derivative(y(x), (x, 4)),0) 
ics = {y(0): 0, Subs(Derivative(y(x), x), x, 0): 0, Subs(Derivative(y(x), (x, 2)), x, 0): 0, Subs(Derivative(y(x), (x, 3)), x, 0): 15} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = e^{2 x} - \frac {9 \sin {\left (x \right )}}{2} + \frac {3 \cos {\left (x \right )}}{2} - \frac {5 e^{- x}}{2} \]