77.15.2 problem 2

Internal problem ID [20472]
Book : A Text book for differentional equations for postgraduate students by Ray and Chaturvedi. First edition, 1958. BHASKAR press. INDIA
Section : Chapter III. Ordinary linear differential equations with constant coefficients. Exercise III (G) at page 45
Problem number : 2
Date solved : Thursday, October 02, 2025 at 06:03:13 PM
CAS classification : [[_3rd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime \prime }-y^{\prime \prime }-y^{\prime }+y&=x \end{align*}
Maple. Time used: 0.003 (sec). Leaf size: 21
ode:=diff(diff(diff(y(x),x),x),x)-diff(diff(y(x),x),x)-diff(y(x),x)+y(x) = x; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \left (c_3 x +c_1 \right ) {\mathrm e}^{x}+c_2 \,{\mathrm e}^{-x}+x +1 \]
Mathematica. Time used: 0.003 (sec). Leaf size: 29
ode=D[y[x],{x,3}]-D[y[x],{x,2}]-D[y[x],x]+y[x]==x; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to x+c_3 e^x x+c_1 e^{-x}+c_2 e^x+1 \end{align*}
Sympy. Time used: 0.120 (sec). Leaf size: 19
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x + y(x) - Derivative(y(x), x) - Derivative(y(x), (x, 2)) + Derivative(y(x), (x, 3)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{3} e^{- x} + x + \left (C_{1} + C_{2} x\right ) e^{x} + 1 \]