1.7 problem 3(b)

Internal problem ID [875]

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(b).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_quadrature]

Solve \begin {gather*} \boxed {y^{\prime }+x \sin \relax (x )=0} \end {gather*}

Solution by Maple

Time used: 0.0 (sec). Leaf size: 14

dsolve(diff(y(x),x) = -x*sin(x),y(x), singsol=all)
 

\[ y \relax (x ) = x \cos \relax (x )-\sin \relax (x )+c_{1} \]

Solution by Mathematica

Time used: 0.007 (sec). Leaf size: 16

DSolve[y'[x] == -x*Sin[x],y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to -\sin (x)+x \cos (x)+c_1 \\ \end{align*}