7.2.6 problem 6

Internal problem ID [24]
Book : Elementary Differential Equations. By C. Henry Edwards, David E. Penney and David Calvis. 6th edition. 2008
Section : Chapter 1. First order differential equations. Section 1.3. Problems at page 27
Problem number : 6
Date solved : Friday, February 07, 2025 at 08:12:06 AM
CAS classification : [[_linear, `class A`]]

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

Solution by Maple

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

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

Solution by Mathematica

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

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