12.18.1 problem section 9.2, problem 1

Internal problem ID [2115]
Book : Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section : Chapter 9 Introduction to Linear Higher Order Equations. Section 9.2. constant coefficient. Page 483
Problem number : section 9.2, problem 1
Date solved : Tuesday, March 04, 2025 at 01:50:29 PM
CAS classification : [[_3rd_order, _missing_x]]

\begin{align*} y^{\prime \prime \prime }-3 y^{\prime \prime }+3 y^{\prime }-y&=0 \end{align*}

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