7.2.5 problem 5

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

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

Solution by Maple

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

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

Solution by Mathematica

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

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