3.7 problem 4.3 (g)

Internal problem ID [13305]

Book: Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section: Chapter 4. SEPARABLE FIRST ORDER EQUATIONS. Additional exercises. page 90
Problem number: 4.3 (g).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_linear, `class A`]]

\[ \boxed {y^{\prime }+4 y=x^{2}} \]

Solution by Maple

Time used: 0.0 (sec). Leaf size: 20

dsolve(diff(y(x),x)+4*y(x)=x^2,y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {x^{2}}{4}-\frac {x}{8}+\frac {1}{32}+{\mathrm e}^{-4 x} c_{1} \]

Solution by Mathematica

Time used: 0.047 (sec). Leaf size: 28

DSolve[y'[x]+4*y[x]==x^2,y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to \frac {1}{32} \left (8 x^2-4 x+1\right )+c_1 e^{-4 x} \]