50.4.9 problem 9

Internal problem ID [7858]
Book : Differential Equations: Theory, Technique, and Practice by George Simmons, Steven Krantz. McGraw-Hill NY. 2007. 1st Edition.
Section : Chapter 1. What is a differential equation. Section 1.5. Exact Equations. Page 20
Problem number : 9
Date solved : Monday, January 27, 2025 at 03:27:10 PM
CAS classification : [_separable]

\begin{align*} 1+y+\left (1-x \right ) y^{\prime }&=0 \end{align*}

Solution by Maple

Time used: 0.000 (sec). Leaf size: 11

dsolve((1+y(x))+(1-x)*diff(y(x),x)=0,y(x), singsol=all)
 
\[ y = -1+c_{1} \left (x -1\right ) \]

Solution by Mathematica

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

DSolve[(1+y[x])+(1-x)*D[y[x],x]==0,y[x],x,IncludeSingularSolutions -> True]
 
\begin{align*} y(x)\to -1+c_1 (x-1) \\ y(x)\to -1 \\ \end{align*}