1.1 problem 1(a)

Internal problem ID [11570]

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).
ODE order: 1.
ODE degree: 1.

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

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

Solution by Maple

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

dsolve(diff(y(x),x)+y(x)=1+x,y(x), singsol=all)
 

\[ y \left (x \right ) = x +c_{1} {\mathrm e}^{-x} \]

Solution by Mathematica

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

DSolve[y'[x]+y[x]==1+x,y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to x+c_1 e^{-x} \]