82.33.27 problem Ex. 27

Internal problem ID [18841]
Book : Introductory Course On Differential Equations by Daniel A Murray. Longmans Green and Co. NY. 1924
Section : Chapter VI. Linear equations with constant coefficients. Examples on chapter VI, page 80
Problem number : Ex. 27
Date solved : Thursday, March 13, 2025 at 01:03:09 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} y^{\prime \prime }-9 y^{\prime }+20 y&=20 x \end{align*}

Maple. Time used: 0.005 (sec). Leaf size: 19
ode:=diff(diff(y(x),x),x)-9*diff(y(x),x)+20*y(x) = 20*x; 
dsolve(ode,y(x), singsol=all);
 
\[ y \left (x \right ) = {\mathrm e}^{4 x} c_{2} +c_{1} {\mathrm e}^{5 x}+x +\frac {9}{20} \]
Mathematica. Time used: 0.015 (sec). Leaf size: 26
ode=D[y[x],{x,2}]-9*D[y[x],x]+20*y[x]==20*x; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to x+c_1 e^{4 x}+c_2 e^{5 x}+\frac {9}{20} \]
Sympy. Time used: 0.159 (sec). Leaf size: 20
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-20*x + 20*y(x) - 9*Derivative(y(x), x) + Derivative(y(x), (x, 2)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} e^{4 x} + C_{2} e^{5 x} + x + \frac {9}{20} \]