Internal problem ID [12652]
Book: Ordinary Differential Equations by Charles E. Roberts, Jr. CRC Press. 2010
Section: Chapter 2. The Initial Value Problem. Exercises 2.2, page 53
Problem number: 16.
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [_quadrature]
\[ \boxed {y^{\prime }=x^{2}+{\mathrm e}^{x}-\sin \left (x \right )} \] With initial conditions \begin {align*} [y \left (2\right ) = -1] \end {align*}
✓ Solution by Maple
Time used: 0.031 (sec). Leaf size: 23
dsolve([diff(y(x),x)=x^2+exp(x)-sin(x),y(2) = -1],y(x), singsol=all)
\[ y \left (x \right ) = \frac {x^{3}}{3}+\cos \left (x \right )+{\mathrm e}^{x}-\frac {11}{3}-\cos \left (2\right )-{\mathrm e}^{2} \]
✓ Solution by Mathematica
Time used: 0.023 (sec). Leaf size: 30
DSolve[{y'[x]==x^2+Exp[x]-Sin[x],{y[2]==-1}},y[x],x,IncludeSingularSolutions -> True]
\[ y(x)\to \frac {x^3}{3}+e^x+\cos (x)-e^2-\frac {11}{3}-\cos (2) \]