29.15.30 problem 438

Internal problem ID [5036]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 15
Problem number : 438
Date solved : Monday, January 27, 2025 at 10:05:07 AM
CAS classification : [[_linear, `class A`]]

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

Solution by Maple

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

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

Solution by Mathematica

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

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