12.1.7 problem 3(b)

Internal problem ID [1525]
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)
Date solved : Monday, January 27, 2025 at 04:58:53 AM
CAS classification : [_quadrature]

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

Solution by Maple

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

dsolve(diff(y(x),x) = -x*sin(x),y(x), singsol=all)
 
\[ y = -\sin \left (x \right )+\cos \left (x \right ) x +c_1 \]

Solution by Mathematica

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

DSolve[D[y[x],x] == -x*Sin[x],y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to -\sin (x)+x \cos (x)+c_1 \]