64.1.3 problem 1(c)

Internal problem ID [13248]
Book : Differential Equations by Shepley L. Ross. Third edition. John Willey. New Delhi. 2004.
Section : Chapter 1, Differential equations and their solutions. Exercises page 13
Problem number : 1(c)
Date solved : Tuesday, January 28, 2025 at 05:13:02 AM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

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

Solution by Maple

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

dsolve(diff(y(x),x$2)-3*diff(y(x),x)+2*y(x)=4*x^2,y(x), singsol=all)
 
\[ y = {\mathrm e}^{2 x} c_{1} +{\mathrm e}^{x} c_{2} +2 x^{2}+6 x +7 \]

Solution by Mathematica

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

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