7.2.4 problem 4

Internal problem ID [22]
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 : 4
Date solved : Friday, February 07, 2025 at 08:12:04 AM
CAS classification : [[_linear, `class A`]]

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

Solution by Maple

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

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

Solution by Mathematica

Time used: 0.038 (sec). Leaf size: 16

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