78.2.11 problem 5.a

Internal problem ID [20963]
Book : A FIRST COURSE IN DIFFERENTIAL EQUATIONS FOR SCIENTISTS AND ENGINEERS. By Russell Herman. University of North Carolina Wilmington. LibreText. compiled on 06/09/2025
Section : Chapter 2, Second order ODEs. Problems section 2.6
Problem number : 5.a
Date solved : Thursday, October 02, 2025 at 07:00:45 PM
CAS classification : [[_2nd_order, _missing_x]]

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