29.37.13 problem 1132

Internal problem ID [5671]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 37
Problem number : 1132
Date solved : Friday, March 14, 2025 at 01:33:31 AM
CAS classification : [_Clairaut]

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

Maple. Time used: 0.007 (sec). Leaf size: 27
ode:=cos(diff(y(x),x))+x*diff(y(x),x) = y(x); 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y \left (x \right ) &= \arcsin \left (x \right ) x +\sqrt {-x^{2}+1} \\ y \left (x \right ) &= \cos \left (c_{1} \right )+c_{1} x \\ \end{align*}
Mathematica. Time used: 0.033 (sec). Leaf size: 18
ode=Cos[D[y[x],x]]+x*D[y[x],x]==y[x]; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to c_1 x+\cos (c_1) \\ y(x)\to 1 \\ \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x*Derivative(y(x), x) - y(x) + cos(Derivative(y(x), x)),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
NotImplementedError : multiple generators [_X0, cos(_X0)] 
No algorithms are implemented to solve equation _X0*x - y(x) + cos(_X0)