7.2.8 problem 9

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

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

Solution by Maple

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

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

Solution by Mathematica

Time used: 0.112 (sec). Leaf size: 19

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