1.18 problem 18

Internal problem ID [3163]

Book: Differential equations for engineers by Wei-Chau XIE, Cambridge Press 2010
Section: Chapter 2. First-Order and Simple Higher-Order Differential Equations. Page 78
Problem number: 18.
ODE order: 1.
ODE degree: 1.

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

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.199 (sec). Leaf size: 31

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

\[ \text {Solve}[2 y(x)-2 (\tan (x-y(x))-\arctan (\tan (x-y(x))))=c_1,y(x)] \]