82.27.2 problem Ex. 2

Internal problem ID [18877]
Book : Introductory Course On Differential Equations by Daniel A Murray. Longmans Green and Co. NY. 1924
Section : Chapter VI. Linear equations with constant coefficients. problems at page 73
Problem number : Ex. 2
Date solved : Tuesday, January 28, 2025 at 12:33:15 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

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

Solution by Maple

Time used: 0.003 (sec). Leaf size: 19

dsolve(diff(y(x),x$2)-y(x)=2+5*x,y(x), singsol=all)
 
\[ y \left (x \right ) = c_{2} {\mathrm e}^{-x}+{\mathrm e}^{x} c_{1} -2-5 x \]

Solution by Mathematica

Time used: 0.013 (sec). Leaf size: 24

DSolve[D[y[x],{x,2}]-y[x]==2+5*x,y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to -5 x+c_1 e^x+c_2 e^{-x}-2 \]