64.1.1 problem 1(a)

Internal problem ID [13246]
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(a)
Date solved : Tuesday, January 28, 2025 at 05:12:58 AM
CAS classification : [[_linear, `class A`]]

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

Solution by Maple

Time used: 0.002 (sec). Leaf size: 12

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

Solution by Mathematica

Time used: 0.036 (sec). Leaf size: 15

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