40.4.1 problem 19 (a)

Internal problem ID [6641]
Book : Schaums Outline. Theory and problems of Differential Equations, 1st edition. Frank Ayres. McGraw Hill 1952
Section : Chapter 6. Equations of first order and first degree (Linear equations). Supplemetary problems. Page 39
Problem number : 19 (a)
Date solved : Monday, January 27, 2025 at 02:16:31 PM
CAS classification : [[_linear, `class A`]]

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

Solution by Maple

Time used: 0.001 (sec). Leaf size: 14

dsolve(diff(y(x),x)+y(x)=2+2*x,y(x), singsol=all)
 
\[ y = 2 x +c_1 \,{\mathrm e}^{-x} \]

Solution by Mathematica

Time used: 0.028 (sec). Leaf size: 17

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