12.1.6 problem 3(a)

Internal problem ID [1524]
Book : Elementary differential equations with boundary value problems. William F. Trench. Brooks/Cole 2001
Section : Chapter 1, Introduction. Section 1.2 Page 14
Problem number : 3(a)
Date solved : Monday, January 27, 2025 at 04:58:52 AM
CAS classification : [_quadrature]

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

Solution by Maple

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

dsolve(diff(y(x),x) = -x,y(x), singsol=all)
 
\[ y = -\frac {x^{2}}{2}+c_1 \]

Solution by Mathematica

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

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