78.1.34 problem 3 (b)

Internal problem ID [18089]
Book : DIFFERENTIAL EQUATIONS WITH APPLICATIONS AND HISTORICAL NOTES by George F. Simmons. 3rd edition. 2017. CRC press, Boca Raton FL.
Section : Chapter 1. The Nature of Differential Equations. Separable Equations. Section 2. Problems at page 9
Problem number : 3 (b)
Date solved : Tuesday, January 28, 2025 at 11:25:58 AM
CAS classification : [_quadrature]

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

With initial conditions

\begin{align*} y \left (0\right )&=1 \end{align*}

Solution by Maple

Time used: 0.013 (sec). Leaf size: 12

dsolve([diff(y(x),x)=2*sin(x)*cos(x),y(0) = 1],y(x), singsol=all)
 
\[ y = -\frac {\cos \left (2 x \right )}{2}+\frac {3}{2} \]

Solution by Mathematica

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

DSolve[{D[y[x],x]==2*Sin[x]*Cos[x],{y[0]==1}},y[x],x,IncludeSingularSolutions -> True]
 
\[ y(x)\to \frac {1}{2} (3-\cos (2 x)) \]