1.5 problem Problem 1(e)

Internal problem ID [10868]

Book: APPLIED DIFFERENTIAL EQUATIONS The Primary Course by Vladimir A. Dobrushkin. CRC Press 2015
Section: Chapter 2, First Order Equations. Problems page 149
Problem number: Problem 1(e).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_homogeneous, `class C`], _dAlembert]

\[ \boxed {y^{\prime }-\cos \left (x +y\right )=0} \]

Solution by Maple

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

dsolve(diff(y(x),x)=cos(x+y(x)),y(x), singsol=all)
 

\[ y \left (x \right ) = -x -2 \arctan \left (-x +c_{1} \right ) \]

Solution by Mathematica

Time used: 0.971 (sec). Leaf size: 59

DSolve[y'[x]==Cos[x+y[x]],y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to -x+2 \arctan \left (x+\frac {c_1}{2}\right ) \\ y(x)\to -x+2 \arctan \left (x+\frac {c_1}{2}\right ) \\ y(x)\to -x-\pi \\ y(x)\to \pi -x \\ \end{align*}