2.4 problem 4

Internal problem ID [5090]

Book: Engineering Mathematics. By K. A. Stroud. 5th edition. Industrial press Inc. NY. 2001
Section: Program 24. First order differential equations. Further problems 24. page 1068
Problem number: 4.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

\[ \boxed {\cos \left (y\right )+\left (1+{\mathrm e}^{-x}\right ) \sin \left (y\right ) y^{\prime }=0} \] With initial conditions \begin {align*} \left [y \left (0\right ) = \frac {\pi }{4}\right ] \end {align*}

Solution by Maple

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

dsolve([cos(y(x))+(1+exp(-x))*sin(y(x))*diff(y(x),x)=0,y(0) = 1/4*Pi],y(x), singsol=all)
 

\[ y \left (x \right ) = \arccos \left (\frac {\sqrt {2}\, \left ({\mathrm e}^{x}+1\right )}{4}\right ) \]

Solution by Mathematica

Time used: 50.086 (sec). Leaf size: 20

DSolve[{Cos[y[x]]+(1+Exp[-x])*Sin[y[x]]*y'[x]==0,{y[0]==Pi/4}},y[x],x,IncludeSingularSolutions -> True]
 

\[ y(x)\to \arccos \left (\frac {e^x+1}{2 \sqrt {2}}\right ) \]